From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,540ee106144a730e X-Google-Attributes: gidfee84,public From: gpt@k2.llnl.gov (Greg P Tomaschke) Subject: Re: Tru64 UNIX equivalent of ldconfig? Date: 1999/07/27 Message-ID: <7nl2vv$h3k$1@lll-winken.llnl.gov>#1/1 X-Deja-AN: 505904591 References: <7m8ug5$j1o$1@nnrp1.deja.com> <37973757.C2C6FA27@compaq.com> <379791b7.0@nnrp1.news.uk.psi.net> X-Complaints-To: abuse@lll-winken.llnl.gov X-Trace: lll-winken.llnl.gov 933105471 17524 134.9.1.1 (27 Jul 1999 19:57:50 GMT) Organization: Lawrence Livermore National Laboratory NNTP-Posting-Date: 27 Jul 1999 19:57:50 GMT Newsgroups: comp.unix.osf.osf1 There's a version of ldd on the net at: http://www.informatik.uni-siegen.de/~unger/ldd Here's what the output looks like: ldd -l ./a.out using <./a.out>, an ALPHA executable ***LIBRARY LIST SECTION*** Name Time-Stamp CheckSum Flags Version ./a.out: libcxx.so Dec 29 15:13:41 1997 0x1da51211 0 V4.0.1 libexc.so Jun 26 14:06:59 1998 0xbf6e7df3 0 osf.1 libc.so Jan 6 15:37:29 1999 0x6f5edd10 0 osf.1 library locations: /usr/shlib/libcxx.so /usr/shlib/libexc.so /usr/shlib/libc.so -Greg Greg Tomaschke Lawrence Livermore National Lab In article , Andrew Hobson writes: |> On Thu, 22 Jul 1999 22:51:37 +0100, "Jon Hitchcock" said: |> |> > Ryurick M. Hristev wrote in message |> > news:qv6btd4jv9b.fsf@physp43.phys.canterbury.ac.nz... |> >> ... |> >> Maybe he wanted to talk about an ldd equivalent ? |> >> (which BTW I couldn't find) |> >> ... |> |> > In Digital Unix, the odump command has options for reporting on shared |> > libraries. To find out which libraries are required to run a binary, use |> > odump -Dl filename |> > (that is hyphen uppercase-D lowercase-L). |> |> One thing I haven't figured out how to do is get the path to the |> library that the binary is using. With LD_LIBRARY_PATH, cc -rpath, |> and multiple versions of the library lying around, I'd really, really |> like a way to figure that out. |> |> |> On Tru64 4.0F: |> |> $ odump -Dl /usr/bin/X11/xterm |> |> |> ***LIBRARY LIST SECTION*** |> Name Time-Stamp CheckSum Flags Version |> /usr/bin/X11/xterm: |> libXaw.so Apr 2 01:59:38 1999 0xf381d6a0 0 6.0 |> libXmu.so Apr 2 01:58:34 1999 0x3bf3a33d 0 |> libXt.so Apr 2 01:57:54 1999 0x10dd9a17 0 |> libSM.so Apr 2 01:55:43 1999 0xb64c7082 0 |> libICE.so Apr 2 01:55:34 1999 0x1199be32 0 |> libXext.so Apr 2 01:56:03 1999 0xafcb84d5 0 |> libX11.so Apr 2 01:54:59 1999 0xb7349a7f 0 |> libc.so Apr 1 21:31:08 1999 0x59eef91c 0 osf.1 |> |> |> On Solaris 2.6: |> |> $ ldd /usr/openwin/bin/xterm |> libXaw.so.5 => /usr/openwin/lib/libXaw.so.5 |> libXmu.so.4 => /usr/openwin/lib/libXmu.so.4 |> libm.so.1 => /usr/lib/libm.so.1 |> libXt.so.4 => /usr/openwin/lib/libXt.so.4 |> libSM.so.6 => /usr/openwin/lib/libSM.so.6 |> libICE.so.6 => /usr/openwin/lib/libICE.so.6 |> libXext.so.0 => /usr/openwin/lib/libXext.so.0 |> libX11.so.4 => /usr/openwin/lib/libX11.so.4 |> libsocket.so.1 => /usr/lib/libsocket.so.1 |> libnsl.so.1 => /usr/lib/libnsl.so.1 |> libc.so.1 => /usr/lib/libc.so.1 |> libdl.so.1 => /usr/lib/libdl.so.1 |> libmp.so.2 => /usr/lib/libmp.so.2 |> |> |> Drew |> |> -- |> "Joe, release me from your Kung-Fu grip." -- Stacy Lavelle