* Digital Unix equivalents of ldd and truss?
@ 1999-10-21 4:00 Andrew Gaylard
1999-10-21 4:00 ` Kjell Andresen
1999-10-21 4:00 ` John Kohl
0 siblings, 2 replies; 5+ messages in thread
From: Andrew Gaylard @ 1999-10-21 4:00 UTC (permalink / raw)
Hi All,
The subject line says it all.
Solaris has ldd, pldd, and truss.
Linux has ldd and strace.
Irix has par.
All I want to do is check the dynamic dependencies for a binary. No, I
don't have the source; these are binaries from third-party vendors.
And I want to watch the execution of system calls (DU's strace(1) does
something else, it seems).
I've seen that odump can help:
{andrewg}~ : odump -Dl /opt/netscape/netscape
***LIBRARY LIST SECTION***
Name Time-Stamp CheckSum Flags Version
/opt/netscape/netscape:
libXm.so Dec 9 09:23:20 1997 0xa55f6d32 0 motif1.2
libXmu.so Dec 9 08:13:36 1997 0x3bf3a33d 0
libXt.so Dec 9 08:12:18 1997 0x10dd9a17 0
libX11.so Dec 9 07:49:39 1997 0xeb5251bf 0
libXext.so Dec 9 08:08:51 1997 0xafcb84d5 0
libdnet_stub.so Dec 30 01:16:25 1997 0x9408a36b 0 osf.1
libm.so Dec 30 01:09:53 1997 0xf29b0962 0 osf.1
libots.so Dec 30 01:13:40 1997 0x0876eb23 0
libc.so Dec 30 01:09:30 1997 0x5e955f9b 0 osf.1
libcxx.so Dec 30 01:13:41 1997 0x1da51211 0 V4.0.1
libexc.so Dec 30 01:09:57 1997 0x3184247e 0 osf.1
Is there anything which will show the exact locations of these
libraries, a la ldd? Is there a tool which can show which libraries a
running process is using a la Sun's pldd, so I don't have to stop it and
restart it?
Thanks for any help.
--
--
Andrew Gaylard
andrewg @ bsw . co . za
^ permalink raw reply [flat|nested] 5+ messages in thread* Re: Digital Unix equivalents of ldd and truss?
1999-10-21 4:00 Digital Unix equivalents of ldd and truss? Andrew Gaylard
@ 1999-10-21 4:00 ` Kjell Andresen
1999-10-21 4:00 ` Pit Linnartz
1999-10-21 4:00 ` John Kohl
1 sibling, 1 reply; 5+ messages in thread
From: Kjell Andresen @ 1999-10-21 4:00 UTC (permalink / raw)
/usr/sbin/strace
Kjell
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Digital Unix equivalents of ldd and truss?
1999-10-21 4:00 ` Kjell Andresen
@ 1999-10-21 4:00 ` Pit Linnartz
1999-10-22 4:00 ` Andrew Gaylard
0 siblings, 1 reply; 5+ messages in thread
From: Pit Linnartz @ 1999-10-21 4:00 UTC (permalink / raw)
Uhm, I thought /usr/sbin/strace is for streams traces.
There is a trace. I don't think it's the latest version,
but one can be found at ftp.digital.com/pub/DEC/alpha-trace-1.25.tar.Z
use altavista to obtain a more current version.
trace will show you the mappings to,
another way is to set _RLD_ARGS = "-trace -log <somefile>" or the one which
fits
best for youre need. (hint, use an illegal option to see the possibilities)
Pit
Kjell Andresen wrote in message ...
>
> /usr/sbin/strace
>
>Kjell
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Digital Unix equivalents of ldd and truss?
1999-10-21 4:00 ` Pit Linnartz
@ 1999-10-22 4:00 ` Andrew Gaylard
0 siblings, 0 replies; 5+ messages in thread
From: Andrew Gaylard @ 1999-10-22 4:00 UTC (permalink / raw)
"Pit Linnartz" <linnartz@software-ag.de> writes:
>Uhm, I thought /usr/sbin/strace is for streams traces.
>There is a trace. I don't think it's the latest version,
>but one can be found at ftp.digital.com/pub/DEC/alpha-trace-1.25.tar.Z
>use altavista to obtain a more current version.
>trace will show you the mappings to,
>another way is to set _RLD_ARGS = "-trace -log <somefile>" or the one which
>fits
>best for youre need. (hint, use an illegal option to see the possibilities)
>Pit
>Kjell Andresen wrote in message ...
>>
>> /usr/sbin/strace
>>
>>Kjell
Thanks Pit!
It seems that a recent version can be found at
ftp://ftp.iastate.edu/pub/unix/digital_unix/trace/alpha-trace-1.34.tar.Z
(Why DEQ doesn't include this with Digital Unix / Tru64 truly puzzles
me... but I havent' looked at 4.0F or 5.0 yet. Maybe they do now.)
--
--
Andrew Gaylard
andrewg @ bsw . co . za
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Digital Unix equivalents of ldd and truss?
1999-10-21 4:00 Digital Unix equivalents of ldd and truss? Andrew Gaylard
1999-10-21 4:00 ` Kjell Andresen
@ 1999-10-21 4:00 ` John Kohl
1 sibling, 0 replies; 5+ messages in thread
From: John Kohl @ 1999-10-21 4:00 UTC (permalink / raw)
andrewg@no.spam.please.bsw.co.za (Andrew Gaylard) writes:
> Is there anything which will show the exact locations of these
> libraries, a la ldd? Is there a tool which can show which libraries a
> running process is using a la Sun's pldd, so I don't have to stop it and
> restart it?
I haven't come across a way to get a run-time library list without
running the program. If you an stand that, then you can do this:
env _RLD_ARGS=-v <run-program>
e.g.:
% env _RLD_ARGS=-v ls
30641:/usr/bin/ls: /sbin/loader: _RLD_ARGS = "-v"
30641:/usr/bin/ls: /sbin/loader: _RLD_ROOT = /
30641:/usr/bin/ls: /sbin/loader: mapped Main at 0x120000000
30641:/usr/bin/ls: /sbin/loader: mapped /usr/shlib/libc.so at 0x3ff80080000
30641:/usr/bin/ls: /sbin/loader: obj /usr/shlib/libc.so CHECKSUM CHANGED
30641:/usr/bin/ls: /sbin/loader: Loader heap at 0x3ffc0008290
<prints out directory listing here>
As for getting a list of libraries in use by a running process, you
might try the lsof package (start at
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/)
It can identify open and mapped files, which should include the shared
libraries.
--
John Kohl <jtk@rational.com>
working for but not speaking for: Rational Software <http:/www.rational.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~1999-10-22 4:00 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-10-21 4:00 Digital Unix equivalents of ldd and truss? Andrew Gaylard
1999-10-21 4:00 ` Kjell Andresen
1999-10-21 4:00 ` Pit Linnartz
1999-10-22 4:00 ` Andrew Gaylard
1999-10-21 4:00 ` John Kohl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox