-
Notifications
You must be signed in to change notification settings - Fork 337
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
Comments
jirutka
changed the title
Fails to build with Ruby 3.4
Emits deprecation warnings when building with Ruby 3.4
Dec 30, 2024
Until this is addressed you should be able to build with E=0 will stop warnings from being treated as errors. |
ac000
added a commit
to ac000/unit
that referenced
this issue
Jan 21, 2025
Ruby 3.4 started to actually mark some deprecated functions as *deprecated* now resulting in compiler warnings (which due to -Werror we treat as errors and thus the build fails). The *new* functions were actually introduced back in Ruby 1.9.2, so have been around for quite some time. We claim support for Ruby 2.0 onwards so this is more than fine. The new API replaces the old 'mark' and 'free' parameters with a struct that allows for more fine tuning/configuration. We never made use of either of those parameters and so the only member of this struct we *need* to set is the structure wrapper name. Ruby pytests still pass after this change... Closes: nginx#1525 Link: <https://bugs.ruby-lang.org/issues/19998> Signed-off-by: Andrew Clayton <[email protected]>
ac000
added a commit
to ac000/unit
that referenced
this issue
Jan 22, 2025
Ruby 3.4 started to actually mark some deprecated functions as *deprecated* now resulting in compiler warnings (which due to -Werror we treat as errors and thus the build fails). The *new* functions were actually introduced back in Ruby 1.9.2, so have been around for quite some time. We claim support for Ruby 2.0 onwards so this is more than fine. The new API replaces the old 'mark' and 'free' parameters with a struct that allows for more fine tuning/configuration. We never made use of either of those parameters and so the only members of this struct we *need* to set is the structure wrapper name and the dsize function pointer which is passed a pointer to the underlying wrapped structure to calculate its memory usage. While this is *not* required the documentation *recommends* setting it (though it doesn't say how it's used). Ruby pytests still pass after this change... Closes: nginx#1525 Link: <https://bugs.ruby-lang.org/issues/19998> Link: <https://docs.ruby-lang.org/en/3.4/extension_rdoc.html#label-C+struct+to+Ruby+object> Signed-off-by: Andrew Clayton <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See https://bugs.ruby-lang.org/issues/19998
The text was updated successfully, but these errors were encountered: