python c extension, problems with dlopen on mac os
Posted
by Jason Sundram
on Stack Overflow
See other posts from Stack Overflow
or by Jason Sundram
Published on 2010-05-07T16:46:15Z
Indexed on
2010/05/07
16:48 UTC
Read the original article
Hit count: 482
I've taken a library that is distributed as a binary lib (.a) and header, written some c++ code against it, and want to wrap the results up in a python module.
I've done this here.
The problem is that when importing this module on Mac OSX (I've tried 10.5 and 10.6), I get the following error:
dlopen(/Library/Python/2.5/site-packages/dirac.so, 2): Symbol not found: _DisposePtr
Referenced from: /Library/Python/2.5/site-packages/dirac.so
Expected in: dynamic lookup
This looks like symbols defined in the Carbon framework aren't being properly resolved, but I'm not sure what to do about that. I am supplying -framework Carbon
to distutil.core.Extension
's extra_link_args
parameter, so I'm not sure what else I should do.
Any help would be much appreciated.
© Stack Overflow or respective owner