compilation error

Peter Peltonen peter.peltonen at fivetec.com
Wed May 23 10:26:20 CEST 2001


I am trying to install web2ldap software which requires python-ldap version
1.8 or higher. The author of web2ldap provided me with the package
python-ldap-CVS-20010510.tar.gz which I tried to install in my RH 7.1 system
which has the following packages installed:

--snip--
python2-2.1-4 (from python.org)
python2-tkinter-2.1-4
python2-devel-2.1-4
python2-tools-2.1-4

python-2.0-14 (from rpmfind.net, built for ConnectivaLinux)
python-devel-2.0-14

python-xmlrpc-1.4-1 (from RH7.1 CD)
rpm-python-4.0.2-8

openldap-2.0.7-14 (from RH7.1 CD)
openldap-servers-2.0.7-14
openldap-clients-2.0.7-14
openldap-devel-2.0.7-14
openldap12-1.2.11-4

krbafs-1.0.5-1 (from RH7.1 CD)
pam_krb5-1.31-1

krb5-libs-1.2.2-5 (from RH7.1 Updates)
krb5-workstation-1.2.2-5
krb5-devel-1.2.2-5
krb5-server-1.2.2-5
--snip--

I configured python-ldap:

--snip--
[root at jolo python-ldap]# ./configure --with-ldap-lib=/usr/lib
--with-ldap-inc=/usr/include --with-python=/usr/bin/python2.1 --with-kerberos
--with-kerberos-lib=/usr/kerberos/lib
--snip--

And then tried to run make:

--snip--
[root at jolo python-ldap]# make
cd Modules && make srcdir=/usr/src/python-ldap/Modules
VPATH=/usr/src/python-ldap/Modules
make[1]: Entering directory `/usr/src/python-ldap/Modules'
gcc -fPIC -g -O2 -Wall -Wstrict-prototypes -I/usr/include/python2.1
-I/usr/include/python2.1 -DHAVE_CONFIG_H  -I. -DLDAP_REFERRALS -I/usr/include
-c /usr/src/python-ldap/Modules/./constants.c -o ./constants.o
/usr/src/python-ldap/Modules/./constants.c: In function `LDAPinit_constants':
/usr/src/python-ldap/Modules/./constants.c:69: `LDAP_MAX_ATTR_LEN' undeclared
(first use in this function)
/usr/src/python-ldap/Modules/./constants.c:69: (Each undeclared identifier is
reported only once
/usr/src/python-ldap/Modules/./constants.c:69: for each function it appears
in.)
/usr/src/python-ldap/Modules/./constants.c:82: `LDAP_REQ_UNBIND_30' undeclared
(first use in this function)
/usr/src/python-ldap/Modules/./constants.c:83: `LDAP_REQ_DELETE_30' undeclared
(first use in this function)
/usr/src/python-ldap/Modules/./constants.c:84: `LDAP_REQ_ABANDON_30'
undeclared (first use in this function)
/usr/src/python-ldap/Modules/./constants.c:109: `LDAP_AUTH_SIMPLE_30'
undeclared (first use in this function)
/usr/src/python-ldap/Modules/./constants.c:110: `LDAP_AUTH_KRBV41_30'
undeclared (first use in this function)
/usr/src/python-ldap/Modules/./constants.c:111: `LDAP_AUTH_KRBV42_30'
undeclared (first use in this function)
/usr/src/python-ldap/Modules/./constants.c:121: `LDAP_FILTER_PRESENT_30'
undeclared (first use in this function)
/usr/src/python-ldap/Modules/./constants.c:125: `LDAP_SUBSTRING_INITIAL_30'
undeclared (first use in this function)
/usr/src/python-ldap/Modules/./constants.c:126: `LDAP_SUBSTRING_ANY_30'
undeclared (first use in this function)
/usr/src/python-ldap/Modules/./constants.c:127: `LDAP_SUBSTRING_FINAL_30'
undeclared (first use in this function)
/usr/src/python-ldap/Modules/./constants.c:138: `LDAP_DEFAULT_REFHOPLIMIT'
undeclared (first use in this function)
/usr/src/python-ldap/Modules/./constants.c:164: `LDAP_URL_ERR_NOTLDAP'
undeclared (first use in this function)
/usr/src/python-ldap/Modules/./constants.c:165: `LDAP_URL_ERR_NODN' undeclared
(first use in this function)
make[1]: *** [constants.o] Error 1
make[1]: Leaving directory `/usr/src/python-ldap/Modules'
make: *** [_ldapmodule-build] Error 2
--snip--

I get the same error if I try to recompile the .src.rpm found at
http://www.webideal.de/ldap/.

Any help appreciated,

Peter




More information about the python-ldap mailing list