Problem compiling with gd

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark P.

    Problem compiling with gd

    I'm trying to get gd support so I've been trying to recomile
    php. The following are the flags I'm using, which configures fine, but
    dies in make.

    ../configure --with-gd=/var/www/gd-2.0.33 --with-zlib-dir=/usr/lib
    --enable-gd-native-ttf --enable-gd-imgstrttf
    --with-png-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib

    Here's the the death.

    ext/gd/gd.o(.text+0x12 e8): In function `zif_imagecolor match':
    /var/www/php-5.0.3/ext/gd/gd.c:902: undefined reference to `gdImageCol
    orMatch'
    ext/gd/gd.o(.text+0x2d 86): In function `zif_imagerotat e':
    /var/www/php-5.0.3/ext/gd/gd.c:1215: undefined reference to `gdImageRo
    tate'
    ext/gd/gd.o(.text+0x33 44): In function `zif_imagecreat efromstring':
    /var/www/php-5.0.3/ext/gd/gd.c:1435: undefined reference to `gdImageCr
    eateFromPngCtx'
    ext/gd/gd.o(.text+0x36 ef): In function `zif_imagecreat efrompng':
    /var/www/php-5.0.3/ext/gd/gd.c:1621: undefined reference to `gdImageCr
    eateFromPngCtx'
    ext/gd/gd.o(.text+0x36 f4):/var/www/php-5.0.3/ext/gd/gd.c:1621: undefin
    ed reference to `gdImageCreateF romPng'
    ext/gd/gd.o(.text+0x3e 3f): In function `zif_imagexbm':
    /var/www/php-5.0.3/ext/gd/gd.c:1839: undefined reference to `gdImageXb
    mCtx'
    ext/gd/gd.o(.text+0x3e 8f): In function `zif_imagepng':
    /var/www/php-5.0.3/ext/gd/gd.c:1864: undefined reference to `gdImagePn
    gCtx'
    ext/gd/gd.o(.text+0x5a c5): In function `zif_imageline' :
    /var/www/php-5.0.3/ext/gd/gd.c:2307: undefined reference to `gdImageAA
    Line'
    ext/gd/gd.o(.text+0x6b bc): In function `zif_imageellip se':
    /var/www/php-5.0.3/ext/gd/gd.c:2446: undefined reference to `gdImageEl
    lipse'
    ext/gd/gd.o(.text+0x98 4c): In function `zif_png2wbmp':
    /var/www/php-5.0.3/ext/gd/gd.c:3884: undefined reference to `gdImageCr
    eateFromPng'
    ext/gd/gd.o(.text+0x9b 23): In function `php_image_filt er_negate':
    /var/www/php-5.0.3/ext/gd/gd.c:4004: undefined reference to `gdImageNe
    gate'
    ext/gd/gd.o(.text+0x9b 93): In function `php_image_filt er_grayscale':
    /var/www/php-5.0.3/ext/gd/gd.c:4015: undefined reference to `gdImageGr
    ayScale'
    ext/gd/gd.o(.text+0x9c 13): In function `php_image_filt er_brightness':
    /var/www/php-5.0.3/ext/gd/gd.c:4038: undefined reference to `gdImageBr
    ightness'
    ext/gd/gd.o(.text+0x9c 96): In function `php_image_filt er_contrast':
    /var/www/php-5.0.3/ext/gd/gd.c:4061: undefined reference to `gdImageCo
    ntrast'
    ext/gd/gd.o(.text+0x9d 1e): In function `php_image_filt er_colorize':
    /var/www/php-5.0.3/ext/gd/gd.c:4084: undefined reference to `gdImageCo
    lor'
    ext/gd/gd.o(.text+0x9d 8b): In function `php_image_filt er_edgedetect':
    /var/www/php-5.0.3/ext/gd/gd.c:4095: undefined reference to `gdImageEd
    geDetectQuick'
    ext/gd/gd.o(.text+0x9d fb): In function `php_image_filt er_emboss':
    /var/www/php-5.0.3/ext/gd/gd.c:4106: undefined reference to `gdImageEm
    boss'
    ext/gd/gd.o(.text+0x9e 6b): In function `php_image_filt er_gaussian_blu r
    ':
    /var/www/php-5.0.3/ext/gd/gd.c:4117: undefined reference to `gdImageGa
    ussianBlur'
    ext/gd/gd.o(.text+0x9e db): In function `php_image_filt er_selective_bl u
    r':
    /var/www/php-5.0.3/ext/gd/gd.c:4128: undefined reference to `gdImageSe
    lectiveBlur'
    ext/gd/gd.o(.text+0x9f 4b): In function `php_image_filt er_mean_removal '
    :
    /var/www/php-5.0.3/ext/gd/gd.c:4139: undefined reference to `gdImageMe
    anRemoval'
    ext/gd/gd.o(.text+0x9f d4): In function `php_image_filt er_smooth':
    /var/www/php-5.0.3/ext/gd/gd.c:4163: undefined reference to `gdImageSm
    ooth'
    ext/gd/gd.o(.text+0xa1 4d): In function `zif_imageantia lias':
    /var/www/php-5.0.3/ext/gd/gd.c:4218: undefined reference to `gdImageAn
    tialias'
    collect2: ld returned 1 exit status
    make: *** [sapi/cgi/php] Error 1


  • Peter Albertsson

    #2
    Re: Problem compiling with gd

    Try stripping the lib off the paths:

    ../configure \
    --with-gd=/var/www/gd-2.0.33 \
    --with-zlib-dir\
    --enable-gd-native-ttf\
    --enable-gd-imgstrttf\
    --with-png-dir=/usr/local\
    --with-jpeg-dir=/usr/local

    --with-gd should point to whatever your PREFIX was set to when you compiled
    GD, which by default is /usr/local

    Best regards,

    Peter Albertsson


    "Mark P." <delete@delete. perltng.com> wrote in message
    news:42405c54.5 03297390@newsgr oups.comcast.ne t...[color=blue]
    > I'm trying to get gd support so I've been trying to recomile
    > php. The following are the flags I'm using, which configures fine, but
    > dies in make.
    >
    > ./configure --with-gd=/var/www/gd-2.0.33 --with-zlib-dir=/usr/lib
    > --enable-gd-native-ttf --enable-gd-imgstrttf
    > --with-png-dir=/usr/local/lib --with-jpeg-dir=/usr/local/lib
    >
    > Here's the the death.
    >
    > ext/gd/gd.o(.text+0x12 e8): In function `zif_imagecolor match':
    > /var/www/php-5.0.3/ext/gd/gd.c:902: undefined reference to `gdImageCol
    > orMatch'
    > ext/gd/gd.o(.text+0x2d 86): In function `zif_imagerotat e':
    > /var/www/php-5.0.3/ext/gd/gd.c:1215: undefined reference to `gdImageRo
    > tate'
    > ext/gd/gd.o(.text+0x33 44): In function `zif_imagecreat efromstring':
    > /var/www/php-5.0.3/ext/gd/gd.c:1435: undefined reference to `gdImageCr
    > eateFromPngCtx'
    > ext/gd/gd.o(.text+0x36 ef): In function `zif_imagecreat efrompng':
    > /var/www/php-5.0.3/ext/gd/gd.c:1621: undefined reference to `gdImageCr
    > eateFromPngCtx'
    > ext/gd/gd.o(.text+0x36 f4):/var/www/php-5.0.3/ext/gd/gd.c:1621: undefin
    > ed reference to `gdImageCreateF romPng'
    > ext/gd/gd.o(.text+0x3e 3f): In function `zif_imagexbm':
    > /var/www/php-5.0.3/ext/gd/gd.c:1839: undefined reference to `gdImageXb
    > mCtx'
    > ext/gd/gd.o(.text+0x3e 8f): In function `zif_imagepng':
    > /var/www/php-5.0.3/ext/gd/gd.c:1864: undefined reference to `gdImagePn
    > gCtx'
    > ext/gd/gd.o(.text+0x5a c5): In function `zif_imageline' :
    > /var/www/php-5.0.3/ext/gd/gd.c:2307: undefined reference to `gdImageAA
    > Line'
    > ext/gd/gd.o(.text+0x6b bc): In function `zif_imageellip se':
    > /var/www/php-5.0.3/ext/gd/gd.c:2446: undefined reference to `gdImageEl
    > lipse'
    > ext/gd/gd.o(.text+0x98 4c): In function `zif_png2wbmp':
    > /var/www/php-5.0.3/ext/gd/gd.c:3884: undefined reference to `gdImageCr
    > eateFromPng'
    > ext/gd/gd.o(.text+0x9b 23): In function `php_image_filt er_negate':
    > /var/www/php-5.0.3/ext/gd/gd.c:4004: undefined reference to `gdImageNe
    > gate'
    > ext/gd/gd.o(.text+0x9b 93): In function `php_image_filt er_grayscale':
    > /var/www/php-5.0.3/ext/gd/gd.c:4015: undefined reference to `gdImageGr
    > ayScale'
    > ext/gd/gd.o(.text+0x9c 13): In function `php_image_filt er_brightness':
    > /var/www/php-5.0.3/ext/gd/gd.c:4038: undefined reference to `gdImageBr
    > ightness'
    > ext/gd/gd.o(.text+0x9c 96): In function `php_image_filt er_contrast':
    > /var/www/php-5.0.3/ext/gd/gd.c:4061: undefined reference to `gdImageCo
    > ntrast'
    > ext/gd/gd.o(.text+0x9d 1e): In function `php_image_filt er_colorize':
    > /var/www/php-5.0.3/ext/gd/gd.c:4084: undefined reference to `gdImageCo
    > lor'
    > ext/gd/gd.o(.text+0x9d 8b): In function `php_image_filt er_edgedetect':
    > /var/www/php-5.0.3/ext/gd/gd.c:4095: undefined reference to `gdImageEd
    > geDetectQuick'
    > ext/gd/gd.o(.text+0x9d fb): In function `php_image_filt er_emboss':
    > /var/www/php-5.0.3/ext/gd/gd.c:4106: undefined reference to `gdImageEm
    > boss'
    > ext/gd/gd.o(.text+0x9e 6b): In function `php_image_filt er_gaussian_blu r
    > ':
    > /var/www/php-5.0.3/ext/gd/gd.c:4117: undefined reference to `gdImageGa
    > ussianBlur'
    > ext/gd/gd.o(.text+0x9e db): In function `php_image_filt er_selective_bl u
    > r':
    > /var/www/php-5.0.3/ext/gd/gd.c:4128: undefined reference to `gdImageSe
    > lectiveBlur'
    > ext/gd/gd.o(.text+0x9f 4b): In function `php_image_filt er_mean_removal '
    > :
    > /var/www/php-5.0.3/ext/gd/gd.c:4139: undefined reference to `gdImageMe
    > anRemoval'
    > ext/gd/gd.o(.text+0x9f d4): In function `php_image_filt er_smooth':
    > /var/www/php-5.0.3/ext/gd/gd.c:4163: undefined reference to `gdImageSm
    > ooth'
    > ext/gd/gd.o(.text+0xa1 4d): In function `zif_imageantia lias':
    > /var/www/php-5.0.3/ext/gd/gd.c:4218: undefined reference to `gdImageAn
    > tialias'
    > collect2: ld returned 1 exit status
    > make: *** [sapi/cgi/php] Error 1
    >
    >[/color]


    Comment

    • Mark P.

      #3
      Re: Problem compiling with gd

      On Tue, 22 Mar 2005 17:47:15 GMT, "Peter Albertsson"
      <Peter.ANTISPAM .Albertsson@ant ispOm.comhem.se > wrote:
      [color=blue]
      >Try stripping the lib off the paths:
      >
      >./configure \
      > --with-gd=/var/www/gd-2.0.33 \
      > --with-zlib-dir\
      > --enable-gd-native-ttf\
      > --enable-gd-imgstrttf\
      > --with-png-dir=/usr/local\
      > --with-jpeg-dir=/usr/local
      >
      > --with-gd should point to whatever your PREFIX was set to when you compiled
      >GD, which by default is /usr/local[/color]

      When I don't include the paths it compiles without gd. BTW,
      this is php-5.0.3 if that makes a difference.


      Comment

      • Peter Albertsson

        #4
        Re: Problem compiling with gd

        Have you tried compiling against the gd, png, and jpeg libraries that comes
        with your linux distribution? You will need the lib*-devel packages
        installed too.

        Regards,

        Peter


        "Mark P." <delete@delete. perltng.com> wrote in message
        news:42406948.5 06612796@newsgr oups.comcast.ne t...[color=blue]
        > On Tue, 22 Mar 2005 17:47:15 GMT, "Peter Albertsson"
        > <Peter.ANTISPAM .Albertsson@ant ispOm.comhem.se > wrote:
        >[color=green]
        >>Try stripping the lib off the paths:
        >>
        >>./configure \
        >> --with-gd=/var/www/gd-2.0.33 \
        >> --with-zlib-dir\
        >> --enable-gd-native-ttf\
        >> --enable-gd-imgstrttf\
        >> --with-png-dir=/usr/local\
        >> --with-jpeg-dir=/usr/local
        >>
        >> --with-gd should point to whatever your PREFIX was set to when you
        >> compiled
        >>GD, which by default is /usr/local[/color]
        >
        > When I don't include the paths it compiles without gd. BTW,
        > this is php-5.0.3 if that makes a difference.
        >
        >[/color]


        Comment

        • Mark P.

          #5
          Re: Problem compiling with gd

          On Tue, 22 Mar 2005 23:40:42 GMT, "Peter Albertsson"
          <Peter.ANTISPAM .Albertsson@ant ispOm.comhem.se > wrote:
          [color=blue]
          >Have you tried compiling against the gd, png, and jpeg libraries that comes
          >with your linux distribution? You will need the lib*-devel packages
          >installed too.
          >[/color]

          Found a package that solved the problem with yum. The package
          name is php-gd.i386, and it worked like a charm.


          Mark Porter
          "I spread this teaching because I too heard thus"
          Try the new refined search feature on 175 Gosho at

          Comment

          Working...