bug-guile
[Top][All Lists]
Advanced

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

Re: (dynamic-link) ignores PREFIX/lib and $LD_LIBRARY_PATH


From: Paul Jarc
Subject: Re: (dynamic-link) ignores PREFIX/lib and $LD_LIBRARY_PATH
Date: Tue, 18 Jun 2002 13:57:39 -0400
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i686-pc-linux-gnu)

I wrote:
> When I evaluate (use-modules (ice-9 readline)), guile search only /lib
> when looking for libguilereadline.so (not even /usr/lib).

More info: if I create a symlink in /lib for libguilereadline.so, then
it will continue searching in /usr/lib after /lib.  It seems to search
all directories until the first failure instead of until the first
hit.  If I create symlinks in both /lib and /usr/lib, then it looks in
those directories and then the -rpath directories:
access("/lib/libguilereadline.so", R_OK) = 0
access("/usr/lib/libguilereadline.so", R_OK) = 0
open("/package/host/localhost/guile-1.4.1-1/conf/readline/lib/libguilereadline.so",
 O_RDONLY) = -1 ENOENT (No such file or directory)
open("/package/host/localhost/guile-1.4.1-1/conf/ncurses/lib/libguilereadline.so",
 O_RDONLY) = -1 ENOENT (No such file or directory)
open("/package/host/localhost/guile-1.4.1-1/lib/libguilereadline.so", O_RDONLY) 
= 4

Those readline/lib and ncurses/lib directories were given as -rpath
directories via LDFLAGS.

All that was with 1.4.1.  With 1.5.6, it looks for libguilereadline.la
instead of libguilereadline.so, it skips the access() calls, and
stops searching after the first open() succeeds.  So I guess this is a
libtool issue, and the situation seems to be improving, but it would
still be nice if guile could tell libtool where to look for
libguilereadline.la, since it's known to be in PREFIX/lib.


paul



reply via email to

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