undefined reference to `__db185_open'

Hi all,
I am trying to compile openldap 1.2.13 but am getting the error during the
make "undefined reference to `__db185_open'". I can't find any solution on
the web and was hoping someone might have a suggestion. I have tried 2.0.25
and 2.1.3, which compile, but wihich give me nothing but trouble when I try
to use the PHP4 ldap functions, but I know 1.2.13 works ok.
/root/openldap-1.2.13/libraries/libldbm.a(ldbm.o): In function `ldbm_open':
/root/openldap-1.2.13/libraries/libldbm/ldbm.c:177: undefined reference to
`__db185_open'
collect2: ld returned 1 exit status
make[4]: *** [slapd] Error 1
Ian