From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tantalum Newsgroups: gmane.lisp.guile.bugs Subject: Re: error messages of "dynamic-link" Date: Mon, 18 May 2009 22:03:34 +0200 Message-ID: <4A11BF16.7080705@thaseph.de> Reply-To: mail@thaseph.de NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242676588 7218 80.91.229.12 (18 May 2009 19:56:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 May 2009 19:56:28 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Mon May 18 21:56:21 2009 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M68wd-0001Wx-TZ for guile-bugs@m.gmane.org; Mon, 18 May 2009 21:56:20 +0200 Original-Received: from localhost ([127.0.0.1]:52625 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M68wd-0007SC-Cd for guile-bugs@m.gmane.org; Mon, 18 May 2009 15:56:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M68wY-0007Rj-CE for bug-guile@gnu.org; Mon, 18 May 2009 15:56:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M68wS-0007Ph-I1 for bug-guile@gnu.org; Mon, 18 May 2009 15:56:12 -0400 Original-Received: from [199.232.76.173] (port=48359 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M68wS-0007Pe-EN for bug-guile@gnu.org; Mon, 18 May 2009 15:56:08 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.171]:54060) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M68wR-0001sV-O1 for bug-guile@gnu.org; Mon, 18 May 2009 15:56:08 -0400 Original-Received: from [192.168.0.55] (frnk-5f743b42.pool.einsundeins.de [95.116.59.66]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MKv1o-1M68wQ2h7p-000j61; Mon, 18 May 2009 21:56:06 +0200 User-Agent: Thunderbird 2.0.0.21 (X11/20090319) X-Provags-ID: V01U2FsdGVkX1+AwzkfCIF+ADpCLFUeJbrQ36QkB3pi9PthxxM RAX38+/rO4keiTu0A4RAlDydRo6gzEsUHmvYfQmQBCG0opAIQk 5rwJgNSoIN6oK/KiGA8Ng== X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:4222 Archived-At: 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 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