[Zope] LDAPUserFolder product fails to register

Dieter Maurer dieter@handshake.de
Thu, 17 Jul 2003 21:08:32 +0200


Gustavo Torres wrote at 2003-7-16 13:15 -0300:
 > Dear all,
 > I'm trying to use LDAPUserFolder version 2.1, Zope 2.6.1, openldap
 > 2.1.22, in a Solaris8 machine. When start is called, I get:
 > ...
 >   File /opt/lib/python2.1/site-packages/ldap/__init__.py, line 21, in ?
 > ImportError: ld.so.1: /opt/bin/python: fatal: relocation error: file
 > /opt/lib/libldap.so.2: symbol __eprintf: referenced symbol not found
 > --
 > Does anybody know what problem I've got w/ libldap.so.2?

When I remember right, "__eprintf" is a "GNUC" extension function.
"gcc" generates calls to it. It is defined in "libgcc.so".

Apparently, your "libldap.so.2" has been compiled with "gcc" and
therefore needs the "libgcc.so" at runtime. Apparently, the link
run that produced "libldap.so.2" did not include "-lgcc" (maybe
because "LD" was used for linking rather than "gcc").
Therefore, "libgcc.so" is not loaded.


Dieter