Connecting Tech Pros Worldwide Forums | Help | Site Map

Problem compiling with gd

Mark P.
Guest
 
Posts: n/a
#1: Jul 17 '05
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+0x12e8): In function `zif_imagecolormatch':
/var/www/php-5.0.3/ext/gd/gd.c:902: undefined reference to `gdImageCol
orMatch'
ext/gd/gd.o(.text+0x2d86): In function `zif_imagerotate':
/var/www/php-5.0.3/ext/gd/gd.c:1215: undefined reference to `gdImageRo
tate'
ext/gd/gd.o(.text+0x3344): In function `zif_imagecreatefromstring':
/var/www/php-5.0.3/ext/gd/gd.c:1435: undefined reference to `gdImageCr
eateFromPngCtx'
ext/gd/gd.o(.text+0x36ef): In function `zif_imagecreatefrompng':
/var/www/php-5.0.3/ext/gd/gd.c:1621: undefined reference to `gdImageCr
eateFromPngCtx'
ext/gd/gd.o(.text+0x36f4):/var/www/php-5.0.3/ext/gd/gd.c:1621: undefin
ed reference to `gdImageCreateFromPng'
ext/gd/gd.o(.text+0x3e3f): 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+0x3e8f): 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+0x5ac5): 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+0x6bbc): In function `zif_imageellipse':
/var/www/php-5.0.3/ext/gd/gd.c:2446: undefined reference to `gdImageEl
lipse'
ext/gd/gd.o(.text+0x984c): 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+0x9b23): In function `php_image_filter_negate':
/var/www/php-5.0.3/ext/gd/gd.c:4004: undefined reference to `gdImageNe
gate'
ext/gd/gd.o(.text+0x9b93): In function `php_image_filter_grayscale':
/var/www/php-5.0.3/ext/gd/gd.c:4015: undefined reference to `gdImageGr
ayScale'
ext/gd/gd.o(.text+0x9c13): In function `php_image_filter_brightness':
/var/www/php-5.0.3/ext/gd/gd.c:4038: undefined reference to `gdImageBr
ightness'
ext/gd/gd.o(.text+0x9c96): In function `php_image_filter_contrast':
/var/www/php-5.0.3/ext/gd/gd.c:4061: undefined reference to `gdImageCo
ntrast'
ext/gd/gd.o(.text+0x9d1e): In function `php_image_filter_colorize':
/var/www/php-5.0.3/ext/gd/gd.c:4084: undefined reference to `gdImageCo
lor'
ext/gd/gd.o(.text+0x9d8b): In function `php_image_filter_edgedetect':
/var/www/php-5.0.3/ext/gd/gd.c:4095: undefined reference to `gdImageEd
geDetectQuick'
ext/gd/gd.o(.text+0x9dfb): In function `php_image_filter_emboss':
/var/www/php-5.0.3/ext/gd/gd.c:4106: undefined reference to `gdImageEm
boss'
ext/gd/gd.o(.text+0x9e6b): In function `php_image_filter_gaussian_blur
':
/var/www/php-5.0.3/ext/gd/gd.c:4117: undefined reference to `gdImageGa
ussianBlur'
ext/gd/gd.o(.text+0x9edb): In function `php_image_filter_selective_blu
r':
/var/www/php-5.0.3/ext/gd/gd.c:4128: undefined reference to `gdImageSe
lectiveBlur'
ext/gd/gd.o(.text+0x9f4b): In function `php_image_filter_mean_removal'
:
/var/www/php-5.0.3/ext/gd/gd.c:4139: undefined reference to `gdImageMe
anRemoval'
ext/gd/gd.o(.text+0x9fd4): In function `php_image_filter_smooth':
/var/www/php-5.0.3/ext/gd/gd.c:4163: undefined reference to `gdImageSm
ooth'
ext/gd/gd.o(.text+0xa14d): In function `zif_imageantialias':
/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
Guest
 
