Bug #5418 Updated: Bug in detection of dbm causes conflict with Sybase dbopen()
| From: | kalowsky@php.net | Date: | Mon, 14 May 2001 16:37:52 +0000 |
| Subject: | Bug #5418 Updated: Bug in detection of dbm causes conflict with Sybase dbopen() | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55193@lists.php.net to get a copy of this message | ||
ID: 5418
Updated by: kalowsky
Reported By: dean.bennett@home.com
Old-Status: Analyzed
Status: Feedback
Bug Type: Sybase (dblib) related
Operating system:
PHP Version: 4.0.1pl2
Assigned To:
Comments:
attempted at a patch, sent to user. awaiting a response.
Previous Comments:
---------------------------------------------------------------------------
[2000-07-28 11:24:36] waldschrott@php.net
checking out
---------------------------------------------------------------------------
[2000-07-27 23:59:19] dean.bennett@home.com
Yes it is.
The fix would be to change the order of the AC_CHECK_LIB's in ext/db/config.m4. I think that
the order should be gdbm, c, dbm, db.
As someone else reported, there is also no way to disable linking against dbm.
---------------------------------------------------------------------------
[2000-07-27 22:13:15] waldschrott@php.net
Please verify that it´s still happening using the latest version from CVS or snaps.php.net.
---------------------------------------------------------------------------
[2000-07-06 22:31:28] dean.bennett@home.com
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.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=5418&edit=2