Hello<br><br>May I suggest to change (in file LDAPObject.c )<br><br>&gt; #include &lt;sasl.h&gt;<br><br>into <br><br>&gt; #include &lt;sasl/sasl.h&gt;<br><br>That way you can change (in file setup.cfg)<br><br>&gt;&nbsp; library_dirs = /usr/local/openldap-
2.3/lib<br>&gt;&nbsp;
include_dirs = /usr/local/openldap-2.3/include /usr/include/sasl<br>
<br>into <br><br>&gt;&nbsp; library_dirs = /usr/local/openldap-2.3/lib<br>&gt;&nbsp;
include_dirs = /usr/local/openldap-2.3/include<br><br>That way gcc will use its own header location and not use the<br>one installed in /usr/include/sasl by any linux distribution<br>This is useful when having multiple version of gcc ...
<br><br>That way on my own system I don&#39;t need tu update setup.cfg.<br>I hope this will do the same for lot of other user.<br>I looked in cyrus-imapd source, all files use &lt;sasl/sasl.h&gt; !<br><br><br>Here is the patch 
<br><br>Best regards.<br><br>Alain<br><br><br>diff -r -c python-ldap-2.3.orig/Modules/LDAPObject.c python-ldap-2.3/Modules/LDAPObject.c<br>*** python-ldap-2.3.orig/Modules/LDAPObject.c&nbsp;&nbsp; Tue Mar 27 22:34:31 2007<br>--- python-ldap-2.3
/Modules/LDAPObject.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Fri Jun&nbsp; 1 01:01:50 2007<br>***************<br>*** 18,24 ****<br>&nbsp; #include &quot;options.h&quot;<br><br>&nbsp; #ifdef HAVE_SASL<br>! #include &lt;sasl.h&gt;<br>&nbsp; #endif<br><br>&nbsp; static void free_attrs(char***);
<br>--- 18,24 ----<br>&nbsp; #include &quot;options.h&quot;<br><br>&nbsp; #ifdef HAVE_SASL<br>! #include &lt;sasl/sasl.h&gt;<br>&nbsp; #endif<br><br>&nbsp; static void free_attrs(char***);<br>diff -r -c python-ldap-2.3.orig/setup.cfg python-ldap-2.3
/setup.cfg<br>*** python-ldap-2.3.orig/setup.cfg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Wed Nov 15 18:26:26 2006<br>--- python-ldap-2.3/setup.cfg&nbsp;&nbsp; Fri Jun&nbsp; 1 01:02:04 2007<br>***************<br>*** 8,14 ****<br>&nbsp; [_ldap]<br><br>&nbsp; library_dirs = /usr/local/openldap-
2.3/lib<br>! include_dirs = /usr/local/openldap-2.3/include /usr/include/sasl<br><br>&nbsp; extra_compile_args =<br>&nbsp; extra_objects =<br>--- 8,14 ----<br>&nbsp; [_ldap]<br><br>&nbsp; library_dirs = /usr/local/openldap-2.3/lib<br>! include_dirs = /usr/local/openldap-
2.3/include<br><br>&nbsp; extra_compile_args =<br>&nbsp; extra_objects =<br><br clear="all"><br>-- <br>--<br>Alain Spineux<br>aspineux gmail com<br>May the sources be with you<br>