Embedding and undefined symbols

L

Lane Brooks

I am embedding python into a linux shared library (let's call it
libembedpy.so).

The main application loads this shared library dynamically using libdl
and is not linked against libembedpy.so

Under this scenerio, I get ImportErrors when I try import modules:

File "test.py", line 3, in ?
import time
ImportError: /usr/lib64/python2.4/lib-dynload/timemodule.so: undefined
symbol: PyExc_ValueError



By building a simple test case, I can make this error go away if the
main application links against the shared library libembedpy.so. For
the real case, however, I do not have access to the source, so I cannot
relink it.

Any ideas of how to get rid of this problem?

Thanks,
Lane
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top