I can't build python-ldap-2.3.5. What should I do ?
My steps:
- downloaded the 2.3.5 tarball from sourceforge
- tar xvzf ...
- python setup.py build
- The error and output messages are attached to this email.
My setup:
- Python 2.5.2
- libldap-2.4-2 (ubuntu package version = 2.4.9-0ubuntu0.8.04.1, same
for slapd)
- Ubuntu hardy
Tell me if you need any other piece of info.
By the way, I first met this problem when trying to refresh a Plone
buildout (PloneUserFolder has a python-ldap dependency). Which lead me
to this post on a blog :
http://boz.tumblr.com/post/43534569/error-couldnt-install-python-ldap-2-3-5
But I am not happy enough with the workaround suggested there.
By the way #2 : there is no web archive of this list ?
Thanks.
-- Sig
$ python ./setup.py build
extra_compile_args:
extra_objects:
include_dirs: /usr/local/openldap-2.3/include /usr/include/sasl
library_dirs: /usr/local/openldap-2.3/lib
libs: ldap_r lber sasl2 ssl crypto
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 egg_info
writing requirements to Lib/python_ldap.egg-info/requires.txt
writing Lib/python_ldap.egg-info/PKG-INFO
writing top-level names to Lib/python_ldap.egg-info/top_level.txt
writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt
file Lib/ldap.py (for module ldap) not found
file Lib/ldap/schema.py (for module ldap.schema) not found
reading manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'Makefile'
warning: no files found matching 'Modules/LICENSE'
writing manifest file 'Lib/python_ldap.egg-info/SOURCES.txt'
running build_ext
building '_ldap' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -DHAVE_LIBLDAP_R -DHAVE_SASL -DHAVE_TLS
-DLDAPMODULE_VERSION=2.3.5 -IModules -I/usr/local/openldap-2.3/include
-I/usr/include/sasl -I/usr/include/python2.5 -c Modules/LDAPObject.c -o
build/temp.linux-i686-2.5/Modules/LDAPObject.o
Dans le fichier inclus à partir de Modules/LDAPObject.c:9:
Modules/errors.h:8:18: erreur: lber.h : Aucun fichier ou dossier de ce type
Modules/errors.h:9:18: erreur: ldap.h : Aucun fichier ou dossier de ce type
In file included from Modules/LDAPObject.c:9:
Modules/errors.h:12: erreur: expected «)» before «*» token
Dans le fichier inclus à partir de Modules/LDAPObject.c:11:
Modules/LDAPObject.h:12:2: erreur: #error Current python-ldap requires OpenLDAP
2.x
In file included from Modules/LDAPObject.c:11:
Modules/LDAPObject.h:23: erreur: expected specifier-qualifier-list before
«LDAP»
Modules/LDAPObject.h:31: erreur: expected «)» before «*» token
In file included from Modules/LDAPObject.c:12:
Modules/ldapcontrol.h:11: erreur: expected «)» before «*» token
Modules/ldapcontrol.h:12: erreur: expected «=», «,», «;», «asm» or
«__attribute__» before «*» token
Modules/ldapcontrol.h:13: erreur: expected «)» before «*» token
In file included from Modules/LDAPObject.c:13:
Modules/message.h:11: erreur: expected «)» before «*» token
Modules/LDAPObject.c:17:18: erreur: sasl.h : Aucun fichier ou dossier de ce type
Modules/LDAPObject.c:25: erreur: expected «)» before «*» token
Modules/LDAPObject.c: Dans la fonction «dealloc» :
Modules/LDAPObject.c:41: erreur: «LDAPObject» has no member named «ldap»
Modules/LDAPObject.c:42: erreur: «LDAPObject» has no member named «valid»
Modules/LDAPObject.c:43: erreur: «LDAPObject» has no member named «_save»
Modules/LDAPObject.c:43: erreur: «LDAPObject» has no member named «_save»
Modules/LDAPObject.c:44: attention : déclaration implicite de la fonction «
«ldap_unbind_ext» »
Modules/LDAPObject.c:44: erreur: «LDAPObject» has no member named «ldap»
Modules/LDAPObject.c:45: erreur: «LDAPObject» has no member named «_save»
Modules/LDAPObject.c:45: erreur: «LDAPObject» has no member named «_save»
Modules/LDAPObject.c:46: erreur: «LDAPObject» has no member named «valid»
Modules/LDAPObject.c:48: erreur: «LDAPObject» has no member named «ldap»
Modules/LDAPObject.c: Dans la fonction «not_valid» :
Modules/LDAPObject.c:64: erreur: «LDAPObject» has no member named «valid»
Modules/LDAPObject.c: Hors de toute fonction :
Modules/LDAPObject.c:75: erreur: expected «)» before «*» token
Modules/LDAPObject.c:102: erreur: expected «=», «,», «;», «asm» or
«__attribute__» before «*» token
Modules/LDAPObject.c:193: erreur: expected «)» before «*» token
Modules/LDAPObject.c:205: erreur: expected «=», «,», «;», «asm» or
«__attribute__» before «*» token
Modules/LDAPObject.c: Dans la fonction «l_ldap_unbind_ext» :
Modules/LDAPObject.c:331: erreur: «LDAPControl» undeclar