:: Re: [DNG] recursive ldd?
Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Didier Kryn
Ημερομηνία:  
Προς: dng
Αντικείμενο: Re: [DNG] recursive ldd?
Le 09/04/2024 à 13:46, Ralph Ronnquist via Dng a écrit :
> On Tue, Apr 09, 2024 at 05:57:56AM -0400, Steve Litt wrote:
>> Hi all,
>>
>> I'm doing a little research on the xz problem, and want to use ldd to
>> find all dependent object files, direct and indirect. I found nothing
>> in the ldd man page telling me I can do this.
>>
>> Before I write a nasty Python program to parse and recurse ldd output,
>> does anybody know an equivalent of a recursive ldd?
>>
>> Also, is there an apt command that can show all dependencies, direct or
>> indirect, of a given command?
> "... ldd shows the entire dependency tree of the executable"
>
> Ralph.


    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?

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

--     Didier