Can't build GD.pm on Solaris8

Discussion in 'Perl Misc' started by Jure Simsic, May 18, 2004.

  1. Jure Simsic

    Jure Simsic Guest

    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
     
    Jure Simsic, May 18, 2004
    #1
    1. Advertising

  2. Jure Simsic

    Andrew Crabb Guest

    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
     
    Andrew Crabb, May 18, 2004
    #2
    1. Advertising

  3. On Tue, 18 May 2004 07:31:45 GMT,
    Jure Simsic <> wrote:
    > 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
    --
    |
    Martien Verbruggen | I used to have a Heisenbergmobile. Every time
    Trading Post Australia | I looked at the speedometer, I got lost
    |
     
    Martien Verbruggen, May 19, 2004
    #3
  4. Jure Simsic

    Jure Simsic Guest

    Thanks..This solved the issue at once..

    Jure

    Martien Verbruggen wrote:

    > On Tue, 18 May 2004 07:31:45 GMT,
    > Jure Simsic <> wrote:
    > > 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.
    >
     
    Jure Simsic, May 19, 2004
    #4
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vagif Abilov
    Replies:
    2
    Views:
    587
    Vagif Abilov
    Jul 7, 2004
  2. Pedro Mir
    Replies:
    2
    Views:
    446
    Winista
    Jun 20, 2006
  3. Nicolas Lehuen
    Replies:
    3
    Views:
    734
    Nicolas Lehuen
    Jan 28, 2004
  4. matt okeson-harlow

    MySQLdb on Solaris8, build errors

    matt okeson-harlow, Aug 25, 2004, in forum: Python
    Replies:
    0
    Views:
    338
    matt okeson-harlow
    Aug 25, 2004
  5. Toon Knapen
    Replies:
    2
    Views:
    369
    Toon Knapen
    May 17, 2006
Loading...

Share This Page