problems building python-ldap-2.0.0pre13

Marc Petitmermet petitmermet at mat.ethz.ch
Fri Nov 21 14:11:47 CET 2003


i have set up the setup.cfg like this:

     library_dirs = /usr/local/openldap/openldap-2.1.23/lib
     include_dirs = /usr/local/openldap/openldap-2.1.23/include
     libs = ldap lber ssl

then i build like this:

   /usr/local/python/Python-2.1.3/bin/python setup.py build

and i get the following error:

gcc -shared build/temp.linux-i686-2.1/LDAPObject.o 
build/temp.linux-i686-2.1/common.o 
build/temp.linux-i686-2.1/constants.o 
build/temp.linux-i686-2.1/errors.o 
build/temp.linux-i686-2.1/functions.o 
build/temp.linux-i686-2.1/schema.o 
build/temp.linux-i686-2.1/ldapmodule.o 
build/temp.linux-i686-2.1/linkedlist.o 
build/temp.linux-i686-2.1/message.o build/temp.linux-i686-2.1/version.o 
build/temp.linux-i686-2.1/options.o 
-L/usr/local/openldap/openldap-2.1.23/lib 
-R/usr/local/openldap/openldap-2.1.23/lib -lldap -llber -lssl -o 
build/lib.linux-i686-2.1/_ldap.so
gcc: unrecognized option `-R/usr/local/openldap/openldap-2.1.23/lib'

first, there is a correct "-L/usr/local/openldap/openldap-2.1.23/lib" 
followed immediately by the 
"-R/usr/local/openldap/openldap-2.1.23/lib". can anybody tell me what's 
wrong here?

i tried to download python-ldap-2.0.0pre15.tar.gz but i cannot fetch 
it, the link on sourceforge does not work for me.

another question: could i also explicitly tell python-ldap which ssl 
installation it sould use?

thanks for any hints.
regards,
marc






More information about the python-ldap mailing list