When building www/apache24 with relevant config as
$ grep '^OPTIONS.*DB' /usr/local/etc/poudriere.d/options/www_apache24/options git:(pingpong)
Q/A warns about missing dependencies:
Error: /usr/local/bin/ab is linked to /usr/local/lib/libdb-5.3.so.0 from databases/db5 but it is not declared as a dependency
Warning: you need USES+=bdb
Error: /usr/local/bin/ab is linked to /usr/local/lib/libgdbm.so.6 from databases/gdbm but it is not declared as a dependency
Warning: you need LIB_DEPENDS+=libgdbm.so:databases/gdbm
Closing this ticket, not a bug in Apache. You could call it a bug in the Q/A code.
You are seeing the Q/A warning because of the devel/apr1 dependency.
If you build devel/apr1 with any of the "Database support" options (BDB and GDMB are selected by default), you will have a libaprutil-1.so that is linked against the respective database shared libs.
The Apache build uses the output of apu-1-config for the compiling and linking of a.o. `support/ab`. Thus the `ab` utility is linked with libdb-5 and libgdbm.
Cheers, Bernard (with hat apache@)