Bug 142344 - php_config.h does not match php program
Summary: php_config.h does not match php program
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: php
Version: 3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Joe Orton
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-12-09 02:20 UTC by Pete Olson
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-12-09 16:07:20 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Pete Olson 2004-12-09 02:20:33 UTC
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):
php-4.3.9-3
php-devel-4,3.9-3

How reproducible:
Always

Steps to Reproduce:
1. Build a php downloadable module which uses gd. 
2.
3.
  
Actual results:
Linkage errors looking for the php internal gd routines

Expected results:
No errors.

Additional info:
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.

Comment 1 Joe Orton 2004-12-09 09:42:12 UTC
"HAVE_GD_BUNDLED" means that the bundled copy of the libgd library was
used.

--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? 


Comment 2 Pete Olson 2004-12-09 16:05:24 UTC
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
directory.

I guess it's a packaging problem.

Comment 3 Joe Orton 2004-12-09 16:07:20 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.