LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-06-2010, 12:46 PM   #1
agrume
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Rep: Reputation: 0
Thumbs down Shared libraries - ldd - cmov


Hi to all

Question about shared libraries dependancies & ldd :

Lets find dependancies for /bin/echo :

$ldd /bin/echo
linux-gate.so.1 => (0xb7f70000)
libc.so.6 => /lib/i686/cmov/libc.so.6 (0xb7e01000)
/lib/ld-linux.so.2 (0xb7f71000)

Lets focus on libc6 :

$ls -al /lib/libc*
...
...
1294572 2008-11-04 21:47 /lib/libc-2.7.so
11 2008-12-28 14:55 /lib/libc.so.6 -> libc-2.7.so
...
...

$ls -al /lib/i686/cmov/libc*
...
...
1413540 2008-11-04 21:48 /lib/i686/cmov/libc-2.7.so
11 2008-12-28 14:55 /lib/i686/cmov/libc.so.6 -> libc-2.7.so
...
...

What is this directory /lib/i686/cmov ?
How does ldd to link /lib/libc.so.6 to /lib/i686/cmov/libc.so.6 ?
Why having 2 libc6 on the system ( files have different sizes, so are different ) ?

If anyone knows...
 
Old 01-06-2010, 04:40 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

Debian 5 Lenny ?
You have two different libc6 packages installed :

1) package name : libc6 : /lib/libc-2.7.so , /lib/libc.so.6
http://packages.debian.org/lenny/i38...-i686/filelist

2) package name : libc6-686 : /lib/i686/cmov/libc-2.7.so ,
/lib/i686/cmov/libc.so.6
http://packages.debian.org/lenny/libc6-i686
QUOTE : "" This set of libraries is optimized for i686 machines,
and will only be used if ...... ""
http://packages.debian.org/lenny/i386/libc6/filelist

.. Or use : dpkg -L <package-name>
.. to get a file list.
.....

http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html
.....

Last edited by knudfl; 01-06-2010 at 04:43 PM.
 
Old 01-06-2010, 05:02 PM   #3
agrume
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Thanx !

Effectively its Lenny...
 
  


Reply

Tags
libc6



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
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
error while loading shared libraries: libstdc++.so.5: cannot open shared object file PaulyWally Debian 2 10-18-2008 05:59 PM
error while loading shared libraries: libgvc.so.3: cannot open shared object file coolrock Slackware 6 01-17-2007 05:10 PM
Urgent: libraries not resolved on running ldd command in solaris 9 msgforsunil Solaris / OpenSolaris 5 06-16-2006 10:46 AM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:07 AM.

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