Hello, I will emerge: net-nds/openldap-2.2.28-r3 +berkdb +crypt -debug +gdbm +ipv6 -kerberos -minimal -odbc +perl +readline +samba +sasl (-selinux) -slp +ssl +tcpd 0 kB checking db.h presence... yes checking for db.h... yes checking for Berkeley DB link (default)... no checking for Berkeley DB link (-ldb43)... no checking for Berkeley DB link (-ldb-43)... no checking for Berkeley DB link (-ldb-4.3)... yes checking for Berkeley DB version match... Berkeley DB version mismatch header: Sleepycat Software: Berkeley DB 4.4.20: (January 10, 2006) library: Sleepycat Software: Berkeley DB 4.3.29: (September 6, 2005) no configure: error: Berkeley DB version mismatch I use emerge -pv BerkeleyDB These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild R ] dev-perl/BerkeleyDB-0.27 -minimal 0 kB
please include the output of: emerge -pv '=db-4.3*' '=db-4.4*' ls -ld /usr/lib/libdb* /usr/include/db*
Be aware that the ebuilds for both db's just changed to have versioned symbols. This should however not lead to the errors you are getting. The problem is caused by the fact that db-4.4 is not supported. The default header file is db-4.4 and the configure script does not know where to look for the proper header files. At some point in the ebuild's compile phase the following should happen (but configured for the actual desired library): export CPPFLAGS="-I/usr/include/db4.3" I think this would be a good time to make an eclass for db using ebuilds so they can query for the versions they want.
This detection is fixed in OpenLDAP 2.3 upstream configure script, so either wait until it's stable or use it as ~arch