PHP 4.2.0 & GD 2.0.1 - compiling error
| From: | hyper | Date: | Fri, 03 May 2002 17:25:59 +0000 |
| Subject: | PHP 4.2.0 & GD 2.0.1 - compiling error | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-6838@lists.php.net to get a copy of this message | ||
I'm trying to compile PHP 4.2.0 with GD support, but get errors.
Would appreciate if anyone could help.
---------- system ----------
System: Slackware 8.0
HTTPd: Apache 2.0.35
PHP: 4.2.0
GD: 2.0.1 (& latest libpng, jpeg, freetype, zlib)
--------- configure ---------
./configure --enable-magic-quotes --enable-bcmath --enable-calendar --enable-ftp --enable-sockets
--enable-sysvsem --enable-sysvshm
--with-apxs2=/usr/local/apache2/bin/apxs --with-pear --with-openssl --with-zlib --with-bz2 --with-gd
--with-mysql
---------- errors -----------
Making all in gd
make[2]: Entering directory `/usr/local/src/php/php-4.2.0/ext/gd'
make[3]: Entering directory `/usr/local/src/php/php-4.2.0/ext/gd'
/bin/sh /usr/local/src/php/php-4.2.0/libtool --silent --mode=compile
gcc -I. -I/usr/local/src/php/php-4.2.0/ext/gd -I/usr/local/src/php/php-4.2.0/main
-I/usr/local/src/php/php-4.2.0 -I/usr/local/apach
e2/include -I/usr/local/src/php/php-4.2.0/Zend -I/usr/local/src/php/php-4.2.0/ext/mysql/libmysql
-I/usr/local/src/php/php-4.2.0/ext/
xml/expat -D_REENTRANT -I/usr/local/src/php/php-4.2.0/TSRM -DTHREAD=1 -g -O2 -pthread -DZTS
-prefer-pic -c gd.c
In file included from gd.c:36:
php_gd.h:69: warning: static declaration for `gdImageColorResolve' follows non-static
gd.c:92: conflicting types for `gdIOCtx'
/usr/include/gd_io.h:18: previous declaration of `gdIOCtx'
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php/php-4.2.0/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php/php-4.2.0/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php/php-4.2.0/ext'
make: *** [all-recursive] Error 1