[#24536] 「Rubyの落し方」 v.s. ruby_1_8 — akira yamada / やまだあきら <akira@...>

<URL:http://jp.rubyist.net/magazine/?0002-RubyCore>

40 messages 2004/10/20
[#24541] Re: 「Rubyの落し方」 v.s. ruby_1_8 — Yukihiro Matsumoto <matz@...> 2004/10/20

まつもと ゆきひろです

[#24599] 1.8.2 preview3? — akira yamada / やまだあきら <akira@...> 2004/10/26

2004-10-20 (水) の 21:38 +0900 に Yukihiro Matsumoto さんは書きました:

[#24605] Re: 1.8.2 preview3? — akira yamada / やまだあきら <akira@...> 2004/10/27

2004-10-26 (火) の 16:16 +0900 に akira yamada / やまだあきら さんは書きました:

[#24606] Re: 1.8.2 preview3? — Yukihiro Matsumoto <matz@...> 2004/10/27

まつもと ゆきひろです

[#24608] Re: 1.8.2 preview3? — akira yamada / やまだあきら <akira@...> 2004/10/27

2004-10-27 (水) の 11:48 +0900 に Yukihiro Matsumoto さんは書きました:

[#24620] Re: 1.8.2 preview3? — akira yamada / やまだあきら <akira@...> 2004/10/27

2004-10-27 (水) の 12:42 +0900 に akira yamada / やまだあきら さんは書きました:

[#24629] Re: 1.8.2 preview3? — Tanaka Akira <akr@...17n.org> 2004/10/29

In article <1098888819.9446.14.camel@rice.p.arika.org>,

[ruby-dev:24638] Can't make ruby 1.9 on NetBSD

From: "NARUSE, Yui" <naruse@...>
Date: 2004-10-29 12:04:08 UTC
List: ruby-dev #24638
naruseです。

Ruby1.9のmakeについて三つ。

まずNetBSD1.6.2 (GENERI_LAPTOP) (i386)
gcc version 2.95.3 20010315 (release) (NetBSD nb3)にて、
CVS Headがmakeに失敗します。

具体的には、

./libruby-static.a(process.o): In function `p_sys_setruid':
/home/naruse/test/ruby/process.c:1997: warning: this program uses
setruid(), which is deprecated.
./libruby-static.a(process.o): In function `p_sys_setrgid':
/home/naruse/test/ruby/process.c:2341: warning: this program uses
setrgid(), which is deprecated.

と言われます。
これ自体は以下のパッチを当てたら消えたのですが、
このパッチによって副作用などは起きないのでしょうか。
uidを扱っている以上ちょっと怖いのですが。

Index: process.c
===================================================================
RCS file: /var/cvs/src/ruby/process.c,v
retrieving revision 1.115
diff -r1.115 process.c
96a97,101
> #ifdef __NetBSD__
> #undef HAVE_SETRUID
> #undef HAVE_SETRGID
> #endif


他に、make installすると、
Generating RI...
a/usr/home/naruse/ruby/lib/rdoc/ri/ri_writer.rb:51: warning: setvbuf()
can't be honoured for /usr/local/share/ri/1.9/system/IO/readlines-i.yaml
/usr/home/naruse/ruby/lib/rdoc/ri/ri_writer.rb:51: warning: setvbuf()
can't be honoured for /usr/local/share/ri/1.9/system/IO/rewind-i.yaml
/usr/home/naruse/ruby/lib/yaml/baseemitter.rb:135:in `gsub': failed to
allocate memory (NoMemoryError)
        from /usr/home/naruse/ruby/lib/yaml/baseemitter.rb:135:in `fold'
        from /usr/home/naruse/ruby/lib/yaml/baseemitter.rb:67:in `node_text'
        from /usr/home/naruse/ruby/lib/yaml/rubytypes.rb:329:in `to_yaml'
        from /usr/home/naruse/ruby/lib/yaml/rubytypes.rb:307:in `call'
        from /usr/home/naruse/ruby/lib/yaml.rb:373:in `quick_emit'
        from /usr/home/naruse/ruby/lib/yaml/rubytypes.rb:307:in `to_yaml'
        from /usr/home/naruse/ruby/lib/yaml/baseemitter.rb:181:in `map'
        from /usr/home/naruse/ruby/lib/yaml/baseemitter.rb:170:in `each'
         ... 29 levels...
        from
/usr/home/naruse/ruby/lib/rdoc/generators/ri_generator.rb:84:in `each'
        from
/usr/home/naruse/ruby/lib/rdoc/generators/ri_generator.rb:84:in `generate'
        from /usr/home/naruse/ruby/lib/rdoc/rdoc.rb:269:in `document'
        from ./bin/rdoc:63
			 Error code 1

Stop.
などと言われます。
マシンによって出たり出なかったりのようで、
手持ちの2台では、1台でエラーが出て、もう1台では出ませんでした。

これは、こういうものだということになるのでしょうか。


最後に、Ruby1.9のbison依存について、どこかにかいた方がよさそうです。
READMEですかね。
#parse.yでエラーが出て、しばらく悩みました^^;;

-- 
NARUSE, Yui naruse@airemix.com
DBDB A476 FDBD 9450 02CD 0EFC BCE3 C388 472E C1EA

In This Thread

Prev Next