php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #31043 Error trying to build with GD 2.0.33
Submitted: 2004-12-09 23:00 UTC Modified: 2004-12-15 14:05 UTC
From: phpbb dot mods at phpmix dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.3.9 OS: RHEL 3
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: phpbb dot mods at phpmix dot com
New email:
PHP Version: OS:

 

 [2004-12-09 23:00 UTC] phpbb dot mods at phpmix dot com
Description:
------------
Quoted from the online PHP manual:
To enable GD-support configure PHP --with-gd[=DIR], where DIR is the GD base install directory. To use the recommended bundled version of the GD library (which was first bundled in PHP 4.3.0), use the configure option --with-gd. GD library requires libpng and libjpeg to compile.

Well, I've tried to build PHP 4.3.9 with GD 2.0.33 using --with-gd=/usr/local and I get the following errors:

ext/gd/gd.lo(.text+0x1267): In function `zif_imagecolormatch':
/usr/local/directadmin/customapache/php-4.3.9/ext/gd/gd.c:807: undefined reference to `gdImageColorMatch'
ext/gd/gd.lo(.text+0x2cd4): In function `zif_imagerotate':
/usr/local/directadmin/customapache/php-4.3.9/ext/gd/gd.c:1117: undefined reference to `gdImageRotate'
ext/gd/gd.lo(.text+0x5bf5): In function `zif_imageline':
/usr/local/directadmin/customapache/php-4.3.9/ext/gd/gd.c:2189: undefined reference to `gdImageAALine'
ext/gd/gd.lo(.text+0x6c7c): In function `zif_imageellipse':
/usr/local/directadmin/customapache/php-4.3.9/ext/gd/gd.c:2322: undefined reference to `gdImageEllipse'
ext/gd/gd.lo(.text+0x9d68): In function `zif_imageantialias':
/usr/local/directadmin/customapache/php-4.3.9/ext/gd/gd.c:3883: undefined reference to `gdImageAntialias'

I've tried to use other arguments combinations when configuring the build, but the result is PHP is still using its own bundled GD extension.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-12-09 23:24 UTC] derick@php.net
We recommend the bundled GD version, why to you want to use another one?
 [2004-12-09 23:31 UTC] phpbb dot mods at phpmix dot com
Main reason is GD 2.0.33 now supports writing GIF animations.
 [2004-12-10 01:20 UTC] iliaa@php.net
So does bundled GD lib as of PHP 4.3.9
 [2004-12-10 02:03 UTC] phpbb dot mods at phpmix dot com
I've tried without success. The only reference I've about it is here:
http://www.zend.com/lists/php-dev/200411/msg00171.html
http://hyvatti.iki.fi/~jaakko/sw/

Do you mean the GIF animation functions are already implemented? If so, could you please give a pointer on how to get more information about new functions?

Thanks
 [2004-12-10 04:41 UTC] phpbb dot mods at phpmix dot com
I meant _write_ support for GIF _Animation_. I believe 4.3.9 adds support for writing GIFs, but not GIF animations.

A bug in the manual? ..it suggests it is possible to compile PHP with a different GD library than the one PHP provides as an extension. I'm guessing this is not completely correct. :(


Will this patch be included in 4.3.10 ?
http://www.zend.com/lists/php-dev/200411/msg00171.html
 [2004-12-12 19:03 UTC] phpbb dot mods at phpmix dot com
Anyway... the PHP manual suggests it IS possible to compile PHP with a GD other than the one bundled in the package (using the --with-gd[=DIR] parameter).

However, this does NOT seem to be the case.

...or?
 [2004-12-15 12:32 UTC] pajoye@php.net
Compiled php with an extern GD lib works. I have the feeling that you should first fix your setup. Sounds like you are missing some files from gd-devel.

--Pierre
 [2004-12-15 14:05 UTC] phpbb dot mods at phpmix dot com
I cleaned up everything again ...and finally ...I got it. Probably I did something wrong on my previous tests and I was confused by the fact the new GIF animation functions are not supported.

So, sorry and thanks for your time. I understand how it works now... :-?

Just a final question... please,

Do you know if there are any plans to include support for the new GIF animation functions imagegifanimbegin(), imagegifanimadd(), and imagegifanimend() ?

...or should we rely on this patch:
http://hyvatti.iki.fi/~jaakko/sw/php-4.3.9-gifanim2.diff
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 02 14:01:36 2025 UTC