Not fixed
Just wanted to say that the issue with 64-bit library directories in PHP 4.4.2 has not been fixed. GD still fails when configuring, complaining about "configure: error: libpng.(a|so) not found." etc. It will likely not be fixed since it works in PHP 5.
Here's the guide to fix it since the original site is not available anymore (
www.fabnat.com/linux/Php4_FC4_x86_64.html)
1. Add the following lines to configure.in:
Code:
dnl Support systems with system libraries in e.g. /usr/lib64
AC_ARG_WITH(libdir,
[ --with-libdir=NAME Look for libraries in .../NAME rather than .../lib],
[PHP_LIBDIR=$withval], [PHP_LIBDIR=lib])
Add them right at the beginning, after 'dnl AC_PROG_CXXCPP'.
Keep in mind we want to run ./configure --with-libdir=lib64 and have it cause ./configure to look for libraries in, for example, /usr/lib64 rather than /usr/lib.
2. Edit the config.m4 file for the extension you want to compile (for example, ext/gd/config.m4), and change 'lib', when used to indicate a directory part such as /usr/lib, into '$PHP_LIBDIR'. You have to look at all instances manually; automated replacing for example might replace libjpeg.so with $PHP_LIBDIRjpeg.so which is not what you want.
You can download a fixed config.m4 for GD in PHP 4.4.2 here:
http://lowtech.dyndns.org/config.m4.zip
3. Once you're happy and ready to go, type: autoconf to generate your new ./configure
4. Run ./configure but make sure you add --with-libdir=lib64.