LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Shared libraries - ldd - cmov (https://www.linuxquestions.org/questions/linux-software-2/shared-libraries-ldd-cmov-780329/)

agrume 01-06-2010 12:46 PM

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...

knudfl 01-06-2010 04:40 PM

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
.....

agrume 01-06-2010 05:02 PM

Thanx !

Effectively its Lenny...


All times are GMT -5. The time now is 08:45 AM.