error message undefined symbol when executing the command import from
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
error message undefined symbol when executing the command import from
Hi,
I've compiled a program on ubuntu with python(make python) but the problem comes when I try to use it and exactly after the command line "from libpy import *", the message that appears is such
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "libpy/knit.py", line 28, in <module>
import _knit
ImportError: libpy/_knit.so: undefined symbol: _ZTVN10__cxxabiv120__si_class_type_infoE
I don't know if it's a problem with the compilation or linking or other issues.
I'll be thankful if someone could help me
thank you for you reply
the program is KNIT a scientific software,
concerning libraries actually there are some libraries having the same name, because at first the program hasn't been compiled because it didn't find some libraries although there existed which oblige me to copy almost all header files that the compilation needs to /usr/include and the libraries to /usr/lib. So there are libraries having the same name.
What I was trying to get at: are there libs for different versions
of your software available on the system? That's what it looks like
to me. Hint: an older version of the lib is visible to the linker,
but you really need the newer one that exports the symbol it can't
find in the old one.
actually when I see the dependences of the compilation of the program, I build them manually with sources,but I realised after that there are some libraries were already installed, i dont know for exemple when I did a research for some libraries I got these libraries "for libpython" libpython2.6.so libpython2.6.so.1.0 ibpythonmethod-2.7.so libpythonmethod-2.6.so and for liblapack
so as I understand I have to uninstall older versions so that the linker would not see the older that don't have the symbol?
but for all libraries or just some of them.
Good question; and with that question I'm moving this thread
over to our Ubuntu forum, because there's more likely a *buntu
specific answer to this that I won't know about.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.