Openldap only wants to use BDB 4.2.52 or 4.4. (or 4.6, when it comes out) I would recommend building a BDB exclusively for openldap use and just putting in its own directory. (/usr/local/openldap-2.3.33/include comes to mind)
--Quanah
-- Quanah Gibson-Mount Principal Software Developer ITS/Shared Application Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html