guile-user
[Top][All Lists]
Advanced

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

Re: load-extension fails with "file not found" message


From: Panicz Maciej Godek
Subject: Re: load-extension fails with "file not found" message
Date: Thu, 12 May 2016 14:01:08 +0200

2016-05-12 10:01 GMT+02:00 <address@hidden>:

> 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: address@hidden
> *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 via email to

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