From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Raeburn Newsgroups: gmane.lisp.guile.devel Subject: my load path bug Date: Sat, 10 Oct 2009 11:50:56 -0400 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1255189895 7764 80.91.229.12 (10 Oct 2009 15:51:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Oct 2009 15:51:35 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Oct 10 17:51:26 2009 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MweEA-0003Iv-2c for guile-devel@m.gmane.org; Sat, 10 Oct 2009 17:51:26 +0200 Original-Received: from localhost ([127.0.0.1]:59305 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MweE8-0000Ku-Ql for guile-devel@m.gmane.org; Sat, 10 Oct 2009 11:51:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MweE2-0000JT-HX for guile-devel@gnu.org; Sat, 10 Oct 2009 11:51:18 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MweDy-0000Eo-U5 for guile-devel@gnu.org; Sat, 10 Oct 2009 11:51:18 -0400 Original-Received: from [199.232.76.173] (port=47107 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MweDy-0000Ei-Oa for guile-devel@gnu.org; Sat, 10 Oct 2009 11:51:14 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:26753) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MweDy-0003dX-0T for guile-devel@gnu.org; Sat, 10 Oct 2009 11:51:14 -0400 Original-Received: from splat.raeburn.org ([69.25.196.39] helo=raeburn.org) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MweDl-0004hJ-Gn for guile-devel@gnu.org; Sat, 10 Oct 2009 11:51:12 -0400 Original-Received: from [10.0.0.158] ([10.0.0.158]) by raeburn.org (8.14.3/8.14.1) with ESMTP id n9AFovk7022935; Sat, 10 Oct 2009 11:50:57 -0400 (EDT) X-Mailer: Apple Mail (2.936) X-detected-operating-system: by mx20.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:9474 Archived-At: (Quick recap: I build and install to a non-standard directory, and don't update LD_LIBRARY_PATH to cover it, and the "guile" binary has a runtime load path specified that lets it find libguile, but Scheme code tries to load other libraries and fails.) Andy's patch (eb35012) adds $pkglibdir to the path searched for libraries. That directory is $prefix/lib/guile; it contains a subdirectory "1.9" and nothing else. The libguile-srfi-srfi-1-v-4.* libraries guile searches for at startup are in $prefix/lib aka $libdir. Changing SCM_LIB_DIR to be defined as $libdir instead of $pkglibdir is easy enough, if the current location is where we want those libraries. Do we need programs to be able to link against them directly? Do we need non-guile programs to be able to find them with dlopen? (Is it too late to consider changing it?) Ken Author: Ken Raeburn Date: Sat Oct 10 11:39:12 2009 -0400 Use libdir instead of pkglibdir for SCM_LIB_DIR. diff --git a/libguile/Makefile.am b/libguile/Makefile.am index acb26d9..7176c3c 100644 --- a/libguile/Makefile.am +++ b/libguile/Makefile.am @@ -601,7 +601,7 @@ libpath.h: $(srcdir)/Makefile.in $(top_builddir)/ config.status @echo '#define SCM_PKGDATA_DIR "$(pkgdatadir)"' >> libpath.tmp @echo '#define SCM_LIBRARY_DIR "$(pkgdatadir)/$ (GUILE_EFFECTIVE_VERSION)"'>>libpath.tmp @echo '#define SCM_SITE_DIR "$(pkgdatadir)/site"' >> libpath.tmp - @echo '#define SCM_LIB_DIR "$(pkglibdir)"' >> libpath.tmp + @echo '#define SCM_LIB_DIR "$(libdir)"' >> libpath.tmp @echo '#define SCM_CCACHE_DIR "$(pkglibdir)/$ (GUILE_EFFECTIVE_VERSION)/ccache"' >> libpath.tmp @echo '#define SCM_EFFECTIVE_VERSION "$(GUILE_EFFECTIVE_VERSION)"' >> libpath.tmp @echo '#define SCM_BUILD_INFO { \' >> libpath.tmp