Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Sep 2012 21:48:52 +0200
From:      "Herbert J. Skuhra" <hskuhra@eumx.net>
To:        freebsd-ports@freebsd.org
Subject:   Re: Postfix and SASL compilation problem
Message-ID:  <86ehm76mzf.wl%hskuhra@eumx.net>
In-Reply-To: <CAK%2BpXF2fOASnXir71FX0mzxfEfcKaHTLfjSXZ0AJeK26cDGU=A@mail.gmail.com>
References:  <CAK%2BpXF2fOASnXir71FX0mzxfEfcKaHTLfjSXZ0AJeK26cDGU=A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 12 Sep 2012 12:36:47 +0200
J=C3=A1n =C5=A0ebo=C5=A1=C3=ADk <sebosik@itm8.sk> 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 SAS=
L
> support - both client & server):
> =

>  root@s1:/home/devel/ports/mail/postfix # make showconfig
>  =3D=3D=3D> The following configuration options are available for pos=
tfix-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 <sasl/sasl.h>
> =

>  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 should =
be fine.
>     */
>  -#include <sasl.h>
>  +#include <sasl/sasl.h>
>   #endif
>  ###################

This change will break WITH_SASL2.

I think you only have to enable WITH_SASL2 when you use
WITH_LDAP_SASL. Builds fine here.

-- =

Herbert



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ehm76mzf.wl%hskuhra>