12-Jul-99 11:30 you wrote:
> So what (besides using shared memory) is the solution for other distros
> using Glibc 2.1 and building mod_ssl from source?
In fact mod_ssl will work with GLibC 2.1: since the only thing from <db.h>
used in ndbm.h is definition of type "DB" and the only way this type is
used is to declare some pointers you must be happy as long as are not
interested in sizeof(DBM). Real problem is in mod_rewrite.h : since
/usr/include/db.h does not define DB_LOCK nor DB_SHMEM you'll get wrong
definition for NDBM_FILE_SUFFIX :-(( So for "real" fix you must borrow
definition from mod_ssl and put in mod_rewrite.h (it's done already for
Apache 1.3.7, AFAIK).
P.S. Oh, and in all such cases you'll end up with Berkeley DB 2.x instead of
Berkeley DB 1.x ! If you want Berkeley DB 1.x then you'll need to replace
-- cut --
#ifndef NO_DBM_REWRITEMAP
#if defined(__GLIBC_MINOR__) && __GLIBC_MINOR__ > 0
#include <db1/ndbm.h>
#else
#include <ndbm.h>
#endif
-- cut --
with
-- cut --
#ifndef NO_DBM_REWRITEMAP
#if defined(__GLIBC_MINOR__) && __GLIBC_MINOR__ > 0
#include <db1/db.h>
#include <db1/ndbm.h>
#else
#include <ndbm.h>
#endif
-- cut --
in mod_rewrite.h, mod_auth_dbm.c and mod_ssl.h ... And you'll need to replace
-- cut --
#include <db.h>
-- cut --
with
-- cut --
#include <db1/db.h>
-- cut --
in mod_auth_db.c
Plus you'll need to find and replce all `-lndbm' and/or `-ldb' with `-ldb1'...
I'm not know which version of Berkeley DB is better here so I end up with
ugly hack for KSI-Linux 2.1 : mod_rewrite1.o, mod_auth_db1.o and mod_auth_dbm1.o
will use Berkeley DB 1.x while mod_rewrite.o, mod_auth_db.o and mod_auth_dbm.o
will use Berkeley DB 2.x (the same for mod_ssl: mod_ssl1.o will use
Berkeley DB 1.x and mod_ssl.o will use mod_ssl.o)... Unfortunatelly loader of
GLibC 2.1 is not smart enough so you can NOT mix them and use, say,
mod_rewrite1.o and mod_auth_db.o in the same apache process :-((
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]