Skip to content

Compilation error in Ruby 3.5.0-preview1 #130

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
everton opened this issue Apr 21, 2025 · 2 comments
Closed

Compilation error in Ruby 3.5.0-preview1 #130

everton opened this issue Apr 21, 2025 · 2 comments

Comments

@everton
Copy link

everton commented Apr 21, 2025

I'm getting compilation errors while compiling stringio-3.1.6 with the latest release (3.5.0-preview1).

(Compiling via rbenv, in a Debian machine)

compiling stringio.c
stringio.c: In function ‘strio_init’:
stringio.c:297:52: error: passing argument 5 of ‘rb_io_extract_modeenc’ from incompatible pointer type [-Wincompatible-pointer-types]
  297 |     rb_io_extract_modeenc(&vmode, 0, opt, &oflags, &ptr->flags, &convconfig);
      |                                                    ^~~~~~~~~~~
      |                                                    |
      |                                                    int *
In file included from stringio.c:21:
/home/everton/.rbenv/versions/3.5.0-preview1/include/ruby-3.5.0+0/ruby/io.h:877:107: note: expected ‘enum rb_io_mode *’ but argument is of type ‘int *’
  877 | void rb_io_extract_modeenc(VALUE *vmode_p, VALUE *vperm_p, VALUE opthash, int *oflags_p, enum rb_io_mode *fmode_p, rb_io_enc_t *convconfig_p);
      |                                                                                          ~~~~~~~~~~~~~~~~~^~~~~~~
stringio.c: In function ‘strio_set_encoding’:
stringio.c:1857:61: error: passing argument 5 of ‘rb_io_extract_modeenc’ from incompatible pointer type [-Wincompatible-pointer-types]
 1857 |             rb_io_extract_modeenc(&vmode, 0, Qnil, &oflags, &fmode, &convconfig);
      |                                                             ^~~~~~
      |                                                             |
      |                                                             int *
/home/everton/.rbenv/versions/3.5.0-preview1/include/ruby-3.5.0+0/ruby/io.h:877:107: note: expected ‘enum rb_io_mode *’ but argument is of type ‘int *’
  877 | void rb_io_extract_modeenc(VALUE *vmode_p, VALUE *vperm_p, VALUE opthash, int *oflags_p, enum rb_io_mode *fmode_p, rb_io_enc_t *convconfig_p);
      |                                                                                          ~~~~~~~~~~~~~~~~~^~~~~~~
@kou
Copy link
Member

kou commented Apr 21, 2025

We need to release a new version with #129 .
We were waiting for #128 for a new version. But I'll release a new version without #128.

@kou
Copy link
Member

kou commented Apr 21, 2025

Done.

@kou kou closed this as completed Apr 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants