emerge -av mod_php-5.0.3* and 5.0.4 (the ones I've personally confirmed) with USE="dbm dba" fails with: checking for Berkeley DB4 support... yes checking for Berkeley DB3 support... no checking for Berkeley DB2 support... no checking for dbminit in -ldbm... no checking for dbminit in -lc... no checking for dbminit in -lgdbm... no configure: error: DBA: Could not find necessary library. !!! Please attach the config.log to your bug report: !!! /var/tmp/portage/mod_php-5.0.4/work/php-5.0.4/config.log !!! ERROR: dev-php/mod_php-5.0.4 failed. !!! Function econf, Line 485, Exitcode 0 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. I solved this by adding this line to the ebuild at the end of src_unpack(): sed -i -e 's!\(for LIB in dbm c gdbm\)!\1 gdbm_compat!' ${S}/configure or in other words: --- configure 2005-05-07 15:30:30.000000000 +0900 +++ - 2005-05-07 15:33:27.090803000 +0900 @@ -36659,7 +36659,7 @@ done if test -n "$THIS_INCLUDE"; then - for LIB in dbm c gdbm; do + for LIB in dbm c gdbm gdbm_compat; do save_old_LDFLAGS=$LDFLAGS ac_stuff="-L$THIS_PREFIX/lib"
*** This bug has been marked as a duplicate of 84620 ***