(no subject)

Joao S. O. Bueno gwidion at mpc.com.br
Tue Oct 14 13:07:29 CEST 2003

Hi there!

I just went through it (the ldap_first_reference error). It seens like 
a mandatory first step for Python Ldapers.  :-)

I think I can figure out what is missing on your procedures:
Did you perform a clean-up of th e compiled files between the changes 
on setup.cfg?

The error is in ldap_r, so you must put just ldap for linking, or fix 
ldap_r yourself, according to the message I linked to in my earlier 
e-mail today:
libs = ldap lber resolv

And them
python setup.py clean --all
python setup.py build
python setup.py install.

I am  rolling now. 

On Tuesday 14 October 2003 1:38 pm, Gabby James wrote:
> I apologize for sending another help request on the infamous
> ldap_first_reference error but I just can't seem to figure it out
> even after reading old postings.
> I am using a RedHat 9.0 system with openldap-2.0.27-8 and
> python-2.2.2-26. I
> downloaded python-ldap-2.0.0pre14 and compiled.  When I start
> python and try an
> "import ldap" statement, I get the following error message:
> Traceback (most recent call last):
>   File "<stdin>", line 1, in ?
>   File "/usr/lib/python2.2/site-packages/ldap/__init__.py", line
> 21, in ? from _ldap import *
> ImportError: /usr/lib/python2.2/site-packages/_ldap.so: undefined
> symbol: ldap_first_reference
> I modified setup.cfg to try all of the following after reading old
> postings: libs = ldap_r lber sasl2 ssl crypto
> libs = ldap lber
> libs = ldap lber resolv
> libs = ldap_r lber
> libs = ldap_r ldap
> I compile python-ldap specifically with the version of python I am
> interested in:
> python2.2 setup.py build
> python2.2 setup.py install
> I have also seen the following comment "This is likely due to
> missing references.c and references.lo in
> libraries/libldap_r/Makefile.in".  I didn't try this 'casue I
> couldn't find the
> file on my system.  Could someone explain this in more detail?
> Any other thoughs on what is going wrong?
> Thank you.
> G.J.

More information about the python-ldap mailing list