guile-devel
[Top][All Lists]
Advanced

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

my load path bug


From: Ken Raeburn
Subject: my load path bug
Date: Sat, 10 Oct 2009 11:50:56 -0400

(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 <address@hidden>
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





reply via email to

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