go to bug id or search bugs for
I've installed gd 1.8.3 and of course it does not have gif support anymore.
Yet, still configure defines HAVE_GD_GIF, saying that it detected the support.
Compile of course fails when HAVE_GD_GIF is defined and the functions are not really available.
Can anyone else reproduce?
Add a Patch
Add a Pull Request
There seems to be some errors while trying to compile php (with gd).
I just removed the few gif functions from ext/gd/gd.c and compiled fine.
Maybe it would be a good idea to finally remove these old functions since gd no longer supports gif and its hard to find an old version that does (especially since png is fine for most things).
OK OK, ignore all that other crap I've already posted.... I REALLY DONT KNOW WHAT I AM TALKING ABOUT...
Anyways, got trouble compiling 4.0.4pl1 and also the latest snapshot....
gcc -I. -I/root/webserv/php4-200101291345/ext/gd -I/root/webserv/php4-200101291345/main -I/root/webserv/php4-200101291345 -I/root/webserv/apache_1.3.14/src/include -I/root/webserv/apache_1.3.14/src/os/unix -I/root/webserv/php4-200101291345/Zend -I/root/webserv/php4-200101291345/ext/mysql/libmysql -I/root/webserv/php4-200101291345/ext/xml/expat/xmltok -I/root/webserv/php4-200101291345/ext/xml/expat/xmlparse -I/root/webserv/php4-200101291345/TSRM -DXML_BYTE_ORDER=12 -g -O2 -c gd.c && touch gd.lo
gd.c: In function `php_if_imagecreatefromgif':
gd.c:709: `gdImageCreateFromGif' undeclared (first use in this function)
gd.c:709: (Each undeclared identifier is reported only once
gd.c:709: for each function it appears in.)
gd.c:709: `gdImageCreateFromGifCtx' undeclared (first use in this function)
gd.c: In function `php_if_imagegif':
gd.c:891: `gdImageGif' undeclared (first use in this function)
make: *** [gd.lo] Error 1
make: Leaving directory `/root/webserv/php4-200101291345/ext/gd'
You have some old gd.h laying around in your system.
Just remove every instance of the old library, then 'make install' again
for gd. Then go to the php4 source directory, delete config.cache, reconfigure
(use --with-gd=/path/to/gd/install/dir, e.g. --with-gd=/usr/local) and
do 'make clean ; make ; make install' and you should have working PHP again.
And if this doesn't help, ask further questions on firstname.lastname@example.org