Postfix with LDAP support fails to compile
Jean-Baptiste Quenot
jb.quenot at caraldi.com
Wed Feb 11 05:55:21 PST 2004
>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 at 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)
More information about the freebsd-ports
mailing list