From: Joao S. O. B. <gw...@mp...> - 2003-10-14 14:07:44
|
Hi there! I just went through it (the ldap_first_reference error). It seens like=20 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=20 on setup.cfg? The error is in ldap_r, so you must put just ldap for linking, or fix=20 ldap_r yourself, according to the message I linked to in my earlier=20 e-mail today: libs =3D ldap lber resolv And them python setup.py clean --all python setup.py build su python setup.py install. I am rolling now.=20 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 =3D ldap_r lber sasl2 ssl crypto > libs =3D ldap lber > libs =3D ldap lber resolv > libs =3D ldap_r lber > libs =3D 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. > > _________________________________________________________________ > Page a contact=92s mobile phone with MSN Messenger 6.0. Download it > now FREE! http://msnmessenger-download.com > > > > ------------------------------------------------------- > This SF.net email is sponsored by: SF.net Giveback Program. > SourceForge.net hosts over 70,000 Open Source Projects. > See the people who have HELPED US provide better services: > Click here: http://sourceforge.net/supporters.php > _______________________________________________ > Python-LDAP-dev mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/python-ldap-dev =2D |