OpenLDAP 2.4.21 uses the wrong Berkeley DB version, causing it to fail when starting slapd. This is the error that is put in /var/log/messages May 6 13:40:33 CYBERTINUS slapd[24095]: bdb_back_initialize: BDB library version mismatch: expected Berkeley DB 4.8.26: (2010-03-15), got Berkeley DB 4.8.30: (2010-05-06) Reproducible: Always Steps to Reproduce: 1. Install the unstable OpenLDAP 2.4.21 package 2. Start slapd (/etc/init.d/slapd start) Actual Results: slapd fails to start with the following error message in /var/log/messages: May 6 13:40:33 CYBERTINUS slapd[24095]: bdb_back_initialize: BDB library version mismatch: expected Berkeley DB 4.8.26: (2010-03-15), got Berkeley DB 4.8.30: (2010-05-06) Expected Results: slapd should started without problems The previous release (2.4.19-r1) works without problems, so a good workarround is masking =net-nds/openldap-2.4.21 for the time being.
Similar problem in Archlinux: http://bugs.archlinux.org/task/17983 It was solved by openldap 2.4.21 rebuild, so looks like you just need to rebuild openldap against db-4.8.30...
Ah yes. Indeed. After a rebuild of the openldap package the problem is gone. I installed openldap, and didn't do anything with it. A day later (after I updated my computer) I started doing stuff with openldap again, so I didn't noticed the system-libs/db upgrade I did and made no connection to that update when I saw this error in openldap. I also didn't know that the package sys-libs/db is Berkely DB. And I thought that the Berkeley DB driver was something that was included in OpenLDAP. A bit like the SQLite library. Guess I was wrong there to :). I've set the bugstatus to invalid myself now, because it obviously is :). Sry to waste everybody's time.