#41433 [Asn->Csd]: configure fails to include correct db.h
| From: | jani@php.net | Date: | Thu, 19 Jul 2007 10:50:35 +0000 |
| Subject: | #41433 [Asn->Csd]: configure fails to include correct db.h | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-115227@lists.php.net to get a copy of this message | ||
ID: 41433
Updated by: jani@php.net
Reported By: uberlord at gentoo dot org
-Status: Assigned
+Status: Closed
Bug Type: DBM/DBA related
Operating System: Gentoo/FreeBSD
PHP Version: 5.2.2
-Assigned To: helly
+Assigned To: jani
New Comment:
This bug has been fixed in CVS.
Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
Thank you for the report, and for helping us make PHP better.
And you don't need no stinking CPPFLAGS set now either..
Previous Comments:
------------------------------------------------------------------------
[2007-07-17 16:43:46] jani@php.net
Just makes me wonder why Gentoo reinvents the wheel (poorly) and puts
headers in non-standard places..
------------------------------------------------------------------------
[2007-05-18 13:26:58] uberlord at gentoo dot org
Description:
------------
ext/dba/config.m4 forces this include if it finds db.h in /usr/include
include "/usr/include/db.h"
This, of course, ignores any CPP flags for where Gentoo actually stores
it's db.h file.
Changing it to
include "db.h"
works.
Reproduce code:
---------------
CPPFLAGS=-I/usr/include/db4.5 ./configure --with-db4
Expected result:
----------------
successful configure
Actual result:
--------------
checking for db4 major version... configure: error: Header contains
different version
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41433&edit=1