August 14th, 2000, 04:57 AM
I installed gd-1.8.3, jpeg-6b and zlib-1.1.3
I configured php-4.0.1pl2 with following:
./configure --with-apache=../apache_1.3.12 --with-gd=../gd-1.8.3 --with-jpeg-dir=../jpeg-6b --with-zlib=/usr/local
Then I compiled apache-1.3.12 to use php as a shared modude.
The ./configure with all the correct options works fine.
make returns in an error:
size of symbol gdImageColorResolve changed from 274 to 266 in gd.o.(gd.c)
Aparently the variable gdImageColorResolve is defined two times but with different sizes.
Does anyone have ideas on how to get rid of this error?
It perhaps has to do with the gd.c file in php-4.0.1pl2/ext/gd directory and the gd.c file in gd-1.8.3 directory.
August 14th, 2000, 11:12 PM
Your configuration of PHP was meant for static linking to apache, not shared object. For shared object compiling, it should look like:
--with-gd=../gd-1.8.3 --with-jpeg-dir=../jpeg-6b --with-zlib=/usr/local --with-xml --with-ftp
As for your GD error, I spent my counless frustrating hours with GD, Freetype, and PHP, to come up with a documented method. I'm not saying it's the only method but it works in FreeBSD, and (I think) Linux:
I posted it in the "Image Functions" section of the PHP annotated manual. http://www.php.net/manual/ref.image.php
Look for the post at the bottom by email@example.com