Subject: | GD 2.16 - GD.xs:440: structure has no member named `gd_free' |
Downloaded the latest GD.pm package from CPAN (using 'get'). When I untar the archive, I type:
Show quoted text
> perl Makefile.PL
> make
I get the following results:
gcc -c -I/usr/local/include -I/usr/include -I/usr/include/gd -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasin
g -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -march=i386 -mcpu=i686 -g -DVERSION=\"2.16\" -DX
S_VERSION=\"2.16\" -fPIC "-I/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE" -DHAVE_JPEG -DHAVE_FT GD.c
GD.xs: In function `newDynamicCtx':
GD.xs:440: structure has no member named `gd_free'
GD.xs: In function `gd_cloneDim':
GD.xs:460: structure has no member named `alpha'
GD.xs:460: structure has no member named `alpha'
GD.xs:466: structure has no member named `thick'
GD.xs:466: structure has no member named `thick'
GD.xs: In function `XS_GD__Image_newFromPngData':
GD.xs:595: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromGdData':
GD.xs:614: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromGd2Data':
GD.xs:631: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromJpegData':
GD.xs:651: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_newFromWBMPData':
GD.xs:676: structure has no member named `gd_free'
GD.xs: In function `XS_GD__Image_copyRotate90':
GD.xs:1122: invalid lvalue in assignment
GD.xs:1122: invalid lvalue in assignment
...
GD.xs:1956: `gdFTStringExtra' undeclared (first use in this function)
GD.xs:1956: (Each undeclared identifier is reported only once
GD.xs:1956: for each function it appears in.)
GD.xs:1956: parse error before "strex"
GD.xs:1975: `strex' undeclared (first use in this function)
GD.xs:1979: `gdFTEX_LINESPACE' undeclared (first use in this function)
GD.xs:1983: `gdFTEX_CHARMAP' undeclared (first use in this function)
GD.xs:1985: `gdFTEX_Unicode' undeclared (first use in this function)
GD.xs:1987: `gdFTEX_Shift_JIS' undeclared (first use in this function)
GD.xs:1989: `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
I'm using RedHat 9 on an i386 machine.
LibGD v1.8.4-11 (lib and devel installed)
LibPNG v1.2.2-16 (lib installed)
Zlib v1.1.4-8 (lib installed)
Perl 5.8.0
None of my libraries or headers are installed in /usr/local, since they're all RPMs from the standard RedHat 9 distribution.
Show quoted text> Perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
Platform:
osname=linux, osvers=2.4.20-2.48smp, archname=i386-linux-thread-multi
uname='linux str'
config_args='-des -Doptimize=-O2 -march=i386 -mcpu=i686 -g -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Red Hat, Inc. -Dinstallprefix=/usr -Dprefix=/usr -Darchname=i386-linux -Dvendorprefix=/usr -Dsiteprefix=/usr -Dotherlibdirs=/usr/lib/perl5/5.8.0 -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Dd_dosuid -Dd_semctl_semun -Di_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef'
useithreads=define usemultiplicity=
useperlio= d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=un uselongdouble=
usemymalloc=, bincompat5005=undef
Compiler:
cc='gcc', ccflags ='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SO
URCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm',
optimize='',
cppflags='-D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBUGGING -fno-strict-aliasing -I/usr/local/include -I/usr/include/gdbm'
ccversion='', gccversion='3.2.2 20030213 (Red Hat Linux 8.0 3.2.2-1)', gccosandvers=''
gccversion='3.2.2 200302'
intsize=e, longsize= , ptrsize=p, doublesize=8, byteorder=1234
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
ivtype='long'
k', ivsize=4'
ivtype='long'
known_ext, nvtype='double'
o_nonbl', nvsize=, Off_t='', lseeksize=8
alignbytes=4, prototype=define
Linker and Libraries:
ld='gcc'
l', ldflags =' -L/usr/local/lib'
ldf'
libpth=/usr/local/lib /lib /usr/lib
libs=-lnsl -lgdbm -ldb -ldl -lm -lpthread -lc -lcrypt -lutil
perllibs=
libc=/lib/libc-2.3.1.so, so=so, useshrplib=true, libperl=libper
gnulibc_version='2.3.1'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so', d_dlsymun=undef, ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE'
cccdlflags='-fPIC'
ccdlflags='-rdynamic -Wl,-rpath,/usr/lib/perl5', lddlflags='s Unicode/Normalize XS/A'