Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem compiling with gd

0 views
Skip to first unread message

Mark P.

unread,
Mar 22, 2005, 1:01:10 PM3/22/05
to
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

unread,
Mar 22, 2005, 12:47:15 PM3/22/05
to
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." <del...@delete.perltng.com> wrote in message
news:42405c54....@newsgroups.comcast.net...

Peter Albertsson

unread,
Mar 22, 2005, 6:40:42 PM3/22/05
to
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." <del...@delete.perltng.com> wrote in message

news:42406948....@newsgroups.comcast.net...


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

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


Mark P.

unread,
Mar 22, 2005, 1:53:20 PM3/22/05
to
On Tue, 22 Mar 2005 17:47:15 GMT, "Peter Albertsson"
<Peter.ANTISP...@antispOm.comhem.se> wrote:

>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

When I don't include the paths it compiles without gd. BTW,

Mark P.

unread,
Mar 24, 2005, 10:41:34 AM3/24/05
to
On Tue, 22 Mar 2005 23:40:42 GMT, "Peter Albertsson"
<Peter.ANTISP...@antispOm.comhem.se> wrote:

>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.
>

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

0 new messages