Web Hosting Talk







View Full Version : Problem compiling GD2 with PHP


mdrussell
03-03-2002, 04:58 PM
Hi all,

I have a problem trying to compile GD2 with Apache - it throws up errors each time.

I see:

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/src/php-4.1.2/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/php-4.1.2/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/php-4.1.2/ext'
make: *** [all-recursive] Error 1

Any suggestions?

Regards
Matt

Jedito
03-03-2002, 09:41 PM
This is often due to the fact that you have multiple versions of the gd header files on your system. Do a 'locate gd.h' and make sure you only have 1. If you have more than 1, get rid of the old bogus ones.