dovecot update : cannot build with LDAP support: ldap library not found

germanopires

Verified User
Joined
Jan 9, 2023
Messages
16
Hello,

I am trying to update dovecot, but without success. I see the following message:
========
configure: error: cannot build with LDAP support: ldap library not found
doDovecot: failed to compile '/usr/local/directadmin/custombuild/cache/dovecot-2.4.1-4.tar.gz' inside '/usr/local/directadmin/custombuild/tmp/tmp.SZjg23QF7A.dovecot-2.4.1-4.tar.gz'
failed to build dovecot
========
I see the libldap
ls -la /usr/lib64/libldap*
lrwxrwxrwx 1 root root 21 Mar 11 05:44 /usr/lib64/libldap-2.4.so.2 -> libldap-2.4.so.2.10.9
-rwxr-xr-x 1 root root 329152 Mar 11 05:44 /usr/lib64/libldap-2.4.so.2.10.9
lrwxrwxrwx 1 root root 23 Mar 11 05:44 /usr/lib64/libldap_r-2.4.so.2 -> libldap_r-2.4.so.2.10.9
-rwxr-xr-x 1 root root 357992 Mar 11 05:44 /usr/lib64/libldap_r-2.4.so.2.10.9
lrwxrwxrwx 1 root root 18 Mar 11 05:44 /usr/lib64/libldap_r.so -> libldap_r-2.4.so.2
lrwxrwxrwx 1 root root 16 Mar 11 05:44 /usr/lib64/libldap.so -> libldap-2.4.so.2
==========
Can anyone help me solve this problem?
Best Regards
 
Hello,

Make sure you've got no custom /usr/local/directadmin/custombuild/custom/dovecot/configure.dovecot and openldap-devel installed

In my case it was the reason of the same error today.
 
now the error has changed:

download_cached: using cached '/usr/local/directadmin/custombuild/cache/dovecot-2.4.1-4.tar.gz' file
Installing dovecot 2.4.1-4 ...
patching file src/lib-master/master-service.c
Hunk #1 succeeded at 760 (offset 274 lines).
/proc/self/fd/3: line 12083: /usr/local/directadmin/custombuild/patches/dovecot-2.4-allow-wildcard-local-name.patch: No such file or directory
doDovecot: failed to compile '/usr/local/directadmin/custombuild/cache/dovecot-2.4.1-4.tar.gz' inside '/usr/local/directadmin/custombuild/tmp/tmp.cw0CzrgVpV.dovecot-2.4.1-4.tar.gz'
failed to build dovecot
 
I managed to solve it. I don't know if it's the best solution. I created an empty file in /usr/local/directadmin/custombuild/patches/ with the name dovecot-2.4-allow-wildcard-local-name.patch
 
Back
Top