configure: error: library 'ldap_r' is required for LDAP make[1]: *** [/usr/src/libreoffice-4.1.4.2/workdir/unxlngx6.pro/ExternalProject/postgresql/build] 错误 1

The error below occured when doing make command.How deal with it ? THANKS !

checking for ldap_bind in -lldap… yes
checking for ldap_simple_bind in -lldap_r… no
configure: error: library ‘ldap_r’ is required for LDAP make[1]: *** [/usr/src/libreoffice-4.1.4.2/workdir/unxlngx6.pro/ExternalProject/postgresql/build] error 1

It looks like you are compiling LibreOffice from source. Did you check whether the ldap_r library is in your build path?

I wonder, why nobody answered. At least in my case (same error, libreoffice- 5.0.2.2) this patch (which I’m not allowed to upload due to some missing “points”) fixed it: http://pastebin.com/NULYyZ6r

Cheers
Donald