Go Back   The macosxhints Forums > OS X Help Requests > UNIX - General



Reply
 
Thread Tools Rate Thread Display Modes
Old 11-05-2002, 02:47 PM   #1
tdog
Triple-A Player
 
Join Date: Sep 2002
Posts: 132
Angry GD.pm, OS 10.2 and perl5.8.0

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
#---^^
tdog is offline   Reply With Quote
Old 11-05-2002, 03:15 PM   #2
nkuvu
MVP
 
Join Date: Jun 2002
Location: Tucson, Arizona
Posts: 1,236
Perhaps a reinstallation of the Math::trig module?
nkuvu is offline   Reply With Quote
Old 11-05-2002, 05:48 PM   #3
tdog
Triple-A Player
 
Join Date: Sep 2002
Posts: 132
Rebuilding the trig module, for that mater all of perl did not work.
tdog is offline   Reply With Quote
Old 11-05-2002, 07:21 PM   #4
tdog
Triple-A Player
 
Join Date: Sep 2002
Posts: 132
I reinstalled an older version of GD.pm (1.33)
which seems to work for now.
tdog is offline   Reply With Quote
Old 11-05-2002, 07:35 PM   #5
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,233
tdog,

What version of Fink you have installed?


Cheers...
sao is offline   Reply With Quote
Old 11-06-2002, 12:31 PM   #6
tdog
Triple-A Player
 
Join Date: Sep 2002
Posts: 132
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.
tdog is offline   Reply With Quote
Old 11-06-2002, 02:40 PM   #7
sao
Moderator
 
Join Date: Jan 2002
Location: Singapore
Posts: 4,233
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.../msg02447.html


Cheers...

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

Last edited by sao; 11-06-2002 at 02:47 PM.
sao is offline   Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 02:05 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Site design © Mac Publishing LLC; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of Mac Publishing LLC.