Trouble compiling python-ldap: LDAP_SASL_QUIET

Paul_S_Johnson at mnb.uscourts.gov Paul_S_Johnson at mnb.uscourts.gov
Mon Apr 18 23:22:18 CEST 2005


I hit an error when trying to build python-ldap. The first error 
encountered:

     Modules/LDAPObject.c:574: error: `LDAP_SASL_QUIET' undeclared (first 
use in this function)

I am using Cyrus SASL on Solaris 9 SPARC 64-bit.  I had to compile Cyrus 
with the switch "--with-des=no" due to an error I was not able to resolve. 
 I am hoping this is not the cause. Any ideas?

Thanks,

Paul.

Compilation output:
=================================================================
mnbweb6 # python setup.py build
extra_compile_args:
extra_objects:
include_dirs: /usr/local/openldap-OPENLDAP_REL_ENG_2_2/include 
/usr/local/sasl/include/sasl /usr/include/sasl /usr/local/include/sasl
library_dirs: /usr/local/openldap-OPENLDAP_REL_ENG_2_2/lib 
/usr/local/sasl/lib /usr/local/lib/sasl2
libs: ldap_r lber ssl crypto sasl2
running build
running build_py
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
running build_ext
building '_ldap' extension
/usr/local/bin/gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall 
-Wstrict-prototypes -fPIC -DHAVE_LIBLDAP_R -DHAVE_SASL -DHAVE_TLS 
-DLDAPMODULE_VERSION=2.0.6 -IModules 
-I/usr/local/openldap-OPENLDAP_REL_ENG_2_2/include 
-I/usr/local/sasl/include/sasl -I/usr/include/sasl 
-I/usr/local/include/sasl -I/usr/local/include/sasl 
-I/usr/local/include/python2.3 -c Modules/LDAPObject.c -o 
build/temp.solaris-2.9-sun4u-2.3/Modules/LDAPObject.o
In file included from Modules/LDAPObject.c:20:
/usr/local/include/sasl/sasl.h:343: warning: function declaration isn't a 
prototype
Modules/LDAPObject.c: In function `interaction':
Modules/LDAPObject.c:497: warning: unused variable `dflt'
Modules/LDAPObject.c: In function `l_ldap_sasl_interactive_bind_s':
Modules/LDAPObject.c:574: error: `LDAP_SASL_QUIET' undeclared (first use 
in this function)
Modules/LDAPObject.c:574: error: (Each undeclared identifier is reported 
only once
Modules/LDAPObject.c:574: error: for each function it appears in.)
Modules/LDAPObject.c:593: warning: implicit declaration of function 
`ldap_sasl_interactive_bind_s'
Modules/LDAPObject.c:564: warning: unused variable `cred'
Modules/LDAPObject.c:571: warning: unused variable `version'
Modules/LDAPObject.c:573: warning: unused variable `defaults'
Modules/LDAPObject.c: In function `l_ldap_start_tls_s':
Modules/LDAPObject.c:901: warning: implicit declaration of function 
`ldap_start_tls_s'
Modules/LDAPObject.c: In function `l_ldap_passwd':
Modules/LDAPObject.c:1003: warning: implicit declaration of function 
`ldap_passwd'
Modules/LDAPObject.c: At top level:
Modules/LDAPObject.c:980: warning: `l_ldap_passwd' defined but not used
error: command '/usr/local/bin/gcc' failed with exit status 1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20050418/4b3269a4/attachment.html>


More information about the python-ldap mailing list