From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marius Vollmer Newsgroups: gmane.lisp.guile.user Subject: Re: 1.6.0 problems with libguilereadline-v-12 and fix Date: 18 Sep 2002 23:14:14 +0200 Sender: guile-user-admin@gnu.org Message-ID: <87k7ljgfvd.fsf@zagadka.ping.de> References: <20020918203311.3C5FA3F28@fnord.ir.bbn.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1032383697 14032 127.0.0.1 (18 Sep 2002 21:14:57 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 18 Sep 2002 21:14:57 +0000 (UTC) Cc: guile-user@gnu.org Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17rm9w-0003eB-00 for ; Wed, 18 Sep 2002 23:14:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17rmAB-0004kY-00; Wed, 18 Sep 2002 17:15:11 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17rm9A-0004Wb-00 for guile-user@gnu.org; Wed, 18 Sep 2002 17:14:08 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17rm98-0004WC-00 for guile-user@gnu.org; Wed, 18 Sep 2002 17:14:07 -0400 Original-Received: from dialin.speedway42.dip151.dokom.de ([195.138.42.151] helo=zagadka.ping.de) by monty-python.gnu.org with smtp (Exim 4.10) id 17rm97-0004Vt-00 for guile-user@gnu.org; Wed, 18 Sep 2002 17:14:05 -0400 Original-Received: (qmail 8458 invoked by uid 1000); 18 Sep 2002 21:14:14 -0000 Original-To: Greg Troxel In-Reply-To: <20020918203311.3C5FA3F28@fnord.ir.bbn.com> Original-Lines: 50 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.lisp.guile.user:1013 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:1013 Greg Troxel writes: > This seems broken in two ways: > > guile should look for its own libraries in exactly one place, the > location where it was installed. > > guile should certainly look in $(prefix)/lib I don't agree. While your suggestions would make it work, they would do so with non-standard means. The right thing is to configure your system so that the installed libraries are visible to all programs, in the standard way. Your suggestions work against the usual means of managing shared libraries, not with them. I think we should work with them, even if they are slightly broken. So, in my view, the right fix is to set LD_LIBRARY_PATH or LTDL_LIBRARY_PATH. It would also be acceptable to change Guile to also look into the directories from /etc/ld.so.conf on GNU/Linux, and generally to follow the behavior of dlopen as closely as possible. (One should also fix ld to be consistent with ld.so.) > So, I modified guile-readline/readline.scm to look in the right place > (although perhaps not only in the right place). Instead, you should configure the whole system to look into the right places. > On NetBSD, guile mysteriously looks in the right place: > [...] > 9315 guile CALL open(0x48059100,0,0x48052d20) > 9315 guile NAMI "/usr/foo/lib/libguilereadline-v-12.so" > 9315 guile RET open 5 > 9315 guile CALL read(0x5,0xbfbfce3c,0x34) The ".so" files are opened by dlopen, I think, not by ltdl_dlopen. Does the documentation of dlopen reveal where it looks? > env|grep foo turns up only /usr/foo/bin in PATH and /usr/foo/man in > MANPATH. Since you already include /usr/foo in PATH and MANPATH, why not also put it into LD_LIBRARY_PATH? -- GPG: D5D4E405 - 2F9B BCCC 8527 692A 04E3 331E FAF8 226A D5D4 E405 _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user