Postfix and SASL compilation problem
Sahil Tandon
sahil+freebsd-ports at tandon.net
Tue Sep 25 01:57:16 UTC 2012
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
More information about the freebsd-ports
mailing list