From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luca Saiu Newsgroups: gmane.lisp.guile.bugs Subject: Re: Likely bug: SMOBs and mark functions [Was: Re: [bug #30480] VM: load looks for files in the wrong directory] Date: Thu, 17 Feb 2011 10:41:01 +0100 Message-ID: <4D5CED2D.6090600@gnu.org> References: <20100719-005153.sv1523.70961@savannah.gnu.org> <20100719-005459.sv1523.65271@savannah.gnu.org> <20100719-005950.sv1523.43708@savannah.gnu.org> <20100724-161608.sv15145.2405@savannah.gnu.org> <20110213-185123.sv20118.98931@savannah.gnu.org> <4D5A6A92.1080702@gnu.org> <8739npi9zq.fsf@gnu.org> <4D5AA730.2040706@gnu.org> <871v38cduu.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1297935687 31242 80.91.229.12 (17 Feb 2011 09:41:27 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Feb 2011 09:41:27 +0000 (UTC) Cc: bug-guile@gnu.org To: =?UTF-8?B?THVkb3ZpYyBDb3VydMOocw==?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Feb 17 10:41:20 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pq0ML-0002Gb-PU for guile-bugs@m.gmane.org; Thu, 17 Feb 2011 10:41:14 +0100 Original-Received: from localhost ([127.0.0.1]:59481 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pq0ML-00076F-CJ for guile-bugs@m.gmane.org; Thu, 17 Feb 2011 04:41:13 -0500 Original-Received: from [140.186.70.92] (port=52533 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pq0MF-000749-Aa for bug-guile@gnu.org; Thu, 17 Feb 2011 04:41:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pq0MD-0007GT-Fi for bug-guile@gnu.org; Thu, 17 Feb 2011 04:41:06 -0500 Original-Received: from mail.lipn.univ-paris13.fr ([194.254.163.24]:49117) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pq0MD-0007GI-4P; Thu, 17 Feb 2011 04:41:05 -0500 Original-Received: from [10.10.0.234] (optimum.lipn.univ-paris13.fr [10.10.0.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: saiu@lipn.univ-paris13.fr) by mail.lipn.univ-paris13.fr (sendmail 8.9.3/8.9.2) with ESMTP id 1C10D22E14; Thu, 17 Feb 2011 10:41:04 +0100 (CET) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10 In-Reply-To: <871v38cduu.fsf@gnu.org> X-Enigmail-Version: 1.0.1 OpenPGP: id=26C5D286; url=http://www-lipn.univ-paris13.fr/~saiu/lucasaiu.asc X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 194.254.163.24 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5165 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/16/2011 02:23 PM, Ludovic Court=C3=A8s wrote: > Can you try with a stock 7.2? I've tried with the latest 7.2 tarball I've found at http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/ , i.e. the alpha5 of 2011-02-01; to make it quick yes, the thing worked, so the problem probably depended on libgc. Sorry for the noise. Anyway, I've noticed another glitch, which again may or may not be my fau= lt. Testing 2.0.0 instead of git mainline. Downloaded from ftp, configured, compiled, installed. The only parameter I gave configure was - --prefix=3D/home/luca/usr . I've been doing that for years: my PATH, LIBRARY_PATH, LD_LIBRARY_PATH, and friends should be ok: [luca@optimum ~/projects-by-others/guile-2.0.0/doc/example-smob]$ env | grep home\/luca\/usr CPLUS_INCLUDE_PATH=3D/home/luca/usr/include:/usr/local/include:/usr/inclu= de:/usr/X11R6/include:/usr/include/X11 MANPATH=3D/home/luca/usr/man:/home/luca/usr/share/man:/usr/local/man:/usr= /local/share/man:/usr/man:/usr/share/man:/usr/X11R6/man:/usr/X11R6/share/= man OBJC_INCLUDE_PATH=3D/home/luca/usr/include:/usr/local/include:/usr/includ= e:/usr/X11R6/include:/usr/include/X11 LIBRARY_PATH=3D/home/luca/usr/lib:/home/luca/usr/lib64:/lib:/usr/local/li= b:/usr/lib:/usr/X11R6/lib:/lib64:/usr/local/lib64:/usr/lib64:/usr/X11R6/l= ib64 LD_LIBRARY_PATH=3D/home/luca/usr/lib:/home/luca/usr/lib64:/lib:/usr/local= /lib:/usr/lib:/usr/X11R6/lib:/lib64:/usr/local/lib64:/usr/lib64:/usr/X11R= 6/lib64 CPATH=3D/home/luca/usr/include:/usr/local/include:/usr/include:/usr/X11R6= /include:/usr/include/X11 PATH=3D/home/luca/bin:/home/luca/usr/bin:/bin:/usr/local/bin:/usr/bin:/us= r/X11R6/bin C_INCLUDE_PATH=3D/home/luca/usr/include:/usr/local/include:/usr/include:/= usr/X11R6/include:/usr/include/X11 INFOPATH=3D/home/luca/usr/info:/home/luca/usr/share/info:/usr/local/info:= /usr/local/share/info:/usr/info:/usr/share/info:/usr/X11R6/info:/usr/X11R= 6/share/info I've found a pkg-config problem (occurring when I try to compile the exemple-smob example with the provided Makefile) which I don't remember seeing with git snapshots: [luca@optimum ~/projects-by-others/guile-2.0.0/doc/example-smob]$ pkg-config guile-2.0 --cflags Package guile-2.0 was not found in the pkg-config search path. Perhaps you should add the directory containing `guile-2.0.pc' to the PKG_CONFIG_PATH environment variable No package 'guile-2.0' found This might have something to do with my unusual multiple prefixes, but it didn't happen with snapshots! guile-config still works fine. Is this the problem? I have this file: /home/luca/usr/lib/pkgconfig/guile-2.0.pc But nothing related to guile-2.0 in /home/luca/usr/lib/pkgconfig/ Now I don't have any other version of guile installed. I've never taken the time to really understand pkg-config, and I have to admit I'm somewhat prejudiced against it. Anyway, now Guile should even support installing several different versions; isn't there a clean way of using different prefixes with pkg-config? I really like to do that, because this allows me to use different prefixes for differently dangerous tests, rather than trashing /usr/local or /usr with all my experiments. If I ignore pkg-config for the moment and compile the SMOB example the old way, everything works: [luca@optimum ~/projects-by-others/guile-2.0.0/doc]$ cd example-smob/ [luca@optimum ~/projects-by-others/guile-2.0.0/doc/example-smob]$ ls total 24 4 ChangeLog-2008 4 Makefile 4 README 4 image-type.c 4 myguile.c 4 image-type.h [luca@optimum ~/projects-by-others/guile-2.0.0/doc/example-smob]$ gcc -c `guile-config compile` myguile.c [luca@optimum ~/projects-by-others/guile-2.0.0/doc/example-smob]$ gcc -c `guile-config compile` image-type.c [luca@optimum ~/projects-by-others/guile-2.0.0/doc/example-smob]$ gcc `guile-config link` image-type.o myguile.o [luca@optimum ~/projects-by-others/guile-2.0.0/doc/example-smob]$ ls total 44 4 ChangeLog-2008 4 Makefile 4 README 4 image-type.c 4 myguile.c 4 image-type.h 4 image-type.o 4 myguile.o 12 a.out* [luca@optimum ~/projects-by-others/guile-2.0.0/doc/example-smob]$ ./a.out GNU Guile 2.0.0 Copyright (C) 1995-2011 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. And this I can't crash guile by calling gc. So what I was speaking about in the previous messages was indeed a false alarm. Sorry. Thanks for 2.0 :-) - --=20 Luca Saiu http://www-lipn.univ-paris13.fr/~saiu GNU epsilon: http://www.gnu.org/software/epsilon Marionnet: http://www.marionnet.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1c7S0ACgkQvzOavibF0oZGSgCghzID9oB+Zv8e1zycCEi2lED1 epQAn0uPbvMbImC7n/+NHSb9Og6cXYpT =3Dc1tg -----END PGP SIGNATURE-----