Computing.Net > Forums > Solaris > Static library for gcc compiling

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Static library for gcc compiling

Reply to Message Icon

Name: meng
Date: July 30, 2003 at 20:04:40 Pacific
OS: SunOS 5.8
CPU/Ram: SunBlade 1000
Comment:

I am getting undefined symbol (_dlclose, _dlopen, _dlsym) errors
from gcc compiling.

If I added -ldl after gcc to resolve the issue, it said
"ld: fatal: library -ldl: not found"
because Sun didn't include a static version of `libdl.a' in /usr/lib.
Does anyone know where I can get the file libdl.a for Solaris?
or is there any workaround solution?

Thanks a lot in advance!



Sponsored Link
Ads by Google

Response Number 1
Name: Ogan Sayek
Date: August 5, 2003 at 08:25:35 Pacific
Reply:

What version of gcc are you using?
install the lastest version.


0

Response Number 2
Name: meng
Date: August 9, 2003 at 23:09:34 Pacific
Reply:

It is gcc 3.2.3
I finally found what was causing this.
I had
setenv LD_OPTIONS -Bstatic
in .cshrc
Just removed it, ok now
Thanks for your reply.



0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Grep problem Running Shell Script with...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: Static library for gcc compiling

gcc compiler www.computing.net/answers/solaris/gcc-compiler/2110.html

gcc compiler for solaris10i www.computing.net/answers/solaris/gcc-compiler-for-solaris10i/5044.html

i have problem to compile GCC www.computing.net/answers/solaris/i-have-problem-to-compile-gcc/4184.html