:: Re: [DNG] recursive ldd?
Góra strony
Delete this message
Reply to this message
Autor: Ralph Ronnquist
Data:  
Dla: dng
Temat: Re: [DNG] recursive ldd?
On Tue, Apr 09, 2024 at 03:15:08PM +0200, David Hoppenbrouwers wrote:
> linux-vdso is provided by the kernel.
>
> https://www.kernel.org/doc/Documentation/ABI/stable/vdso
>
> David
>
> On 09/04/2024 15:02, Didier Kryn wrote:
> > 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.


libgtk3-nocsd.so.0 is typically included in the ldd report due to
being in your LD_PRELOAD. This would have got set up into the
Xsession.d scripts when you installed the gtk3-nocsd package.

Ralph.

> >
> > --     Didier
> >
> >
> > _______________________________________________
> > Dng mailing list
> > Dng@???
> > https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
> _______________________________________________
> Dng mailing list
> Dng@???
> https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng