unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Panicz Maciej Godek <godek.maciek@gmail.com>
To: neil@ossau.homelinux.net
Cc: "guile-user@gnu.org" <guile-user@gnu.org>
Subject: Re: load-extension fails with "file not found" message
Date: Thu, 12 May 2016 14:01:08 +0200	[thread overview]
Message-ID: <CAMFYt2YJU2DweNHrOq4csQNNSQwteKJZobOC1dkuqOE_O_kGHw@mail.gmail.com> (raw)
In-Reply-To: <20160512080124.5910610.86346.34735@ossau.homelinux.net>

2016-05-12 10:01 GMT+02:00 <neil@ossau.homelinux.net>:

> I don't know, but this rings a bell. I suggest running under strace and
> looking at the stat syscalls, to see where Guile is looking.
>
> Thanks, brilliant!
It seems that guile finds the proper library file, but when it tries to
open it, dlopen cannot find a dependency library, so -- faced with a
failure -- guile searches for another library file, and eventually fails in
doing so:

access("./physics.so", R_OK)            = -1 ENOENT (No such file or
directory)
access("./scum/physics.so", R_OK)       = 0
open("./scum/physics.so", O_RDONLY|O_CLOEXEC) = 13
...
open("./tls/x86_64/libode.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such
file or directory)
open("./tls/libode.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)
open("./x86_64/libode.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file
or directory)
...
open("/lib/libode.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file or
directory)
open("/usr/lib/libode.so.1", O_RDONLY|O_CLOEXEC) = -1 ENOENT (No such file
or directory)
munmap(0x7f7c30915000, 98393)           = 0
munmap(0x7f7c3092e000, 2266520)         = 0
open("/usr/lib/x86_64-linux-gnu/physics.la", O_RDONLY) = -1 ENOENT (No such
file or directory)
...


I think that the error message is a bit confusing -- it would be much more
helpful if it informed that it found some file (or files), but none of them
satisfied its dependencies.

Anyway, thanks again!

Regards,
Panicz



> *From: *Panicz Maciej Godek
> *Sent: *Thursday, 12 May 2016 08:21
> *To: *guile-user@gnu.org
> *Subject: *load-extension fails with "file not found" message
>
> Hi,
> I recently made update of ubuntu, and I've been trying to get my
> guile-based framework to work. First, the guile 2.0.11 installed through
> Guix caused core dumps on initialization, so I switched to the version from
> the ubuntu repository.
>
> Now I've been trying to load some of the extensions needed for my program
> to run. However, when I try to load-extension, I get the error:
> ERROR: In procedure load-extension:
> ERROR: In procedure dynamic-link: file: "physics", message: "file not
> found"
>
> I also tried to pass the full path, either with or without the ".so"
> suffix, but it keeps failing.
> What could be the possible reason?
>
>
>
>


  reply	other threads:[~2016-05-12 12:01 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-12  7:26 load-extension fails with "file not found" message Panicz Maciej Godek
2016-05-12  8:01 ` neil
2016-05-12 12:01   ` Panicz Maciej Godek [this message]
2016-05-19 11:48     ` Ludovic Courtès
2016-05-19 12:38     ` Matt Wette
2016-05-19 16:20       ` Panicz Maciej Godek

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=CAMFYt2YJU2DweNHrOq4csQNNSQwteKJZobOC1dkuqOE_O_kGHw@mail.gmail.com \
    --to=godek.maciek@gmail.com \
    --cc=guile-user@gnu.org \
    --cc=neil@ossau.homelinux.net \
    /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).