Subject: | GD-2.32 not compile on solaris using gcc 2.8.1 |
I am using perl 5.6.0, in solaris 5.8 to compile/install GD-2.32, but
the following is occuring:
rdkloc01:www_rdux008:/home/ec/ffa024/GD-2.32# perl Makefile.PL
NOTICE: This module requires libgd 2.0.28 or higher.
it will NOT work with earlier versions. If you are getting
compile or link errors, then please get and install a new
version of libgd from www.boutell.com. Do NOT ask Lincoln
for help until you try this.
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] /home/ec/ffa024/usr/local/lib
Please choose the features that match how libgd was built:
Build JPEG support? [y] n
Build PNG support? [y] n
Build FreeType support? [y] n
Build GIF support? [y] y
Build support for animated GIFs? [y] n
Build XPM support? [y] n
If you experience compile problems, please check the @INC, @LIBPATH
and @LIBS
arrays defined in Makefile.PL and manually adjust, if necessary.
Writing Makefile for GD
rdkloc01:www_rdux008:/home/ec/ffa024/GD-2.32# make
gcc -c -I/home/ec/ffa024/gd-2.0.33 -
I/home/ec/ffa024/usr/local/include -I/usr/include -I/usr/include/gd -
I/home/ec/ffa024/gd-2.0.33 -I/usr/local/include -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64 -O -DVERSION=\"2.32\" -DXS_VERSION=\"2.32\" -
fPIC -I/vobs/atso_tools/perl5/lib/5.6.0/sun4-solaris/CORE -DHAVE_GIF
GD.c
GD.c:533: syntax error before `void'
GD.xs: In function `XS_GD__Image_trueColor':
GD.xs:545: `dMY_CXT' undeclared (first use in this function)
GD.xs:545: (Each undeclared identifier is reported only once
GD.xs:545: for each function it appears in.)
GD.xs:546: parse error before `int'
GD.xs:549: `previous_value' undeclared (first use in this function)
GD.xs:549: `MY_CXT' undeclared (first use in this function)
GD.xs:552: `RETVAL' undeclared (first use in this function)
GD.c:574: `targ' undeclared (first use in this function)
GD.xs: In function `XS_GD__Image__new':
GD.xs:564: `dMY_CXT' undeclared (first use in this function)
GD.xs:565: parse error before `int'
GD.xs:570: `truecolor' undeclared (first use in this function)
GD.xs:576: `RETVAL' undeclared (first use in this function)
GD.xs: In function `XS_GD__Image_newFromWBMPData':
GD.xs:678: `dMY_CXT' undeclared (first use in this function)
GD.xs:679: parse error before `*'
GD.xs:684: `data' undeclared (first use in this function)
GD.xs:684: `len' undeclared (first use in this function)
GD.xs:685: `ctx' undeclared (first use in this function)
GD.xs:686: `RETVAL' undeclared (first use in this function)
GD.xs:688: `truecolor' undeclared (first use in this function)
GD.xs: In function `XS_GD__Image__newFromGif':
GD.xs:808: `dMY_CXT' undeclared (first use in this function)
GD.xs:809: parse error before `int'
GD.xs:811: `RETVAL' undeclared (first use in this function)
GD.xs: In function `XS_GD__Image_newFromGifData':
GD.xs:821: `dMY_CXT' undeclared (first use in this function)
GD.xs:822: parse error before `*'
GD.xs:827: `data' undeclared (first use in this function)
GD.xs:827: `len' undeclared (first use in this function)
GD.xs:828: `ctx' undeclared (first use in this function)
GD.xs:829: `RETVAL' undeclared (first use in this function)
GD.xs: In function `boot_GD':
GD.xs:531: `MY_CXT_INIT' undeclared (first use in this function)
GD.xs:532: `MY_CXT' undeclared (first use in this function)
make: *** [GD.o] Error 1
rdkloc01:www_rdux008:/home/ec/ffa024/GD-2.32# type gcc
gcc is /usr/local/bin/gcc
rdkloc01:www_rdux008:/home/ec/ffa024/GD-2.32# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-
solaris2.6/2.8.1/specs
gcc version 2.8.1
rdkloc01:www_rdux008:/home/ec/ffa024/GD-2.32# perl -v
This is perl, v5.6.0 built for sun4-solaris
(with 1 registered patch, see perl -V for more detail)
Copyright 1987-2000, Larry Wall
Binary build 613 provided by ActiveState Tool Corp.
http://www.ActiveState.com
Built 22:42:23 Mar 23 2000
Perl may be copied only under the terms of either the Artistic License
or the
GNU General Public License, which may be found in the Perl 5.0 source
kit.
Complete documentation for Perl, including FAQ lists, should be found
on
this system using `man perl' or `perldoc perl'. If you have access to
the
Internet, point your browser at http://www.perl.com/, the Perl Home
Page.
rdkloc01:www_rdux008:/home/ec/ffa024/GD-2.32# uname -a
SunOS rdkloc01 5.8 Generic_117350-18 sun4u sparc SUNW,Sun-Fire-880
rdkloc01:www_rdux008:/home/ec/ffa024/GD-2.32#