From owner-freebsd-ports@FreeBSD.ORG Wed Feb 11 05:55:21 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9800516A4CE; Wed, 11 Feb 2004 05:55:21 -0800 (PST) Received: from oxyd.caraldi.com (195-137-249-52.ovanet.net [195.137.249.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D68043D31; Wed, 11 Feb 2004 05:55:21 -0800 (PST) (envelope-from jbq@oxyd.caraldi.com) Received: from oxyd.caraldi.com (localhost.sd.oxyd.fr [127.0.0.1]) by oxyd.caraldi.com (Postfix) with ESMTP id 83C9E21A1; Wed, 11 Feb 2004 14:55:19 +0100 (CET) Received: (from jbq@localhost) by oxyd.caraldi.com (8.12.9/8.12.9/Submit) id i1BDtIIo027321; Wed, 11 Feb 2004 14:55:18 +0100 (CET) Date: Wed, 11 Feb 2004 14:55:18 +0100 (CET) Message-Id: <200402111355.i1BDtIIo027321@oxyd.caraldi.com> To: FreeBSD-gnats-submit@freebsd.org From: Jean-Baptiste Quenot X-send-pr-version: 3.113 X-GNATS-Notify: cc: ports@freebsd.org cc: khera@kciLink.com Subject: Postfix with LDAP support fails to compile X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2004 13:55:21 -0000 >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)