From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,6014cbf1d77efd04 X-Google-Attributes: gidfee84,public From: Thomas Unger Subject: Re: Which libraries are linked in? Date: 1998/06/12 Message-ID: <35811272.0@rainbow.hrz.uni-siegen.de>#1/1 X-Deja-AN: 361985122 References: <357D167C.4FAC4EE6@citicorp.com> User-Agent: tin/pre-1.4-980117 (UNIX) (OSF1/V4.0 (alpha)) Newsgroups: comp.unix.osf.osf1 Asgar Ali wrote: : On DEC Unix V4, does anyone know the command that will display a list of : libraries that an executable would use. : ie command produces : /usr/lib/xxx : /usr/lib/xx : /usr/directory/libalib.so etc. You can use 'ldd' to do this and more: (ldd is available at 'http://www.informatik.uni-siegen.de/~unger/ldd' and requires ebash and gdb to be installed) tcsh> ldd -a /usr/local/bin/ALPHA/cp using , an ALPHA executable RPATH: /usr/local/lib/ALPHA ***LIBRARY LIST SECTION*** Name Time-Stamp CheckSum Flags Version /usr/local/bin/ALPHA/cp: libintl.so Nov 19 16:58:19 1996 0xac00b749 0 libfu.so Nov 19 16:57:40 1996 0x2133d1f0 0 libgcc.so Nov 19 15:47:29 1996 0x9494d91a 0 libc.so May 20 04:18:46 1996 0xf937323b 0 osf.1 libgcc.so Nov 19 15:47:29 1996 0x9494d91a 0 library locations: /usr/local/lib/ALPHA/libintl.so /usr/local/lib/ALPHA/libfu.so /usr/local/lib/ALPHA/libgcc.so /usr/shlib/libc.so +/usr/local/bin/ALPHA/cp [ ; ] +/usr/local/lib/ALPHA/libintl.so [ Tue Nov 19 16:58:19 1996 ; ] +/usr/shlib/libc.so [ Tue Dec 30 00:09:30 1997 ; osf.1 ] +/usr/local/lib/ALPHA/libfu.so [ Tue Nov 19 16:57:40 1996 ; ] +/usr/shlib/libc.so [ Tue Dec 30 00:09:30 1997 ; osf.1 ] +/usr/local/lib/ALPHA/libgcc.so [ Wed Jan 14 19:10:57 1998 ; ] +/usr/shlib/libc.so [ Tue Dec 30 00:09:30 1997 ; osf.1 ] +/usr/local/lib/ALPHA/libgcc.so [ Wed Jan 14 19:10:57 1998 ; ] Greetings, Thomas -- /*******************************************************\ * Thomas Unger * * Informatik Universitaet GH Siegen * * unger@informatik.uni-siegen.de * * http://www.informatik.uni-siegen.de/~unger * \*******************************************************/