PHP 4.0 Bug #5418: Bug in detection of dbm causes conflict with Sybase dbopen()

From: Date: Thu, 06 Jul 2000 20:31:28 +0000
Subject: PHP 4.0 Bug #5418: Bug in detection of dbm causes conflict with Sybase dbopen()
Groups: php.dev 
Request: Send a blank email to php-dev+get-23633@lists.php.net to get a copy of this message
From: dean.bennett@home.com Operating system: Digital Unix 4.0 PHP version: 4.0.1pl2 PHP Bug Type: Sybase (dblib) related Bug description: Bug in detection of dbm causes conflict with Sybase dbopen() The configure script checks for dbm by linking a conftest.c program with a dbm_open call against -lgdbm, then -ldb, then -lc and finally -ldbm. On Digital Unix, the link succeeds against -ldb, because there is a /usr/lib/libdb.a, but dbm_open is really in libc (and also in libdbm.a) and not in libdb. This causes a problem when you try to build --with-sybase, as the sybase dbopen() function is superceeded by the dbopen() in libdb.a. The -ldb is before -lsybdb in the link command. Configure should not be picking -ldb as the DBM_LIB value, as that is not the location of dbm_open. If I install gdbm, it works fine, as it checks for that library first.

« previous php.dev (#23633) next »