guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: loading a module


From: Thien-Thi Nguyen
Subject: Re: loading a module
Date: Thu, 18 Feb 2010 07:07:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (gnu/linux)

() "Tomas By" <address@hidden>
() 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]