[#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:9810] [PATCH] ext/pty/pty.c, file.c, win32/ruby.def

From: Katsuyuki Komatsu <komatsu@...>
Date: 2000-05-24 12:32:01 UTC
List: ruby-dev #9810
小松です。

BeOS R5 (Intel) でmwccppcを使ってPowerPC版をクロスコンパイル
していると、ext/pty/pty.cのコンパイルで、ruby.hが見つからない
とか言われてしまいます。

Metrowerksのコンパイラは、-Iで指定したディレクトリを
#include <>の検索対象に含めないようです。

何かスイッチを指定すればいいのかもしれませんが、
他のext/*/*.cはすべてruby.hのincludeに""を使っていますので、
ext/pty/pty.cも""に変えても良いかと思います。

あとは、2000-05-24のcommit対応です。

 1. mswin32だとstat()に渡すパスがNULLだと落ちるのでチェックを追加。
 2. win32/ruby.defにrb_block_given_pを追加。

$ pwd
/boot/home/ruby-1.5.4/ppc-shared
$ (cd ext/pty && make)
mwccppc -I/boot/home/ruby-1.5.4/ppc-shared -I/boot/home/ruby-1.5.4 -g -O2  -relax_pointers -I/boot/home/config/include -I/boot/home/config/include -DHAVE_IOCTL   -c /boot/home/ruby-1.5.4/ext/pty/pty.c -o pty.o
### mwccppc Compiler Error:
#	#include <ruby.h>
#	                ^
#   the file 'ruby.h' cannot be opened
#----------------------------------------------------------
    File "/boot/home/ruby-1.5.4/ext/pty/pty.c"; Line 18
#----------------------------------------------------------
### mwccppc Compiler Error:
#	#include <rubyio.h>
#	                  ^
#   the file 'rubyio.h' cannot be opened
#----------------------------------------------------------
    File "/boot/home/ruby-1.5.4/ext/pty/pty.c"; Line 19
#----------------------------------------------------------
    (中略)
#   Too many errors printed, aborting process

User canceled, aborting...
make: *** [pty.o] Error 1
$ 

Wed May 24 21:01:04 2000  Katsuyuki Komatsu  <komatsu@sarion.co.jp>

	* ext/pty/pty.c: use "" instead of <> to include ruby.h and rubyio.h
	  for BeOS (PowerPC).

	* file.c (rb_find_file): should check dln_find_file() result.

	* win32/ruby.def: add rb_block_given_p.

diff -ru1p ruby-1.5.4.dist/ext/pty/pty.c ruby-1.5.4/ext/pty/pty.c
--- ruby-1.5.4.dist/ext/pty/pty.c	Wed May 24 13:34:16 2000
+++ ruby-1.5.4/ext/pty/pty.c	Wed May 24 21:01:04 2000
@@ -17,4 +17,4 @@
 
-#include <ruby.h>
-#include <rubyio.h>
+#include "ruby.h"
+#include "rubyio.h"
 
diff -ru1p ruby-1.5.4.dist/file.c ruby-1.5.4/file.c
--- ruby-1.5.4.dist/file.c	Wed May 24 13:33:56 2000
+++ ruby-1.5.4/file.c	Wed May 24 21:01:04 2000
@@ -2095,3 +2095,3 @@ rb_find_file(file)
     path = dln_find_file(file, path);
-    if (stat(path, &st) == 0) {
+    if (path && stat(path, &st) == 0) {
 	return path;
diff -ru1p ruby-1.5.4.dist/win32/ruby.def ruby-1.5.4/win32/ruby.def
--- ruby-1.5.4.dist/win32/ruby.def	Thu May 18 13:32:13 2000
+++ ruby-1.5.4/win32/ruby.def	Wed May 24 21:01:04 2000
@@ -289,2 +289,3 @@ EXPORTS
 	rb_jump_tag
+	rb_block_given_p
 	rb_iterator_p

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

In This Thread

Prev Next