Ah, that makes sense. There's a bug in the libtool script bundled with
OpenLDAP 2.3 that makes it link libdb statically instead of dynamically.
I patched this back in release 2.3.12 but the patch was overwritten in
release 2.3.15 when Kurt imported libtool 1.5.20 into CVS. I believe the
libtool maintainers finally integrated the patch in 1.5.21, we should
probably update our copy again. Perhaps you should file an ITS report for
this issue so it doesn't fall through the cracks again.