Re: lddtree on OpenBSD?
18 September 2022 at 19:59, "Stuart Henderson" wrote: > On 2022/09/18 15:58, rsyk...@disroot.org wrote: > > > > > 16 September 2022 at 14:21, "Stuart Henderson" wrote: > > > > You need to list library paths on the command line too. > > > > Eventually, I seem to have achieved what I needed by some other means, > > but still, I also tried to add some paths to the lddtree, but it does > > not seem to help: > > odin$ ldd /usr/X11R6/bin/xclock > > /usr/X11R6/bin/xclock: > > Start End Type Open Ref GrpRef Name > > 0eb6c5609000 0eb6c5619000 exe 1 0 0 /usr/X11R6/bin/xclock > > 0eb9b07d6000 0eb9b0855000 rlib 0 1 0 /usr/X11R6/lib/libXaw7.so.15.0 > > ... > > odin$ lddtree /usr/X11R6/bin/xclock /usr/X11R6/lib > > /usr/libexec/ld.so => /usr/libexec/ld.so > > libXaw7.so.15.0 => not found > > ... > > > > ... while /usr/X11R6/lib/libXaw7.so.15.0 does exist. > > (I tried a few other ways, but to no avail.) > > > > Nonetheless, thanks for your help. > > > > I'm not quite sure how useful the information is, but it does work. > > $ lddtree > USAGE: lddtree [root] [library path...] > > $ lddtree /usr/X11R6/bin/xclock / /usr/lib /usr/X11R6/lib > /usr/libexec/ld.so => /usr/libexec/ld.so > libXaw7.so.15.0 => /usr/X11R6/lib/libXaw7.so.15.0 > libXmu.so.11.0 => /usr/X11R6/lib/libXmu.so.11.0 > ... Ok. Thanks. Finally it does work for me, too. What I did not realize (but it makes sense in the backsight), is that I *have to* specify the 'root' part (the /) if I want to list the library paths. I read the usage to say the [root] is optional. [A usage something like lddtree [ [library_path [library_path] ... ]] would make it clear to me from the beginning, although I do not know if people ever write it like that.] Thanks again. Ruda
Re: lddtree on OpenBSD?
On 2022/09/18 15:58, rsyk...@disroot.org wrote: > 16 September 2022 at 14:21, "Stuart Henderson" wrote: > > > You need to list library paths on the command line too. > > Eventually, I seem to have achieved what I needed by some other means, > but still, I also tried to add some paths to the lddtree, but it does > not seem to help: > odin$ ldd /usr/X11R6/bin/xclock > /usr/X11R6/bin/xclock: > StartEnd Type Open Ref GrpRef Name > 0eb6c5609000 0eb6c5619000 exe 10 0 > /usr/X11R6/bin/xclock > 0eb9b07d6000 0eb9b0855000 rlib 01 0 > /usr/X11R6/lib/libXaw7.so.15.0 > ... > odin$ lddtree /usr/X11R6/bin/xclock /usr/X11R6/lib > /usr/libexec/ld.so => /usr/libexec/ld.so > libXaw7.so.15.0 => not found > ... > > ... while /usr/X11R6/lib/libXaw7.so.15.0 does exist. > (I tried a few other ways, but to no avail.) > > Nonetheless, thanks for your help. I'm not quite sure how useful the information is, but it does work. $ lddtree USAGE: lddtree [root] [library path...] $ lddtree /usr/X11R6/bin/xclock / /usr/lib /usr/X11R6/lib /usr/libexec/ld.so => /usr/libexec/ld.so libXaw7.so.15.0 => /usr/X11R6/lib/libXaw7.so.15.0 libXmu.so.11.0 => /usr/X11R6/lib/libXmu.so.11.0 libXt.so.11.0 => /usr/X11R6/lib/libXt.so.11.0 libSM.so.9.0 => /usr/X11R6/lib/libSM.so.9.0 libICE.so.11.0 => /usr/X11R6/lib/libICE.so.11.0 libICE.so.11.0 => /usr/X11R6/lib/libICE.so.11.0 libX11.so.18.0 => /usr/X11R6/lib/libX11.so.18.0 libxcb.so.4.1 => /usr/X11R6/lib/libxcb.so.4.1 libXau.so.10.0 => /usr/X11R6/lib/libXau.so.10.0 libXdmcp.so.11.0 => /usr/X11R6/lib/libXdmcp.so.11.0 libxcb.so.4.1 => /usr/X11R6/lib/libxcb.so.4.1 libXau.so.10.0 => /usr/X11R6/lib/libXau.so.10.0 libXdmcp.so.11.0 => /usr/X11R6/lib/libXdmcp.so.11.0 libSM.so.9.0 => /usr/X11R6/lib/libSM.so.9.0 libICE.so.11.0 => /usr/X11R6/lib/libICE.so.11.0 libICE.so.11.0 => /usr/X11R6/lib/libICE.so.11.0 libXext.so.13.0 => /usr/X11R6/lib/libXext.so.13.0 libX11.so.18.0 => /usr/X11R6/lib/libX11.so.18.0 libxcb.so.4.1 => /usr/X11R6/lib/libxcb.so.4.1 libXau.so.10.0 => /usr/X11R6/lib/libXau.so.10.0 libXdmcp.so.11.0 => /usr/X11R6/lib/libXdmcp.so.11.0 libxcb.so.4.1 => /usr/X11R6/lib/libxcb.so.4.1 libXau.so.10.0 => /usr/X11R6/lib/libXau.so.10.0 libXdmcp.so.11.0 => /usr/X11R6/lib/libXdmcp.so.11.0 libX11.so.18.0 => /usr/X11R6/lib/libX11.so.18.0 libxcb.so.4.1 => /usr/X11R6/lib/libxcb.so.4.1 libXau.so.10.0 => /usr/X11R6/lib/libXau.so.10.0 libXdmcp.so.11.0 => /usr/X11R6/lib/libXdmcp.so.11.0 libxcb.so.4.1 => /usr/X11R6/lib/libxcb.so.4.1 libXau.so.10.0 => /usr/X11R6/lib/libXau.so.10.0 libXdmcp.so.11.0 => /usr/X11R6/lib/libXdmcp.so.11.0 libXext.so.13.0 => /usr/X11R6/lib/libXext.so.13.0 libX11.so.18.0 => /usr/X11R6/lib/libX11.so.18.0 libxcb.so.4.1 => /usr/X11R6/lib/libxcb.so.4.1 libXau.so.10.0 => /usr/X11R6/lib/libXau.so.10.0 libXdmcp.so.11.0 => /usr/X11R6/lib/libXdmcp.so.11.0 libxcb.so.4.1 => /usr/X11R6/lib/libxcb.so.4.1 libXau.so.10.0 => /usr/X11R6/lib/libXau.so.10.0 libXdmcp.so.11.0 => /usr/X11R6/lib/libXdmcp.so.11.0 libXt.so.11.0 => /usr/X11R6/lib/libXt.so.11.0 libSM.so.9.0 => /usr/X11R6/lib/libSM.so.9.0 libICE.so.11.0 => /usr/X11R6/lib/libICE.so.11.0 libICE.so.11.0 => /usr/X11R6/lib/libICE.so.11.0 libX11.so.18.0 => /usr/X11R6/lib/libX11.so.18.0 libxcb.so.4.1 => /usr/X11R6/lib/libxcb.so.4.1 libXau.so.10.0 => /usr/X11R6/lib/libXau.so.10.0 libXdmcp.so.11.0 => /usr/X11R6/lib/libXdmcp.so.11.0 libxcb.so.4.1 => /usr/X11R6/lib/libxcb.so.4.1 libXau.so.10.0 => /usr/X11R6/lib/libXau.so.10.0 libXdmcp.so.11.0 => /usr/X11R6/lib/libXdmcp.so.11.0 libSM.so.9.0 => /usr/X11R6/lib/libSM.so.9.0 libICE.so.11.0 => /usr/X11R6/lib/libICE.so.11.0 libICE.so.11.0 => /usr/X11R6/lib/libICE.so.11.0 libXpm.so.9.0 => /usr/X11R6/lib/libXpm.so.9.0 libX11.so.18.0 => /usr/X11R6/lib/libX11.so.18.0 libxcb.so.4.1 => /usr/X11R6/lib/libxcb.so.4.1 libXau.so.10.0 => /usr/X11R6/lib/libXau.so.10.0 libXdmcp.so.11.0 => /usr/X11R6/lib/libXdmcp.so.11.0 libxcb.so.4.1 => /usr/X11R6/lib/libxcb.so.4.1 libXau.so.10.0 => /usr/X11R6/lib/libXau.so.10.0 libXdmcp.so.11.0 => /usr/X11R6/lib/libXdmcp.so.11.0 libX11.so.18.0 => /usr/X11R6/lib/libX11.so.18.0 libxcb.so.4.1 => /usr/X11R6/lib/libxcb.so.4.1 libXau.so.10.0 => /usr/X11R6/lib/libXau.so.10.0 libXdmcp.so.11.0
Re: lddtree on OpenBSD?
16 September 2022 at 14:21, "Stuart Henderson" wrote: > You need to list library paths on the command line too. Eventually, I seem to have achieved what I needed by some other means, but still, I also tried to add some paths to the lddtree, but it does not seem to help: odin$ ldd /usr/X11R6/bin/xclock /usr/X11R6/bin/xclock: StartEnd Type Open Ref GrpRef Name 0eb6c5609000 0eb6c5619000 exe 10 0 /usr/X11R6/bin/xclock 0eb9b07d6000 0eb9b0855000 rlib 01 0 /usr/X11R6/lib/libXaw7.so.15.0 ... odin$ lddtree /usr/X11R6/bin/xclock /usr/X11R6/lib /usr/libexec/ld.so => /usr/libexec/ld.so libXaw7.so.15.0 => not found ... ... while /usr/X11R6/lib/libXaw7.so.15.0 does exist. (I tried a few other ways, but to no avail.) Nonetheless, thanks for your help. Ruda > On 16 September 2022 12:59:34 rsyk...@disroot.org wrote: > > > > > 15 September 2022, 15:37, "Stuart Henderson" wrote: > > > > > > > > That's an OpenBSD port, you can untar it in /usr/ports/devel and build it > > > > > > > Ok. I built it (although it first built a lot of stuff, namely rust). I > > can > run it, > > but trying it out, I get, eg: > > > > odin$ ldd /usr/X11R6/bin/xclock > > /usr/X11R6/bin/xclock: > > Start End Type Open Ref GrpRef Name > > 0f0d7ffa8000 0f0d7ffb8000 exe 1 0 0 /usr/X11R6/bin/xclock > > 0f10024fd000 0f100257c000 rlib 0 1 0 > > > /usr/X11R6/lib/libXaw7.so.15.0 > > 0f1026b58000 0f1026b78000 rlib 0 2 0 > > > /usr/X11R6/lib/libXmu.so.11.0 > > 0f0fb8d8b000 0f0fb8dfc000 rlib 0 3 0 > /usr/X11R6/lib/libXt.so.11.0 > > 0f10400e 0f1040237000 rlib 0 9 0 > > > /usr/X11R6/lib/libX11.so.18.0 > > 0f0fe7b58000 0f0fe7b65000 rlib 0 2 0 > > > /usr/X11R6/lib/libXrender.so.6.0 > > 0f102fcf7000 0f102fd12000 rlib 0 1 0 > > > /usr/X11R6/lib/libXft.so.12.0 > > 0f1053a6e000 0f1053a99000 rlib 0 1 0 > > > /usr/X11R6/lib/libxkbfile.so.6.0 > > 0f10263cb000 0f10263fc000 rlib 0 1 0 /usr/lib/libm.so.10.1 > > 0f0fb01ee000 0f0fb02e3000 rlib 0 1 0 /usr/lib/libc.so.96.1 > > 0f0f96557000 0f0f9656e000 rlib 0 2 0 > > > /usr/X11R6/lib/libXext.so.13.0 > > 0f0fca41e000 0f0fca429000 rlib 0 3 0 > /usr/X11R6/lib/libSM.so.9.0 > > 0f103407a000 0f1034098000 rlib 0 4 0 > > > /usr/X11R6/lib/libICE.so.11.0 > > 0f102f00 0f102f017000 rlib 0 1 0 > /usr/X11R6/lib/libXpm.so.9.0 > > 0f0fcef4f000 0f0fcef7f000 rlib 0 9 0 > /usr/X11R6/lib/libxcb.so.4.1 > > 0f0fa9eea000 0f0fa9f3c000 rlib 0 1 0 > > > /usr/X11R6/lib/libfontconfig.so.13.1 > > 0f0fa8b31000 0f0fa8b62000 rlib 0 2 0 > /usr/lib/libexpat.so.14.0 > > 0f0f9e533000 0f0f9e605000 rlib 0 2 0 > > > /usr/X11R6/lib/libfreetype.so.30.1 > > 0f102262b000 0f1022649000 rlib 0 3 0 /usr/lib/libz.so.6.0 > > 0f0fdbcd2000 0f0fdbcd8000 rlib 0 1 0 > > > /usr/X11R6/lib/libXau.so.10.0 > > 0f0f811d6000 0f0f811df000 rlib 0 1 0 > > > /usr/X11R6/lib/libXdmcp.so.11.0 > > 0f103bd3d000 0f103bd3d000 ld.so 0 1 0 /usr/libexec/ld.so > > odin$ lddtree /usr/X11R6/bin/xclock > > /usr/libexec/ld.so => /usr/libexec/ld.so > > libXaw7.so.15.0 => not found > > libXmu.so.11.0 => not found > > libXt.so.11.0 => not found > > libX11.so.18.0 => not found > > libXrender.so.6.0 => not found > > libXft.so.12.0 => not found > > libxkbfile.so.6.0 => not found > > libm.so.10.1 => /usr/lib/libm.so.10.1 > > libc.so.96.1 => /usr/lib/libc.so.96.1 > > odin$ > > > > so it seems something is still not quite right (I can run xclock...). > > > > Thanks for any more comments. > > > > Ruda > > > > PS.: I am not a programmer. I thought that what I need to do -- list > > hierarchically the dependency tree of a program/library -- is quite a > > common > > task people have to do from time to time. I am surprised there seems to not > > be an easy/ready way to it. > > >
Re: lddtree on OpenBSD?
17 September 2022 at 02:41, "Jaskaran Veer Singh" wrote: > > On Thu Sep 15, 2022 at 9:31 AM EDT, wrote: > > > > > 15 September 2022, 09:35, "Sebastien Marie" wrote: > > > > $ LD_DEBUG=1 xlogo 2>&1 | grep ^loading > > loading: libXt.so.11.0 required by xlogo > > loading: libXrender.so.6.0 required by xlogo > > loading: libXext.so.13.0 required by xlogo > > loading: libSM.so.9.0 required by xlogo > > ... > > > > Thank you, this might be useful. Can you do something similar > > with a library? Ie, xlogo above is an executable that you can > > run, what if xlogo were a library... > > > > Maybe you `ld` it against a hello world program before using the technique > above? I haven't tried it, but I think you would need to actually call a function from the library, ie, know some function name, in order for the linker to actually link the library to the executable. Not that this isn't doable, but... Thanks anyhow. Ruda
Re: lddtree on OpenBSD?
On Thu Sep 15, 2022 at 9:31 AM EDT, wrote: > 15 September 2022, 09:35, "Sebastien Marie" wrote: > > > > > $ LD_DEBUG=1 xlogo 2>&1 | grep ^loading > > loading: libXt.so.11.0 required by xlogo > > loading: libXrender.so.6.0 required by xlogo > > loading: libXext.so.13.0 required by xlogo > > loading: libSM.so.9.0 required by xlogo > > ... > > Thank you, this might be useful. Can you do something similar > with a library? Ie, xlogo above is an executable that you can > run, what if xlogo were a library... Maybe you `ld` it against a hello world program before using the technique above? > Thank you > Ruda
Re: lddtree on OpenBSD?
You need to list library paths on the command line too. -- Sent from a phone, apologies for poor formatting. On 16 September 2022 12:59:34 rsyk...@disroot.org wrote: 15 September 2022, 15:37, "Stuart Henderson" wrote: That's an OpenBSD port, you can untar it in /usr/ports/devel and build it Ok. I built it (although it first built a lot of stuff, namely rust). I can run it, but trying it out, I get, eg: odin$ ldd /usr/X11R6/bin/xclock /usr/X11R6/bin/xclock: StartEnd Type Open Ref GrpRef Name 0f0d7ffa8000 0f0d7ffb8000 exe 10 0 /usr/X11R6/bin/xclock 0f10024fd000 0f100257c000 rlib 01 0 /usr/X11R6/lib/libXaw7.so.15.0 0f1026b58000 0f1026b78000 rlib 02 0 /usr/X11R6/lib/libXmu.so.11.0 0f0fb8d8b000 0f0fb8dfc000 rlib 03 0 /usr/X11R6/lib/libXt.so.11.0 0f10400e 0f1040237000 rlib 09 0 /usr/X11R6/lib/libX11.so.18.0 0f0fe7b58000 0f0fe7b65000 rlib 02 0 /usr/X11R6/lib/libXrender.so.6.0 0f102fcf7000 0f102fd12000 rlib 01 0 /usr/X11R6/lib/libXft.so.12.0 0f1053a6e000 0f1053a99000 rlib 01 0 /usr/X11R6/lib/libxkbfile.so.6.0 0f10263cb000 0f10263fc000 rlib 01 0 /usr/lib/libm.so.10.1 0f0fb01ee000 0f0fb02e3000 rlib 01 0 /usr/lib/libc.so.96.1 0f0f96557000 0f0f9656e000 rlib 02 0 /usr/X11R6/lib/libXext.so.13.0 0f0fca41e000 0f0fca429000 rlib 03 0 /usr/X11R6/lib/libSM.so.9.0 0f103407a000 0f1034098000 rlib 04 0 /usr/X11R6/lib/libICE.so.11.0 0f102f00 0f102f017000 rlib 01 0 /usr/X11R6/lib/libXpm.so.9.0 0f0fcef4f000 0f0fcef7f000 rlib 09 0 /usr/X11R6/lib/libxcb.so.4.1 0f0fa9eea000 0f0fa9f3c000 rlib 01 0 /usr/X11R6/lib/libfontconfig.so.13.1 0f0fa8b31000 0f0fa8b62000 rlib 02 0 /usr/lib/libexpat.so.14.0 0f0f9e533000 0f0f9e605000 rlib 02 0 /usr/X11R6/lib/libfreetype.so.30.1 0f102262b000 0f1022649000 rlib 03 0 /usr/lib/libz.so.6.0 0f0fdbcd2000 0f0fdbcd8000 rlib 01 0 /usr/X11R6/lib/libXau.so.10.0 0f0f811d6000 0f0f811df000 rlib 01 0 /usr/X11R6/lib/libXdmcp.so.11.0 0f103bd3d000 0f103bd3d000 ld.so 01 0 /usr/libexec/ld.so odin$ lddtree /usr/X11R6/bin/xclock /usr/libexec/ld.so => /usr/libexec/ld.so libXaw7.so.15.0 => not found libXmu.so.11.0 => not found libXt.so.11.0 => not found libX11.so.18.0 => not found libXrender.so.6.0 => not found libXft.so.12.0 => not found libxkbfile.so.6.0 => not found libm.so.10.1 => /usr/lib/libm.so.10.1 libc.so.96.1 => /usr/lib/libc.so.96.1 odin$ so it seems something is still not quite right (I can run xclock...). Thanks for any more comments. Ruda PS.: I am not a programmer. I thought that what I need to do -- list hierarchically the dependency tree of a program/library -- is quite a common task people have to do from time to time. I am surprised there seems to not be an easy/ready way to it.
Re: lddtree on OpenBSD?
That's an OpenBSD port, you can untar it in /usr/ports/devel and build it -- Sent from a phone, apologies for poor formatting. On 15 September 2022 14:30:20 rsyk...@disroot.org wrote: 15 September 2022, 11:19, "Stuart Henderson" wrote: On 2022-09-15, rsyk...@disroot.org wrote: > > is there any tool that would help me to see hierarchical dependencies > of (shared) libraries on OpenBSD? > How aboutlddtree? Well, on linux they have the lddtree, but on OpenBSD I could not locate it, neither as a package nor in the ports. So you mean I can download its source from https://junkpile.org/lddtree.tgz compile it, and there is a chance it will work? Do I have to save the lddtree source somewhere under the /usr/ports in order to be able to compile (sorry for, perhaps, such a stupid question, but just downloading, untaring, and running make in its directory didn't work). Thanks. Ruda
Re: lddtree on OpenBSD?
> > Unless I misremember, OpenBSD requires you to add all needed libraries > > while linking the main program, so there is no tree to be listed. > > Not any more, we no longer have static-only archs. Ah, I see. Thanks for the clarification. -- May the most significant bit of your life be positive.
Re: lddtree on OpenBSD?
On 2022-09-15, Janne Johansson wrote: > Den tors 15 sep. 2022 kl 09:10 skrev : >> Dear list, >> is there any tool that would help me to see hierarchical dependencies >> of (shared) libraries on OpenBSD? >> >> I have compiled a program and when I run it (or use ldd) it shows >> that it depends on, eg, several versions of libX11 (which it should >> not, as far as I understand). I would like to understand what brings >> in the various versions. > > Unless I misremember, OpenBSD requires you to add all needed libraries > while linking the main program, so there is no tree to be listed. Not any more, we no longer have static-only archs.
Re: lddtree on OpenBSD?
On 2022-09-15, rsyk...@disroot.org wrote: > is there any tool that would help me to see hierarchical dependencies > of (shared) libraries on OpenBSD? How aboutlddtree? Port of the rust version at https://junkpile.org/lddtree.tgz > I have compiled a program and when I run it (or use ldd) it shows > that it depends on, eg, several versions of libX11 (which it should > not, as far as I understand). I would like to understand what brings > in the various versions. Most likely your binary links against an outdated library that has an inter-library dep on an old version of an X library, and also link directly against a newer version. pkg_add -u might fix it, but you also might need to rebuild if the first library was version-bumped. -- Please keep replies on the mailing list.
Re: lddtree on OpenBSD?
On Thu, Sep 15, 2022 at 09:08:06AM +0200, rsyk...@disroot.org wrote: > Dear list, > > > is there any tool that would help me to see hierarchical dependencies > of (shared) libraries on OpenBSD? > > I have compiled a program and when I run it (or use ldd) it shows > that it depends on, eg, several versions of libX11 (which it should > not, as far as I understand). I would like to understand what brings > in the various versions. > I am unsure we have a tool which will do exactly that. As you tried, ldd will show the exact libraries resolution, without mentioning the origin of the dependance. The dependance is registered in the elf file itself, and could be shown with readelf(1): $ readelf -d /usr/X11R6/lib/libXrender.so.6.0 | grep '(NEEDED)' 0x0001 (NEEDED) Shared library: [libX11.so.18.0] 0x0001 (NEEDED) Shared library: [libxcb.so.4.1] But it doesn't resolv the path. You could try several options of ld.so(8) which is using environment variables (look at the man page for full list): here, using LD_DEBUG and keeping only the 'loading' lines: $ ldd /usr/X11R6/bin/xlogo /usr/X11R6/bin/xlogo: StartEnd Type Open Ref GrpRef Name 05da399ab000 05da399b3000 exe 10 0 /usr/X11R6/bin/xlogo 05dc70c8f000 05dc70ca9000 rlib 01 0 /usr/X11R6/lib/libXft.so.12.0 05dc68ea4000 05dc68eb1000 rlib 02 0 /usr/X11R6/lib/libXrender.so.6.0 05dc5ce95000 05dc5cea rlib 04 0 /usr/X11R6/lib/libSM.so.9.0 05dc8f32d000 05dc8f3ac000 rlib 01 0 /usr/X11R6/lib/libXaw7.so.15.0 05dcf01a3000 05dcf01c3000 rlib 02 0 /usr/X11R6/lib/libXmu.so.11.0 05dd0639c000 05dd0640d000 rlib 03 0 /usr/X11R6/lib/libXt.so.11.0 05dccb99f000 05dccb9b6000 rlib 03 0 /usr/X11R6/lib/libXext.so.13.0 05dcdda1a000 05dcddb71000 rlib 08 0 /usr/X11R6/lib/libX11.so.18.0 05dc4ce56000 05dc4cf4a000 rlib 01 0 /usr/lib/libc.so.96.2 05dce348 05dce34d2000 rlib 01 0 /usr/X11R6/lib/libfontconfig.so.13.1 05dc991f7000 05dc99215000 rlib 03 0 /usr/lib/libz.so.7.0 05dd1959c000 05dd195cd000 rlib 02 0 /usr/lib/libexpat.so.14.0 05dd3845a000 05dd3852b000 rlib 02 0 /usr/X11R6/lib/libfreetype.so.30.2 05dc7ae6 05dc7ae9 rlib 08 0 /usr/X11R6/lib/libxcb.so.4.1 05dd38fd5000 05dd38ff3000 rlib 04 0 /usr/X11R6/lib/libICE.so.11.0 05dc4d9eb000 05dc4da02000 rlib 01 0 /usr/X11R6/lib/libXpm.so.9.0 05dd29391000 05dd29397000 rlib 01 0 /usr/X11R6/lib/libXau.so.10.0 05dc56cd2000 05dc56cdb000 rlib 01 0 /usr/X11R6/lib/libXdmcp.so.11.0 05dc972b 05dc972b ld.so 01 0 /usr/libexec/ld.so $ LD_DEBUG=1 xlogo 2>&1 | grep ^loading loading: libXt.so.11.0 required by xlogo loading: libXrender.so.6.0 required by xlogo loading: libXext.so.13.0 required by xlogo loading: libSM.so.9.0 required by xlogo loading: libc.so.96.2 required by xlogo loading: libXft.so.12.0 required by xlogo loading: libXmu.so.11.0 required by xlogo loading: libXaw7.so.15.0 required by xlogo loading: libX11.so.18.0 required by xlogo loading: libxcb.so.4.1 required by /usr/X11R6/lib/libXft.so.12.0 loading: libXrender.so.6.0 required by /usr/X11R6/lib/libXft.so.12.0 loading: libz.so.7.0 required by /usr/X11R6/lib/libXft.so.12.0 loading: libfreetype.so.30.2 required by /usr/X11R6/lib/libXft.so.12.0 loading: libfontconfig.so.13.1 required by /usr/X11R6/lib/libXft.so.12.0 loading: libX11.so.18.0 required by /usr/X11R6/lib/libXft.so.12.0 loading: libexpat.so.14.0 required by /usr/X11R6/lib/libXft.so.12.0 loading: libX11.so.18.0 required by /usr/X11R6/lib/libXrender.so.6.0 loading: libxcb.so.4.1 required by /usr/X11R6/lib/libXrender.so.6.0 loading: libICE.so.11.0 required by /usr/X11R6/lib/libSM.so.9.0 loading: libX11.so.18.0 required by /usr/X11R6/lib/libXaw7.so.15.0 loading: libXt.so.11.0 required by /usr/X11R6/lib/libXaw7.so.15.0 loading: libXext.so.13.0 required by /usr/X11R6/lib/libXaw7.so.15.0 loading: libXmu.so.11.0 required by /usr/X11R6/lib/libXaw7.so.15.0 loading: libXpm.so.9.0 required by /usr/X11R6/lib/libXaw7.so.15.0 loading: libICE.so.11.0 required by /usr/X11R6/lib/libXaw7.so.15.0 loading: libSM.so.9.0 required by /usr/X11R6/lib/libXaw7.so.15.0 loading: libxcb.so.4.1 required by /usr/X11R6/lib/libXaw7.so.15.0 loading: libICE.so.11.0 required by /usr/X11R6/lib/libXmu.so.11.0 loading: libSM.so.9.0 required by /usr/X11R6/lib/libXmu.so.11.0 loading: libX11.so.18.0 required by
Re: lddtree on OpenBSD?
Den tors 15 sep. 2022 kl 09:10 skrev : > Dear list, > is there any tool that would help me to see hierarchical dependencies > of (shared) libraries on OpenBSD? > > I have compiled a program and when I run it (or use ldd) it shows > that it depends on, eg, several versions of libX11 (which it should > not, as far as I understand). I would like to understand what brings > in the various versions. Unless I misremember, OpenBSD requires you to add all needed libraries while linking the main program, so there is no tree to be listed. -- May the most significant bit of your life be positive.