From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Arno Peters Newsgroups: gmane.lisp.guile.user Subject: opening wrong version libguilereadline Date: Mon, 16 Sep 2002 02:04:34 +0200 Sender: guile-user-admin@gnu.org Message-ID: <20020916000434.GA12313@duronbox.nosuchnet> References: <87n0rh2xz8.fsf@raven.i.defaultvalue.org> <87bs7p70fo.fsf@zagadka.ping.de> <87ofblmy58.fsf@raven.i.defaultvalue.org> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cWoXeonUoKmBZSoM" X-Trace: main.gmane.org 1032135846 13444 127.0.0.1 (16 Sep 2002 00:24:06 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 16 Sep 2002 00:24:06 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17qjgK-0003Uf-00 for ; Mon, 16 Sep 2002 02:24:04 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17qjOd-0003dl-00; Sun, 15 Sep 2002 20:05:47 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17qjNi-0003Mf-00 for guile-user@gnu.org; Sun, 15 Sep 2002 20:04:50 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17qjNW-0003J6-00 for guile-user@gnu.org; Sun, 15 Sep 2002 20:04:46 -0400 Original-Received: from nl-ams-slo-l4-02-pip-7.chellonetwork.com ([213.46.243.26] helo=amsfep16-int.chello.nl) by monty-python.gnu.org with esmtp (Exim 4.10) id 17qjNV-0003Iv-00 for guile-user@gnu.org; Sun, 15 Sep 2002 20:04:37 -0400 Original-Received: from duronbox.nosuchnet ([62.163.16.73]) by amsfep16-int.chello.nl (InterMail vM.5.01.03.06 201-253-122-118-106-20010523) with ESMTP id <20020916000435.OXD17912.amsfep16-int.chello.nl@duronbox.nosuchnet> for ; Mon, 16 Sep 2002 02:04:35 +0200 Original-Received: from arno by duronbox.nosuchnet with local (Exim 3.36 #1 (Debian)) id 17qjNS-0003DE-00 for ; Mon, 16 Sep 2002 02:04:34 +0200 Original-To: guile-user@gnu.org Mail-Followup-To: arno, guile-user@gnu.org Content-Disposition: inline In-Reply-To: <87ofblmy58.fsf@raven.i.defaultvalue.org> User-Agent: Mutt/1.4i Errors-To: guile-user-admin@gnu.org X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.0.11 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:981 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:981 --cWoXeonUoKmBZSoM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Aug 29, 2002 at 11:24:03AM -0500, Rob Browning wrote: > Martin Grabmueller writes: >=20 > >> This is strange. Guile 1.5 uses different names for its dynamically > >> linked libraries, as compared to 1.3.4. For example, libguilereadline > >> is now libguilereadline-v-12. There shouldn't be any conflict with > >> old libs. > > > > I haven't tried it again yet, but strace told me that Guile somehow > > tried to load the old libguilereadline.so, which in turn tried to load > > libguile.so.6, which didn't work and caused a nonsense `file not > > found' message from libtdl... >=20 > Hmm -- can you find out which file guile is loading that's then > loading libguilereadline? I'm wondering if it's finding the wrong > readline.scm, or if somehow we're not loading the versioned > libguilereadline like I thought we were. I am working with a recent Guile CVS snapshot in /usr/local. I also have Guile 1.4 installed in /usr. I am unable to use readline in version 1.7; Guile aborts due to a SIGKILL signal. By contrast version 1.4 works ok. Below is a strace of Guile 1.7.0 that shows what files are read. The actual strace is much larger and I can mail it upon request. =46rom what I can judge, libtool picks up the wrong version of the library. This may point to a bug in handling multiple versions of the same library in different locations. $ guile --version=20 Guile 1.7.0 =2E.. $ strace guile -c '(use-modules (ice-9 readline))' =2E.. open("/usr/local/share/guile/1.7.0/ice-9/boot-9.scm", O_RDONLY) =3D 3 open("/usr/local/share/guile/1.7.0/ice-9/r4rs.scm", O_RDONLY) =3D 4 open("/usr/local/share/guile/1.7.0/ice-9/arrays.scm", O_RDONLY) =3D 4 open("/usr/local/share/guile/1.7.0/ice-9/posix.scm", O_RDONLY) =3D 4 open("/usr/local/share/guile/1.7.0/ice-9/networking.scm", O_RDONLY) =3D 4 open("/usr/local/share/guile/1.7.0/ice-9/readline.scm", O_RDONLY) =3D 3 open("/usr/local/share/guile/1.7.0/ice-9/session.scm", O_RDONLY) =3D 4 open("/usr/local/share/guile/1.7.0/ice-9/documentation.scm", O_RDONLY) =3D 5 open("/usr/local/share/guile/1.7.0/ice-9/rdelim.scm", O_RDONLY) =3D 6 open("/usr/local/share/guile/1.7.0/ice-9/regex.scm", O_RDONLY) =3D 5 open("/usr/local/share/guile/1.7.0/ice-9/buffered-input.scm", O_RDONLY) =3D= 4 open("/lib/libguilereadline.la", O_RDONLY) =3D -1 ENOENT (No such file or d= irectory) open("/usr/lib/libguilereadline.la", O_RDONLY) =3D 4 open("/usr/local/lib/libguilereadline.a", O_RDONLY) =3D 4 open("/usr/lib/libguilereadline.so.9", O_RDONLY) =3D 4 open("/usr/local/lib/libguile.so.9", O_RDONLY) =3D -1 ENOENT (No such file = or directory) open("/etc/ld.so.cache", O_RDONLY) =3D 4 open("/usr/lib/libguile.so.9", O_RDONLY) =3D 4 open("/usr/local/lib/libreadline.so.4", O_RDONLY) =3D -1 ENOENT (No such fi= le or directory) open("/lib/libreadline.so.4", O_RDONLY) =3D 4 =2E.. munmap(0x40286000, 42748) =3D 0 times({tms_utime=3D10, tms_stime=3D1, tms_cutime=3D0, tms_cstime=3D0}) =3D = 12500784 times({tms_utime=3D10, tms_stime=3D1, tms_cutime=3D0, tms_cstime=3D0}) =3D = 12500784 times({tms_utime=3D11, tms_stime=3D1, tms_cutime=3D0, tms_cstime=3D0}) =3D = 12500785 brk(0x807d000) =3D 0x807d000 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) =3D 0 getpid() =3D 12287 kill(12287, SIGABRT) =3D 0 --- SIGABRT (Aborted) --- +++ killed by SIGABRT +++ The content of /usr/lib/libguilereadline.la is: # libguilereadline.la - a libtool library file # Generated by ltmain.sh - GNU libtool 1.4.2a (1.922.2.79 2001/11/28 21:50:= 31) # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname=3D'libguilereadline.so.9' # Names of this library. library_names=3D'libguilereadline.so.9.0.0 libguilereadline.so.9 libguilere= adline.so' # The name of the static archive. old_library=3D'libguilereadline.a' # Libraries that this one depends upon. dependency_libs=3D' /usr/lib/libguile.la /usr/lib/libltdl.la -ldl /usr/lib/= libqthreads.la -lpthread -lm -lreadline -lncurses' # Version information for libguilereadline. current=3D9 age=3D0 revision=3D0 # Is this an already installed library? installed=3Dyes # Files to dlopen/dlpreopen dlopen=3D'' dlpreopen=3D'' # Directory that this library needs to be installed in: libdir=3D'/usr/lib' The content of /usr/local/lib/libguile-readline.la is: # libguilereadline.la - a libtool library file # Generated by ltmain.sh - GNU libtool 1.4.2a (1.922.2.100 2002/06/26 07:25= :14) # # Please DO NOT delete this file! # It is necessary for linking the library. # The name that we can dlopen(3). dlname=3D'libguilereadline.so.10' # Names of this library. library_names=3D'libguilereadline.so.10.0.0 libguilereadline.so.10 libguile= readline.so' # The name of the static archive. old_library=3D'libguilereadline.a' # Libraries that this one depends upon. dependency_libs=3D' /usr/local/lib/libguile.la /usr/lib/libltdl.la -ldl -lc= rypt -lm -lreadline -lncurses' # Version information for libguilereadline. current=3D10 age=3D0 revision=3D0 # Is this an already installed library? installed=3Dyes # Files to dlopen/dlpreopen dlopen=3D'' dlpreopen=3D'' # Directory that this library needs to be installed in: libdir=3D'/usr/local/lib' --cWoXeonUoKmBZSoM Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9hSAS8ADMpEVEv6ERAt53AKCBPqq6HLmOJVEC06Dm9fHYEMV54gCfa/la bQ7I+SjsDg/RctUlVcMY6Wk= =22tY -----END PGP SIGNATURE----- --cWoXeonUoKmBZSoM-- _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user