#23606 [NEW]: Unable to build --with-db4 (db4.1.25)

From: Date: Tue, 13 May 2003 13:34:49 +0000
Subject: #23606 [NEW]: Unable to build --with-db4 (db4.1.25)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-39522@lists.php.net to get a copy of this message
From: tommi dot komulainen at iki dot fi Operating system: Debian sid PHP version: 4.3.2RC2 PHP Bug Type: Compile Failure Bug description: Unable to build --with-db4 (db4.1.25) The configure script is unable to find the db4 in the system, because it isn't taking into account #defines such as the following in /usr/include/db.h: #define db_create db_create_4001 The library does not contain unversioned symbols and therefore the configure script needs to #include the db.h to be able to make proper checks for the versioned symbols. Replacing the AC_CHECK_LIB with somewhat similar AC_TRY_LINK should do the trick. See the following patch (I've only tried it with db4.1, I don't know if the function signature is the same for older versions, but I'd think so.) --- ext/dba/config.m4.orig 2003-04-14 00:05:41.000000000 +0300 +++ ext/dba/config.m4 2003-05-13 16:15:37.000000000 +0300 @@ -136,17 +136,19 @@ AC_DEFUN(PHP_DBA_DB_CHECK,[ for LIB in $2; do if test -f $THIS_PREFIX/lib/lib$LIB.a -o -f $THIS_PREFIX/lib/lib$LIB.$SHLIB_SUFFIX_NAME; then - PHP_TEMP_LDFLAGS(-L$THIS_PREFIX/lib,[ - AC_CHECK_LIB($LIB, $3, [ - AC_EGREP_CPP(yes,[ + PHP_TEMP_LDFLAGS(-L$THIS_PREFIX/lib -l$LIB,[ + AC_MSG_CHECKING(db_create in $LIB) + AC_TRY_LINK([ #include "$THIS_INCLUDE" - yes -#endif - ],[ - THIS_LIBS=$LIB - break - ]) - ]) + ],[ +(void)db_create((DB**)0, (DB_ENV*)0, 0); + ],[ + AC_MSG_RESULT(yes) + THIS_LIBS=$LIB + break + ],[ + AC_MSG_RESULT(no) + ]) ]) fi done -- Edit bug report at http://bugs.php.net/?id=23606&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23606&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23606&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23606&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23606&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23606&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23606&r=support Expected behavior: http://bugs.php.net/fix.php?id=23606&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23606&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23606&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23606&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23606&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23606&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23606&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23606&r=gnused

« previous php.bugs (#39522) next »