i wanted to update php to current ~amd64 release, but it stops at a configure error: 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. config.log output can be found here: http://stud4.tuwien.ac.at/~e0227135/gentoo/php-5.0.3-r1_config.log the error seems to be located here: configure:25050: gcc -o conftest -march=k8 -mtune=k8 -O3 -fomit-frame-pointer -ftracer -funroll-loops -pipe -L/usr/lib conftest.c -ldbm -ldb-4.2 -ldb-4.2 -lgdbm -lcurl -lbz2 -lz -lresolv -lm -ldl -lnsl -lxml2 -lz -lm -lssl -lcrypto -ldl -lcurl -lidn -lssl -lcrypto -ldl -lssl -lcrypto -ldl -lz 1>&5 /usr/lib/gcc/x86_64-pc-linux-gnu/3.4.3-20050110/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ldbm Reproducible: Always Steps to Reproduce: 1. emerge -avu php
I found the solution on debian list: http://grass.itc.it/pipermail/grass5/2003-August/008500.html you need to link /usr/lib/libdbm_compat.so to /usr/local/lib/libdbm.so (ln -s /usr/lib/libgdbm_compat.so /usr/local/lib/libdbm.so) maybe this could be fixed in DBM.
*** Bug 91767 has been marked as a duplicate of this bug. ***
i dont see the point ... we've gotten along just fine so far without adding this cruft to gdbm, why now ?
Do we have a genuine libdbm in the tree? If so, I'll just update the deps for PHP to pull that in. (Although, it has to be said, it'd be nice to have the DBM-compatible part of libgdbm installed)
*** This bug has been marked as a duplicate of 60922 ***