Hello all!
I'm trying to compile the GD module for
Perl on Redhat AS 4.
It fails when trying to link to libjpeg. The machine is a AMD Opteron 64 machine so I figure it's some kind of 32 vs 64bit interference in the lib dir?
Any idéas?
Code:
CPAN.pm: Going to build L/LD/LDS/GD-2.41.tar.gz
Notice: Type perl Makefile.PL -h for command-line option summary.
Configuring for libgd version 2.0.28.
Checking for stray libgd header files...none found.
Included Features: GD_XPM GD_JPEG GD_FREETYPE GD_PNG GD_GIF
GD library used from: /usr
Checking if your kit is complete...
Looks good
Writing Makefile for GD
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" GD/Image.pm.PLS GD/Image.pm
Extracting Image.pm (with variable substitutions)
cp GD/Polyline.pm blib/lib/GD/Polyline.pm
cp qd.pl blib/lib/qd.pl
cp GD/Image.pm blib/lib/GD/Image.pm
cp GD.pm blib/lib/GD.pm
AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD)
cp GD/Simple.pm blib/lib/GD/Simple.pm
cp GD/Polygon.pm blib/lib/GD/Polygon.pm
/usr/bin/perl /usr/lib/perl5/5.8.5/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.5/ExtUtils/typemap -typemap typemap GD.xs > GD.xsc && mv GD.xsc GD.c
gcc -c -I/usr/include -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64 -DVERSION=\"2.41\" -DXS_VERSION=\"2.41\" -fPIC "-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE" -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG GD.c
GD.xs: In function `XS_GD__Image_STORABLE_thaw':
GD.xs:923: warning: cast from pointer to integer of different size
Running Mkbootstrap for GD ()
chmod 644 GD.bs
rm -f blib/arch/auto/GD/GD.so
gcc -shared GD.o -o blib/arch/auto/GD/GD.so -L/usr/lib -L/usr/X11R6/lib -L/usr/lib -L/usr/lib64 -L/usr/X11R6/lib64 -L/usr/lib64 -lXpm -lX11 -ljpeg -lfreetype -lpng12 -lz -lm -lgd
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.a when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.a when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libjpeg.so when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-redhat-linux/3.4.6/../../../libjpeg.a when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.so when searching for -ljpeg
/usr/bin/ld: skipping incompatible /usr/lib/libjpeg.a when searching for -ljpeg
/usr/bin/ld: cannot find -ljpeg
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/GD/GD.so] Error 1
/usr/bin/make -- NOT OK
Running make test
Can't test without successful make
Running make install
make had returned bad status, install seems impossible