unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@gnuvola.org>
To: guile-user@gnu.org
Subject: Re: loading a module
Date: Thu, 18 Feb 2010 07:07:09 +0100	[thread overview]
Message-ID: <87vddv3wmq.fsf@ambire.localdomain> (raw)
In-Reply-To: <6715b3f4c96fb363525da02fec628b35.squirrel@webmail.xs4all.nl> (Tomas By's message of "Wed, 17 Feb 2010 21:21:43 +0100")

() "Tomas By" <tomas@basun.net>
() 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	other threads:[~2010-02-18  6:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-17 20:21 loading a module Tomas By
2010-02-18  6:07 ` Thien-Thi Nguyen [this message]
  -- strict thread matches above, loose matches on Subject: below --
2010-03-01 18:58 Tomas By
2010-03-01 19:21 ` Neil Jerram
2010-02-17 18:26 Tomas By
2010-02-17 20:12 ` Andy Wingo
2010-02-28 22:59 ` Neil Jerram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87vddv3wmq.fsf@ambire.localdomain \
    --to=ttn@gnuvola.org \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).