新井です。

NEC EWS48で、ruby-1.5.4をmakeしたところminirubyがSEGVし
ました。最後に、パッチとスタックトレースをつけます。

あと、gccのない環境で configure が失敗します。以下は、Linux 
でgccをrenameしてconfigureしたときの出力です。以下のように、
CPPFLAGS= を指定しても無視されるようです。1.4では有効だった
んですが・・・(ヨンパチでは、これやらないと一箇所コンパイル
に失敗するんですよね。むろんヨンパチが悪いんですが、)

$ CPPFLAGS='-Dconst=' ./configure
loading cache ./config.cache
checking host system type... i586-pc-linux
checking target system type... i586-pc-linux
checking build system type... i586-pc-linux
checking for gcc... gcc
checking for gcc... (cached) gcc
checking whether the C compiler (gcc  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
[exit:1]

# CC=cc CFLAGS='-Dconst=' ./configure すれば、大丈夫ではありますが


--- eval.c Tue Jun 27 23:30:41 2000 +++ /tmp/eval.c Sun Jul 2 14:18:04 2000 @@ -1539,8 +1539,10 @@ ALLOC_N(VALUE,n),tmp__protect_tmp,n), \ (void*)tmp__protect_tmp->nd_head) # define TMP_PROTECT_END do {\ - rb_gc_force_recycle((VALUE)tmp__protect_tmp);\ - alloca(0);\ + if (tmp__protect_tmp) {\ + rb_gc_force_recycle((VALUE)tmp__protect_tmp);\ + alloca(0);\ + }\ } while (0) #else # define TMP_PROTECT typedef int foobazzz dbx miniruby core.529 dbx for 32bit AP version 8-I of 98/05/22 14:00:00 (NEC Corporation). Copyright 1986, 1989, 1991 Silicon Graphics, Inc. Type 'help' for help. Corefile produced from file "miniruby" Child died at pc 0x42824c of signal : Segmentation Fault reading symbolic information ... debugging in ABI mode [using memory image in core.529] (dbx) t > 0 rb_gc_force_recycle(p = 0) ["gc.c":738, 0x428244] 1 .block127 ["eval.c":4215, 0x411950] 2 .block120 ["eval.c":4215, 0x411950] 3 .block116 ["eval.c":4215, 0x411950] 4 .block115 ["eval.c":4215, 0x411950] 5 rb_call0(klass = 5536552, recv = 5536600, id = 2849, argc = 1, argv = 0x54abc0, body = 0x547a68, nosuper = 1) ["eval.c":4215, 0x411950] 6 .block128 ["eval.c":4265, 0x411c9c] 7 rb_call(klass = 5536552, recv = 5536600, mid = 2849, argc = 1, argv = 0x54abc0, scope = 1) ["eval.c":4265, 0x411c9c] 8 .block130 ["eval.c":4339, 0x411fd8] 9 rb_funcall(recv = 5536600, mid = 2849, n = 1, ... = 0x5471b0) ["eval.c":4339, 0x411fd8] 10 rb_define_class_id(id = 3141, super = 5536600) ["class.c":97, 0x4a85e8] 11 rb_define_class(name = 0x4c9b9c = "NilClass", super = 5536600) ["class.c":111, 0x4a8658] 12 Init_Object() ["object.c":1128, 0x447220] 13 rb_call_inits() ["inits.c":52, 0x42ebc8] 14 .block8 ["eval.c":984, 0x404298] 15 .block7 ["eval.c":984, 0x404298] 16 ruby_init() ["eval.c":984, 0x404298] 17 miniruby.main.main(argc = 3, argv = 0x7fff7c14, envp = 0x7fff7c24) ["main.c":43, 0x401b14] -- 新井康司 (Koji Arai)