ID: 41433 Updated by: [EMAIL PROTECTED] Reported By: uberlord at gentoo dot org -Status: Open +Status: Assigned Bug Type: Compile Failure Operating System: Gentoo/FreeBSD PHP Version: 5.2.2 -Assigned To: +Assigned To: helly
Previous Comments: ------------------------------------------------------------------------ [2007-05-18 13:28:24] uberlord at gentoo dot org This patch allows CPPFLAGS do to it's magic with db.h diff -ur a/ext/dba/config.m4 b/ext/dba/config.m4 --- a/ext/dba/config.m4 2007-05-18 13:56:52 +0100 +++ b/ext/dba/config.m4 2007-05-18 14:05:28 +0100 @@ -262,6 +262,10 @@ break fi done + dnl Allow CPPFLAGS to override us if needed. + if test "$THIS_PREFIX" = "/usr" && test "$THIS_INCLUDE" = "/usr/include/db.h" ; then + THIS_INCLUDE="db.h" + fi PHP_DBA_DB_CHECK(4, db-4.5 db-4.4 db-4.3 db-4.2 db-4.1 db-4.0 db-4 db4 db, [(void)db_create((DB**)0, (DB_ENV*)0, 0)]) fi ]) ------------------------------------------------------------------------ [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