From: Dominik Bathon Date: 2006-08-02T06:12:14+09:00 Subject: Re: Ruby2CExtension (Was: converting some autogenerated ruby code to C) On Tue, 01 Aug 2006 03:39:29 +0200, Eric Hodel wrote: > But if I create extconf.rb it seems to work: > > $ ruby184 extconf.rb > creating Makefile > $ make > gcc -I. -I/usr/local/lib/ruby/1.8/powerpc-darwin8.4.0 -I/usr/local/ > lib/ruby/1.8/powerpc-darwin8.4.0 -I. -fno-common -g -O2 -pipe -fno- > common -c bm_test.c > cc -dynamic -bundle -undefined suppress -flat_namespace -L"/usr/ > local/lib" -o bm_test.bundle bm_test.o -ldl -lobjc > $ ruby -r bm_test -e0 > $ echo $? > 0 > $ > > Same for 1.8.5. > > rb2cx exhibits the same problems as not using mkmf. OK, I have investigated a bit more and it seems that the libs, that I added to the build command are unnecessary (and can even cause problems), so I removed them. Could you please test the latest version. Concerning 1.8.4 vs. 1.8.5: builtin_methods_test.rb should now work with latest 1.8.5, but rb2cx generally will not, because there have been some changes to nodes, e.g. http://www.ruby-lang.org/cgi-bin/cvsweb.cgi//ruby/eval.c.diff?r1=1.616.2.143;r2=1.616.2.144;only_with_tag=ruby_1_8;f=h I will address all these changes once 1.8.5 is released. Thanks again, Dominik