Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Windows . new version 0.8.0 don't install on ruby less than 3.4

オープン
#96 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
c, ruby
領域
backend

調査の方向性

ext/websocket-driver/websocket_mask.c から始め、特に method_websocket_mask と Init_websocket_mask での登録を確認し、影響を受ける Windows の Ruby バージョンで拡張機能のビルドを再現します。Ruby 3.1、3.2、3.3 で gem のコンパイルとインストールが成功し、Ruby 3.4 でも引き続きインストールできれば完了です。

索引モデルが issue の本文から書いたものです。

説明

with ruby 3.1.7, 3.2.8, 3.3.8 the gem fail to compile on windows with latest version of ruby installer. All mingw packages are a the latest version.
On ruby 3.4.4 it install correctly.

logs:
`current directory: D:/program/Ruby/Ruby33-x64/lib/ruby/gems/3.3.0/gems/websocket-driver-0.8.0/ext/websocket-driver
D:/program/Ruby/Ruby33-x64/bin/ruby.exe extconf.rb
creating Makefile

current directory: D:/program/Ruby/Ruby33-x64/lib/ruby/gems/3.3.0/gems/websocket-driver-0.8.0/ext/websocket-driver
make DESTDIR= sitearchdir=./.gem.20250525-11528-y6pu5x sitelibdir=./.gem.20250525-11528-y6pu5x clean

current directory: D:/program/Ruby/Ruby33-x64/lib/ruby/gems/3.3.0/gems/websocket-driver-0.8.0/ext/websocket-driver
make DESTDIR= sitearchdir=./.gem.20250525-11528-y6pu5x sitelibdir=./.gem.20250525-11528-y6pu5x
generating websocket_mask-x64-mingw-ucrt.def
compiling websocket_mask.c
websocket_mask.c: In function 'Init_websocket_mask':
websocket_mask.c:31:46: error: passing argument 3 of 'rb_define_singleton_method' from incompatible pointer type [-Wincompatible-pointer-types]
31 | rb_define_singleton_method(Mask, "mask", method_websocket_mask, 2);
| ^~~~~~~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE, VALUE, VALUE) {aka long long unsigned int ()(long long unsigned int, long long unsigned int, long long unsigned int)}
In file included from D:/program/Ruby/Ruby33-x64/include/ruby-3.3.0/ruby/internal/anyargs.h:76,
from D:/program/Ruby/Ruby33-x64/include/ruby-3.3.0/ruby/ruby.h:27,
from D:/program/Ruby/Ruby33-x64/include/ruby-3.3.0/ruby.h:38,
from websocket_mask.c:1:
D:/program/Ruby/Ruby33-x64/include/ruby-3.3.0/ruby/internal/intern/class.h:365:68: note: expected 'VALUE ()(void)' {aka 'long long unsigned int ()(void)'} but argument is of type 'VALUE ()(VALUE, VALUE, VALUE)' {aka 'long long unsigned int ()(long long unsigned int, long long unsigned int, long long unsigned int)'}
365 | void rb_define_singleton_method(VALUE obj, const char *mid, VALUE(*func)(ANYARGS), int arity);
| ~~~~~~~^~~~~~~~~~~~~~
websocket_mask.c:3:7: note: 'method_websocket_mask' declared here
3 | VALUE method_websocket_mask(VALUE self, VALUE payload, VALUE mask)
| ^~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:248: websocket_mask.o] Error 1

make failed, exit code 2
`
Any idea?

主要言語
Ruby
スター
238
フォーク
49
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

faye/websocket-driver-ruby のほかの issue

faye/websocket-driver-ruby の issue をすべて見る

似ている issue

Ruby の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。