PDA

View Full Version : GD.pm, OS 10.2 and perl5.8.0


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
#---^^

nkuvu
11-05-2002, 03:15 PM
Perhaps a reinstallation of the Math::trig module?

tdog
11-05-2002, 05:48 PM
Rebuilding the trig module, for that mater all of perl did not work.

tdog
11-05-2002, 07:21 PM
I reinstalled an older version of GD.pm (1.33)
which seems to work for now.

sao
11-05-2002, 07:35 PM
tdog,

What version of Fink you have installed?


Cheers...

tdog
11-06-2002, 12:31 PM
fink version 0.10.0

For me, there is nothing to do with perl using fink. I've looked for perl and modules but none seem to be listed. I haved used it to load the gd libraries however.

sao
11-06-2002, 02:40 PM
tdog,

Just wanted to let you know that OS X users that have installed Fink may experience various symbol errors when executing certain Perl operations.

http://archive.develooper.com/macosx@perl.org/msg02447.html


Cheers...

PS: The gd library with Fink is now at version 1.8.4-11