Hi,

At Sun, 6 Oct 2002 07:26:10 +0900,
nico wrote:
> This happens when running 'ruby setup.rb install'. I'm
> guessing it has something to do with ruby being compiled with
> gcc 3.2. I didn't have any trouble installing Test::Unit on a
> gcc 2.95 machine.

It's known that 1.6 and 1.7 before 2002-10-03 have the problem
with gcc 3.2.

Try with this patch.


Index: eval.c =================================================================== RCS file: /cvs/ruby/src/ruby/eval.c,v retrieving revision 1.137.2.131 diff -u -2 -p -r1.137.2.131 eval.c --- eval.c 5 Oct 2002 21:07:24 -0000 1.137.2.131 +++ eval.c 6 Oct 2002 18:48:32 -0000 @@ -1033,5 +1033,5 @@ ruby_init() #endif - Init_stack(0); + Init_stack(&state); Init_heap(); PUSH_SCOPE(); Index: gc.c =================================================================== RCS file: /cvs/ruby/src/ruby/gc.c,v retrieving revision 1.48.2.28 diff -u -2 -p -r1.48.2.28 gc.c --- gc.c 5 Sep 2002 20:08:48 -0000 1.48.2.28 +++ gc.c 6 Oct 2002 18:48:54 -0000 @@ -1090,7 +1090,5 @@ Init_stack(addr) rb_gc_stack_start = _SEND; #else - VALUE start; - - if (!addr) addr = &start; + if (!addr) addr = &addr; rb_gc_stack_start = addr; #endif
-- Nobu Nakada