Posts: n/a
#2: Jul 17 '05

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.503297390@newsgroups.comcast.net...[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+0x12e8): In function `zif_imagecolormatch':
> /var/www/php-5.0.3/ext/gd/gd.c:902: undefined reference to `gdImageCol
> orMatch'
> ext/gd/gd.o(.text+0x2d86): In function `zif_imagerotate':
> /var/www/php-5.0.3/ext/gd/gd.c:1215: undefined reference to `gdImageRo
> tate'
> ext/gd/gd.o(.text+0x3344): In function `zif_imagecreatefromstring':
> /var/www/php-5.0.3/ext/gd/gd.c:1435: undefined reference to `gdImageCr
> eateFromPngCtx'
> ext/gd/gd.o(.text+0x36ef): In function `zif_imagecreatefrompng':
> /var/www/php-5.0.3/ext/gd/gd.c:1621: undefined reference to `gdImageCr
> eateFromPngCtx'
> ext/gd/gd.o(.text+0x36f4):/var/www/php-5.0.3/ext/gd/gd.c:1621: undefin
> ed reference to `gdImageCreateFromPng'
> ext/gd/gd.o(.text+0x3e3f): 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+0x3e8f): 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+0x5ac5): 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+0x6bbc): In function `zif_imageellipse':
> /var/www/php-5.0.3/ext/gd/gd.c:2446: undefined reference to `gdImageEl
> lipse'
> ext/gd/gd.o(.text+0x984c): 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+0x9b23): In function `php_image_filter_negate':
> /var/www/php-5.0.3/ext/gd/gd.c:4004: undefined reference to `gdImageNe
> gate'
> ext/gd/gd.o(.text+0x9b93): In function `php_image_filter_grayscale':
> /var/www/php-5.0.3/ext/gd/gd.c:4015: undefined reference to `gdImageGr
> ayScale'
> ext/gd/gd.o(.text+0x9c13): In function `php_image_filter_brightness':
> /var/www/php-5.0.3/ext/gd/gd.c:4038: undefined reference to `gdImageBr
> ightness'
> ext/gd/gd.o(.text+0x9c96): In function `php_image_filter_contrast':
> /var/www/php-5.0.3/ext/gd/gd.c:4061: undefined reference to `gdImageCo
> ntrast'
> ext/gd/gd.o(.text+0x9d1e): In function `php_image_filter_colorize':
> /var/www/php-5.0.3/ext/gd/gd.c:4084: undefined reference to `gdImageCo
> lor'
> ext/gd/gd.o(.text+0x9d8b): In function `php_image_filter_edgedetect':
> /var/www/php-5.0.3/ext/gd/gd.c:4095: undefined reference to `gdImageEd
> geDetectQuick'
> ext/gd/gd.o(.text+0x9dfb): In function `php_image_filter_emboss':
> /var/www/php-5.0.3/ext/gd/gd.c:4106: undefined reference to `gdImageEm
> boss'
> ext/gd/gd.o(.text+0x9e6b): In function `php_image_filter_gaussian_blur
> ':
> /var/www/php-5.0.3/ext/gd/gd.c:4117: undefined reference to `gdImageGa
> ussianBlur'
> ext/gd/gd.o(.text+0x9edb): In function `php_image_filter_selective_blu
> r':
> /var/www/php-5.0.3/ext/gd/gd.c:4128: undefined reference to `gdImageSe
> lectiveBlur'
> ext/gd/gd.o(.text+0x9f4b): In function `php_image_filter_mean_removal'
> :
> /var/www/php-5.0.3/ext/gd/gd.c:4139: undefined reference to `gdImageMe
> anRemoval'
> ext/gd/gd.o(.text+0x9fd4): In function `php_image_filter_smooth':
> /var/www/php-5.0.3/ext/gd/gd.c:4163: undefined reference to `gdImageSm
> ooth'
> ext/gd/gd.o(.text+0xa14d): In function `zif_imageantialias':
> /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]


Mark P.
Guest
 
Posts: n/a
#3: Jul 17 '05

re: Problem compiling with gd


On Tue, 22 Mar 2005 17:47:15 GMT, "Peter Albertsson"
<Peter.ANTISPAM.Albertsson@antispOm.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.


Peter Albertsson
Guest
 
Posts: n/a
#4: Jul 17 '05

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.506612796@newsgroups.comcast.net...[color=blue]
> On Tue, 22 Mar 2005 17:47:15 GMT, "Peter Albertsson"
> <Peter.ANTISPAM.Albertsson@antispOm.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]


Mark P.
Guest
 
Posts: n/a
#5: Jul 17 '05

re: Problem compiling with gd


On Tue, 22 Mar 2005 23:40:42 GMT, "Peter Albertsson"
<Peter.ANTISPAM.Albertsson@antispOm.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
http://hokkeko.us
Closed Thread