I recently installed the openldap on my AMD-64 machine (dual Opterons). I can successfully start slapd if I configure openldap to use an "ldbm" database. "bdb" (Berkley DB) databases are now recommended. If I take a working configuration and simply change the database configuration from "ldbm" to "bdb", the following console output is returned: <lots of "normal" output precedes this> $ supportedControl $ structuralObjectClass $ objectClass ) ) slapd startup: initiated. bdb_db_open: dc=thomas-home,dc=org bdb_db_open: dbenv_open(/var/lib/openldap-bdb) bdb(dc=thomas-home,dc=org): architecture lacks fast mutexes: applications cannot be threaded bdb_db_open: dbenv_open failed: Invalid argument (22) backend_startup: bi_db_open(0) failed! (22) slapd shutdown: initiated ====> bdb_cache_release_all slapd shutdown: freeing system resources. bdb(dc=thomas-home,dc=org): txn_checkpoint interface requires an environment configured for the transaction subsystem bdb_db_destroy: txn_checkpoint failed: Invalid argument (22) ====> bdb_cache_release_all slapd stopped. connections_destroy: nothing to destroy. As you can see, it fails while trying to accesss bdb. The problem appears to be related to "fast mutexes" (whatever those are) not being available which causes some type of threading problem for bdb. I did attempt this same process on an x86 machine running Gentoo and openldap starts normally with a bdb database. Reproducible: Always Steps to Reproduce: 1.emerge openldap 2.configure slapd.conf to use "bdb" database (as recommended) 3.slapd -d 255 Actual Results: <lots of "normal" output precedes this> $ supportedControl $ structuralObjectClass $ objectClass ) ) slapd startup: initiated. bdb_db_open: dc=thomas-home,dc=org bdb_db_open: dbenv_open(/var/lib/openldap-bdb) bdb(dc=thomas-home,dc=org): architecture lacks fast mutexes: applications cannot be threaded bdb_db_open: dbenv_open failed: Invalid argument (22) backend_startup: bi_db_open(0) failed! (22) slapd shutdown: initiated ====> bdb_cache_release_all slapd shutdown: freeing system resources. bdb(dc=thomas-home,dc=org): txn_checkpoint interface requires an environment configured for the transaction subsystem bdb_db_destroy: txn_checkpoint failed: Invalid argument (22) ====> bdb_cache_release_all slapd stopped. connections_destroy: nothing to destroy. Expected Results: normal startup of openldap using Berkley DB database
Workaround available, lowering to major...
Workaround available, closing.