LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-18-2008, 04:34 PM   #1
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438
Blog Entries: 5

Rep: Reputation: 32
library error ok - but weird library ...


OK, doing some mpi compiling on openmpi, but I think it's a general fault I have. My prog compiles fine. But when running is I get:
Code:
a.out: error while loading shared libraries: ibc.so.6: cannot open shared object file: No such file or directory
See that ibc? WTF? Obviously I run this error in google, and I get all the people who have mistyped libc. But this is not an error, it's actually ibc.

My system has no such library. Does anybody know how I might go about troubleshooting this? I thought I'd do a ldd on my executable and this library does not appear:
Code:
libm.so.6 => /lib64/libm.so.6 (0x00002ba425829000)
libmpi.so.0 => /usr/local/lib/libmpi.so.0 (0x00002ba425aac000)
libopen-rte.so.0 => /usr/local/lib/libopen-rte.so.0 (0x00002ba425d3f000)
libopen-pal.so.0 => /usr/local/lib/libopen-pal.so.0 (0x00002ba425f9a000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002ba4261f8000)
libnsl.so.1 => /lib64/libnsl.so.1 (0x00002ba4263fc000)
libutil.so.1 => /lib64/libutil.so.1 (0x00002ba426614000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002ba426817000)
libc.so.6 => /lib64/libc.so.6 (0x00002ba426a32000)
/lib64/ld-linux-x86-64.so.2 (0x00002ba42560c000)
As yo can see, all the usual suspects are there, but no ibc of course.
Does any body know of any tool I coudl use to find out where this odd library is coming up?

I did a reinstall of my openmpi and I get the same thing. I don't think this has anythoign to do with my PATH or LD_LIBRARY_PATH because I simply do not have that library... my only guess is that, in the past, I inadvertently edited some file, which now demands that my openmpi programs be linked to a nonexistent library.

Ideas welcome

cheers.
 
Old 08-18-2008, 04:51 PM   #2
keratos
Member
 
Registered: May 2007
Location: London, UK.
Distribution: Major:FC8. Others:Debian;Zenwalk; Arch; Slack; RHEL.
Posts: 544

Rep: Reputation: 30
its obviously libc.so.6

ibc seems to have the 'l' missing

could it be a corrupt config file or makefile?

i dont know enough about your platform but I would do a grep on the files in your build tree, search for "ibc" or something and see if its an error in a build / config / makefile
 
Old 08-18-2008, 05:10 PM   #3
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438

Original Poster
Blog Entries: 5

Rep: Reputation: 32
Hi keratos,

Thanks for the reply .. this is just getting funnier and funnier ... I now do a google search for ibc.so.6 and this here thread that I started comes up first! So I'm even making it harder for myself :-D

Yes, I think you're right .. I've been doing a grep "[^l]ibc" on a number of my various lib files ... there's no Makefile really ... but MPI is a complicated beast ... I'll keep grepping, it'll come out of the woodwork soon enough :-)!
 
Old 08-18-2008, 05:33 PM   #4
stabu
Member
 
Registered: Mar 2004
Location: dublin IRL
Distribution: Slackv12.1, Slamd64v12.1,Xubuntu v8.10_64, FC8_64
Posts: 438

Original Poster
Blog Entries: 5

Rep: Reputation: 32
Hmmm ... well I've kind of semi-solved this.

The clue came from man ldd
Code:
BUGS
       ldd does not work on a.out shared libraries.
I remembered that it's probably not a good habit to keep compiling to a.out all the time. So I re-tested giving it an "-o" option name.

However, the program actually ran properly then. SO I don't get to find out why ibc.so.6 is coming up. Seems to be parsing error of some sort if one uses a.out.

Thanks for the interest!

PD. Good, this means I don't have to run
Code:
grep -R "[^l]ibc\.so\.6" /
on my 1TB HD tonight :-D

Last edited by stabu; 08-18-2008 at 05:35 PM. Reason: afterthought
 
Old 08-18-2008, 07:36 PM   #5
ta0kira
Senior Member
 
Registered: Sep 2004
Distribution: FreeBSD 9.1, Kubuntu 12.10
Posts: 3,078

Rep: Reputation: Disabled
Quote:
Originally Posted by stabu View Post
I remembered that it's probably not a good habit to keep compiling to a.out all the time. So I re-tested giving it an "-o" option name.
a.out is the default file name for gcc, but it's generally in ELF-32 format and not in a.out format.

Have you run ldconfig recently? Are you using a makefile? If so, did you write it by hand, or did an IDE write it for you via e.g. automake?
ta0kira
 
  


Reply



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
list library function of a shared library .so powah Linux - General 7 10-25-2011 04:47 AM
Compiling library files into another library file. knobby67 Programming 3 04-10-2007 02:07 PM
LINUX - linking archive (static library) with shared (dynamic) library gurkama Programming 5 03-04-2007 11:11 PM
howto compile bin with my library using all-static and shared linked standart library stpg Programming 4 06-29-2004 04:20 AM
what is the function library of the basic graphics library in rethat9.0? zerwolve Red Hat 0 04-29-2004 09:18 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:45 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
Open Source Consulting | Domain Registration