Bug #11413: Fails to compile properly when configured with --with-gd, using GD-1.8.3
| From: | stuart at promed dot com dot au | Date: | Tue, 12 Jun 2001 06:04:38 +0000 |
| Subject: | Bug #11413: Fails to compile properly when configured with --with-gd, using GD-1.8.3 | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-56669@lists.php.net to get a copy of this message | ||
From: stuart@promed.com.au
Operating system: Linux notes.promed.com.au 2.2.16-22smp #1 SMP Tue Aug 22 16:39:21 EDT 2000 i686
unknown
PHP version: 4.0.5
PHP Bug Type: Compile Failure
Bug description: Fails to compile properly when configured with --with-gd, using GD-1.8.3
GD downloaded/compiled from RedHat Source RPM, gd-1.8.3-7.src.rpm:
...
rpm -ivh gd-1.8.3-7.src.rpm
cd /usr/src/redhat/SOURCES/gd-1.8.3
make
make install
...
./configure --with-zlib --with-interbase --with-mysql --with-bz2
--with-apxs=/usr/local/apache/bin/apxs --enable-yp --with-ttf --with-gd
--------------
make[2]: Entering directory `/usr/local/src/php-4.0.5/ext/gd'
make[3]: Entering directory `/usr/local/src/php-4.0.5/ext/gd'
/bin/sh /usr/local/src/php-4.0.5/libtool --silent --mode=compile gcc -I.
-I/usr/local/src/php-4.0.5/ext/gd -I/usr/local/src/php-4.0.5/main -I/usr/local/src/php-4.0.5
-I/usr/local/apache/include -I/usr/local/src/php-4.0.5/Zend -I/usr/local/include/freetype
-I/usr/interbase/include -I/usr/local/src/php-4.0.5/ext/mysql/libmysql
-I/usr/local/src/php-4.0.5/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.5/ext/xml/expat/xmlparse
-I/usr/local/src/php-4.0.5/TSRM -DSHARED_MODULE -DLINUX=22 -DUSE_HSREGEX -DUSE_EXPAT -DNO_DL_NEEDED
-DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -c gd.c
gd.c:91: conflicting types for `gdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of `gdIOCtx'
gd.c: In function `php_if_imagecreatefromgif':
gd.c:730: `gdImageCreateFromGif' undeclared (first use in this function)
gd.c:730: (Each undeclared identifier is reported only once
gd.c:730: for each function it appears in.)
gd.c: In function `php_if_imagegif':
gd.c:917: `gdImageGif' undeclared (first use in this function)
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.0.5/ext/gd'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.0.5/ext/gd'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.5/ext'
make: *** [install-recursive] Error 1
--
Edit Bug report at: http://bugs.php.net/?id=11413&edit=1