python-ldap 2.0.0pre04 Installation problem

Isabelle Moullet Isabelle.Moullet at ci.unil.ch
Tue Jul 2 11:00:16 CEST 2002


Bonjour,

I got the following error message as I tried to install python-ldap 2.0.0pre04

release on a 2.8 Solaris machine with the command :python setup.py build

( I use python 2.0)

 super at cisun50$ python setup.py build

running build
running build_py
warning: build_py: file Lib/ldap.py (for module ldap) not found
creating build
creating build/lib.solaris-2.8-sun4u-2.0
creating build/lib.solaris-2.8-sun4u-2.0/ldap
copying Lib/ldap/__init__.py -> build/lib.solaris-2.8-sun4u-2.0/ldap
copying Lib/ldap/async.py -> build/lib.solaris-2.8-sun4u-2.0/ldap
copying Lib/ldap/functions.py -> build/lib.solaris-2.8-sun4u-2.0/ldap
copying Lib/ldap/ldapobject.py -> build/lib.solaris-2.8-sun4u-2.0/ldap
copying Lib/ldap/modlist.py -> build/lib.solaris-2.8-sun4u-2.0/ldap
copying Lib/ldapurl.py -> build/lib.solaris-2.8-sun4u-2.0
copying Lib/ldif.py -> build/lib.solaris-2.8-sun4u-2.0
warning: build_py: file Lib/ldap.py (for module ldap) not found
running build_ext
building '_ldap' extension
creating build/temp.solaris-2.8-sun4u-2.0
creating build/temp.solaris-2.8-sun4u-2.0/Modules
cc -O -DLDAP_TYPE_IS_OPAQUE -DHAVE_LDAP_DESTROY_CACHE -DHAVE_LDAP_DISABLE_CACHE-DHAVE_LDAP_ENABLE_CACHE -DHAVE_LDAP_FLUSH_CACHE -DHAVE_LDAP_MODRDN2 -DHAVE_LDA_MODRDN2_S -DHAVE_LDAP_SET_CACHE_OPTIONS -DHAVE_LDAP_START_TLS_S -DHAVE_LDAP_UNACHE_ENTRY -DHAVE_LDAP_UNCACHE_REQUEST -DLDAPMODULE_VERSION=2.0.0pre04 -IModule -I/usr/local/include -I/usr/local/include/python2.0 -c Modules/LDAPObject.c -obuild/temp.solaris-2.8-sun4u-2.0/Modules/LDAPObject.o
"Modules/LDAPObject.c", line 900: warning: syntax error:  empty declaration
"Modules/LDAPObject.c", line 918: undefined symbol: LDAP_CONTROL_MANAGEDSAIT
"Modules/LDAPObject.c", line 918: warning: improper pointer/integer combination op "="
"Modules/LDAPObject.c", line 936: warning: syntax error:  empty declaration
cc: acomp failed for Modules/LDAPObject.c
error: command 'cc' failed with exit status 2

Is it normal he could not find th efile Lib/ldap.py ?

Here is my setup.cfg file

# Section for compiling the C extension module
# for wrapping OpenLDAP 2 libs

[_ldap]
class = OpenLDAP2
library_dirs = /usr/local/lib
include_dirs = /usr/local/include
libs = lber ldap resolv

# Installation options

[install]

compile = 1
optimize = 1

Thanks a lof for your help..

--
Isabelle Moullet
Centre Informatique
Universite de Lausanne
email: isabelle.moullet at ci.unil.ch


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ldap/attachments/20020702/d316046c/attachment.html>


More information about the python-ldap mailing list