mod_rewrite.so wants dbm emulation and the apache build takes it from db2.
mod_auth_db.so wants some Berkeley DB and gets db3 by default.
As a consequence, /usr/sbin/httpd gets dependent on both libraries.
When using mod_perl (especifically, when using Apache::ASP), if DB_File.so is needed, it fails at load time because Perl was built with db3
and DB_FIle knows it, but its external references get satisfied dynamically by those in db2 and refuses to work.
What I did is to rebuild the apache RPMS so that it has gdbm:
This way src/helpers/find-dbm-lib gets happy with it and does not include a dependency on -lndbm (that ends up as a dependency on -ldb2).
On the other hand, mod_auth_db is happy with -ldb, that seems to be db3 and DB_File is happy with it.
Possibly someone who understands the DB-version policy can suggest something better.
Eek. We have to switch mod_auth_dbm to DB3's dbm emulation because the
dbmmanage perl script turns out to be a db3 application which creates db3 hash