problem with python-ldap compiling
Hi, when I compile python-ldap for the zope binary python on redhat 8.0 I obtain this error: zope@plop:python-ldap-2.0.0pre13/> ../../../../bin/python Python 2.1.3 (#1, Sep 19 2002, 13:15:46) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "copyright", "credits" or "license" for more information.
import ldap Traceback (most recent call last): File "<stdin>", line 1, in ? File "ldap.py", line 2, in ? ImportError: /home/zope/Zope/lib/python2.1/site-packages/_ldap.so: undefined symbol: ldap_first_reference import ldap dir(ldap) ['__builtins__', '__doc__', '__file__', '__name__']
The problem of ldap_first_reference appears in zope-cmf archive of July 2003, but the only solution given was to recompile openldap... http://zope.org/Members/barryp/win32_ldap give another solution but only for win32 (python21_ldap.pyd). What's new now? On debian I have no problems.
change setup.cfg and replace ldap_r with ldap in the LIBS line jens P.S.: This question is really off-topic, there are python-ldap lists. On Jan 12, 2004, at 11:59, Encolpe Degoute wrote:
Hi, when I compile python-ldap for the zope binary python on redhat 8.0 I obtain this error:
zope@plop:python-ldap-2.0.0pre13/> ../../../../bin/python Python 2.1.3 (#1, Sep 19 2002, 13:15:46) [GCC egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)] on linux2 Type "copyright", "credits" or "license" for more information.
import ldap Traceback (most recent call last): File "<stdin>", line 1, in ? File "ldap.py", line 2, in ? ImportError: /home/zope/Zope/lib/python2.1/site-packages/_ldap.so: undefined symbol: ldap_first_reference import ldap dir(ldap) ['__builtins__', '__doc__', '__file__', '__name__']
The problem of ldap_first_reference appears in zope-cmf archive of July 2003, but the only solution given was to recompile openldap... http://zope.org/Members/barryp/win32_ldap give another solution but only for win32 (python21_ldap.pyd). What's new now?
On debian I have no problems.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
participants (2)
-
Encolpe Degoute -
Jens Vagelpohl