:: Re: [DNG] recursive ldd?
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Antony Stone
Fecha:  
A: dng
Asunto: Re: [DNG] recursive ldd?
On Tuesday 09 April 2024 at 15:02:59, Didier Kryn wrote:

>      I tried by curiosity the example given by the man page.

>
> $ ldd /bin/ls
>      linux-vdso.so.1 (0x00007ffef69ed000)
>      libgtk3-nocsd.so.0 => /usr/lib/x86_64-linux-gnu/libgtk3-nocsd.so.0
> (0x00007fe00a94c000)
> libselinux.so.1 => /lib/x86_64-linux-gnu/libselinux.so.1 
> (0x00007fe00a91e000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fe00a73d000)
> libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fe00a738000)
> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
> (0x00007fe00a733000)
> libpcre2-8.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0
> (0x00007fe00a697000)
> /lib64/ld-linux-x86-64.so.2 (0x00007fe00a995000)
> $

>
> The first dependency, linux-vdso.so.1 simply does not exist on my
> system. So, how can it work?


Just because a binary has links to a dynamic library doesn't mean that they
have to be called.

https://man7.org/linux/man-pages/man7/vdso.7.html

In this instance I suspect that if the library is not available, the command
simply functions in what might be a slightly less efficient manner.

> I wonder what dependencies on GTK3, on libpthreads and on perl-like
> regex are doing here in a basic unix tool.


Use the source, Luke :)


Antony.

--
"Measuring average network latency is about as useful as measuring the mean
temperature of patients in a hospital."

- Stéphane Bortzmeyer

                                                   Please reply to the list;
                                                         please *don't* CC me.