[csw-users] need help to compile GD perl module

Gerard Henry ghenry at cmi.univ-mrs.fr
Wed Jun 27 07:41:25 CEST 2012


hello all,
i'm trying to compile GD:
http://search.cpan.org/~lds/GD-2.46/
on solaris 11 x86.
The problem is that it doesn't link wirth the correct libraries, the 
errors are:
libpng warning: Application was compiled with png.h from libpng-1.2.44
libpng warning: Application  is  running with png.c from libpng-1.4.8
libpng warning: Incompatible libpng version in application and library

and
JPEG library reports unrecoverable error: Wrong JPEG library
version: library is 62, caller expects 70

i'm trying the follwing options:
perl Makefile.PL -lib_gd_path /opt/csw/lib -lib_png_path /opt/csw/lib 
-lib_jpeg_path /opt/csw/lib

but when i ldd the .so, i find:
ldd blib/arch/auto/GD/GD.so
...
libjpeg.so.62 =>         /usr/lib/libjpeg.so.62
         ...
libpng14.so.14 =>        /usr/lib/libpng14.so.14
...
         libjpeg.so.7 =>  /opt/csw/lib/i386/libjpeg.so.7
         libpng12.so.0 =>         /opt/csw/lib/pentium_pro/libpng12.so.0
...

the link command is:
LD_RUN_PATH="/usr/lib" /opt/SUNWspro/bin/cc  -G -L/opt/csw/lib 
-L/opt/csw/bdb48/lib -L/usr/lib -L/usr/ccs/lib -L/lib GD.o  -o 
blib/arch/auto/GD/GD.so      -L/usr/lib -L/usr/lib/amd64 -L/usr/lib 
-lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng -lz -lm -lgd 
-L/opt/csw/lib -R/opt/csw/lib -liconv

how can i remove the libjpeg and libpng coming from /usr/lib ?

thanks in advance for help,

gerard


More information about the users mailing list