Skip to content
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

Emits deprecation warnings when building with Ruby 3.4 #1525

Open
jirutka opened this issue Dec 30, 2024 · 0 comments
Open

Emits deprecation warnings when building with Ruby 3.4 #1525

jirutka opened this issue Dec 30, 2024 · 0 comments

Comments

@jirutka
Copy link

jirutka commented Dec 30, 2024

src/ruby/nxt_ruby_stream_io.c: In function 'nxt_ruby_stream_io_new':
src/ruby/nxt_ruby_stream_io.c:76:5: error: 'rb_data_object_wrap_warning' is deprecated: by TypedData [-Werror=deprecated-declarations]
   76 |     self = Data_Wrap_Struct(class, 0, 0, (void *) (uintptr_t) arg);
      |     ^~~~
In file included from /usr/include/ruby-3.4.0/ruby/internal/core.h:27,
                 from /usr/include/ruby-3.4.0/ruby/ruby.h:29,
                 from /usr/include/ruby-3.4.0/ruby.h:38,
                 from src/ruby/nxt_ruby.h:11,
                 from src/ruby/nxt_ruby_stream_io.c:7:
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:293:1: note: declared here
  293 | rb_data_object_wrap_warning(VALUE klass, void *ptr, RUBY_DATA_FUNC mark, RUBY_DATA_FUNC free)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~
src/ruby/nxt_ruby_stream_io.c: In function 'nxt_ruby_stream_io_gets':
src/ruby/nxt_ruby_stream_io.c:99:5: error: 'rb_data_object_get_warning' is deprecated: by TypedData [-Werror=deprecated-declarations]
   99 |     Data_Get_Struct(obj, nxt_ruby_ctx_t, rctx);
      |     ^~~~~~~~~~~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
  325 | rb_data_object_get_warning(VALUE obj)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/ruby/nxt_ruby_stream_io.c: In function 'nxt_ruby_stream_io_read':
src/ruby/nxt_ruby_stream_io.c:155:5: error: 'rb_data_object_get_warning' is deprecated: by TypedData [-Werror=deprecated-declarations]
  155 |     Data_Get_Struct(obj, nxt_ruby_ctx_t, rctx);
      |     ^~~~~~~~~~~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
  325 | rb_data_object_get_warning(VALUE obj)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/ruby/nxt_ruby_stream_io.c: In function 'nxt_ruby_stream_io_puts':
src/ruby/nxt_ruby_stream_io.c:211:5: error: 'rb_data_object_get_warning' is deprecated: by TypedData [-Werror=deprecated-declarations]
  211 |     Data_Get_Struct(obj, nxt_ruby_ctx_t, rctx);
      |     ^~~~~~~~~~~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
  325 | rb_data_object_get_warning(VALUE obj)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
src/ruby/nxt_ruby_stream_io.c: In function 'nxt_ruby_stream_io_write':
src/ruby/nxt_ruby_stream_io.c:229:5: error: 'rb_data_object_get_warning' is deprecated: by TypedData [-Werror=deprecated-declarations]
  229 |     Data_Get_Struct(obj, nxt_ruby_ctx_t, rctx);
      |     ^~~~~~~~~~~~~~~
/usr/include/ruby-3.4.0/ruby/internal/core/rdata.h:325:1: note: declared here
  325 | rb_data_object_get_warning(VALUE obj)
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make: *** [build/Makefile:2571: build/src/ruby/nxt_ruby_stream_io-ruby.o] Error 1

See https://bugs.ruby-lang.org/issues/19998

@jirutka jirutka changed the title Fails to build with Ruby 3.4 Emits deprecation warnings when building with Ruby 3.4 Dec 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant