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
> >  00000eb6c5609000 00000eb6c5619000 exe 1 0 0 /usr/X11R6/bin/xclock
> >  00000eb9b07d6000 00000eb9b0855000 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 <pathname> [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 <pathname> [<root> [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

Reply via email to