From: WATANABE Hirofumi Date: 2000-04-16T21:55:46+09:00 Subject: [ruby-dev:9578] Re: mod_ruby から拡張モジュールがロードできない わたなべです. Norihito Shinzan (Jun Kabbalah) writes: : めんどくさいので ext/extmk.rb.in をちょちょいと書きかえて試しましたが、 :問題発生です(^^;;。readline.so のコンパイルで、libreadline の xmalloc と :libruby の xmalloc が衝突しているようです。xrealloc,xfree も同様。 うーむ. 特に問題はなかったんだけどなあ. こんな感じで試しました. #1.4.4 だと reject するから手で修正してね. diff -u1rN -x CVS -x configure -x parse.c ruby-1.5.3/Makefile.in 1.5.3/Makefile.in --- ruby-1.5.3/Makefile.in Thu Jan 6 22:05:01 2000 +++ 1.5.3/Makefile.in Sat Apr 15 17:22:58 2000 @@ -83,3 +83,3 @@ -all: miniruby$(EXEEXT) @PREP@ rbconfig.rb +all: miniruby$(EXEEXT) @PREP@ rbconfig.rb $(LIBRUBY) @@MINIRUBY@ -Xext extmk.rb @EXTSTATIC@ diff -u1rN -x CVS -x configure -x parse.c ruby-1.5.3/ext/extmk.rb.in 1.5.3/ext/extmk.rb.in --- ruby-1.5.3/ext/extmk.rb.in Mon Apr 10 21:33:07 2000 +++ 1.5.3/ext/extmk.rb.in Sat Apr 15 17:35:03 2000 @@ -331,2 +331,7 @@ + if $configure_args['--enable-shared'] + $libs = "@LIBRUBYARG@ " + $libs + $DLDFLAGS = $DLDFLAGS + " -L" + $topdir + end + if RUBY_PLATFORM =~ /beos/ and not $static @@ -341,4 +346,2 @@ end - $libs = $libs + " @LIBRUBYARG@" - $DLDFLAGS = $DLDFLAGS + " -L" + $topdir end diff -u1rN -x CVS -x configure -x parse.c ruby-1.5.3/lib/mkmf.rb.in 1.5.3/lib/mkmf.rb --- ruby-1.5.3/lib/mkmf.rb Wed Apr 12 20:28:17 2000 +++ 1.5.3/lib/mkmf.rb Sat Apr 15 19:30:44 2000 @@ -330,2 +330,7 @@ + if $configure_args['--enable-shared'] + $libs = CONFIG["LIBRUBYARG"] + " " + $libs + $DLDFLAGS = $DLDFLAGS + " -L$(topdir)" + end + if RUBY_PLATFORM =~ /beos/ @@ -340,4 +345,2 @@ end - $libs = $libs + " " + CONFIG["LIBRUBYARG"] - $DLDFLAGS = $DLDFLAGS + " -L$(topdir)" end