Hello<br><br>May I suggest to change (in file LDAPObject.c )<br><br>> #include <sasl.h><br><br>into <br><br>> #include <sasl/sasl.h><br><br>That way you can change (in file setup.cfg)<br><br>> library_dirs = /usr/local/openldap-
2.3/lib<br>>
include_dirs = /usr/local/openldap-2.3/include /usr/include/sasl<br>
<br>into <br><br>> library_dirs = /usr/local/openldap-2.3/lib<br>>
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'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 <sasl/sasl.h> !<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 Tue Mar 27 22:34:31 2007<br>--- python-ldap-2.3
/Modules/LDAPObject.c Fri Jun 1 01:01:50 2007<br>***************<br>*** 18,24 ****<br> #include "options.h"<br><br> #ifdef HAVE_SASL<br>! #include <sasl.h><br> #endif<br><br> static void free_attrs(char***);
<br>--- 18,24 ----<br> #include "options.h"<br><br> #ifdef HAVE_SASL<br>! #include <sasl/sasl.h><br> #endif<br><br> 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 Wed Nov 15 18:26:26 2006<br>--- python-ldap-2.3/setup.cfg Fri Jun 1 01:02:04 2007<br>***************<br>*** 8,14 ****<br> [_ldap]<br><br> library_dirs = /usr/local/openldap-
2.3/lib<br>! include_dirs = /usr/local/openldap-2.3/include /usr/include/sasl<br><br> extra_compile_args =<br> extra_objects =<br>--- 8,14 ----<br> [_ldap]<br><br> library_dirs = /usr/local/openldap-2.3/lib<br>! include_dirs = /usr/local/openldap-
2.3/include<br><br> extra_compile_args =<br> extra_objects =<br><br clear="all"><br>-- <br>--<br>Alain Spineux<br>aspineux gmail com<br>May the sources be with you<br>