From: prj@po.cwru.edu (Paul Jarc)
Subject: Re: (dynamic-link) ignores PREFIX/lib and $LD_LIBRARY_PATH
Date: Tue, 18 Jun 2002 13:57:39 -0400 [thread overview]
Message-ID: <m3r8j4qxjq.fsf@multivac.cwru.edu> (raw)
In-Reply-To: <m3adpsshgc.fsf@multivac.cwru.edu> (prj@po.cwru.edu's message of "Tue, 18 Jun 2002 12:02:21 -0400")
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
_______________________________________________
Bug-guile mailing list
Bug-guile@gnu.org
http://mail.gnu.org/mailman/listinfo/bug-guile
next prev parent reply other threads:[~2002-06-18 17:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-06-18 16:02 (dynamic-link) ignores PREFIX/lib and $LD_LIBRARY_PATH Paul Jarc
2002-06-18 17:57 ` Paul Jarc [this message]
2002-06-18 18:13 ` Thien-Thi Nguyen
2002-06-18 18:01 ` Thien-Thi Nguyen
2002-06-18 18:13 ` Paul Jarc
2002-06-18 18:37 ` Thien-Thi Nguyen
2002-06-18 21:26 ` Marius Vollmer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3r8j4qxjq.fsf@multivac.cwru.edu \
--to=prj@po.cwru.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).