From owner-freebsd-ports@FreeBSD.ORG Wed Sep 12 20:07:28 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1C8C2106566B for ; Wed, 12 Sep 2012 20:07:28 +0000 (UTC) (envelope-from hskuhra@eumx.net) Received: from eumx.net (eumx.net [91.82.101.43]) by mx1.freebsd.org (Postfix) with ESMTP id BB80C8FC08 for ; Wed, 12 Sep 2012 20:07:27 +0000 (UTC) Received: from localhost ([127.0.0.1]:58707 helo=eumx.net) by eumx.net with esmtp (Exim 4.72) (envelope-from ) id 1TBtDa-00032c-F8 for freebsd-ports@freebsd.org; Wed, 12 Sep 2012 20:07:26 +0000 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=eumx.net; h=date :message-id:from:to:subject:in-reply-to:references:mime-version :content-type:content-transfer-encoding; s=default; bh=W5nXmU2YR KiXczkvWPgQXer2Bbc=; b=VsLV1yQoQiLah8sNQrmsVM28DWOELT4GCb8gUWB9Y czYaOy0qA4MsYyPjVZEBM9zPK2j0TiltC/ixVzxj5f9YBgqP1hAglKnsk4Dv1/fc /uORpvEpHfQnC+Q06Tu7JeC6NRjAwwUWtNECfVM/bjmRZ6raOgrcsdbeTp25EhLI Os= DomainKey-Signature: a=rsa-sha1; c=nofws; d=eumx.net; h=date:message-id :from:to:subject:in-reply-to:references:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=oWI Ha008pZlD4QcZL3HDtNUIbaX48oQHgmb01/APxVdljSGTNHNXEjoWcvqkPFUN9Nq hAnkVgdyZTiEzWcIiGNhYYrEkhP1vEiVcLufvhcW5Tusx/I7vP65OpC5TiKbKyS6 I7bqpDqE9iehBoHhpmrOOzstLQOGTNZnNcKwR0+E= Received: from [188.118.228.74] (port=52886 helo=oslo.ath.cx) by eumx.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TBtDa-00032Z-3p for freebsd-ports@freebsd.org; Wed, 12 Sep 2012 20:07:26 +0000 Date: Wed, 12 Sep 2012 22:07:25 +0200 Message-ID: <86d31r6m4i.wl%hskuhra@eumx.net> From: "Herbert J. Skuhra" To: freebsd-ports@freebsd.org In-Reply-To: <86ehm76mzf.wl%hskuhra@eumx.net> References: <86ehm76mzf.wl%hskuhra@eumx.net> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/24.2.50 (i386-pc-freebsd9.1) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Postfix and SASL compilation problem X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2012 20:07:28 -0000 On Wed, 12 Sep 2012 21:48:52 +0200 "Herbert J. Skuhra" wrote: > On Wed, 12 Sep 2012 12:36:47 +0200 > J=C3=A1n =C5=A0ebo=C5=A1=C3=ADk wrote: > = > > Hi all > > = > > while I was trying to build ports/mail/postfix, the problem occured= > > in file ./work/postfix-2.9.4/src/global/dict_ldap.c. > > = > > Here is my Postfix port configuration (FYI: LDAP is compiled with S= ASL > > support - both client & server): > > = > > root@s1:/home/devel/ports/mail/postfix # make showconfig > > =3D=3D=3D> The following configuration options are available for p= ostfix-2.9.4,1: > > PCRE=3Don: Perl Compatible Regular Expressions > > SASL2=3Doff: Cyrus SASLv2 (Simple Auth. and Sec. Layer) > > DOVECOT=3Doff: Dovecot 1.x SASL authentication method > > DOVECOT2=3Don: Dovecot 2.x SASL authentication method > > SASLKRB5=3Doff: If your SASL req. Kerberos5, select this > > SASLKMIT=3Doff: If your SASL req. MIT Kerberos5, select this > > TLS=3Don: Enable SSL and TLS support > > BDB=3Don: Berkeley DB (uses WITH_BDB_VER) > > MYSQL=3Doff: MySQL maps (uses WITH_MYSQL_VER) > > PGSQL=3Doff: PostgreSQL maps (uses DEFAULT_PGSQL_VER) > > SQLITE=3Don: SQLite maps > > OPENLDAP=3Don: OpenLDAP maps (uses WITH_OPENLDAP_VER) > > LDAP_SASL=3Don: Enable OpenLDAP client-to-server SASL auth > > CDB=3Doff: CDB maps lookups > > NIS=3Doff: NIS maps lookups > > VDA=3Don: VDA (Virtual Delivery Agent 32Bit) > > TEST=3Doff: SMTP/LMTP test server and generator > > SPF=3Don: SPF support (via libspf2 1.2.x) > > INST_BASE=3Doff: Install into /usr and /etc/postfix > > =3D=3D=3D> Use 'make config' to modify these settings > > = > > Line 232 in postfix-2.9.4/src/global/dict_ldap.c doesn't contain > > proper path to sasl.h header file on FreeBSD. > > Fixed line should look like this: #include > > = > > Here is the patch: > > ################### > > --- dict_ldap.c.old 2012-09-11 00:39:40.000000000 +0200 > > +++ dict_ldap.c 2012-09-11 00:22:56.000000000 +0200 > > @@ -229,7 +229,7 @@ > > /* > > * SASL headers, for sasl_interact_t. Either SASL v1 or v2 shoul= d be fine. > > */ > > -#include > > +#include > > #endif > > ################### > = > This change will break WITH_SASL2. This is nonsense. Please ignore this part of my reply. :) = > I think you only have to enable WITH_SASL2 when you use > WITH_LDAP_SASL. Builds fine here. -- = Herbert