Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2012 21:57:07 -0400
From:      Sahil Tandon <sahil+freebsd-ports@tandon.net>
To:        sebosik@itm8.sk
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Postfix and SASL compilation problem
Message-ID:  <20120925015707.GA7874@magic.hamla.org>
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, 2012-09-12 at 12:36:47 +0200, Ján Šebošík wrote:

> while I was trying to build ports/mail/postfix, the problem occured
> in file ./work/postfix-2.9.4/src/global/dict_ldap.c.
> 
> 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

Rather, the idiomatic approach is to add ${LOCALBASE}/include/sasl to
the preprocessor's include path.  This is done when WITH_SASL2 is
defined.  Does that produce undesirable results in your environment?

PS: sorry for the delayed reply; I hope to be quicker in response to
    any follow-ups.

-- 
Sahil Tandon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120925015707.GA7874>