bug-guile
[Top][All Lists]
Advanced

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

Re: error messages of "dynamic-link"


From: tantalum
Subject: Re: error messages of "dynamic-link"
Date: Mon, 18 May 2009 22:03:34 +0200
User-agent: Thunderbird 2.0.0.21 (X11/20090319)

I found out that the libraries which do not work contain a different kind of content:
for example (complete file):
/* GNU ld script
  Use the shared library, but some functions are only in
  the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld-linux.so.2 ) )

or

INPUT ( %{_libdir}/libopcodes.a -lbfd )


I ran a script containing only the dynamic-link call, as root.
following is output of strace:

access("/lib/libc.so", R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/libc.so", R_OK)        = 0
futex(0xb7c0106c, FUTEX_WAKE_PRIVATE, 2147483647) = 0
open("/usr/lib/libc.so", O_RDONLY)      = 6
read(6, "/* GNU ld script\n   Use the share"..., 512) = 238
close(6)                                = 0
write(2, "ERROR"..., 5ERROR)                 = 5
write(2, ": "..., 2: )                    = 2
write(2, "In procedure "..., 13In procedure )        = 13
write(2, "dynamic-link"..., 12dynamic-link)         = 12
write(2, ":\n"..., 2:
)                   = 2
write(2, "ERROR"..., 5ERROR)                 = 5
write(2, ": "..., 2: )                    = 2
write(2, "file: "..., 6file: )                = 6
write(2, "\""..., 1")                    = 1
write(2, "libc"..., 4libc)                  = 4
write(2, "\""..., 1")                    = 1
write(2, ", message: "..., 11, message: )          = 11
write(2, "\""..., 1")                    = 1
write(2, "file not found"..., 14file not found)       = 14
write(2, "\""..., 1")                    = 1
write(2, "\n"..., 1
)                    = 1
exit_group(1)


Julian.

----
tantalum <address@hidden> writes:

> Hi,
>
> while experimenting with using "dynamic-link" with guile 1.8.6, I
> noticed that some libraries can not be loaded.
> same location ("/usr/lib"), same filename extension (".so").
> for example "libc.so", "libopcodes.so".
> the error message always says "File not Found", which is irritating.
> i believe this is a bug, or there is a missing feature.

Hi Julian,

A couple of ideas to try:

1. Rerun under strace, to find out exactly where Guile is looking for
the library that you want.

2. Check that permissions on the library files will allow the user
running Guile to read them.

If that doesn't solve the problem, please post the part of the strace
output which covers looking for the problematic library.

Regards,
       Neil





reply via email to

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