gcc -static on Solaris



Thanks to those who provided me help on my last question (about gcc
warning...).

I have another problem with gcc under Solaris.

Here is the linking part of my Makefile:

gcc -static my_object_files.o \
/usr/local/lib/libgtk.a /usr/local/lib/libgdk.a /usr/local/lib/libglib.a
\
-L/usr/openwin/lib -lX11 -lXext -lm -lsocket -lnsl -o my_prog_static

I have no problem with this when compiling under Linux (libc5).
But here are the error messages I have when compiling under Solaris.

Undefined                       first referenced
 symbol                             in file
dlclose                             /usr/lib/libnsl.a(netdir.o)
wslen                              
/usr/openwin/lib/libX11.a(XSunWcTProp.o)
dgettext                            /usr/lib/libnsl.a(netselect.o)
dlsym                              
/usr/openwin/lib/libX11.a(XConnDis.o)
dlopen                             
/usr/openwin/lib/libX11.a(XConnDis.o)
dlerror                             /usr/openwin/lib/libX11.a(XlcWrap.o)
ld: fatal: Symbol referencing errors. No output written to
my_prog_static

Any hints ?
-- 
Marc
** ERROR **: sigsegv caught



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]