-
Notifications
You must be signed in to change notification settings - Fork 29
Closed
Description
p:/NHM/Ruby3431_x64/lib/ruby/gems/3.4.0/extensions/x64-mingw-ucrt/3.4.0/cgi-0.4.2/gem_make.out
current directory: p:/NHM/Ruby3431_x64/lib/ruby/gems/3.4.0/gems/cgi-0.4.2/ext/cgi/escape
p:/NHM/Ruby3431_x64/bin/ruby.exe extconf.rb
creating Makefile
current directory: p:/NHM/Ruby3431_x64/lib/ruby/gems/3.4.0/gems/cgi-0.4.2/ext/cgi/escape
make DESTDIR\= sitearchdir\=./.gem.20250428-5820-2l3m15 sitelibdir\=./.gem.20250428-5820-2l3m15 clean
current directory: p:/NHM/Ruby3431_x64/lib/ruby/gems/3.4.0/gems/cgi-0.4.2/ext/cgi/escape
make DESTDIR\= sitearchdir\=./.gem.20250428-5820-2l3m15 sitelibdir\=./.gem.20250428-5820-2l3m15
generating escape-x64-mingw-ucrt.def
compiling escape.c
escape.c: In function 'InitVM_escape':
escape.c:477:48: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
477 | rb_define_method(rb_mEscape, "escapeHTML", cgiesc_escape_html, 1);
| ^~~~~~~~~~~~~~~~~~
| |
| VALUE (*)(VALUE, VALUE) {aka long long unsigned int (*)(long long unsigned int, long long unsigned int)}
In file included from P:/NHM/Ruby3431_x64/include/ruby-3.4.0/ruby/internal/anyargs.h:78,
from P:/NHM/Ruby3431_x64/include/ruby-3.4.0/ruby/ruby.h:27,
from P:/NHM/Ruby3431_x64/include/ruby-3.4.0/ruby.h:38,
from escape.c:1:
P:/NHM/Ruby3431_x64/include/ruby-3.4.0/ruby/internal/method.h:99:61: note: expected 'VALUE (*)(void)' {aka 'long long unsigned int (*)(void)'} but argument is of type 'VALUE (*)(VALUE, VALUE)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char *mid, VALUE (*func)(ANYARGS), int arity);
| ~~~~~~~~^~~~~~~~~~~~~~
escape.c:334:1: note: 'cgiesc_escape_html' declared here
334 | cgiesc_escape_html(VALUE self, VALUE str)
| ^~~~~~~~~~~~~~~~~~
escape.c:478:50: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
478 | rb_define_method(rb_mEscape, "unescapeHTML", cgiesc_unescape_html, 1);
| ^~~~~~~~~~~~~~~~~~~~
| |
| VALUE (*)(VALUE, VALUE) {aka long long unsigned int (*)(long long unsigned int, long long unsigned int)}
P:/NHM/Ruby3431_x64/include/ruby-3.4.0/ruby/internal/method.h:99:61: note: expected 'VALUE (*)(void)' {aka 'long long unsigned int (*)(void)'} but argument is of type 'VALUE (*)(VALUE, VALUE)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char *mid, VALUE (*func)(ANYARGS), int arity);
| ~~~~~~~~^~~~~~~~~~~~~~
escape.c:354:1: note: 'cgiesc_unescape_html' declared here
354 | cgiesc_unescape_html(VALUE self, VALUE str)
| ^~~~~~~~~~~~~~~~~~~~
escape.c:479:56: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
479 | rb_define_method(rb_mEscape, "escapeURIComponent", cgiesc_escape_uri_component, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| VALUE (*)(VALUE, VALUE) {aka long long unsigned int (*)(long long unsigned int, long long unsigned int)}
P:/NHM/Ruby3431_x64/include/ruby-3.4.0/ruby/internal/method.h:99:61: note: expected 'VALUE (*)(void)' {aka 'long long unsigned int (*)(void)'} but argument is of type 'VALUE (*)(VALUE, VALUE)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char *mid, VALUE (*func)(ANYARGS), int arity);
| ~~~~~~~~^~~~~~~~~~~~~~
escape.c:425:1: note: 'cgiesc_escape_uri_component' declared here
425 | cgiesc_escape_uri_component(VALUE self, VALUE str)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
escape.c:481:58: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
481 | rb_define_method(rb_mEscape, "unescapeURIComponent", cgiesc_unescape_uri_component, -1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| VALUE (*)(int, VALUE *, VALUE) {aka long long unsigned int (*)(int, long long unsigned int *, long long unsigned int)}
P:/NHM/Ruby3431_x64/include/ruby-3.4.0/ruby/internal/method.h:99:61: note: expected 'VALUE (*)(void)' {aka 'long long unsigned int (*)(void)'} but argument is of type 'VALUE (*)(int, VALUE *, VALUE)' {aka 'long long unsigned int (*)(int, long long unsigned int *, long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char *mid, VALUE (*func)(ANYARGS), int arity);
| ~~~~~~~~^~~~~~~~~~~~~~
escape.c:445:1: note: 'cgiesc_unescape_uri_component' declared here
445 | cgiesc_unescape_uri_component(int argc, VALUE *argv, VALUE self)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
escape.c:483:44: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
483 | rb_define_method(rb_mEscape, "escape", cgiesc_escape, 1);
| ^~~~~~~~~~~~~
| |
| VALUE (*)(VALUE, VALUE) {aka long long unsigned int (*)(long long unsigned int, long long unsigned int)}
P:/NHM/Ruby3431_x64/include/ruby-3.4.0/ruby/internal/method.h:99:61: note: expected 'VALUE (*)(void)' {aka 'long long unsigned int (*)(void)'} but argument is of type 'VALUE (*)(VALUE, VALUE)' {aka 'long long unsigned int (*)(long long unsigned int, long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char *mid, VALUE (*func)(ANYARGS), int arity);
| ~~~~~~~~^~~~~~~~~~~~~~
escape.c:374:1: note: 'cgiesc_escape' declared here
374 | cgiesc_escape(VALUE self, VALUE str)
| ^~~~~~~~~~~~~
escape.c:484:46: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
484 | rb_define_method(rb_mEscape, "unescape", cgiesc_unescape, -1);
| ^~~~~~~~~~~~~~~
| |
| VALUE (*)(int, VALUE *, VALUE) {aka long long unsigned int (*)(int, long long unsigned int *, long long unsigned int)}
P:/NHM/Ruby3431_x64/include/ruby-3.4.0/ruby/internal/method.h:99:61: note: expected 'VALUE (*)(void)' {aka 'long long unsigned int (*)(void)'} but argument is of type 'VALUE (*)(int, VALUE *, VALUE)' {aka 'long long unsigned int (*)(int, long long unsigned int *, long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char *mid, VALUE (*func)(ANYARGS), int arity);
| ~~~~~~~~^~~~~~~~~~~~~~
escape.c:402:1: note: 'cgiesc_unescape' declared here
402 | cgiesc_unescape(int argc, VALUE *argv, VALUE self)
| ^~~~~~~~~~~~~~~
make: *** [Makefile:251: escape.o] Error 1
make failed, exit code 2
Metadata
Metadata
Assignees
Labels
No labels