undefined symbols when linking Python into a shared library
Michael Neuroth
michael.neuroth at freenet.de
Thu Mar 7 19:26:20 EST 2002
Mats Wichmann writes:
> : Traceback (most recent call last):
> :
> : File "<string>", lind 2, in ?
> :
> : File "/usr/lib/python2.1/lib-tk/Tkinter.py", line 35, in ?
> :
> : import _tkiter # If this fails your Python my not be configured for Tk
> :
> : ImportError: /usr/lib/python2.1/lib-dynload/_tkiter.so: undefined symbol: _Py_NoneStruct
>
> If this is a direct snip, and not a transcription, the problem is sa
> typo: _tkiter is used instead of _tkinter
Sorry, I misstyped the error message, it should be _tkinter.
> : How can I verify, that this symbols are in the shared library?
>
> Use objdump on the shared library
this works as well as "nm -D" and objdump shows that the symbol is exported:
000a7bac g DO .data 00000008 Base _Py_NoneStruct
Thank you.
Michael.
More information about the Python-list
mailing list