Monkey stumbles upon warpdrive while coding

"I thought it would take 1000 monkeys 1000 years" says ape.

My Photo
Name:
Location: Sydney, New South Wales, Australia

Back from the US, and loving the beaches. Lucky enough to be working in science still.

Friday, February 25, 2005

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

0 Comments:

Post a Comment

<< Home