Hi,

I'm trying to install GD 2.0.23 with Panther. I'm aware that people have problems but none of the reports appear to be like mine. I've managed to install GD2 libraries from the source without problem and have JPEG, FreeType2, etc. support. I installed all of the libraries (GD, PNG, TIFF, etc.) into /usr/local/lib - here are the contents:

libgd.2.0.0.dylib       libpng.                 libpng12.a
libgd.2.dylib           libpng.3.               libpng12.dylib
libgd.a                 libpng.3.1.2.5.dylib    libtiff.a
libgd.dylib             libpng.a                pkgconfig
libgd.la                libpng12.0.1.2.5.dylib
libjpeg.a               libpng12.0.dylib

My problems appear when I use CPAN (sudo perl -MCPAN -e shell) and try to make GD. I've not had this problem on other (non-mac) systems, nor have I had problems installing any other Perl modules with GD.

Here is my error list:

Checking if your kit is complete...
Looks good
Writing Makefile for GD
cp GD.pm blib/lib/GD.pm
AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD)
cp GD/Polyline.pm blib/lib/GD/Polyline.pm
cp qd.pl blib/lib/qd.pl
/usr/bin/perl /System/Library/Perl/5.8.1/ExtUtils/xsubpp -typemap /System/Library/Perl/5.8.1/ExtUtils/typemap -typemap typemap GD.xs > GD.xsc && mv GD.xsc GD.c
cc -c -I/usr/local/include -I/usr/local/include -I/usr/local/include/gd -g -pipe -pipe -fno-common -DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -I/usr/local/include -Os -DVERSION=\"2.12\" -DXS_VERSION=\"2.12\" "-I/System/Library/Perl/5.8.1/darwin-thread-multi-2level/CORE" -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM GD.c
GD.xs: In function `newDynamicCtx':
GD.xs:430: error: structure has no member named `gd_free'
GD.xs: In function `gd_cloneDim':
GD.xs:450: error: structure has no member named `alpha'
GD.xs:450: error: structure has no member named `alpha'
GD.xs:456: error: structure has no member named `thick'
GD.xs:456: error: structure has no member named `thick'
GD.xs: In function `XS_GD__Image_newFromPngData':
GD.xs:584: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromGdData':
GD.xs:603: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromGd2Data':
GD.xs:620: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromJpegData':
GD.xs:640: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromWBMPData':
GD.xs:665: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_copyRotate90':
GD.xs:1026: error: invalid lvalue in assignment
GD.xs:1026: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyRotate180':
GD.xs:1047: error: invalid lvalue in assignment
GD.xs:1047: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyRotate270':
GD.xs:1068: error: invalid lvalue in assignment
GD.xs:1068: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyFlipHorizontal':
GD.xs:1089: error: invalid lvalue in assignment
GD.xs:1089: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyFlipVertical':
GD.xs:1110: error: invalid lvalue in assignment
GD.xs:1110: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyTranspose':
GD.xs:1131: error: invalid lvalue in assignment
GD.xs:1131: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyReverseTranspose':
GD.xs:1152: error: invalid lvalue in assignment
GD.xs:1152: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_rotate180':
GD.xs:1172: error: invalid lvalue in assignment
GD.xs:1172: error: invalid lvalue in assignment
GD.xs:1173: error: invalid lvalue in assignment
GD.xs:1173: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_flipHorizontal':
GD.xs:1190: error: invalid lvalue in assignment
GD.xs:1190: error: invalid lvalue in assignment
GD.xs:1191: error: invalid lvalue in assignment
GD.xs:1191: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_flipVertical':
GD.xs:1208: error: invalid lvalue in assignment
GD.xs:1208: error: invalid lvalue in assignment
GD.xs:1209: error: invalid lvalue in assignment
GD.xs:1209: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_stringFT':
GD.xs:1858: error: `gdFTStringExtra' undeclared (first use in this function)
GD.xs:1858: error: (Each undeclared identifier is reported only once
GD.xs:1858: error: for each function it appears in.)
GD.xs:1858: error: parse error before "strex"
GD.xs:1877: error: `strex' undeclared (first use in this function)
GD.xs:1881: error: `gdFTEX_LINESPACE' undeclared (first use in this function)
GD.xs:1885: error: `gdFTEX_CHARMAP' undeclared (first use in this function)
GD.xs:1887: error: `gdFTEX_Unicode' undeclared (first use in this function)
GD.xs:1889: error: `gdFTEX_Shift_JIS' undeclared (first use in this function)
GD.xs:1891: error: `gdFTEX_Big5' undeclared (first use in this function)
GD.xs:1895: warning: assignment makes pointer from integer without a cast
make: *** [GD.o] Error 1
/usr/bin/make -- NOT OK


Any suggestions on what might be the problem? I know that people commonly answer this problem by saying 'use fink to install gd2' but I don't want to go that option - I'd prefer to find out what is wrong. Thanks if you can help?


John.




Reply via email to