At Sat, 11 Jan 2003 15:08:06 +0900, Mark Wilson wrote: > I have tried to install RubyCocoa and received the following error: > > bash-2.05a$ ruby install.rb config > install.rb: entering config phase... > create ext/rubycocoa/extconf.rb (snip) > ---> framework > create > /Users/markwils/Desktop/Ruby/tarballs/rubycocoa-0.4.0/framework/src/ > objc/osx_ruby.h ... > /Users/markwils/Desktop/Ruby/tarballs/rubycocoa-0.4.0/framework/post- > config.rb:15: [BUG] Segmentation fault > ruby 1.6.8 (2002-12-24) [powerpc-darwin6.3] > Abort trap > > As you can see from the above, I am using ruby 1.6.8. I am also using > 10.2.3 and the December developer tools. If anyone has any insight on > this, I would appreciate the help. Thank you. I saw a same error. The error occur in rb_gc_mark() of ruby 1.6.8. It seem that the error doesn't occur in ruby 1.6.7 and 1.8pre. I cannot figure out why, but a following patch will fix the bug. $ cd {rubycocoa-0.4 source directory} $ patch -p0 < following-patch thanks, -- FUJIMOTO Hisakuni
Index: framework/post-config.rb =================================================================== RCS file: /cvsroot/rubycocoa/src/framework/post-config.rb,v retrieving revision 1.4 diff -u -b -u -r1.4 post-config.rb --- framework/post-config.rb 19 Dec 2002 08:41:50 -0000 1.4 +++ framework/post-config.rb 11 Jan 2003 14:02:17 -0000 @@ -12,10 +12,9 @@ $stderr.puts "create #{File.expand_path(dst_fname)} ..." File.open(dst_fname, 'w') do |dstfile| IO.foreach(src_path) do |line| - line = line.gsub( /\bID\b/, 'RB_ID' ) - line = line.gsub( /\bT_DATA\b/, 'RB_T_DATA' ) - line = line.gsub( /\bintern.h\b/, "#{new_filename_prefix}intern.h" ) - dstfile.puts line + line.gsub!( /\b(ID|T_DATA)\b/, 'RB_\1' ) + line.gsub!( /\bintern\.h\b/, "#{new_filename_prefix}intern.h" ) + dstfile.puts( line ) end end end