Re: Guile 2.0.0 cannot open /dev/urandom

2011-02-17 Thread Mark Harig
On Thu, Feb 17, 2011 at 10:58:33PM +, Martin Ward wrote: Guile 1.8.6 can open /dev/urandom (which I use for seeding a random number generator): % guile guile> (open-input-file "/dev/urandom") # guile> But guile 2.0.0 gives this error: ~/Documents/guile-2.0.0/meta/guile GNU Guile 2.0.0 Cop

Strange string-append and string-match behaviour

2011-02-17 Thread Francis Southern
Hello Guilers, I'm not 100% sure whether this is a bug or not, and it might not even be legal Scheme code! But it seemed a bit odd to me so I'm reporting it here. (I'm currently using 1.9.15, but I believe this to be reproducible on 2.0.) I was trying to match strings that started with a questio

Re: Can not work with libguile-2.0

2011-02-17 Thread Fu-Gangqiang
At 2011-02-18 02:04:08,"Mark Harig" wrote:> > $ export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH yes, I didnt set the LD_LIBRARY_PATH varialbe after I set it, simple-guile worked Thinks for the links: > This problem has been reported. See the following messages: > > http://lists.gnu.org

Guile 2.0.0 cannot open /dev/urandom

2011-02-17 Thread Martin Ward
Guile 1.8.6 can open /dev/urandom (which I use for seeding a random number generator): % guile guile> (open-input-file "/dev/urandom") # guile> But guile 2.0.0 gives this error: ~/Documents/guile-2.0.0/meta/guile GNU Guile 2.0.0 Copyright (C) 1995-2011 Free Software Foundation, Inc. Guile com

Re: Can not work with libguile-2.0

2011-02-17 Thread Mark Harig
I run the mannal cmd and also have something wrong: >cut here< $ gcc -shared -o libguile-bessel.so -fPIC t1.c t1.c:2:22: error: libguile.h: No such file or directory t1.c:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘j0_wrapper’ t1.c: In function ‘init_bessel’: t1.c

Re: Can not work with libguile-2.0

2011-02-17 Thread Mark Harig
And in section 2.4(Writing Guile Extensions) There are some deprecated functions in the example Agreed. The example code uses deprecated functions. It would better if the developers of Guile were to provide some idiomatic code that shows the best practice that they recommend programmers use.

Re: Can not work with libguile-2.0

2011-02-17 Thread Mark Harig
In manual section 2.3(Linking Guile into Programs) I follow the example,run it and have something wrong: >cut here< $ gcc -o simple-guile simple-guile.c `pkg-config --cflags --libs guile-2.0` $ ./simple-guile ./simple-guile: error while loading shared libraries: libguile-2.0.so.22:

[bug #32515] Manual needs to document extensiondir and sitedir pkg-config variables

2011-02-17 Thread Dale P. Smith
URL: Summary: Manual needs to document extensiondir and sitedir pkg-config variables Project: Guile Submitted by: dsmith Submitted on: Thu 17 Feb 2011 03:09:55 PM GMT Category: None

Re: Likely bug: SMOBs and mark functions

2011-02-17 Thread Luca Saiu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/17/2011 12:13 PM, Andy Wingo wrote: > On Thu 17 Feb 2011 10:41, Luca Saiu writes: > >> 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 i

Re:Re: Can not work with libguile-2.0

2011-02-17 Thread Fu-Gangqiang
"Hans Aberg" wrote: >I use the flags > `guile-config compile` > `guile-config link` I try to use guile-config, but have the same problem: $ gcc -o simple-guile simple-guile.c `guile-config compile` `guile-config link` ~/Test/scm $ ./simple-guile ./simple-guile: error while loading shared libra

Re: Likely bug: SMOBs and mark functions

2011-02-17 Thread Andy Wingo
On Thu 17 Feb 2011 10:41, Luca Saiu writes: > 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

Re: Problem building 2.0 On Ubuntu Maverick

2011-02-17 Thread Andy Wingo
On Wed 16 Feb 2011 22:58, Billy O'Connor writes: > When I changed my CFLAGS to "-g -O2" for the backtrace, the error went > away. > My usual CFLAGS are "-Os -march=native -fomit-frame-pointer -pipe" Glad that it worked for you! If you have time, we would appreciate more details :) Can you se

Re: Typos in the manual

2011-02-17 Thread Andy Wingo
On Thu 17 Feb 2011 04:13, Mark Harig writes: > Here are the relevant rules that I learned years ago. They are > followed by some examples from the Emacs manual (which also contains > many examples that do not follow these rules). A very interesting discussion! At first read, your rules about e

Re: Can not work with libguile-2.0

2011-02-17 Thread Hans Aberg
On 17 Feb 2011, at 13:02, Fu-Gangqiang wrote: > I learn guile from manual,and I can not work with libguile and find some > manual bugs. > In manual section 2.3(Linking Guile into Programs) > > I follow the example,run it and have something wrong: > >cut here< > $ gcc -o simple-guile sim

Can not work with libguile-2.0

2011-02-17 Thread Fu-Gangqiang
Hi,all I learn guile from manual,and I can not work with libguile and find some manual bugs. scheme@(guile-user)> (version) $1 = "2.0.0" $ build-aux/config.guess i686-pc-linux-gnu $ uname -a Linux 2.6.32-28-generic #55-Ubuntu SMP i686 GNU/Linux $ ./config.status --config '--disable-deprecated'

Re: Likely bug: SMOBs and mark functions [Was: Re: [bug #30480] VM: load looks for files in the wrong directory]

2011-02-17 Thread Luca Saiu
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/16/2011 02:23 PM, Ludovic Courtès 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 thin