Hi Everyone,
<br><br>I am having an issue with getting python-ldap to compile in my 
RHEL enviroment. I am running python 2.7.2 from source, and I have the 
openldap-devel package installed but still can not get this to work.
<br><br>Here is the output:
<br><br>extra_compile_args: -g
<br>extra_objects:
<br>include_dirs: /opt/openldap-RE24/include /usr/include/sasl
<br>library_dirs: /opt/openldap-RE24/lib
<br>libs: ldap_r lber sasl2 ssl crypto
<br>running build
<br>running build_py
<br>file Lib/ldap.py (for module ldap) not found
<br>file Lib/ldap/controls.py (for module ldap.controls) not found
<br>file Lib/ldap/extop.py (for module ldap.extop) not found
<br>file Lib/ldap/schema.py (for module ldap.schema) not found
<br>file Lib/ldap.py (for module ldap) not found
<br>file Lib/ldap/controls.py (for module ldap.controls) not found
<br>file Lib/ldap/extop.py (for module ldap.extop) not found
<br>file Lib/ldap/schema.py (for module ldap.schema) not found
<br>running egg_info
<br>writing requirements to Lib/python_ldap.egg-info/requires.txt
<br>writing Lib/python_ldap.egg-info/PKG-INFO
<br>writing top-level names to Lib/python_ldap.egg-info/top_level.txt
<br>writing dependency_links to Lib/python_ldap.egg-info/dependency_links.txt
<br>file Lib/ldap.py (for module ldap) not found
<br>file Lib/ldap/controls.py (for module ldap.controls) not found
<br>file Lib/ldap/extop.py (for module ldap.extop) not found
<br>file Lib/ldap/schema.py (for module ldap.schema) not found
<br>reading manifest file &#39;Lib/python_ldap.egg-info/SOURCES.txt&#39;
<br>reading manifest template &#39;MANIFEST.in&#39;
<br>warning: no files found matching &#39;Makefile&#39;
<br>warning: no files found matching &#39;Modules/LICENSE&#39;
<br>writing manifest file &#39;Lib/python_ldap.egg-info/SOURCES.txt&#39;
<br>running build_ext
<br>building &#39;_ldap&#39; extension
<br>gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 
-Wall -Wstrict-prototypes -fPIC -DHAVE_LIBLDAP_R -DHAVE_SASL -DHAVE_TLS 
-DLDAPMODULE_VERSION=2.4.1 -IModules -I/opt/openldap-RE24/include 
-I/usr/include/sasl -I/opt/home/mradmin/.local/include/python2.7 -c 
Modules/LDAPObject.c -o build/temp.linux-x86_64-2.7/Modules/LDAPObject.o
 -g
<br>In file included from Modules/LDAPObject.c:18:
<br>/usr/include/sasl/sasl.h:349: warning: function declaration isnât a prototype
<br>gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 
-Wall -Wstrict-prototypes -fPIC -DHAVE_LIBLDAP_R -DHAVE_SASL -DHAVE_TLS 
-DLDAPMODULE_VERSION=2.4.1 -IModules -I/opt/openldap-RE24/include 
-I/usr/include/sasl -I/opt/home/mradmin/.local/include/python2.7 -c 
Modules/ldapcontrol.c -o 
build/temp.linux-x86_64-2.7/Modules/ldapcontrol.o -g
<br>Modules/ldapcontrol.c: In function âencode_assertion_controlâ:
<br>Modules/ldapcontrol.c:350: warning: implicit declaration of function âldap_create_assertion_control_valueâ
<br>gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 
-Wall -Wstrict-prototypes -fPIC -DHAVE_LIBLDAP_R -DHAVE_SASL -DHAVE_TLS 
-DLDAPMODULE_VERSION=2.4.1 -IModules -I/opt/openldap-RE24/include 
-I/usr/include/sasl -I/opt/home/mradmin/.local/include/python2.7 -c 
Modules/common.c -o build/temp.linux-x86_64-2.7/Modules/common.o -g
<br>gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 
-Wall -Wstrict-prototypes -fPIC -DHAVE_LIBLDAP_R -DHAVE_SASL -DHAVE_TLS 
-DLDAPMODULE_VERSION=2.4.1 -IModules -I/opt/openldap-RE24/include 
-I/usr/include/sasl -I/opt/home/mradmin/.local/include/python2.7 -c 
Modules/constants.c -o build/temp.linux-x86_64-2.7/Modules/constants.o 
-g
<br>Modules/constants.c: In function âLDAPinit_constantsâ:
<br>Modules/constants.c:153: error: âLDAP_OPT_DIAGNOSTIC_MESSAGEâ undeclared (first use in this function)
<br>Modules/constants.c:153: error: (Each undeclared identifier is reported only once
<br>Modules/constants.c:153: error: for each function it appears in.)
<br>Modules/constants.c:363: error: âLDAP_CONTROL_RELAXâ undeclared (first use in this function)
<br>error: command &#39;gcc&#39; failed with exit status 1
<br><br>Thanks!