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:
       Start            End              Type  Open Ref GrpRef Name
       00000f0d7ffa8000 00000f0d7ffb8000 exe   1    0   0      
/usr/X11R6/bin/xclock
00000f10024fd000 00000f100257c000 rlib 0 1 0 /usr/X11R6/lib/libXaw7.so.15.0 00000f1026b58000 00000f1026b78000 rlib 0 2 0 /usr/X11R6/lib/libXmu.so.11.0 00000f0fb8d8b000 00000f0fb8dfc000 rlib 0 3 0 /usr/X11R6/lib/libXt.so.11.0 00000f10400e0000 00000f1040237000 rlib 0 9 0 /usr/X11R6/lib/libX11.so.18.0 00000f0fe7b58000 00000f0fe7b65000 rlib 0 2 0 /usr/X11R6/lib/libXrender.so.6.0 00000f102fcf7000 00000f102fd12000 rlib 0 1 0 /usr/X11R6/lib/libXft.so.12.0 00000f1053a6e000 00000f1053a99000 rlib 0 1 0 /usr/X11R6/lib/libxkbfile.so.6.0
       00000f10263cb000 00000f10263fc000 rlib  0    1   0      
/usr/lib/libm.so.10.1
       00000f0fb01ee000 00000f0fb02e3000 rlib  0    1   0      
/usr/lib/libc.so.96.1
00000f0f96557000 00000f0f9656e000 rlib 0 2 0 /usr/X11R6/lib/libXext.so.13.0 00000f0fca41e000 00000f0fca429000 rlib 0 3 0 /usr/X11R6/lib/libSM.so.9.0 00000f103407a000 00000f1034098000 rlib 0 4 0 /usr/X11R6/lib/libICE.so.11.0 00000f102f000000 00000f102f017000 rlib 0 1 0 /usr/X11R6/lib/libXpm.so.9.0 00000f0fcef4f000 00000f0fcef7f000 rlib 0 9 0 /usr/X11R6/lib/libxcb.so.4.1 00000f0fa9eea000 00000f0fa9f3c000 rlib 0 1 0 /usr/X11R6/lib/libfontconfig.so.13.1 00000f0fa8b31000 00000f0fa8b62000 rlib 0 2 0 /usr/lib/libexpat.so.14.0 00000f0f9e533000 00000f0f9e605000 rlib 0 2 0 /usr/X11R6/lib/libfreetype.so.30.1
       00000f102262b000 00000f1022649000 rlib  0    3   0      
/usr/lib/libz.so.6.0
00000f0fdbcd2000 00000f0fdbcd8000 rlib 0 1 0 /usr/X11R6/lib/libXau.so.10.0 00000f0f811d6000 00000f0f811df000 rlib 0 1 0 /usr/X11R6/lib/libXdmcp.so.11.0
       00000f103bd3d000 00000f103bd3d000 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.

Reply via email to