Pigeonhole 2.4.2 build failure: cannot find -ldovecot-ldap even without LDAP support
Hi,
I'm building Pigeonhole 2.4.2 (fresh tarball from https://pigeonhole.dovecot.org/releases/2.4/dovecot-pigeonhole-2.4.2.tar.gz) against Dovecot 2.4.2 compiled without LDAP support (--without-ldap during Dovecot configure, no libdovecot-ldap.so present).
The build fails at linking libdovecot-sieve.la:
_CC ext-fileinto.lo_ _CC ext-reject.lo_ _..._ _CC sieve.lo_ _CCLD libdovecot-sieve.la_ _/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld: cannot find -ldovecot-ldap_ _collect2: error: ld returned 1 exit status_ _make[4]: *** [Makefile:757: libdovecot-sieve.la] Error 1_
NEWS confirms the fix is included:
- sieve-ldap-storage: Fix compile without LDAP.
Steps tried:
* make distclean && ./configure --with-dovecot=/usr/local/apps/dovecot
--with-ldap=no * Confirmed no openldap-devel influencing detection (or temporarily removed) * Fresh source extract, no prior build artifacts
Configure output shows LDAP as disabled (or paste relevant lines if different).
Is there an additional flag needed, or is this a regression/edge case in 2.4.2? Any patch or workaround would be appreciated.
System: RHEL-like (devtoolset-11/gcc 11), Dovecot prefix /usr/local/apps/dovecot.
-- Thanks and Regards, Adesh Rane
Hi,
I'm building Pigeonhole 2.4.2 (fresh tarball from [1]https://pigeonhole.dovecot.org/releases/2.4/dovecot-pigeonhole-2.4.2.tar.gz) against Dovecot 2.4.2 compiled without LDAP support (--without-ldap during Dovecot configure, no libdovecot-ldap.so present).
The build fails at linking libdovecot-sieve.la:
CC ext-fileinto.lo
CC ext-reject.lo
...
CC sieve.lo
CCLD libdovecot-sieve.la
/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/ld:
cannot find -ldovecot-ldap
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:757: libdovecot-sieve.la] Error 1
NEWS confirms the fix is included:
- sieve-ldap-storage: Fix compile without LDAP.
Steps tried:
o make distclean && ./configure --with-dovecot=/usr/local/apps/dovecot
--with-ldap=no
o Confirmed no openldap-devel influencing detection (or temporarily
removed)
o Fresh source extract, no prior build artifacts
Configure output shows LDAP as disabled (or paste relevant lines if different).
Is there an additional flag needed, or is this a regression/edge case in 2.4.2? Any patch or workaround would be appreciated.
System: RHEL-like (devtoolset-11/gcc 11), Dovecot prefix /usr/local/apps/dovecot.
-- Thanks and Regards, Adesh Rane
References
Visible links
participants (1)
-
Adesh