ports/62690: Postfix with LDAP support fails to compile

Jean-Baptiste Quenot jb.quenot at caraldi.com
Wed Feb 11 14:00:26 UTC 2004


>Number:         62690
>Category:       ports
>Synopsis:       Postfix with LDAP support fails to compile
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 11 06:00:25 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Jean-Baptiste Quenot
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
>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)

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list