php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5690 When compiling ---with-gd errors occur
Submitted: 2000-07-20 09:45 UTC Modified: 2000-07-20 19:01 UTC
From: johan at teekens dot org Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Release Candidate 2 OS: Linux
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: johan at teekens dot org
New email:
PHP Version: OS:

 

 [2000-07-20 09:45 UTC] johan at teekens dot org
I'm using GD 1.3.8, the rpm from Redhat using all libraries possible

[root@server001 php-4.0.1pl2]# ./configure --with-gd --with-mysql --enable-track-vars --enable-force-cgi-redirect --with-gettext

This works fine but the compiler gives me the followings errors

Making all in gd
make[2]: Entering directory `/usr/src/php-4.0.1pl2/ext/gd'
make[3]: Entering directory `/usr/src/php-4.0.1pl2/ext/gd'
gcc -DHAVE_CONFIG_H -I. -I/usr/src/php-4.0.1pl2/ext/gd -I/usr/src/php-4.0.1pl2 -I/usr/src/php-4.0.1pl2/main -I/usr/src/php-4.0.1pl2/Zend -I/usr/src/php-4.0.1pl2 -I/usr/local/include/freetype -I/usr/src/php-4.0.1pl2/ext/mysql/libmysql -I/usr/src/php-4.0.1pl2/ext/xml/expat/xmltok -I/usr/src/php-4.0.1pl2/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -g -O2  -c gd.c && touch gd.lo
gd.c: In function `php_if_imagecreatefromgif':
gd.c:472: `gdImageCreateFromGif' undeclared (first use in this function)
gd.c:472: (Each undeclared identifier is reported only once
gd.c:472: for each function it appears in.)
gd.c: In function `php_if_imagegif':
gd.c:629: `gdImageGif' undeclared (first use in this function)
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/src/php-4.0.1pl2/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.0.1pl2/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.0.1pl2/ext'
make: *** [all-recursive] Error 1

After this I removed the Gif support from gd.c(line 427), because I only need png support, I got the next message.

Making all in gd
make[2]: Entering directory `/usr/src/php-4.0.1pl2/ext/gd'
make[3]: Entering directory `/usr/src/php-4.0.1pl2/ext/gd'
gcc -DHAVE_CONFIG_H -I. -I/usr/src/php-4.0.1pl2/ext/gd -I/usr/src/php-4.0.1pl2 -I/usr/src/php-4.0.1pl2/main -I/usr/src/php-4.0.1pl2/Zend -I/usr/src/php-4.0.1pl2 -I/usr/local/include/freetype -I/usr/src/php-4.0.1pl2/ext/mysql/libmysql -I/usr/src/php-4.0.1pl2/ext/xml/expat/xmltok -I/usr/src/php-4.0.1pl2/ext/xml/expat/xmlparse  -DXML_BYTE_ORDER=12 -g -O2  -c gd.c && touch gd.lo
gd.c: In function `php_if_imagegif':
gd.c:625: `gdImageGif' undeclared (first use in this function)
gd.c:625: (Each undeclared identifier is reported only once
gd.c:625: for each function it appears in.)
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/src/php-4.0.1pl2/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.0.1pl2/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.0.1pl2/ext'
make: *** [all-recursive] Error 1


AFter this error I also removed line 625 (gif support). And it works!!!!!!

I think that gd 1.3.8 (latest) has no gif support and php does though.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-07-20 19:01 UTC] sterling at cvs dot php dot net
You haven't completely uninstalled your older version of GD...

Completely uninstall it and everything should be fine.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 10:00:01 2026 UTC