Bug #5418 Updated: Bug in detection of dbm causes conflict with Sybase dbopen()
| From: | sniper@php.net | Date: | Tue, 15 May 2001 01:55:43 +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-55277@lists.php.net to get a copy of this message | ||
ID: 5418
Updated by: sniper
Reported By: dean.bennett@home.com
Old-Status: Open
Status: Closed
Bug Type: Sybase (dblib) related
Operating system:
PHP Version: 4.0.1pl2
Assigned To:
Comments:
Fixed in CVS.
--Jani
Previous Comments:
---------------------------------------------------------------------------
[2001-05-14 15:20:46] dean.bennett@home.com
I stopped seeing this problem because someone fixed the automatic enabling of --with-db, which used
to have no way to disable it.
If I add --with-db to configure now, the check in ext/db/config.m4 is still invalid. It adds -ldb
to EXTRA_LIBS when it is not needed, as the dbm_* functions are in libc.
On DU4.0, libdb is not ndbm, and you cannot link against both libdb and libsybdb as they both
contain dbopen().
If I either use gdbm, or remove the -ldb from EXTRA_LIBS, the Sybase and dbm functions can co-exist
quite nicely.
So the fix is still the order of checks in ext/db/config.m4 - gdbm, libc, dbm, ndbm(db)
---------------------------------------------------------------------------
[2001-05-14 12:45:19] joey@php.net
There are 2 seperate bugs here:
1) The configure issue (IE, order of 'db' libs) and
2) The conflict with Sybase's dbopen().
The second may have been solved (IIUC)by /ext/sybase/php_sybase_db.c 1.14.
This was committed right after 4.0.5,
so it should be in snaps and in 4.0.6.
I think Dan has a suggestion on #1 that he said
he would forward on to you. Please let us know
if either (or both) of these solve this one, Dean.
---------------------------------------------------------------------------
[2001-05-14 12:37:52] kalowsky@php.net
attempted at a patch, sent to user. awaiting a response.
---------------------------------------------------------------------------
[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.
---------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view the rest of the comments,
please view the bug report online.
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=5418&edit=2