Nope, no changes to gcc in the lifetime of this machine.
However, I did figure out the problem (this is a little long, but bear with me):
Here's the configure line I used before and got a working PHP module:
Code: Select all
./configure --with-apxs2=/usr/sbin/apxs --prefix=/usr/local --with-xml \
--with-config-file-path=/usr/local --with-pear --enable-sockets --enable-track-vars \
--enable-versioning --enable-force-cgi-redirect --disable-cgi --with-gettext --with-mysql
Then, I added '--with-gd', because I needed GD support:
Code: Select all
./configure --with-apxs2=/usr/sbin/apxs --prefix=/usr/local --with-xml \
--with-config-file-path=/usr/local --with-pear --enable-sockets --enable-track-vars \
--enable-versioning --enable-force-cgi-redirect --disable-cgi --with-gettext --with-mysql \
--with-gd
This produced an error in the 'configure' script that looked like this:
Code: Select all
...
checking for floorf... (cached) yes
If configure fails try --with-jpeg-dir=<DIR>
configure: error: PNG support requires ZLIB. Use --with-zlib-dir=<DIR>
So, I tried adding '--with-zlib-dir=/usr':
Code: Select all
./configure --with-apxs2=/usr/sbin/apxs --prefix=/usr/local --with-xml \
--with-config-file-path=/usr/local --with-pear --enable-sockets --enable-track-vars \
--enable-versioning --enable-force-cgi-redirect --disable-cgi --with-gettext --with-mysql \
--with-gd --with-zlib-dir=/usr
and that 'configure'd fine, so I built it and ended up with the broken PHP module that has plagued me for days now.
So, on a hunch, I tried taking out the '--with-gd' and '--with-zlib-dir=/usr' parts, built it, and dropped it into my Apache modules. Restart httpd, no errors... hm. So the GD stuff was breaking it.
On another hunch, I added back the '--with-gd' part, this time with '--with-zlib' and '--with-jpeg':
Code: Select all
./configure --with-apxs2=/usr/sbin/apxs --prefix=/usr/local --with-xml \
--with-config-file-path=/usr/local --with-pear --enable-sockets --enable-track-vars \
--enable-versioning --enable-force-cgi-redirect --disable-cgi --with-gettext --with-mysql \
--with-gd --with-zlib --with-jpeg
Voila! I now have a working, GD-supporting Apache2 PHP5 module. Apparently, if you specify with-gd but don't add with-zlib *AND* with-jpeg, you get no error messages, but you end up with a broken, useless PHP module.
In the end, I should have paid more attention to the original configure script error, but it was a bit misleading.
Anyway, thanks for all your help!
Regards,
Jon Heese