Forum: Ruby-dev [ruby-trunk - Bug #7101][Assigned] 拡張ライブラリの質問

Posted by shyouhei (Shyouhei Urabe) (Guest)
on 2012-10-02 13:56
(Received via mailing list)
Issue #7101 has been updated by shyouhei (Shyouhei Urabe).

Category set to build
Status changed from Open to Assigned
Assignee set to sorah (Shota Fukumori)
Target version set to 2.0.0
ruby -v set to trunk


----------------------------------------
Bug #7101:  拡張ライブラリの質問
https://bugs.ruby-lang.org/issues/7101#change-29939

Author: ko1 (Koichi Sasada)
Status: Assigned
Priority: Normal
Assignee: sorah (Shota Fukumori)
Category: build
Target version: 2.0.0
ruby -v: trunk


  ささだです.


  trunk では,拡張ライブラリをビルドするとき,下記のようなオプションがつ
 きます.

 gcc -I. (snip) -Wall -Wextra -Wno-unused-parameter -Wno-parentheses
 -Wno-long-long -Wno-missing-field-initializers -Wunused-variable
 -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement
 -Wimplicit-function-declaration -ansi -std=iso9899:199409  (snip)

  -ansi -std=iso9899:199409 のあたりで,inline や // でのコメントアウト
 を利用している拡張ライブラリがビルド出来ない感じです.
 (inline については,ruby.h を include していれば適切に入れ替えられるん
 ですが,ruby.h を include していない *.c をビルドする可能性もあり,そこ
 でこけてる感じです)

  これは,仕様でしょうか.ぎゃっという人は多そうなので,拡張ライブラリの
 CC のオプションは,以前に外した方が良さそうに思いますが.


 # 目の前でマンガを読んでいる須藤さんから
 # 何とかしろと言われたのでご相談した次第です.

 --
 // SASADA Koichi at atdot dot net
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.