When I'm emerge php or mod_php with USE flag dba set, all version of php will failed, so I checked the config.log, I found the problem is in gdbm. First, I can use a link from /usr/lib/libgdbm_compat.so to /usr/local/lib/libdbm.so. After that php's configure can find the -ldbm but, there is another problem, php can find the -ldbm , but in is so, configure can not find function dbminit. I studied gdbm, I found gdbm can be configured with this ' --with-dbm --with-ndbm' after I added these two flag to configure, php COULD find the -ldbm and function dbminit, but it still can not find some function defined in libgdbm.so. So, I modded the gdbm's Makefile.in, add a -lgdbm to line generate libgdbm_compat.so, Then everything works fine. Reproducible: Always Steps to Reproduce: 1. emerge gdbm 2. emerge anything needed libgdbm_compat.so ( any version of php, mod_php with USE=dba) Actual Results: configure failed either can not find -ldbm or dbminit function
*** This bug has been marked as a duplicate of 71148 ***