Benjamin Bellec writes:
BDB 4.2 is the problem. My server use BDB 4.3 and I don't now how
tell OpenLDAP to use BDB 4.2 instead of 4.3.
./configure CPPFLAGS='-I<whatever/include>' \
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