[PHP] PHP 4.1.2 Gd2
Hi, I'm trying to install GD2 in PHP, and can't get it compiled. It keeps saying: 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 ./configure --with-apxs=/usr/local/apache/bin/apxs --with-curl=/usr/local/lib --with-mysql=/usr/local/mysql -- with-zlib --enable-track-vars --with-config-file-path=/usr/local/apache/php --with-gd=/usr --with-ldap --with- interbase=/opt/interbase --with-ttf GD 1.8.x works great, this only happens with GD2. Any suggestions? Thanks, Jeroen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP 4.1.2 Gd2
At 10:47 PM +0100 19/3/02, Jeroen Geusebroek wrote: I'm trying to install GD2 in PHP, and can't get it compiled. It keeps saying: In file included from gd.c:36: php_gd.h:69: warning: static declaration for `gdImageColorResolve' The following patch fixed it for me: diff -r -U3 php-4.1.2/ext/gd/php_gd.h php-4.1.2.gd/ext/gd/php_gd.h --- php-4.1.2/ext/gd/php_gd.h Sat Aug 25 06:07:07 2001 +++ php-4.1.2.gd/ext/gd/php_gd.hThu Feb 28 15:03:02 2002 -66,7 +66,7 PHP_MSHUTDOWN_FUNCTION(gd); #ifndef HAVE_GDIMAGECOLORRESOLVE -static int gdImageColorResolve(gdImagePtr, int, int, int); +extern int gdImageColorResolve(gdImagePtr, int, int, int); #endif PHP_FUNCTION(imagearc); PHP_FUNCTION(imagechar); ...R. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php