[GRASSLIST:5014] error compiling PNGdriver
John Gillette
JGillette at rfmd.com
Wed Nov 20 13:53:13 EST 2002
sparc-sun-solaris2.7
grass5.0.0
I compiled gd2.0.7 (using the included ./config) to install libgd.so.2.0.0
in a local directory (/scratch/local/lib).
I reran ./config for grass and recompiled. PNG driver chokes
on linking. At step:
gcc -L/scratch/grass500/grass-5.0.0/src/libes/LIB.sparc-sun-solaris2.7 -o /scratch/grass500/grass-5.0.0/dist.sparc-sun-solaris2.7/driver/PNG <list of .o files> -ldriver -lgis -lnsl -lz -lsocket -lnsl -L/scratch/local/lib -lgd
ld: warning: file libucb.so.1: required by /usr/local/lib/libpng.so.2, not found
Undefined symbol sin, cos in libdriver.a(Text2.o)
(symbol belongs to implicit dependency /usr/lib/libm.so.1)
ld: fatal: Symbol referencing errors. ...
*** Error code 1
Can someone help me compile this? libucb,libm?
Also, is it possible to compile the PNGdriver such that the gd lib is
included in the driver such that I can erase the gd lib and include files
when I am done? (statically linked?)
Note that GD2.0.7 is brand new and changes have been made to improve the
auto config. see http://www.boutell.com/gd/
Thank you
John Gillette
More information about the grass-user
mailing list