I am having the same problem that several people have had installing other PHP versions. Strange thing is, 4.1.2 installs fine. 4.2.1 dies. Here is my dilemma:
RH Linux 6.1
GD 1.8.4
Config: ./configure --with-mysql=/usr/local/ --with-apxs=/usr/local/apache_1.3.26/bin/apxs --enable-track-vars --with-gd --enable-gd-native-tt --with-freetype-dir --with-png-dir --with-jpeg-dir --with-zlib-dir=/usr/include/
configures fine, but during the make, I begin to get GD errors like:
In file included from internal_functions.c:34:
/usr/local/src/php-4.2.1/ext/gd/php_gd.h:69: warning: static declaration for `gdImageColorResolve' follows non-static
FInally, the build dies with:
In file included from gd.c:36:
php_gd.h:69: warning: static declaration for gdImageColorResolve' follows non-static
gd.c:92: conflicting types forgdIOCtx'
/usr/local/include/gd_io.h:18: previous declaration of gdIOCtx'
gd.c: In functionzif_imagecreatefromgif':
gd.c:1235: gdImageCreateFromGif' undeclared (first use in this function)
gd.c:1235: (Each undeclared identifier is reported only once
gd.c:1235: for each function it appears in.)
gd.c: In functionzif_imagegif':
gd.c:1464: gdImageGif' undeclared (first use in this function)
make[3]: *** [gd.lo] Error 1
make[3]: Leaving directory/usr/local/src/php-4.2.1/ext/gd'
make[2]: [all-recursive] Error 1
make[2]: Leaving directory /usr/local/src/php-4.2.1/ext/gd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory/usr/local/src/php-4.2.1/ext'
make: [all-recursive] Error 1
Using the exact same configure line with PHP4.1.2 gives NO problems. PHP 4.2.1 croaks.
Any suggestions? I have already removed the old .h files from earlier GD versions, but this did not solve the problem.
I've seen this error mentioned in other forums, but no resolution. Any help would be appreciated.