I am trying to build python-ldap (2.3.1) on a RH Linux box.  I
installed openldap (2.3.38) from source with the default settings and
had no problems.  I also have a source install of Python 2.4.4.

In setup.cfg I modified these two lines:
library_dirs = /usr/local/lib
include_dirs = /home/eric/openldap-2.2.13/include /usr/include/sasl

When I try to build with "python setup.py build" I get this:

In file included from Modules/constants.c:11:
/home/eric/openldap-2.2.13/include/ldap.h:210:1: warning:
In file included from Modules/constants.c:9:
Modules/constants.h:16:1: warning: this is the location of the
previous definition
Modules/constants.c: In function `LDAPinit_constants':
Modules/constants.c:179: error: `LDAP_OPT_X_TLS_CRLCHECK' undeclared
(first use in this function)
Modules/constants.c:179: error: (Each undeclared identifier is
reported only once
Modules/constants.c:179: error: for each function it appears in.)
Modules/constants.c:180: error: `LDAP_OPT_X_TLS_CRL_NONE' undeclared
(first use in this function)
Modules/constants.c:181: error: `LDAP_OPT_X_TLS_CRL_PEER' undeclared
(first use in this function)
Modules/constants.c:182: error: `LDAP_OPT_X_TLS_CRL_ALL' undeclared
(first use in this function)
error: command 'gcc' failed with exit status 1

What am I doing incorrectly?  I've searched high and low and cannot
find much reference to these specific errors.  Thanks in advance.


This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
Python-LDAP-dev mailing list

Reply via email to