Dynamical loading libraries problem
So, we're in:
/home/cjoneill/StGermain/StGermain/FE/testApps
And when I compile I get the error (again):
Undefined first referenced
symbol in file
dlsym /home/cjoneill/StGermain/build/lib/libStGermain.a(Plugins.o) (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
There are a few other dl symbols aswell - these control the dynamic loading. The offending library is /home/cjoneill/StGermain/build/lib/libStGermain.a
And the work around is to include more flags in the sun compile:
/home/cjoneill/StGermain/build/lib/libStGermain.a -lm -lnsl -lsocket -lposix4 -ldl
And it builds!
Nb: these go in the configure script as:
EXPORT_DYNAMIC_LFLAGS
/home/cjoneill/StGermain/StGermain/FE/testApps
And when I compile I get the error (again):
Undefined first referenced
symbol in file
dlsym /home/cjoneill/StGermain/build/lib/libStGermain.a(Plugins.o) (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
There are a few other dl symbols aswell - these control the dynamic loading. The offending library is /home/cjoneill/StGermain/build/lib/libStGermain.a
And the work around is to include more flags in the sun compile:
/home/cjoneill/StGermain/build/lib/libStGermain.a -lm -lnsl -lsocket -lposix4 -ldl
And it builds!
Nb: these go in the configure script as:
EXPORT_DYNAMIC_LFLAGS


0 Comments:
Post a Comment
<< Home