Roland Kuhn <[EMAIL PROTECTED]> said: > > Dear experts! > > I'm using 10.4-transitional/unstable and just did a selfupdate, which > didn't have to compile anything. update-all then stopped with a > linker error from openEXR: > > /bin/sh ../libtool --mode=link g++-3.3 -pipe -g -O2 -Wno-long- > double -L/sw/lib -o exrheader -L../Iex -L../Half -L../Imath -L../ > IlmImf -lIlmImf -lImath -lHalf -lIex -lz main.o > g++-3.3 -pipe -g -O2 -Wno-long-double -o exrheader main.o -Wl,- > bind_at_load -L/sw/lib -L/sw/src/fink.build/openexr-1.2.2-21/ > OpenEXR-1.2.2/Iex -L/sw/src/fink.build/openexr-1.2.2-21/OpenEXR-1.2.2/ > Half -L/sw/src/fink.build/openexr-1.2.2-21/OpenEXR-1.2.2/Imath -L/sw/ > src/fink.build/openexr-1.2.2-21/OpenEXR-1.2.2/IlmImf /sw/lib/ > libIlmImf.a /sw/lib/libImath.a /sw/lib/libHalf.a /sw/lib/libIex.a -lz > ld: Undefined symbols: > __ZN3Imf8TimeCodeC1ERKS0_ [...] > It seems like the early mention of "-L/sw/lib" makes libtool use the > old version of libIlmImf from the system directory instead of the > newly compiled one. The hotfix would be to deinstall the package > when compiling a new version, but that's ugly beyond words.
Correct in all respects. > As I'm relatively new to this business I don't know how to properly > fix it, but I see at least two possible ways: > > - The culprit is the definition of CXXLINK, including LDFLAGS, so we > remove that and add it to the LDADDs > - We set LDFLAGS to the empty string and add /sw/lib to the LDADDs > > Is there a better way? Which one is preferred? I might be able to > produce a new openexr.patch once I receive a 'go'. The "real" problem is that the upstream author didn't know you can point libtool to ../foo/libfoo.la instead of using -lfoo and then playing games with -L search ordering to find libfoo. Is fixed. dan -- Daniel Macks [EMAIL PROTECTED] http://www.netspace.org/~dmacks ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-devel