configure:22923: x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -D_GNU_SOURCE -DLDAP_CONNECTIONLESS -I/usr/include/db5.3 conftest.c >&5 configure:22923: $? = 0 configure:22945: result: 8 configure:22965: checking db.h usability configure:22965: x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -D_GNU_SOURCE -DLDAP_CONNECTIONLESS -I/usr/include/db5.3 conftest.c >&5 configure:22965: $? = 0 configure:22965: result: yes configure:22965: checking db.h presence configure:22965: x86_64-pc-linux-gnu-gcc -E -D_GNU_SOURCE -DLDAP_CONNECTIONLESS -I/usr/include/db5.3 conftest.c configure:22965: $? = 0 configure:22965: result: yes configure:22965: checking for db.h configure:22965: result: yes configure:22976: checking for Berkeley DB major version in db.h configure:22996: result: none configure:22999: error: Unknown Berkeley DB major version in db.h ================================================================= Package Settings ================================================================= sys-libs/db-5.3.28-r2::gentoo was built with the following: USE="cxx java -doc -examples -tcl -test" ABI_X86="32 64 -x32" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--default-symver" sys-libs/db-6.0.30-r1::gentoo was built with the following: USE="cxx java -doc -examples -tcl -test" ABI_X86="32 64 -x32" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--default-symver"
I can confirm this. Upstream bug is here -> http://www.openldap.org/its/index.cgi?findid=8056 Patch is here -> https://jsynacek.fedorapeople.org/openldap/jsynacek-20150211-fix-libdb-detection-with-gcc-5.patch
net-nds/openldap-2.4.40-r3 merged. with help of the patch from upstream master git: http://www.openldap.org/devel/gitweb.cgi?p=openldap.git;a=commit;h=f19f1c32496f3728c16c13b87d91a912e94bb7b2
This is fixed in openldap-2.4.41 . Please bump. https://bugs.gentoo.org/show_bug.cgi?id=554726
fixed in 2.4.42