Can't build GD.pm on Solaris8

J

Jure Simsic

I cant't build GD-1.41 on Solaris 8. When building, I get:
gcc -B/usr/ccs/bin/ -c -I/usr/local/include -I/usr/local/include/gd2
-fno-strict-aliasing
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O
-DVERSION=\"1.41\" -DX
S_VERSION=\"1.41\" -fPIC
"-I/usr/local/lib/perl5/5.8.3/sun4-solaris/CORE" -DHAVE_JPEG -DHA
VE_TTF -DHAVE_XPM GD.c
GD.xs: In function `newDynamicCtx':
GD.xs:342: structure has no member named `free'
GD.xs: In function `XS_GD__Image_newFromPngData':
GD.xs:395: structure has no member named `free'
GD.xs: In function `XS_GD__Image_newFromGdData':
GD.xs:412: structure has no member named `free'
GD.xs: In function `XS_GD__Image_newFromGd2Data':
GD.xs:429: structure has no member named `free'
GD.xs: In function `XS_GD__Image_newFromJpegData':
GD.xs:472: structure has no member named `free'
GD.xs: In function `XS_GD__Image_newFromWBMPData':
GD.xs:494: structure has no member named `free'
make: *** [GD.o] Error 1


I'm using
- v5.8.3 built for sun4-solaris
- gcc version 3.2.3
- libgd gd-2.0.23 with jpeg & png & freetype


I've asked my friend Google about this and the only time this has
happened was, when someone tried to compile GD.pm with old libgd (pre
1.8)..

It's true that I had libgd 1.8.4 before but have rebuilt libgd anew
(for couple of times) and it's 2.0.23 now (or should be at least)

Any hints how to get to the bottom of this

Tnx
Jure
 
A

Andrew Crabb

Jure Simsic wrote:
[ I cant't build GD-1.41 on Solaris 8. ]

I can't replicate your problem, but I got GD to build on Solaris 8. My
sequence was:

1. libiconv 1.8 from sunfreeware (pkgadd format).
2. libgd 2.0.0 from boutell.conv (source code).
3. GD 2.12 from CPAN

I'm running Solaris 8, gcc 3.2.2, perl 5.8.0.

Sometimes I've found you have to watch the make and configure output, to
see where it's picking up libraries. pkgadd will install to
/usr/local, pkg-get installs to /opt/csw, libraries that came with
Solaris will be in /usr, source code packages can install anywhere
(sometimes in /usr/local/whatever). Maybe it's finding your old glib.

Sorry not more help

Andy
 
M

Martien Verbruggen

I cant't build GD-1.41 on Solaris 8. When building, I get: ^^^^^^^

I'm using
- v5.8.3 built for sun4-solaris
- gcc version 3.2.3
- libgd gd-2.0.23 with jpeg & png & freetype
^^^^^^

The underlined version numbers are your problem. The GD module with
versions starting with 1 require a libgd version starting with 1. The
libgd versions starting with 2 are matched by a GD version starting
with 2. The main reason for this is that the library and its API
changed considerably when libgd version 2 was released. The GD
module's interface hasn't changed that much.
I've asked my friend Google about this and the only time this has
happened was, when someone tried to compile GD.pm with old libgd (pre
1.8)..

You're trying to compile an old GD with a new libgd. Reverse problem,
but similar result.

Martien
 
J

Jure Simsic

Thanks..This solved the issue at once..

Jure

Martien said:
^^^^^^

The underlined version numbers are your problem. The GD module with
versions starting with 1 require a libgd version starting with 1. The
libgd versions starting with 2 are matched by a GD version starting
with 2. The main reason for this is that the library and its API
changed considerably when libgd version 2 was released. The GD
module's interface hasn't changed that much.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,567
Members
45,042
Latest member
icassiem

Latest Threads

Top