Benjamin Bellec writes:
BDB 4.2 is the problem. My server use BDB 4.3 and I don't now how to tell OpenLDAP to use BDB 4.2 instead of 4.3.
./configure CPPFLAGS='-I<whatever/include>' \ LDFLAGS='-L<whatever/lib> -Wl,-rpath,<whatever/lib>'
where whatever/ has the bdb 4.2 installation, so that version's db.h comes before version 4.3's db.h in the include path. Might need something else than "-Wl,-rpath," - that depends on your OS/compiler. The -L says where to find libraries at compile time and -Wl,-rpath, tells the executable where to find the same libraries at runtime.