Date: Wed, 11 Feb 2004 14:55:18 +0100 (CET) From: Jean-Baptiste Quenot <jb.quenot@caraldi.com> To: FreeBSD-gnats-submit@freebsd.org Cc: khera@kciLink.com Subject: Postfix with LDAP support fails to compile Message-ID: <200402111355.i1BDtIIo027321@oxyd.caraldi.com>
next in thread | raw e-mail | index | archive | help
>Submitter-Id: current-users >Originator: Jean-Baptiste Quenot >Confidential: no >Synopsis: Postfix with LDAP support fails to compile >Severity: serious >Priority: high >Category: ports >Class: sw-bug >Release: FreeBSD 5.1-RELEASE i386 >Environment: System: FreeBSD oxyd.caraldi.com 5.1-RELEASE FreeBSD 5.1-RELEASE #0: Thu Jun 5 02:55:42 GMT 2003 root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386 >Description: When compiling mail/postfix (postfix-2.0.18,1) with OpenLDAP 2.1 support, compilation fails complaining that -lldap was not found. >How-To-Repeat: Compile Postfix with OpenLDAP support. >Fix: Add -L/usr/local/lib when linking: --- /usr/ports/mail/postfix/scripts/configure.postfix.orig Wed Feb 11 13:25:17 2004 +++ /usr/ports/mail/postfix/scripts/configure.postfix Wed Feb 11 13:25:44 2004 @@ -200,7 +200,7 @@ OpenLDAP21) echo "BUILD_DEPENDS+= \${LOCALBASE}/lib/libldap.a:\${PORTSDIR}/net/openldap21-client" echo "POSTFIX_CCARGS+= -DHAS_LDAP -I\${LOCALBASE}/include" - echo "POSTFIX_AUXLIBS+= -lldap -llber" + echo "POSTFIX_AUXLIBS+= -L\${LOCALBASE}/lib -lldap -llber" echo "OPENLDAP_SUFFIX= +openldap21" ;; Test)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200402111355.i1BDtIIo027321>