9-Jul-99 16:06 you wrote:
> There was a discussion about DBM extension/permission under
> GLIBC 2.1 some times ago.
In fact even attached patch is not correct :-/ Since you can not just
"#include <db1/ndbm.h>" and be happy ... <db1/ndbm.h> will include
<db.h> instead of <db1/db.h> so some defines still will be screwed up
unless you are using -I/usr/include/db1 ... And you must link with -ldb1 in
such cases, NOT with -lndbm !!! Ok, -lndbm works in GLibC 2.1.1 but it's not
guranteed that it will work in later versions as well: libndbm.so is link to
Berkeley DB 2.x and <db1/ndbm.h> come from Berkeley DB 1.x so there are no
guarantee that <db1/ndbm.h> is compatible with -lndbm :-(( I wonder why there
are such a mess in Berkeley DB 1.x/Berkeley DB 2.x support ?? Why db_dump185
(provides especially for dumping Berkeley DB 1.x databases AFAIK) is linked
against Berkeley DB 2.x so you can not dump Berkeley DB 1.x database with it
(but can dump Berkeley DB 2.x database just like db_dump!) after all ???
Yes, I know that I can fix it with easy:
-- cut --
mv /usr/bin/db_dump185 /usr/bin/db_dump185.o
sed s-libdb[.]so[.]3-libdb.so.2- < /usr/bin/db_dump185.o > /usr/bin/db_dump185
rm -rf /usr/bin/db_dump185.o
-- cut --
And I can create /usr/include/ndbm.h for libndbm.so (libdb.so.3 in fact) easily:
-- cut --
#ifndef _NDBM_H_
#define _NDBM_H_
#ifdef _DB_H_
#if DB_DBM_HSEARCH == 0
#error <db.h> included before <ndbm.h> and DB_DBM_HSEARCH == 0 . Giving up.
#endif
#else
#define DB_DBM_HSEARCH 1
#include <db.h>
#endif
#endif
-- cut --
But still :-/ Looks like someone was on drugs when developed
Berkeley DB 1.x/NDBM compatibility stuff in GLibC 2.1 ... Binaries are
supported fine but for developer it's nightmare :-/
> These problems are now fixed for the RPM we built with Magnus.
> You could take a look at the attached patches.
> Also why not using library MM to solve part of these problems ?
And you STILL need patch over downloadable tarball :-))
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]