LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Problem Installing GD 2.16 Perl Module with Slackware 10 (https://www.linuxquestions.org/questions/slackware-14/problem-installing-gd-2-16-perl-module-with-slackware-10-a-224865/)

kaplan71 08-31-2004 01:02 PM

Problem Installing GD 2.16 Perl Module with Slackware 10
 
I am running Slackware 10 and would like to install GD 2.16 to use with a rrdtool database program. Whenever I try to install the module, or even an earlier 2.x version of it, I get the following output:

Executing /usr/bin/perl Makefile.PL && make ..

NOTICE: This module requires libgd 2.0.12 or higher.
it will NOT work with earlier versions.
See www.cpan.org for versions of GD that are compatible
with earlier versions of libgd.

If you are using Math::Trig 1.01 or lower, it has a bug that
causes a "prerequisite not found" warning to be issued. You may
safely ignore this warning.

Type perl Makefile.PL -h for command-line option summary


Where is libgd installed? [/usr/lib] /usr/lib

Please choose the features that match how libgd was built:
Build JPEG support? [y] y
Build FreeType support? [y] y
Build XPM support? [y] y

If you experience compile problems, please check the @INC, @LIBPATH and @LIBS
arrays defined in Makefile.PL and manually adjust, if necessary.

Checking if your kit is complete...
Looks good
Writing Makefile for GD
cp GD/Polyline.pm blib/lib/GD/Polyline.pm
cp qd.pl blib/lib/qd.pl
cp GD.pm blib/lib/GD.pm
AutoSplitting blib/lib/GD.pm (blib/lib/auto/GD)
/usr/bin/perl5.8.4 /usr/lib/perl5/5.8.4/ExtUtils/xsubpp -typemap /usr/lib/perl5/5.8.4/ExtUtils/type
map -typemap typemap GD.xs > GD.xsc && mv GD.xsc GD.c
cc -c -I/usr/include -I/usr/include/gd -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURC
E -D_FILE_OFFSET_BITS=64 -O2 -march=i486 -mcpu=i686 -DVERSION=\"2.16\" -DXS_VERSION=\"2.16\" -fPIC
"-I/usr/lib/perl5/5.8.4/i486-linux/CORE" -DHAVE_JPEG -DHAVE_FT -DHAVE_XPM GD.c
GD.xs: In function `newDynamicCtx':
GD.xs:440: error: structure has no member named `gd_free'
GD.xs: In function `gd_cloneDim':
GD.xs:460: error: structure has no member named `alpha'
GD.xs:460: error: structure has no member named `alpha'
GD.xs:466: error: structure has no member named `thick'
GD.xs:466: error: structure has no member named `thick'
GD.xs: In function `XS_GD__Image_newFromPngData':
GD.xs:595: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromGdData':
GD.xs:614: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromGd2Data':
GD.xs:631: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromJpegData':
GD.xs:651: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromWBMPData':
GD.xs:676: error: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_copyRotate90':
GD.xs:1122: error: invalid lvalue in assignment
GD.xs:1122: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyRotate180':
GD.xs:1143: error: invalid lvalue in assignment
GD.xs:1143: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyRotate270':
GD.xs:1164: error: invalid lvalue in assignment
GD.xs:1164: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyFlipHorizontal':
GD.xs:1185: error: invalid lvalue in assignment
GD.xs:1185: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyFlipVertical':
GD.xs:1206: error: invalid lvalue in assignment
GD.xs:1206: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyTranspose':
GD.xs:1227: error: invalid lvalue in assignment
GD.xs:1227: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_copyReverseTranspose':
GD.xs:1248: error: invalid lvalue in assignment
GD.xs:1248: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_rotate180':
GD.xs:1268: error: invalid lvalue in assignment
GD.xs:1268: error: invalid lvalue in assignment
GD.xs:1269: error: invalid lvalue in assignment
GD.xs:1269: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_flipHorizontal':
GD.xs:1286: error: invalid lvalue in assignment
GD.xs:1286: error: invalid lvalue in assignment
GD.xs:1287: error: invalid lvalue in assignment
GD.xs:1287: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_flipVertical':
GD.xs:1304: error: invalid lvalue in assignment
GD.xs:1304: error: invalid lvalue in assignment
GD.xs:1305: error: invalid lvalue in assignment
GD.xs:1305: error: invalid lvalue in assignment
GD.xs: In function `XS_GD__Image_stringFT':
GD.xs:1956: error: `gdFTStringExtra' undeclared (first use in this function)
GD.xs:1956: error: (Each undeclared identifier is reported only once
GD.xs:1956: error: for each function it appears in.)
GD.xs:1956: error: parse error before "strex"
GD.xs:1975: error: `strex' undeclared (first use in this function)
GD.xs:1979: error: `gdFTEX_LINESPACE' undeclared (first use in this function)
GD.xs:1983: error: `gdFTEX_CHARMAP' undeclared (first use in this function)
GD.xs:1985: error: `gdFTEX_Unicode' undeclared (first use in this function)
GD.xs:1987: error: `gdFTEX_Shift_JIS' undeclared (first use in this function)
GD.xs:1989: error: `gdFTEX_Big5' undeclared (first use in this function)
GD.xs:1993: warning: assignment makes pointer from integer without a cast
make: *** [GD.o] Error 1


What am I missing here? Thanks.

Tinkster 08-31-2004 03:01 PM

Which version of libgd do you have? :)

kaplan71 09-01-2004 06:51 AM

Hi there -- What command would I run to determine the version number? Thanks.

Tinkster 09-01-2004 12:42 PM

Depends on how you installed it - but
locate libgd
should do :)


Cheers,
Tink


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