Red Hat Bugzilla – Bug 142344
php_config.h does not match php program
Last modified: 2007-11-30 17:10:56 EST
Description of problem:
php_config.h contains the line
#define HAVE_GD_BUNDLED 1
However, running php -i indicates php was compiled --with-gd=shared
This results in linkage errors if compiling a downloadable php module
which also uses gd.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Build a php downloadable module which uses gd.
Linkage errors looking for the php internal gd routines
Can be fixed by commenting out the above line in php_config.h, but
since that file is auto-generated it's only a temporary fix.
"HAVE_GD_BUNDLED" means that the bundled copy of the libgd library was
--with-gd=shared means that the gd extension was built as a shared
module, /usr/lib/php4/gd.so in this case. What issue do you see with
what PHP extension?
I had some confusion about the meaning of --with-gd=shared, as it is
only documented as being either --with-gd or --with-gd=DIR.
So the problem is actually that gd.so is not in /usr/lib/php4, nor in
any of php-* rpms.
I recompiled from the source rpm and gd.so does exist in the php-4.3.9
I guess it's a packaging problem.
The gd extension is now packaged in the php-gd package, so if you have
upgraded from a previous release you will need to install php-gd to
restore the functionality.
This issue is covered in the FC3 release notes, FWIW.