[#39052] Fwd: [redmine4ruby-lang:253] [Bug #1914] ruby-1.9.1-p243 failed to build from source on aix 5.3 with gcc 4.2.0 — Yugui <yugui@...>

Redmine管理用プロジェクトに報告されてしまったので転送します。

12 messages 2009/08/09
[#39264] Re: Fwd: [redmine4ruby-lang:253] [Bug #1914] ruby-1.9.1-p243 failed to build from source on aix 5.3 with gcc 4.2.0 — Yutaka Kanemoto <kinpoco@...> 2009/09/08

金本と申します。

[#39107] [Bug #1952] cannot stop with Ctrl+C — Usaku NAKAMURA <redmine@...>

Bug #1952: cannot stop with Ctrl+C

14 messages 2009/08/18

[#39167] [Bug #2000] Change the license to "GPLv2+ or Ruby's original". — Mamoru Tasaka <redmine@...>

Bug #2000: Change the license to "GPLv2+ or Ruby's original".

11 messages 2009/08/26

[#39193] Re: [ruby-cvs:31917] Ruby:r24699 (trunk): * lib/tmpdir.rb (Dir.mktmpdir): removed thread race condition. — Tanaka Akira <akr@...>

In article <200908281827.n7SIRbaX003476@ci.ruby-lang.org>,

16 messages 2009/08/29
[#39194] Re: [ruby-cvs:31917] Ruby:r24699 (trunk): * lib/tmpdir.rb (Dir.mktmpdir): removed thread race condition. — Nobuyoshi Nakada <nobu@...> 2009/08/29

なかだです。

[#39195] Re: [ruby-cvs:31917] Ruby:r24699 (trunk): * lib/tmpdir.rb (Dir.mktmpdir): removed thread race condition. — Tanaka Akira <akr@...> 2009/08/29

In article <4a988633.9553f10a.4496.483e@mx.google.com>,

[#39196] Re: [ruby-cvs:31917] Ruby:r24699 (trunk): * lib/tmpdir.rb (Dir.mktmpdir): removed thread race condition. — Nobuyoshi Nakada <nobu@...> 2009/08/29

なかだです。

[#39197] Re: [ruby-cvs:31917] Ruby:r24699 (trunk): * lib/tmpdir.rb (Dir.mktmpdir): removed thread race condition. — Tanaka Akira <akr@...> 2009/08/29

In article <4a989f76.1602be0a.3de4.1131@mx.google.com>,

[#39198] Re: [ruby-cvs:31917] Ruby:r24699 (trunk): * lib/tmpdir.rb (Dir.mktmpdir): removed thread race condition. — Yukihiro Matsumoto <matz@...> 2009/08/29

まつもと ゆきひろです

[#39206] Re: [ruby-cvs:31917] Ruby:r24699 (trunk): * lib/tmpdir.rb (Dir.mktmpdir): removed thread race condition. — Nobuyoshi Nakada <nobu@...> 2009/08/31

なかだです。

[ruby-dev:39062] [Bug #1919] sparc-solaris-2.10 で 1.9.2-preview1 がビルドできない

From: Naohisa Goto <redmine@...>
Date: 2009-08-11 03:49:55 UTC
List: ruby-dev #39062
チケット #1919 が更新されました。 (by Naohisa Goto)

ファイル config.h 追加

Solaris の readdir_r について調べてみたところ、
"readdir_r considered harmful"
http://womble.decadentplace.org.uk/readdir_r-advisory.html
という文章を見つけました。これによると、

> On Linux (with glibc) and most versions of Unix, struct dirent
> is large enough to hold maximum-length names from most filesystems,
> so this is safe (though > wasteful). This is not true of Solaris
> and BeOS, where the d_name member is an array of length 1. 

とのことでした。どうやら Solaris では、struct dirent entry のメモリを
確保する際、ファイル名の長さを考慮に入れた十分な長さを自前で確保する
必要があるようです。

> これでどうでしょうか。

config.h を示すのを忘れていました。
1.9.2-preview1の場合のconfig.hをredmine上にて添付します。
autoconf (バージョン 2.61 を使用)が自動的に
  #define _POSIX_PTHREAD_SEMANTICS 1
を追加してくれていたようです。

パッチも念のため試しましたが、やはりダメでした。
この場合の config.h の実質的な変更点は、添付のものから
#define _ALL_SOURCE 1
の行が抜けただけでした。



----------------------------------------
http://redmine.ruby-lang.org/issues/show/1919

----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next