lupey has asked for the wisdom of the Perl Monks concerning the following question:

Hello, I'm trying to install the Perl GD module (2.44) on cygwin (1.7.x). 'perl Makefile.PL' gives me this output:
(1008) sirius:~/downloads/GD-2.44 $ perl Makefile.PL Notice: Type perl Makefile.PL -h for command-line option summary. Configuring for libgd version 2.0.36. Checking for stray libgd header files... ** WARNING: found gd.h header file in /usr/include/gcc/i686-pc-cygwin/4.3.4/../../..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_FONTCONFIG GD_FREETYPE GD_PNG GD_GIF GD_GIFANIM GD_OPENPOLYGON GD_UNCLOSEDPOLY GD +_ANIMGIF GD_FTCIRCLE VERSION_33 GD library used from: /usr Writing Makefile for GD
Note how it says my gd.h header file was not found in /usr/include/gd.h and that it was found in /usr/include/gcc/... But oddly enough, I don't even have a /usr/include/gcc/ directory and gd.h is in fact found in /usr/include on my system. See output below:
(1010) sirius:~/downloads/GD-2.44 $ ls -l /usr/include/gd.h -rw-r--r-- 1 LUPEY Administrators 32609 2009-09-15 06:14 /usr/include/ +gd.h (1011) sirius:~/downloads/GD-2.44 $ ls /usr/include/gcc ls: cannot access /usr/include/gcc: No such file or directory
What is going on here? Is this a problem with my cygwin/gcc installation or a GD problem? Thank you for your guidance,

Replies are listed 'Best First'.
Re: perl GD - can find gd.h
by Anonymous Monk on Feb 01, 2010 at 17:41 UTC
    What is going on here? Is this a problem with my cygwin/gcc installation or a GD problem?

    It doesn't matter, just go ahead and 'make' and see what happens :)

      Well I eventually get an error with 'make test'. Here is what I get with 'make' and 'make test'
      (1010) sirius-pipas:~/downloads/GD-2.44 $ make /usr/bin/perl.exe 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 cp GD/Group.pm blib/lib/GD/Group.pm /usr/bin/perl.exe /usr/lib/perl5/5.10/ExtUtils/xsubpp -typemap /usr/l +ib/perl5/5 .10/ExtUtils/typemap -typemap typemap GD.xs > GD.xsc && mv GD.xsc GD. +c gcc -c -I/usr/include -Wformat=0 -DUSEIMPORTLIB -O3 -DVERSION=\"2.4 +4\" -DXS_V ERSION=\"2.44\" "-I/usr/lib/perl5/5.10/i686-cygwin/CORE" -DHAVE_JPEG + -DHAVE_FT -DHAVE_XPM -DHAVE_GIF -DHAVE_PNG -DHAVE_ANIMGIF -DVERSION_33 -DHAVE_U +NCLOSEDPOL Y -DHAVE_FONTCONFIG -DHAVE_FTCIRCLE GD.c GD.xs: In function `XS_GD__Image_stringFT': GD.xs:2173: warning: cast to pointer from integer of different size rm -f blib/arch/auto/GD/GD.dll g++ --shared -Wl,--enable-auto-import -Wl,--export-all-symbols -Wl,- +-stack,838 8608 -Wl,--enable-auto-image-base -L/usr/local/lib -fstack-protector G +D.o -o bl ib/arch/auto/GD/GD.dll \ /usr/lib/perl5/5.10/i686-cygwin/CORE/cygperl5_10.dll -L/usr/ +lib -L/usr /lib -lXpm -lX11 -ljpeg -lfontconfig -lfreetype -lpng12 -lz -liconv -l +gd \ chmod 755 blib/arch/auto/GD/GD.dll test -s GD.bs && cp GD.bs blib/arch/auto/GD/GD.bs && \ chmod 644 blib/arch/auto/GD/GD.bs make: [blib/arch/auto/GD/GD.dll] Error 1 (ignored) /usr/bin/perl.exe "-Iblib/arch" "-Iblib/lib" bdf_scripts/bdf2gdfont.PL +S bdf_scri pts/bdf2gdfont.pl Extracting bdf2gdfont.pl (with variable substitutions) cp bdf_scripts/bdf2gdfont.pl blib/script/bdf2gdfont.pl /usr/bin/perl.exe -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/ +bdf2gdfont .pl Manifying blib/man1/bdf2gdfont.pl.1 Manifying blib/man3/GD.Polyline.3pm Manifying blib/man3/GD.Image.3pm Manifying blib/man3/GD.Simple.3pm Manifying blib/man3/GD.3pm Manifying blib/man3/GD.Polygon.3pm (1011) sirius-pipas:~/downloads/GD-2.44 $ make test PERL_DL_NONLAZY=1 /usr/bin/perl.exe "-MExtUtils::Command::MM" "-e" "te +st_harness (0, 'blib/lib', 'blib/arch')" t/*.t t/GD.t ........ 1/12 Testing using png support. t/GD.t ........ Failed 1/12 subtests (less 1 skipped subtest: 10 okay) t/Polyline.t .. ok Test Summary Report ------------------- t/GD.t (Wstat: 0 Tests: 12 Failed: 1) Failed test: 10 Files=2, Tests=13, 3 wallclock secs ( 0.05 usr 0.16 sys + 0.60 cusr + 0.79 csy s = 1.60 CPU) Result: FAIL Failed 1/2 test programs. 1/13 subtests failed. make: *** [test_dynamic] Error 255
      Any ideas of what I should try?...thank you.