tdog
11-05-2002, 02:47 PM
I used to have GD.pm installed and running for perl. Then I tried to upgrade to a new mac, new GD.pm and new perl...
I hope someone knows how to overcome this error.
I have all the latest: libgd.a libpng.a and libjpeg.a
I also have the Math::Trig module
I changed Makefile.PL to insure that @INC includes /sw/lib, /usr/lib, /sw/include and /usr/include and that @LIBPATH includes /sw/lib and /usr/lib which is where all my lib*.a and .dylib file are.
when I run the Makefile.PL script I get this error:
#---VV
WARNING: CAPI is not a known parameter.
Warning: prerequisite Math::Trig 1 not found.
Writing Makefile for GD
#---^^
Even though Math::Trig IS at the ready.
Then I run make, what can I do to solve this:
#---VV
cc -c -I/sw/include -I/usr/include -I/usr/local/include/gd -I/usr/lib -I/System/Library/Perl -pipe -fno-common -no-cpp-precomp -fno-strict-aliasing -O3 -DVERSION=\"2.041\" -DXS_VERSION=\"2.041\" "-I/System/Library/Perl/darwin/CORE" -DHAVE_JPEG -DHAVE_FT GD.c
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
GD.xs: In function `newDynamicCtx':
GD.xs:345: structure has no member named `gd_free'
GD.xs: In function `gd_cloneDim':
GD.xs:365: structure has no member named `alpha'
GD.xs:371: structure has no member named `thick'
GD.xs: In function `XS_GD__Image_newFromPngData':
GD.xs:499: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromGdData':
GD.xs:518: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromGd2Data':
GD.xs:535: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromJpegData':
GD.xs:555: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromWBMPData':
GD.xs:580: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_copyRotate90':
GD.xs:933: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyRotate180':
GD.xs:954: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyRotate270':
GD.xs:975: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyFlipHorizontal':
GD.xs:996: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyFlipVertical':
GD.xs:1017: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyTranspose':
GD.xs:1038: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyReverseTranspose':
GD.xs:1059: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_rotate180':
GD.xs:1079: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_flipHorizontal':
GD.xs:1097: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_flipVertical':
GD.xs:1115: invalid lvalue in assignment
make: *** [GD.o] Error 1
#---^^
I hope someone knows how to overcome this error.
I have all the latest: libgd.a libpng.a and libjpeg.a
I also have the Math::Trig module
I changed Makefile.PL to insure that @INC includes /sw/lib, /usr/lib, /sw/include and /usr/include and that @LIBPATH includes /sw/lib and /usr/lib which is where all my lib*.a and .dylib file are.
when I run the Makefile.PL script I get this error:
#---VV
WARNING: CAPI is not a known parameter.
Warning: prerequisite Math::Trig 1 not found.
Writing Makefile for GD
#---^^
Even though Math::Trig IS at the ready.
Then I run make, what can I do to solve this:
#---VV
cc -c -I/sw/include -I/usr/include -I/usr/local/include/gd -I/usr/lib -I/System/Library/Perl -pipe -fno-common -no-cpp-precomp -fno-strict-aliasing -O3 -DVERSION=\"2.041\" -DXS_VERSION=\"2.041\" "-I/System/Library/Perl/darwin/CORE" -DHAVE_JPEG -DHAVE_FT GD.c
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning: as it has already been specified as a non-system directory
GD.xs: In function `newDynamicCtx':
GD.xs:345: structure has no member named `gd_free'
GD.xs: In function `gd_cloneDim':
GD.xs:365: structure has no member named `alpha'
GD.xs:371: structure has no member named `thick'
GD.xs: In function `XS_GD__Image_newFromPngData':
GD.xs:499: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromGdData':
GD.xs:518: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromGd2Data':
GD.xs:535: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromJpegData':
GD.xs:555: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromWBMPData':
GD.xs:580: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_copyRotate90':
GD.xs:933: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyRotate180':
GD.xs:954: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyRotate270':
GD.xs:975: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyFlipHorizontal':
GD.xs:996: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyFlipVertical':
GD.xs:1017: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyTranspose':
GD.xs:1038: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyReverseTranspose':
GD.xs:1059: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_rotate180':
GD.xs:1079: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_flipHorizontal':
GD.xs:1097: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_flipVertical':
GD.xs:1115: invalid lvalue in assignment
make: *** [GD.o] Error 1
#---^^