Hi Gerard, Am 27.06.2012 um 07:41 schrieb Gerard Henry: > 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 ?
I am already working on your bug report :-) There will be an update in an hour or so. You need some tweaking of the args: http://sourceforge.net/apps/trac/gar/browser/csw/mgar/pkg/cpan/GD/trunk/Makefile Best regards -- Dago -- "You don't become great by trying to be great, you become great by wanting to do something, and then doing it so hard that you become great in the process." - xkcd #896 _______________________________________________ users mailing list [email protected] https://lists.opencsw.org/mailman/listinfo/users
