Linking issue (TOPO-0.1)
Steiner, Guido {PRBT~Basel}
GUIDO.STEINER at Roche.COM
Fri Feb 15 08:50:24 UTC 2002
If I'm allowed to post once more (I promise this will be the last problem submitted today :-)....
When trying to compile Topo 0.1 (of the EMBASSY package) with png support enabled, I get a linking error as follows:
ld64: ERROR 33: Unresolved text symbol "floor" -- 1st referenced by /soft/bi/pdsoft64/lib/libgd.a(gd.o).
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld64: ERROR 33: Unresolved text symbol "pow" -- 1st referenced by ./ldtmpa1gUXE/libpng.a(pngrtran.o).o.
Use linker option -v to see when and which objects, archives and dsos are loaded.
ld64: INFO 152: Output file removed because of error.
This seems to be due to the fact that the math libraries are linked in the wrong order. The following is done:
cc -O -L/soft/bi/pdsoft64/lib -o topo topo.o ../../../ajax/libajaxg.la ../../../ajax/libajax.la ../../../plplot/libplplot.la -lX11 -lsocket -lm -lgd -lpng -lz
And what should be actually done (IMHO):
cc -O -L/soft/bi/pdsoft64/lib -o topo topo.o ../../../ajax/libajaxg.la ../../../ajax/libajax.la ../../../plplot/libplplot.la -lX11 -lsocket -lgd -lpng -lz -lm
The configure script, however, proofed resistant to my efforts in altering the linking order. I just don't see how the LIBS variable is put together.
Ideas anyone? :)
Guido Steiner
More information about the EMBOSS
mailing list