Red Hat Bugzilla – Bug 36987
Apache mod_auth_db fails due to Berkeley DB shared library version conflict
Last modified: 2007-03-26 23:43:45 EDT
Following packages apply:
It's conveivable that this is actually my problem, although it's happened
twice now on two different hosts, one of which was a stock install.
Three shared object modules in Apache -- mod_auth_db, mod_rewrite, and
mod_php4 -- appear to use different versions of Berkeley DB. Since some
of the function names are shared among them this resulted, on my machine,
in mod_auth_db, which was compiled with DB version 3.x, incorrectly calling
the 2.x version of DB::open().
This was discovered by adding debugging statements to mod_auth_db.c around
line 170. The db_create() function succeeded, but the following call,
DB::open(), failed with EINVAL (invalid argument).
'lsof' on httpd processes showed that shared libs of versions 3 and 2 were
Removal of version 2 resulted in mod_rewrite failing because it needed
the version 1.85 interface provided by version 2.x, and mod_php4 failing
because it needed version 2.x (db_open()).
Disabling both of those modules (and screwing around with the symlinks in
/usr/lib) seemed to fix the problem, insofar as mod_auth_db now works
However, it would be *very helpful* if whoever is compiling the Apache
RPM package would stick with version 3.x for all the modules (3.x happens
to be what Perl -- and thus dbmmanage -- appears to use). Or, if this is
not possible, statically link modules that need versions below 3.x
The fix for this issue is being incorporated into candidate errata packages for
Apache 1.3.20 and PHP 4.0.6, and into Raw Hide.
Thanks for the report. This is a mass bug update; since this release
of Red Hat Linux is no longer supported, please either:
a) try and reproduce the bug with a supported version of Red Hat
Enterprise Linux or Fedora Core, and re-open this bug as appropriate
after changing the Product field, or,
b) if relevant, try and reproduce this bug using the current version
of the upstream package, and report the bug upstream.