I have tried every version of GD from 1.6 to 1.8.4 & I can't get past the make part of the installation for PHP. I can get the 1.3 version of GD to compile & install properly, but I need PNG support.
Anyway... Here are my specs:
RedHat 2.4.7-10
PHP 4.2.2
Apache 1.3.26
Here is the error messages I receive while trying to make PHP:
gd.c:92: conflicting types for gdIOCtx'
/usr/local/gd-1.8.4/gd_io.h:18: previous declaration ofgdIOCtx'
gd.c: In function zif_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 function zif_imagegif':
gd.c:1464:gdImageGif' undeclared (first use in this function)
make[3]: [gd.lo] Error 1
make[3]: Leaving directory /usr/local/php-4.2.2/ext/gd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory/usr/local/php-4.2.2/ext/gd'
make[1]: [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/php-4.2.2/ext'
make: *** [all-recursive] Error 1
Here is the configure command I use:
./configure --with-mysql --with-apxs=/usr/local/src/bin/apxs --with-gd=/usr/local/gd-1.8.4 --with-freetype-dir=/usr/include/freetype2 --with-zlib-dir=/usr/include --with-png-dir=/usr/lib --with-jpeg-dir=/usr/lib
I've left the GD makefile alone as well as modified the CFLAGS & LIBS settings in the makefile to reflect what I have on my system. GD always compiles/makes fine in either scenario & I can run the gddemo program after compiling & it generates a sample .png file.
I get this same group of errors whenever I use GD version 1.6 - 1.8.4. I even tried the beta 2.0.1 - same problem. The weird part is that PHP compiles fine with version 1.3.
I've searched everywhere on the Internet, but no help was found.
Any ideas?
Thanks,
Jason Martin