For the record, this bug is not exactly pidgin-otr's fault. It's a "feature" of libgcrypt, by which it can't be used as a shared library by more than one client in the same program (it uses unprotected global variables). libldap and pidgin-otr both use libgcrypt, thus when you use both in pidgin, it goes kaboom. This problem seems to be mostly ignored on libgcrypt's side though.
For the record, this bug is not exactly pidgin-otr's fault. It's a "feature" of libgcrypt, by which it can't be used as a shared library by more than one client in the same program (it uses unprotected global variables). libldap and pidgin-otr both use libgcrypt, thus when you use both in pidgin, it goes kaboom. This problem seems to be mostly ignored on libgcrypt's side though.