courier-0.59.0 fails to build if useflag ldap is *deactivated*, but openldap is nevertheless installed: ============ %< =============== === configuring in ldapaddressbook (/var/tmp/portage/portage/mail-mta/courier-0.59.0/work/courier-0.59.0/ldapaddressbook) configure: running /bin/sh ./configure '--prefix=/usr' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--disable-root-check' '--mandir=/usr/share/man' '--sysconfdir=/etc/courier' '--libexecdir=/usr/lib/courier' '--datadir=/usr/share/courier' '--sharedstatedir=/var/lib/courier/com' '--localstatedir=/var/lib/courier' '--with-piddir=/var/run/courier' '--with-authdaemonvar=/var/lib/courier/authdaemon' '--with-mailuser=mail' '--with-mailgroup=mail' '--with-paranoid-smtpext' '--with-db=gdbm' '--disable-autorenamesent' '--host=i686-pc-linux-gnu' '--without-ipv6' '--without-ldapaliasd' '--disable-maildropldap' '--without-ispell' '--enable-mimetypes=/etc/mime.types' '--with-fam' 'debug=true' '--build=i686-pc-linux-gnu' 'build_alias=i686-pc-linux-gnu' 'host_alias=i686-pc-linux-gnu' 'CFLAGS=-O2 -march=pentium2 -mtune=i686 -pipe -msse -mfpmath=sse -mmmx -msse2 -foptimize-sibling-calls -fprefetch-loop-arrays -falign-functions=32 -floop-optimize' 'LDFLAGS=-Wl,-O1' 'CPPFLAGS=' 'CXXFLAGS=-O2 -march=pentium2 -mtune=i686 -pipe -msse -mfpmath=sse -mmmx -msse2 -foptimize-sibling-calls -fprefetch-loop-arrays -falign-functions=32 -floop-optimize -fno-default-inline' 'FFLAGS=' '--with-makedatprog=/usr/lib/courier/courier/makedatprog' '--with-package=courier' '--with-version=0.59.0' '--with-courierlogger=/usr/sbin/courierlogger' '--with-mailuid=8' '--with-mailgid=12' '--enable-trusted-groups=mail' '--with-formdata' '--enable-utf7-folder-encoding' '--enable-unicode' '--with-webadmindir=/usr/share/courier/courierwebadmin' --cache-file=/var/tmp/portage/portage/mail-mta/courier-0.59.0/work/courier-0.59.0/configuring.cache --srcdir=. configure: loading cache /var/tmp/portage/portage/mail-mta/courier-0.59.0/work/courier-0.59.0/configuring.cache [snip] checking lber.h presence... yes checking for lber.h... yes checking for ldap.h... yes configure: error: ldap.h header found, but a test compile failed -- check ldapaddressbook/config.log for more details configure: error: ./configure failed for ldapaddressbook !!! Please attach the following file when seeking support: !!! /var/tmp/portage/portage/mail-mta/courier-0.59.0/work/courier-0.59.0/config.log * * ERROR: mail-mta/courier-0.59.0 failed. * Call stack: * ebuild.sh, line 49: Called src_compile * environment, line 2890: Called econf 'src_compile' 'src_compile' '--prefix=/usr' '--disable-root-check' '--mandir=/usr/share/man' '--sysconfdir=/etc/courier' '--libexecdir=/usr/lib/courier' '--datadir=/usr/share/courier' '--sharedstatedir=/var/lib/courier/com' '--localstatedir=/var/lib/courier' '--with-piddir=/var/run/courier' '--with-authdaemonvar=/var/lib/courier/authdaemon' '--with-mailuser=mail' '--with-mailgroup=mail' '--with-paranoid-smtpext' '--with-db=gdbm' '--disable-autorenamesent' '--cache-file=/var/tmp/portage/portage/mail-mta/courier-0.59.0/work/courier-0.59.0/configuring.cache' '--host=i686-pc-linux-gnu' '--without-ipv6' '--without-ldapaliasd' '--disable-maildropldap' '--without-ispell' '--enable-mimetypes=/etc/mime.types' * ebuild.sh, line 513: Called die * The specific snippet of code: * die "econf failed" * The die message: * econf failed * * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/var/log/portage/mail-mta:courier-0.59.0:20081007-145507.log'. * The ebuild environment file is located at '/var/tmp/portage/portage/mail-mta/courier-0.59.0/temp/environment'. * ============ %< ======================= The presence of ldap.h does not mean that ldap support should automatically included, the -ldap use flag must be respected. Reproducible: Always Steps to Reproduce: 1. emerge openldap 2. set use flags for courier to (crypt fam nls pam -fax -ipv6 -ldap -mailwrapper -mysql -norewrite -postgres -spell -web -webmail) 3. emerge courier Actual Results: Build fails Expected Results: Courier should have been built and installed without ldap support.
configure: error: ldap.h header found, but a test compile failed -- check ldapaddressbook/config.log for more details Please attach both of: 1) /var/tmp/portage/portage/mail-mta/courier-0.59.0/work/courier-0.59.0/config.log 2) /var/tmp/portage/portage/mail-mta/courier-0.59.0/work/courier-0.59.0/ldapaddressbook/config.log to this bug report.
I tried to create those files again, but I cannot. I unmerged openldap and emerged courier already. For your request I emerged openldap again and remerged courier ... this time the build went fine. So this problem was not reproducable :-/