LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices



Reply
 
Search this Thread
Old 11-23-2010, 06:00 AM   #1
gasrine
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Rep: Reputation: 0
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
 
Old 11-23-2010, 10:50 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
And which program are you "compiling with python"?
Are there several libraries of the same name on the system?
 
Old 11-24-2010, 12:26 AM   #3
gasrine
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 11-24-2010, 11:28 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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.
 
Old 11-25-2010, 05:14 AM   #5
gasrine
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Original Poster
Rep: Reputation: 0
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.
 
Old 11-25-2010, 11:21 AM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
I wouldn't say you need to un-install all older versions; I'd
suggest making this consistent, and in such a manner that it
doesn't break your system.
 
Old 11-26-2010, 05:50 AM   #7
gasrine
LQ Newbie
 
Registered: Nov 2010
Posts: 5

Original Poster
Rep: Reputation: 0
but how could I know what I have to move and what I have to skip, and is there a manner to do such task
 
Old 11-26-2010, 04:26 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
glib error while installing patch: symbol lookup error undefined symbol: g_dgettext mthakare Linux - Software 1 06-14-2010 05:01 AM
symbol lookup error: /usr/lib/libavcodec.so.51: undefined symbol: av_crc04C11DB7 priceey Linux - Software 0 05-06-2009 09:14 AM
./firefox-bin :symbol lookup error:/lib/libgthread-2.0.so.0: undefined symbol: arulupsaras Linux - General 1 11-08-2008 05:48 AM
symbol lookup error: /usr/lib/libgtk-x11.2.0.so.0: undefined symbol:... IamI Slackware 17 02-29-2008 12:10 PM
RPM Command not working, throwing undefined symbol error racurtis Linux - Software 2 04-03-2007 02:19 PM


All times are GMT -5. The time now is 03:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration