|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
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 --with-xml --with-ftp make install 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. |
|
#2
|
|||
|
|||
|
Your configuration of PHP was meant for static linking to apache, not shared object. For shared object compiling, it should look like:
./configure --with-apxs=/usr/local/apache/bin/apxs --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 rick@e-possibility.com |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > gd enabled php -apache module: make error |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|