[#9642] Re: host.conf は参照しないの? — akira yamada / やまだあきら <akira@...>

15 messages 2000/05/09

[#9672] IO.popen — Koji Arai <JCA02266@...>

新井です。

22 messages 2000/05/13
[#9673] Re: IO.popen — Koji Arai <JCA02266@...> 2000/05/13

新井です。

[#9682] Re: IO.popen — matz@... (Yukihiro Matsumoto) 2000/05/14

まつもと ゆきひろです

[#9676] support mingw32 — WATANABE Hirofumi <eban@...>

わたなべです.

32 messages 2000/05/13
[#9678] Re: support mingw32 — Masaki Suketa <CQN02273@...> 2000/05/14

助田です.

[#9680] Re: support mingw32 — WATANABE Hirofumi <eban@...> 2000/05/14

わたなべです.

[#9686] Re: support mingw32 — Katsuyuki Komatsu <komatsu@...> 2000/05/15

小松です。

[#9687] Re: support mingw32 — WATANABE Hirofumi <Hirofumi.Watanabe@...> 2000/05/15

わたなべです.

[#9806] rescue variable syntax — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

40 messages 2000/05/24
[#9811] Re: rescue variable syntax — ARIMA Yasuhiro <fit0298@...> 2000/05/24

有馬です。

[#9814] Re: rescue variable syntax — matz@... (Yukihiro Matsumoto) 2000/05/24

まつもと ゆきひろです

[#9821] Re: rescue variable syntax — nobu.nakada@... 2000/05/25

なかだです。

[#9823] Re: rescue variable syntax — ARIMA Yasuhiro <fit0298@...> 2000/05/25

有馬です。

[#9833] Re: rescue variable syntax — matz@... (Yukihiro Matsumoto) 2000/05/25

まつもと ゆきひろです

[#9861] Re: rescue variable syntax — gotoken@... (GOTO Kentaro) 2000/05/25

ごとけんです

[#9866] Re: rescue variable syntax — matz@... (Yukihiro Matsumoto) 2000/05/25

まつもと ゆきひろです

[#9870] Re: rescue variable syntax — nagai@... 2000/05/26

永井@知能.九工大です.

[#9873] Re: rescue variable syntax — matz@... (Yukihiro Matsumoto) 2000/05/27

まつもと ゆきひろです

[#9812] Forward: Error in NT makefile (PR#7) — matz@... (Yukihiro Matsumoto)

まつもと ゆきひろです

21 messages 2000/05/24
[#9820] Re: Forward: Error in NT makefile (PR#7) — Katsuyuki Komatsu <komatsu@...> 2000/05/25

小松です。

[#9842] Re: Forward: Error in NT makefile (PR#7) — WATANABE Hirofumi <Hirofumi.Watanabe@...> 2000/05/25

わたなべです.

[#9855] Re: Forward: Error in NT makefile (PR#7) — Katsuyuki Komatsu <komatsu@...> 2000/05/25

小松です。

[#9879] Re: Forward: Error in NT makefile (PR#7) — WATANABE Hirofumi <eban@...> 2000/05/28

わたなべです.

[#9857] $0 handling on NT — Katsuyuki Komatsu <komatsu@...>

小松です。

18 messages 2000/05/25
[#9869] Re: $0 handling on NT — nobu.nakada@... 2000/05/26

なかだです。

[ruby-dev:9745] BeOS configure change

From: Katsuyuki Komatsu <komatsu@...>
Date: 2000-05-18 00:09:20 UTC
List: ruby-dev #9745
小松です。

[ruby-dev:9703]のBeOSのconfigure関連の変更です。

PowerPC版はIntel版でクロスコンパイルしてみていますが、configure.in
等にはうまく反映できて無くて、Makefileやconfig.h等は手動で書き換えて
います。

なお、PowerPCで--enable-sharedを付けてlibruby.soを生成する場合、
一回リンクを実行してruby.expを生成した後、余分な所 (以下の例では
先頭からrb_cArrayの前まで) を削って再実行する必要がありました。

$ diff -u1 ruby.exp-gen ruby.exp
--- ruby.exp-gen        Wed May 17 23:54:36 2000
+++ ruby.exp    Wed May 17 23:54:55 2000
@@ -1,9 +1 @@
-__global_destructor_chain
-__destroy_global_chain
-__register_global_object
-__ptmf_null
-longjmp
-_term_routine_
-_init_routine_
-__start
 rb_cArray
$ 

そういう意味だと、一回作ったruby.expをbeos/ruby.def.inにコピー
しておくと次回からは普通に作れるわけですから、configure.inの
    cp beos/ruby.def.in ruby.exp
は残しておいた方がいいかもしれませんが、いずれにしろ操作が
はいるので、今回は消してしまいます。

mwldppc -f ruby.expと指定した場合、ruby.expが存在しなければ
生成してくれるのですが、余分なものまでexportされるので1回目の
リンクは失敗してしまいます。

拡張ライブラリを作るときのruby.expは-export Init_$(TARGET)
を使うことで、必要なくなりました。

なお、[ruby-dev:9612]のCygwin 1.1.0対応でいらなくなった
import.hのインストールもinstruby.rbから削除しました。

Wed May 18 09:01:25 2000  Katsuyuki Komatsu  <komatsu@sarion.co.jp>

	* configure.in, ext/extmk.rb.in, lib/mkmf.rb: remove BeOS R3 support.
	  Make a shared library (libruby.so) only if the --enable-shared
	  option is specified.

	* instruby.rb: no longer use libruby.so.LIB and import.h.

	* io.c: fix READ_DATA_PENDING definition for BeOS (PowerPC).

diff -ru1p ruby-1.5.4.dist/configure.in ruby-1.5.4/configure.in
--- ruby-1.5.4.dist/configure.in	Sun May 14 18:36:26 2000
+++ ruby-1.5.4/configure.in	Thu May 18 09:01:25 2000
@@ -429,2 +429,3 @@ if test "$with_dln_a_out" != yes; then
     bsdi*)	;;
+    beos*)	;;
     cygwin*)	;;
@@ -523,3 +524,3 @@ if test "$with_dln_a_out" != yes; then
 			    LDSHARED="ld -xms"
-			    DLDFLAGS="-f ruby.exp -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o"
+			    DLDFLAGS='-export Init_$(TARGET) -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o'
                             ;;
@@ -529,4 +530,2 @@ if test "$with_dln_a_out" != yes; then
 			    ;;
-			  *)
-			    DLDFLAGS="ruby.def -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o"
 			esac
@@ -704,21 +703,2 @@ LIBRUBYARG='$(LIBRUBY_A)'
 SOLIBS=
-if test "$target_os" = "beos"; then
-  LIBRUBY='$(LIBRUBY_SO)'
-  LIBRUBYARG='-l$(RUBY_INSTALL_NAME)'
-  SOLIBS='-lnet'
-  echo creating ruby.def
-  case "$target_cpu" in
-    powerpc*)
-      cp beos/ruby.def.in ruby.exp
-      CFLAGS="$CFLAGS -relax_pointers"
-      ;;
-    i586*)
-      LDFLAGS="$LDFLAGS -L."
-      ;;
-    *)
-      echo EXPORTS > ruby.def
-      cat beos/ruby.def.in >> ruby.def
-      ;;
-  esac
-fi
 
@@ -786,2 +766,9 @@ if test "$enable_shared" = 'yes'; then
 	;;
+    beos*)
+	case "$target_cpu" in
+	powerpc*)
+	    LIBRUBY_DLDFLAGS='-f ruby.exp -lnet -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o'
+	    ;;
+	esac
+	;;
     cygwin*|mingw*)
@@ -833,2 +820,9 @@ case "$target_os" in
 		;;
+    beos*)
+	case "$target_cpu" in
+	powerpc*)
+	    CFLAGS="$CFLAGS -relax_pointers"
+	    ;;
+	esac
+	;;
     cygwin*)
diff -ru1p ruby-1.5.4.dist/ext/extmk.rb.in ruby-1.5.4/ext/extmk.rb.in
--- ruby-1.5.4.dist/ext/extmk.rb.in	Sun May 14 18:36:28 2000
+++ ruby-1.5.4/ext/extmk.rb.in	Thu May 18 09:01:25 2000
@@ -336,7 +336,2 @@ def create_makefile(target)
 
-  if RUBY_PLATFORM =~ /beos/ and not $static
-    $libs = $libs + " @LIBRUBYARG@"
-    $DLDFLAGS = $DLDFLAGS + " -L" + $topdir
-  end
-
   defflag = ''
@@ -476,15 +471,2 @@ $(DLLIB): $(OBJS)
   mfile.close
-  
-  if RUBY_PLATFORM =~ /beos/
-    if RUBY_PLATFORM =~ /^powerpc/ then
-      deffilename = "ruby.exp"
-    else
-      deffilename = "ruby.def"
-    end
-    print "creating #{deffilename}\n"
-    open(deffilename, "w") do |file|
-      file.print("EXPORTS\n") if RUBY_PLATFORM =~ /^i/
-      file.print("Init_#{target}\n")
-    end
-  end
 end
diff -ru1p ruby-1.5.4.dist/instruby.rb ruby-1.5.4/instruby.rb
--- ruby-1.5.4.dist/instruby.rb	Wed Apr 12 14:06:21 2000
+++ ruby-1.5.4/instruby.rb	Thu May 18 09:01:25 2000
@@ -38,3 +38,3 @@ end
 File.makedirs libdir, true
-for lib in ["libruby.so.LIB", CONFIG["LIBRUBY_SO"]]
+for lib in [CONFIG["LIBRUBY_SO"]]
   if File.exist? lib
@@ -58,6 +58,2 @@ File.makedirs sitelibdir, true
 File.makedirs sitearchlibdir, true
-
-if RUBY_PLATFORM =~ /cygwin/ and File.exist? "import.h"
-  File.install "import.h", archlibdir, 0644, true
-end
 
diff -ru1p ruby-1.5.4.dist/io.c ruby-1.5.4/io.c
--- ruby-1.5.4.dist/io.c	Wed May 17 13:38:13 2000
+++ ruby-1.5.4/io.c	Thu May 18 09:01:25 2000
@@ -107,3 +107,3 @@ static VALUE lineno;
 #elif defined(__BEOS__)
-#  define ReadDataPending(fp) (fp->_state._eof == 0)
+#  define READ_DATA_PENDING(fp) (fp->_state._eof == 0)
 #else
diff -ru1p ruby-1.5.4.dist/lib/mkmf.rb ruby-1.5.4/lib/mkmf.rb
--- ruby-1.5.4.dist/lib/mkmf.rb	Sun May 14 18:36:28 2000
+++ ruby-1.5.4/lib/mkmf.rb	Thu May 18 09:01:25 2000
@@ -335,7 +335,2 @@ def create_makefile(target)
 
-  if RUBY_PLATFORM =~ /beos/
-    $libs = $libs + " " + CONFIG["LIBRUBYARG"]
-    $DLDFLAGS = $DLDFLAGS + " -L" + CONFIG["prefix"] + "/lib"
-  end
-
   defflag = ''
@@ -449,15 +444,2 @@ EOMF
   mfile.close
-
-  if RUBY_PLATFORM =~ /beos/
-    if RUBY_PLATFORM =~ /^powerpc/ then
-      deffilename = "ruby.exp"
-    else
-      deffilename = "ruby.def"
-    end
-    print "creating #{deffilename}\n"
-    open(deffilename, "w") do |file|
-      file.print("EXPORTS\n") if RUBY_PLATFORM =~ /^i/
-      file.print("Init_#{target}\n")
-    end
-  end
 end

--
小松克行 / Katsuyuki Komatsu <komatsu@sarion.co.jp>

In This Thread

Prev Next