Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

"nm" not showing any names on shared library (.SO)

807575Jan 23 2006 — edited Jan 26 2006
Hi,

I am using Sun Studio 11 'CC' to compile a shared library that is linked with a static library (libdmauthplug.a). Here're the command lines for the compile:

CC -Dsolaris -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I. -c mysource.cpp

CC -o mysharedlib.so mysource.o -shared -fPIC -G -L. -Bstatic -ldmauthplug

The above command lines produce mysharedlib.so, but when I run "nm -g mysharedlib.so", I am getting no output:

bash-2.05# nm -g mysharedlib.so


mysharedlib.so:
bash-2.05#

Can anyone explain why the "nm" isn't able to show any names from mysharedlib.so?

Thanks in advance,
Jim
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 23 2006
Added on Jan 23 2006
11 comments
577 views