From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Roland Orre Newsgroups: gmane.lisp.guile.user Subject: Re: I get unknown immediate error in guile 1.7 Date: Thu, 08 Jan 2004 18:14:33 +0100 Organization: NeuroLogic Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <1073582073.17043.3.camel@localhost> References: <20040104035022.GA742@Richard-Todds-Computer.local> <3FF88AD5.6010701@vzavenue.net> <87isjr1bkb.fsf@alice.rotty.yi.org> <3FF8EF71.6090802@vzavenue.net> <20040105200131.GA492@Richard-Todds-Computer.local> <20040106184116.GA7618@Richard-Todds-Computer.local> <20040107052645.GA15207@Richard-Todds-Computer.local> <1073545895.13663.639.camel@localhost> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1073598361 18793 80.91.224.253 (8 Jan 2004 21:46:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 8 Jan 2004 21:46:01 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Thu Jan 08 22:45:49 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AehyN-0001eo-00 for ; Thu, 08 Jan 2004 22:45:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aefm2-0004le-Ia for guile-user@m.gmane.org; Thu, 08 Jan 2004 14:24:54 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1Aefkr-0004kz-6x for guile-user@gnu.org; Thu, 08 Jan 2004 14:23:41 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AefkK-0004dT-Fl for guile-user@gnu.org; Thu, 08 Jan 2004 14:23:40 -0500 Original-Received: from [217.70.33.37] (helo=lists.levonline.com) by monty-python.gnu.org with esmtp (Exim 4.24) id 1Aeem0-0005H2-7s for guile-user@gnu.org; Thu, 08 Jan 2004 13:20:48 -0500 Original-Received: from localhost (lists.levonline.com [127.0.0.1]) by lists.levonline.com (Postfix) with ESMTP id A3F94D01EB; Thu, 8 Jan 2004 18:18:45 +0100 (CET) Original-Received: from lists.levonline.com ([127.0.0.1]) by localhost (lists.levonline.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26617-05; Thu, 8 Jan 2004 18:18:43 +0100 (CET) Original-Received: from ormen1.basenet.levonline.com (ormen1.levonline.com [217.70.32.117]) by lists.levonline.com (Postfix) with ESMTP id CDA1ED0144; Thu, 8 Jan 2004 18:18:43 +0100 (CET) Original-Received: from bari.bacon.su.se (bari.bacon.su.se [130.237.152.231]) (authenticated bits=0) by ormen1.basenet.levonline.com (8.12.8/8.12.8) with ESMTP id i08HGtfh017116; Thu, 8 Jan 2004 18:16:56 +0100 Original-To: guile-user@gnu.org In-Reply-To: <1073545895.13663.639.camel@localhost> X-Mailer: Ximian Evolution 1.4.5 X-Virus-Scanned: By http://levonline.com - free virus scanning for all customers X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: main.gmane.org gmane.lisp.guile.user:2560 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2560 I solved the problem. It seems as linking (at least for me) is not done in the right way for modules, neither for 1.6 or 1.7. Explanation below. On Thu, 2004-01-08 at 08:11, Roland Orre wrote: > I've tried to get guile 1.7 work but I seem to have a problem with > loadable modules. As soon as I call a function in them I get an > "unknown-immediate" error. This possibly sounds like some include > problem but as far as I know tag principles has not changed between > 1.6 and 1.7. >=20 > The most basic is readline of course as I haven't recompiled other > modules yet. About readline, the file "libtool" was not created by > autogen.sh in guile-readline so I linked to ../libtool instead. >=20 > If I load an old (1.6) libguilereadline I get segmentation fault, which > indicates some significant change. When I load the 1.7 libguilereadline > I get the errors below after (activate-readline), any ideas? > I've used gcc 3.3.2. The problem showed to be that guile loaded wrong libraries, which was caused by the the correct library files not having been created. Guile had been reading wrong libguilereadline.la all the time. I noticed this when I deinstalled the (debian distributed) guile-1.6. Then the libguilereadline.la library was not found for my locally compiled guile-1.6 either, despite that I had included both /usr/local/guile/guile-1.6.0/lib /usr/local/guile/guile-1.6.0/guile-readline in the LTDL_LIBRARY_PATH. I then relinked the readline.o file under guile-readline with the settings I use for my own modules, then it worked. The make script is at the end. The correct guile-1.6 libguilereadline file was read and the same procedure worked for guile-1.7 as well. The problem probably has to do with the guile-readline autogen.sh but how this script works is above my head. The fundamental problem seems to be that the installation linking is not done in the right way. None of the .la files under the lib directory (${exec_prefix}/lib) contains any library references. Observe that I used the name "libgreadline" in the script. Here are the error messages given. After a normal make install, where LTDL library is set as: export LTDL_LIBRARY_PATH=3D/usr/local/guile/guile-1.7/lib I get the following (empty) error message: /usr/local/guile/guile-1.7/guile/1.7/ice-9/readline.scm:38:5: In procedure dynamic-link in expression=20 (load-extension "libguilereadline" "scm_init_readline"): /usr/local/guile/guile-1.7/guile/1.7/ice-9/readline.scm:38:5: file: "libguilereadline", message: "" If I then also include /usr/local/guile/guile-1.7/guile-readline first in the LTDL path, then I get the following error message: /usr/local/guile/guile-1.7/guile/1.7/ice-9/readline.scm:38:5: In procedure dynamic-link in expression (load-extension "libguilereadline" "scm_init_readline"): /usr/local/guile/guile-1.7/guile/1.7/ice-9/readline.scm:38:5: file: "libguilereadline", message: "|o\"@=E0=CC\x11\x08readline.a: cannot open shared object file: No such file or directory" If I then run the make script below under guile-readline then it works. This newly created .la files contains library references to the .so files created under .libs.=20 I also included my configuration parameters below. Have I done anything obviously wrong in the configuration? =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D # This make file generates a working libguilereadline top_builddir =3D /usr/local/guile/guile-1.6.0 libdir=3D/usr/local/guile/guile-latest/guile-readline/..//lib LIBS=3D../libguile/libguile.la -lreadline -lncurses EXTRA=3D-version-info 10:0:0 -export-dynamic -no-undefined CC=3Dgcc all: libgreadline libgreadline: readline.o echo sh ${top_builddir}/libtool --mode=3Dlink $(CC) $^ $(EXTRA) $(LIBS) -rpath $(libdir) -o libgreadline.la sh ${top_builddir}/libtool --mode=3Dlink $(CC) $^ $(EXTRA) $(LIBS)=20 -rpath $(libdir) -o libgreadline.la =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D #These are my configuration parameters: GUILEROOT=3D`pwd` echo ${GUILEROOT} ./configure --with-threads --with-readline \ --prefix=3D${GUILEROOT} \ --build=3Di686 \ --exec-prefix=3D${GUILEROOT} \ --bindir=3D${GUILEROOT}/bin \ --sbindir=3D${GUILEROOT}/bin \ --sysconfdir=3D${GUILEROOT}/etc \ --datadir=3D${GUILEROOT} \ --sharedstatedir=3D${GUILEROOT}/com \ --localstatedir=3D${GUILEROOT}/var \ --includedir=3D${GUILEROOT}/include \ --oldincludedir=3D/usr/include \ --mandir=3D/usr/local/man \ --infodir=3D/usr/local/info \ --enable-maintainer-mode \ --enable-ltdl-install _______________________________________________ Guile-user mailing list Guile-user@gnu.org http://mail.gnu.org/mailman/listinfo/guile-user