Actions
Bug #8652
closedgem で rb_secure(4) を使用するとビルドエラーとなる
Bug #8652:
gem で rb_secure(4) を使用するとビルドエラーとなる
Description
linux で ruby-fcgi(https://github.com/saks/ruby-fcgi) という rb_secure(4) を使っている gem を trunk でコンパイルしようと失敗してしまいます。
$ make
compiling fcgi.c
(snip)
fcgi.c:231:3: エラー: call to ‘ruby$safe_level$4’ declared with attribute error: $SAFE=4 is obsolete
fcgi.c: 関数 ‘fcgi_stream_putc’ 内:
fcgi.c:219:3: エラー: call to ‘ruby$safe_level$4’ declared with attribute error: $SAFE=4 is obsolete
make: *** [fcgi.o] エラー 1
Mac OS X 10.8.4 だと上記のエラーは発生しません。
エラーが発生する linux の gcc は gcc バージョン 4.6.4 (Funtoo 4.6.4) です。
Actions