Re: Postfix and SASL compilation problem

2012-11-10 Thread Sahil Tandon
On Tue, 2012-09-25 at 09:49:53 +0200, Ján Šebošík wrote:
 ...
   +++ dict_ldap.c 2012-09-11 00:22:56.0 +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?

 I'll test it probably today / tomorrow, and let you know later.

Can I assume this was resolved?  Thanks.

-- 
Sahil Tandon
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org

Re: Postfix and SASL compilation problem

2012-09-25 Thread Ján Šebošík
Hi

I'll test it probably today / tomorrow, and let you know later.

Regards,
  Jan

On Tue, Sep 25, 2012 at 3:57 AM, Sahil Tandon
sahil+freebsd-po...@tandon.net wrote:
 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.0 +0200
  +++ dict_ldap.c 2012-09-11 00:22:56.0 +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



-- 
Bc. Ján Šebošík
technické oddelenie
ITM8 - www.itm8.sk
tel: 00421 903 469259
mail: sebo...@itm8.sk
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Postfix and SASL compilation problem

2012-09-24 Thread Sahil Tandon
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.0 +0200
  +++ dict_ldap.c 2012-09-11 00:22:56.0 +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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Postfix and SASL compilation problem

2012-09-12 Thread Ján Šebošík
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@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.0 +0200
 +++ dict_ldap.c 2012-09-11 00:22:56.0 +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
 ###

Kindly regards,
  Jan Sebosik
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Postfix and SASL compilation problem

2012-09-12 Thread Herbert J. Skuhra
On Wed, 12 Sep 2012 21:48:52 +0200
Herbert J. Skuhra hsku...@eumx.net wrote:

 On Wed, 12 Sep 2012 12:36:47 +0200
 Ján Šebošík sebo...@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@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.0 +0200
   +++ dict_ldap.c 2012-09-11 00:22:56.0 +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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org


Re: Postfix and SASL compilation problem

2012-09-12 Thread Herbert J. Skuhra
On Wed, 12 Sep 2012 12:36:47 +0200
Ján Šebošík sebo...@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@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.0 +0200
  +++ dict_ldap.c 2012-09-11 00:22:56.0 +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
___
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to freebsd-ports-unsubscr...@freebsd.org