From: David L. <dav...@cs...> - 2000-02-21 08:45:17
|
On Mon, 21 Feb 2000, Michael Ströder raved thusly: > > but > > I am attempting to get web2ldap installed but have come across the > > following problem; > > > > the apache log gives the following error - > > > > headers: /home/httpd/cgi-bin/web2ldap.py > > Traceback (innermost last):headers: /home/httpd/cgi-bin/web2ldap.py > > Traceback (innermost last): > > File "/home/httpd/cgi-bin/web2ldap.py", line 62, in ? > > import msbase, cgiforms, cgissl, ldap, ldapbase, charset > > ImportError: /usr/lib/libldap.so.1: undefined symbol: res_search > > [Fri Feb 4 13:35:48 2000] [error] [client 192.168.0.3] Premature end of > > script headers: /home/httpd/cgi-bin/web2ldap.py it looks like -lresolver isn't being dynamically loaded. | arkansas:d$ nm /usr/lib/libresolv.a | grep res_search | U res_search | 00000100 T res_search and it know that ldapmodule's configure didn't even looking for it... I don't know if it should either. If you used the openldap.sh script to build ldapmodule, it steals the LIBS variable from openldap's config.status and trusts it! | Checking for LIBS in /tmp/ldap-pfx/src/ldap/config.status... yes A crude work-around might be to import the socket module early? Dunno if that will work though. You can try it. import socket, ldap or if you have the 'dl' module, you can try this truly evil code import dl _rhandle = dl.open("/usr/lib/libresolv.so") import ldap I didn't see the original message so I can't be sure what version of ldapmodule or linux Craig is using. Is it ELF? Does ELF carry around shared-library dependencies? does your rtld/ld.so/dlopen automatically follow dependencies? etc etc etc. > This is a problem with importing the ldapmodule.so. I saw this error > several times when ldapmodule.so was not build correctly or shared > libs are messed up from older installations. Since you're running > Red Hat Linux you might wanna grab a pre-compiled RPM found on > http://www.webideal.de/ldap/ and try again with that one. yep - that seems like probably the best solution. please let me know if this or anything else fixes the problem for you Craig. d -- David Leonard Dav...@cs... Dept of Comp. Sci. and Elec. Engg _ Room:78-624 Ph:+61 7 336 52447 The University of Queensland |+| http://www.csee.uq.edu.au/~leonard/ QLD 4072 AUSTRALIA ~` '~ E2A24DC6446E5779D7AFC41AA04E6401 Computers save man a lot of guesswork, but so does the bikini - BrightSun |