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: Andrew Hobson Subject: Re: Tru64 UNIX equivalent of ldconfig? Date: 1999/07/23 Message-ID: #1/1 X-Deja-AN: 504401328 Sender: ahobson@gamma.eng.mindspring.net References: <7m8ug5$j1o$1@nnrp1.deja.com> <37973757.C2C6FA27@compaq.com> <379791b7.0@nnrp1.news.uk.psi.net> X-Face: (e_H,)"'M4u!E!3"|XVHJ=[/_.:z73Z^oGf")[Payuf 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