PHP 4.0 Bug #5690: When compiling ---with-gd errors occur
| From: | johan at teekens dot org | Date: | Thu, 20 Jul 2000 07:45:01 +0000 |
| Subject: | PHP 4.0 Bug #5690: When compiling ---with-gd errors occur | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-25186@lists.php.net to get a copy of this message | ||
From: johan@teekens.org
Operating system: Linux
PHP version: 4.0 Release Candidate 2
PHP Bug Type: Compile Failure
Bug description: When compiling ---with-gd errors occur
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.