Subject: | Unable to build GD 2.35 |
Date: | Thu, 30 Aug 2007 15:12:33 -0400 |
To: | <bug-GD [...] rt.cpan.org> |
From: | "Zembower, Kevin" <kzembowe [...] jhuccp.org> |
I'm unable to build GD.pm (2.35) on my RHEL4 system:
-bash-3.00# perl -v
This is perl, v5.8.5 built for x86_64-linux-thread-multi
-bash-3.00# uname -a
Linux www.jhuccp.org 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 12 17:58:20 EDT
2007 x86_64 x86_64 x86_64 GNU/Linux
-bash-3.00#
I'm especially confused by this cryptic line:
** WARNING: found gd.h header file in /usr/include/gd.h, but it is
expected at /usr/include/gd.h. This may cause compile errors! **
** Possible problems found **
The whole output of the attempted installation is pasted in below.
Just before I got this message, I installed gd-devel and gd-progs using
RHEL4's up2date:
-bash-3.00# up2date --install gd-devel gd-progs
<snip>
gd-devel 2.0.28 5.4E x86_64
gd-progs 2.0.28 5.4E x86_64
Prior to installing these two packages, I was also unable to install
GD.pm. The first five errors it gave me were:
GD.xs:7:16: gd.h: No such file or directory
GD.xs:8:21: gdfontg.h: No such file or directory
GD.xs:9:21: gdfontl.h: No such file or directory
GD.xs:10:22: gdfontmb.h: No such file or directory
GD.xs:11:21: gdfonts.h: No such file or directory
At the end, it said:
make: *** [GD.o] Error 1
LDS/GD-2.35.tar.gz
/usr/bin/make -j3 -j3 -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
-bash-3.00#
Thanks for looking into this problem.
-Kevin Zembower
-bash-3.00# perl -MCPAN -e 'install GD'
CPAN: File::HomeDir loaded ok (v0.58)
CPAN: Storable loaded ok (v2.13)
Going to read /root/.cpan/Metadata
Database was generated on Thu, 30 Aug 2007 10:36:43 GMT
Running install for module 'GD'
Running make for L/LD/LDS/GD-2.35.tar.gz
CPAN: Digest::SHA loaded ok (v5.44)
Checksum for /root/.cpan/sources/authors/id/L/LD/LDS/GD-2.35.tar.gz ok
GD-2.35/
GD-2.35/t/
GD-2.35/t/test.out.3.jpeg
GD-2.35/t/GD.t
GD-2.35/t/tile.jpeg
GD-2.35/t/test.out.4.jpeg
GD-2.35/t/test.out.5.jpeg
GD-2.35/t/test.out.6.jpeg
GD-2.35/t/test.out.7.jpeg
GD-2.35/t/test.out.8.jpeg
GD-2.35/t/test.out.9.jpeg
GD-2.35/t/test.out.3.png-1
GD-2.35/t/Polyline.t
GD-2.35/t/test.out.4.png-1
GD-2.35/t/test.out.4.png-2
GD-2.35/t/test.out.10.png-1
GD-2.35/t/test.out.10.png-2
GD-2.35/t/test.out.10.png-3
GD-2.35/t/test.out.1.png
GD-2.35/t/test.out.2.gif
GD-2.35/t/test.out.2.png
GD-2.35/t/test.out.3.gif
GD-2.35/t/test.out.3.png
GD-2.35/t/test.out.4.gif
GD-2.35/t/test.out.4.png
GD-2.35/t/test.out.5.gif
GD-2.35/t/test.out.5.png
GD-2.35/t/test.out.6.gif
GD-2.35/t/test.out.6.png
GD-2.35/t/test.out.7.gif
GD-2.35/t/test.out.7.png
GD-2.35/t/test.out.8.gif
GD-2.35/t/test.out.8.png
GD-2.35/t/test.out.9.gif
GD-2.35/t/test.out.9.png
GD-2.35/t/test.out.5.png-1
GD-2.35/t/Generic.ttf
GD-2.35/t/test.out.6.png-1
GD-2.35/t/test.out.7.png-1
GD-2.35/t/frog.jpg
GD-2.35/t/frog.xpm
GD-2.35/t/test.out.10.jpeg
GD-2.35/t/test.out.8.png-1
GD-2.35/t/test.out.8.png-2
GD-2.35/t/test.out.8.png-3
GD-2.35/t/test.out.8.png-4
GD-2.35/t/test.out.8.png-5
GD-2.35/t/test.out.8.png-6
GD-2.35/t/tile.gif
GD-2.35/t/tile.png
GD-2.35/t/test.out.2.png-1
GD-2.35/t/test.out.9.png-1
GD-2.35/t/test.out.9.png-2
GD-2.35/t/palettemap.png
GD-2.35/t/test.out.10.gif
GD-2.35/t/test.out.10.png
GD-2.35/t/test.out.2.jpeg
GD-2.35/GD/
GD-2.35/GD/Polygon.pm
GD-2.35/GD/Simple.pm
GD-2.35/GD/Image.pm.PLS
GD-2.35/GD/Polyline.pm
GD-2.35/GD.pm
GD-2.35/GD.xs
GD-2.35/demos/
GD-2.35/demos/brushes.pl
GD-2.35/demos/font_list.png
GD-2.35/demos/fonttest
GD-2.35/demos/polys.pl
GD-2.35/demos/fills.pl
GD-2.35/demos/truetype_test
GD-2.35/demos/shapes.pl
GD-2.35/demos/copies.pl
GD-2.35/demos/ttf.pl
GD-2.35/demos/gd_example.cgi
GD-2.35/demos/tile.png
GD-2.35/demos/polyline.pl
GD-2.35/demos/transform.pl
GD-2.35/qd.pl
GD-2.35/README
GD-2.35/Makefile.PL
GD-2.35/README.QUICKDRAW
GD-2.35/META.yml
GD-2.35/typemap
GD-2.35/bdf_scripts/
GD-2.35/bdf_scripts/README
GD-2.35/bdf_scripts/bdf2gdfont.PLS
GD-2.35/bdf_scripts/bdftogd
GD-2.35/bdf_scripts/bdf2gdfont.pl
GD-2.35/README.unix
GD-2.35/ChangeLog
GD-2.35/MANIFEST
CPAN: File::Temp loaded ok (v0.17)
CPAN.pm: Going to build L/LD/LDS/GD-2.35.tar.gz
NOTICE: This module requires libgd 2.0.28 or higher.
If you are using Math::Trig 1.01 or lower, it has a bug that
causes a "prerequisite not found" warning to be issued. You may
safely ignore this warning.
Type perl Makefile.PL -h for command-line option summary
Configuring for libgd version 2.0.28.
Checking for stray libgd header files...
** WARNING: found gd.h header file in /usr/include/gd.h, but it is
expected at /usr/include/gd.h. This may cause compile errors! **
** Possible problems 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
CPAN: YAML loaded ok (v0.62)
/usr/bin/perl "-Iblib/arch" "-Iblib/lib" GD/Image.pm.PLS GD/Image.pm
Extracting Image.pm (with variable substitutions)
/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
Running Mkbootstrap for GD ()
chmod 644 GD.bs
cp GD.bs blib/arch/auto/GD/GD.bs
chmod 644 blib/arch/auto/GD/GD.bs
cp bdf_scripts/bdf2gdfont.pl blib/script/bdf2gdfont.pl
/usr/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)"
blib/script/bdf2gdfont.pl
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
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.35\" -DXS_VERSION=\"2.35\" -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
rm -f blib/arch/auto/GD/GD.so
gcc -shared GD.o -o blib/arch/auto/GD/GD.so -L/usr/lib64
-L/usr/lib64 -L/usr/X11R6/lib64 -L/usr/lib64 -L/usr/lib64 -L/usr/lib64
-L/usr/X11R6/lib64 -L/usr/lib64 -lXpm -lX11 -ljpeg -lfreetype -lpng12
-lz -lm -lgd
/usr/bin/ld: cannot find -lXpm
collect2: ld returned 1 exit status
make: *** [blib/arch/auto/GD/GD.so] Error 1
LDS/GD-2.35.tar.gz
/usr/bin/make -j3 -j3 -- NOT OK
Running make test
Can't test without successful make
Running make install
Make had returned bad status, install seems impossible
-bash-3.00#
Kevin Zembower
Internet Services Group manager
Center for Communication Programs
Bloomberg School of Public Health
Johns Hopkins University
111 Market Place, Suite 310
Baltimore, Maryland 21202
410-659-6139