Postfix and SASL compilation problem

Herbert J. Skuhra hskuhra at eumx.net
Wed Sep 12 20:07:28 UTC 2012


On Wed, 12 Sep 2012 21:48:52 +0200
"Herbert J. Skuhra" <hskuhra at eumx.net> wrote:

> On Wed, 12 Sep 2012 12:36:47 +0200
> Ján Šebošík <sebosik at 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 SASL
> > support - both client & server):
> > 
> >  root at s1:/home/devel/ports/mail/postfix # make showconfig
> >  ===> The following configuration options are available for postfix-2.9.4,1:
> >       PCRE=on: Perl Compatible Regular Expressions
> >       SASL2=off: Cyrus SASLv2 (Simple Auth. and Sec. Layer)
> >       DOVECOT=off: Dovecot 1.x SASL authentication method
> >       DOVECOT2=on: Dovecot 2.x SASL authentication method
> >       SASLKRB5=off: If your SASL req. Kerberos5, select this
> >       SASLKMIT=off: If your SASL req. MIT Kerberos5, select this
> >       TLS=on: Enable SSL and TLS support
> >       BDB=on: Berkeley DB (uses WITH_BDB_VER)
> >       MYSQL=off: MySQL maps (uses WITH_MYSQL_VER)
> >       PGSQL=off: PostgreSQL maps (uses DEFAULT_PGSQL_VER)
> >       SQLITE=on: SQLite maps
> >       OPENLDAP=on: OpenLDAP maps (uses WITH_OPENLDAP_VER)
> >       LDAP_SASL=on: Enable OpenLDAP client-to-server SASL auth
> >       CDB=off: CDB maps lookups
> >       NIS=off: NIS maps lookups
> >       VDA=on: VDA (Virtual Delivery Agent 32Bit)
> >       TEST=off: SMTP/LMTP test server and generator
> >       SPF=on: SPF support (via libspf2 1.2.x)
> >       INST_BASE=off: Install into /usr and /etc/postfix
> >  ===> 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.

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


More information about the freebsd-ports mailing list