From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Greg Troxel Newsgroups: gmane.lisp.guile.user Subject: dynamic linking problems when using --prefix, perhaps solved Date: Wed, 13 Mar 2002 09:25:48 -0500 Sender: guile-user-admin@gnu.org Message-ID: <20020313142548.357963C24@fnord.ir.bbn.com> NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1016029855 26009 127.0.0.1 (13 Mar 2002 14:30:55 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 13 Mar 2002 14:30:55 +0000 (UTC) Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16l9mI-0006lP-00 for ; Wed, 13 Mar 2002 15:30:55 +0100 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16l9ia-000806-00; Wed, 13 Mar 2002 09:27:04 -0500 Original-Received: from fnord.ir.bbn.com ([192.1.100.210]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 16l9hM-0007xt-00 for ; Wed, 13 Mar 2002 09:25:48 -0500 Original-Received: from fnord.ir.bbn.com (localhost [127.0.0.1]) by fnord.ir.bbn.com (Postfix) with ESMTP id 357963C24 for ; Wed, 13 Mar 2002 09:25:48 -0500 (EST) Original-To: guile-user@gnu.org Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.5 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:16 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:16 I am having the same dynamic linking problems as others: lab gdt 157 ~/QUIST-current/guile > /usr/quist/bin/guile ERROR: In procedure dynamic-link: ERROR: file: "libguilereadline", message: "file not found" lab gdt 158 ~/QUIST-current/guile > sudo ldconfig -m /usr/quist/lib lab gdt 159 ~/QUIST-current/guile > /usr/quist/bin/guile ERROR: In procedure dynamic-link: ERROR: file: "libguilereadline", message: "file not found" IMHO there should be some way to pass @libdir@ to libtool's dlopen, so that guile can search in its installed directory first. The following worked, but it is kludgy: LTDL_LIBRARY_PATH=/usr/quist/lib /usr/quist/bin/guile So, I added $libdir to the default path in libltdl/configure (patching configure rather than configure.in since I have an old autoconf version) Index: configure =================================================================== RCS file: /QUIST-CVS/guile/libltdl/configure,v retrieving revision 1.1.1.1 diff -u -u -r1.1.1.1 configure --- configure 2002/03/04 23:43:29 1.1.1.1 +++ configure 2002/03/13 14:16:06 @@ -5479,7 +5479,7 @@ shlibpath_overrides_runpath=unknown version_type=none dynamic_linker="$host_os ld.so" -sys_lib_dlsearch_path_spec="/lib /usr/lib" +sys_lib_dlsearch_path_spec="$libdir /lib /usr/lib" sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" case $host_os in and now /usr/quist/bin/guile works without path hackery. I noticed that before this change, /usr/quist/bin/guile would find the libguilereadline library if it was in the current directory. This seems like a '. in $PATH' vulnerability. Alternatively, the scheme code that links libguilereadline could pass in the entire path, rather than just the filename. This would ensure that guile links only a matching libguilereadline. There are a lot of systems on which guile 1.4 and 1.5.x will have to coexist - I want to use 1.5.6 for new stuff but gnome pulls in 1.4. _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user