python-ldap under OS X 10.4

Jens Vagelpohl jens at
Tue Jun 28 15:51:03 CEST 2005

Hi guys,

I find myself unable to use python-ldap compiled under OS X 10.4. It  
compiles, but loading it leads to unresolved symbols.

- OS X 10.4.1
- Python 2.4.1, compiled separately from the system's own python, no  
special options
- in setup.cfg, I set "libs = ldap_r lber" ends up being linked against the following:
(compatibility version 1.0.0, current version 2.2.0)
         /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,  
current version 88.0.0)

  When I load it in the interpreter I see this:

Python 2.4.1 (#1, Jun  9 2005, 13:53:37)
[GCC 4.0.0 20041026 (Apple Computer, Inc. build 4061)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import _ldap
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: Failure linking new module: Symbol not found:  
   Referenced from:
   Expected in: dynamic lookup

Has anyone found a way around this?


More information about the python-ldap mailing list