() "Tomas By" <[email protected]>
() Wed, 17 Feb 2010 21:21:43 +0100
ldd doesn't seem to report anything wrong, but is there any
other test available from the shell?
If you have strace(1), you can use the script (i call it ~/bin/st):
#!/bin/sh
exec strace -f -e open "$@" 2>&1 | grep -v o.such.file
to find out what files are being opened succesfully. Example usage:
|$ st guile -c '(quit)'
|open("/home/ttn/local/lib/libguile.so.9", O_RDONLY) = 3
|open("/home/ttn/local/lib/libltdl.so.7", O_RDONLY) = 3
|open("/etc/ld.so.cache", O_RDONLY) = 3
|open("/lib/tls/i686/cmov/libm.so.6", O_RDONLY) = 3
|open("/lib/tls/i686/cmov/libdl.so.2", O_RDONLY) = 3
|open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
|open("/home/ttn/local/lib/guile/1.4.1.118/ice-9/boot-9.scm", O_RDONLY) = 3
|open("/home/ttn/local/lib/guile/site/.module-catalog", O_RDONLY) = 4
|open("/home/ttn/local/share/guile/site/.module-catalog", O_RDONLY) = 4
|open("/home/ttn/local/lib/guile/1.4.1.118/.module-catalog", O_RDONLY) = 4
|open("/home/ttn/local/lib/guile/site/init.scm", O_RDONLY) = 3
|Process 6112 detached
If you remove the "| grep -v o.such.file" portion, the output will include
all open(2) calls, including the ones that fail.
thi