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: Fri, 09 Jan 2004 00:16:49 +0100 Organization: Royal Institute of Technology Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Message-ID: <1073603809.19764.4.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 1073711020 16571 80.91.224.253 (10 Jan 2004 05:03:40 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 10 Jan 2004 05:03:40 +0000 (UTC) Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sat Jan 10 06:03:36 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 1AfBHc-0000gc-00 for ; Sat, 10 Jan 2004 06:03:36 +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 1AfCDg-0005Y8-RN for guile-user@m.gmane.org; Sat, 10 Jan 2004 01:03:36 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AfCCX-0005Xw-MJ for guile-user@gnu.org; Sat, 10 Jan 2004 01:02:25 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AfCC1-0005QB-9P for guile-user@gnu.org; Sat, 10 Jan 2004 01:02:24 -0500 Original-Received: from [130.237.222.202] (helo=smtp.nada.kth.se) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.24) id 1AekQ2-0007kL-Py for guile-user@gnu.org; Thu, 08 Jan 2004 19:22:31 -0500 Original-Received: from osts (h148n2fls33o875.telia.com [217.208.54.148]) (authenticated bits=0) by smtp.nada.kth.se (8.12.10/8.12.1) with ESMTP id i08NKu82026026 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Fri, 9 Jan 2004 00:20:56 +0100 (MET) Original-To: guile-user@gnu.org X-Mailer: Ximian Evolution 1.4.5 X-MIME-Autoconverted: from 8bit to quoted-printable by smtp.nada.kth.se id i08NKu82026026 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:2565 X-Report-Spam: http://spam.gmane.org/gmane.lisp.guile.user:2565 I found 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 sh ${top_builddir}/libtool --mode=3Dlink $(CC) $^ $(EXTRA) $(LIBS) \ -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