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.
_______________________________________________
dovecot mailing list -- [email protected]
To unsubscribe send an email to [email protected]