MSYS2/ GCC 15 requires --with-cflags="-Wno-error=incompatible-pointer-types" to build
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 16
- Forks
- 8
- Avg merge
- 6h 42m
- Merged PRs (30d)
- 1
Description
Version 1.9.2
gem install win32ole
Building native extensions. This could take a while...
ERROR: Error installing win32ole:
ERROR: Failed to build gem native extension.current directory: Ruby3281_x64/lib/ruby/gems/3.2.0/gems/win32ole-1.9.2/ext/win32oleRuby3281_x64/bin/ruby.exe extconf.rb
checking for -lole32... yes
checking for -loleaut32... yes
checking for &CLSID_CMultiLanguage() in -luuid... yes
checking for -luser32... yes
checking for -lkernel32... yes
checking for -ladvapi32... yes
checking for windows.h... yes
checking for IMultiLanguage2 in mlang.h... yes
checking for thread_specific... __thread
checking for rb_deprecate_constant(Qnil, "")... yes
creating Makefilecurrent directory: Ruby3281_x64/lib/ruby/gems/3.2.0/gems/win32ole-1.9.2/ext/win32ole
make DESTDIR= sitearchdir=./.gem.20250604-11712-ft1noc sitelibdir=./.gem.20250604-11712-ft1noc cleancurrent directory: Ruby3281_x64/lib/ruby/gems/3.2.0/gems/win32ole-1.9.2/ext/win32ole
make DESTDIR= sitearchdir=./.gem.20250604-11712-ft1noc sitelibdir=./.gem.20250604-11712-ft1noc
generating win32ole-x64-mingw-ucrt.def
compiling win32ole.c
win32ole.c: In function 'Init_win32ole':
win32ole.c:3938:47: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3938 | rb_define_method(cWIN32OLE, "initialize", fole_initialize, -1);
| ^~~~~~~~~~~~~~~
| |
| VALUE ()(int, VALUE , VALUE) {aka long long unsigned int ()(int, long long unsigned int , long long unsigned int)}
In file included from Ruby3281_x64/include/ruby-3.2.0/ruby/internal/anyargs.h:78,
from Ruby3281_x64/include/ruby-3.2.0/ruby/ruby.h:27,
from win32ole.h:3,
from win32ole.c:19:
Ruby3281_x64/include/ruby-3.2.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);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:2394:1: note: 'fole_initialize' declared here
2394 | fole_initialize(int argc, VALUE argv, VALUE self)
| ^~~~~~~~~~~~~~~
win32ole.c:3940:54: error: passing argument 3 of 'rb_define_singleton_method' from incompatible pointer type [-Wincompatible-pointer-types]
3940 | rb_define_singleton_method(cWIN32OLE, "connect", fole_s_connect, -1);
| ^~~~~~~~~~~~~~
| |
| VALUE ()(int, VALUE , VALUE) {aka long long unsigned int ()(int, long long unsigned int , long long unsigned int)}
In file included from Ruby3281_x64/include/ruby-3.2.0/ruby/internal/anyargs.h:76:
Ruby3281_x64/include/ruby-3.2.0/ruby/internal/intern/class.h:365:68: 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)'}
365 | void rb_define_singleton_method(VALUE obj, const char mid, VALUE(func)(ANYARGS), int arity);
| ~~~~~~~^~~~~~~~~~~~~~
win32ole.c:1909:1: note: 'fole_s_connect' declared here
1909 | fole_s_connect(int argc, VALUE argv, VALUE self)
| ^~~~~~~~~~~~~~
win32ole.c:3941:57: error: passing argument 3 of 'rb_define_singleton_method' from incompatible pointer type [-Wincompatible-pointer-types]
3941 | rb_define_singleton_method(cWIN32OLE, "const_load", fole_s_const_load, -1);
| ^~~~~~~~~~~~~~~~~
| |
| VALUE ()(int, VALUE , VALUE) {aka long long unsigned int ()(int, long long unsigned int , long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.0/ruby/internal/intern/class.h:365:68: 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)'}
365 | void rb_define_singleton_method(VALUE obj, const char mid, VALUE(func)(ANYARGS), int arity);
| ~~~~~~~^~~~~~~~~~~~~~
win32ole.c:1986:1: note: 'fole_s_const_load' declared here
1986 | fole_s_const_load(int argc, VALUE argv, VALUE self)
| ^~~~~~~~~~~~~~~~~
win32ole.c:3943:55: error: passing argument 3 of 'rb_define_singleton_method' from incompatible pointer type [-Wincompatible-pointer-types]
3943 | rb_define_singleton_method(cWIN32OLE, "ole_free", fole_s_free, 1);
| ^~~~~~~~~~~
| |
| VALUE ()(VALUE, VALUE) {aka long long unsigned int ()(long long unsigned int, long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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)' {aka '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);
| ~~~~~~~^~~~~~~~~~~~~~
win32ole.c:2087:1: note: 'fole_s_free' declared here
2087 | fole_s_free(VALUE self, VALUE obj)
| ^~~~~~~~~~~
win32ole.c:3944:66: error: passing argument 3 of 'rb_define_singleton_method' from incompatible pointer type [-Wincompatible-pointer-types]
3944 | rb_define_singleton_method(cWIN32OLE, "ole_reference_count", fole_s_reference_count, 1);
| ^~~~~~~~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE, VALUE) {aka long long unsigned int ()(long long unsigned int, long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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)' {aka '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);
| ~~~~~~~^~~~~~~~~~~~~~
win32ole.c:2070:1: note: 'fole_s_reference_count' declared here
2070 | fole_s_reference_count(VALUE self, VALUE obj)
| ^~~~~~~~~~~~~~~~~~~~~~
win32ole.c:3945:60: error: passing argument 3 of 'rb_define_singleton_method' from incompatible pointer type [-Wincompatible-pointer-types]
3945 | rb_define_singleton_method(cWIN32OLE, "ole_show_help", fole_s_show_help, -1);
| ^~~~~~~~~~~~~~~~
| |
| VALUE ()(int, VALUE , VALUE) {aka long long unsigned int ()(int, long long unsigned int , long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.0/ruby/internal/intern/class.h:365:68: 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)'}
365 | void rb_define_singleton_method(VALUE obj, const char mid, VALUE(func)(ANYARGS), int arity);
| ~~~~~~~^~~~~~~~~~~~~~
win32ole.c:2133:1: note: 'fole_s_show_help' declared here
2133 | fole_s_show_help(int argc, VALUE argv, VALUE self)
| ^~~~~~~~~~~~~~~~
win32ole.c:3946:55: error: passing argument 3 of 'rb_define_singleton_method' from incompatible pointer type [-Wincompatible-pointer-types]
3946 | rb_define_singleton_method(cWIN32OLE, "codepage", fole_s_get_code_page, 0);
| ^~~~~~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE) {aka long long unsigned int ()(long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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)' {aka 'long long unsigned int ()(long long unsigned int)'}
365 | void rb_define_singleton_method(VALUE obj, const char mid, VALUE(func)(ANYARGS), int arity);
| ~~~~~~~^~~~~~~~~~~~~~
win32ole.c:2172:1: note: 'fole_s_get_code_page' declared here
2172 | fole_s_get_code_page(VALUE self)
| ^~~~~~~~~~~~~~~~~~~~
win32ole.c:3947:56: error: passing argument 3 of 'rb_define_singleton_method' from incompatible pointer type [-Wincompatible-pointer-types]
3947 | rb_define_singleton_method(cWIN32OLE, "codepage=", fole_s_set_code_page, 1);
| ^~~~~~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE, VALUE) {aka long long unsigned int ()(long long unsigned int, long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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)' {aka '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);
| ~~~~~~~^~~~~~~~~~~~~~
win32ole.c:2209:1: note: 'fole_s_set_code_page' declared here
2209 | fole_s_set_code_page(VALUE self, VALUE vcp)
| ^~~~~~~~~~~~~~~~~~~~
win32ole.c:3948:53: error: passing argument 3 of 'rb_define_singleton_method' from incompatible pointer type [-Wincompatible-pointer-types]
3948 | rb_define_singleton_method(cWIN32OLE, "locale", fole_s_get_locale, 0);
| ^~~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE) {aka long long unsigned int ()(long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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)' {aka 'long long unsigned int ()(long long unsigned int)'}
365 | void rb_define_singleton_method(VALUE obj, const char mid, VALUE(func)(ANYARGS), int arity);
| ~~~~~~~^~~~~~~~~~~~~~
win32ole.c:2229:1: note: 'fole_s_get_locale' declared here
2229 | fole_s_get_locale(VALUE self)
| ^~~~~~~~~~~~~~~~~
win32ole.c:3949:54: error: passing argument 3 of 'rb_define_singleton_method' from incompatible pointer type [-Wincompatible-pointer-types]
3949 | rb_define_singleton_method(cWIN32OLE, "locale=", fole_s_set_locale, 1);
| ^~~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE, VALUE) {aka long long unsigned int ()(long long unsigned int, long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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)' {aka '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);
| ~~~~~~~^~~~~~~~~~~~~~
win32ole.c:2264:1: note: 'fole_s_set_locale' declared here
2264 | fole_s_set_locale(VALUE self, VALUE vlcid)
| ^~~~~~~~~~~~~~~~~
win32ole.c:3950:58: error: passing argument 3 of 'rb_define_singleton_method' from incompatible pointer type [-Wincompatible-pointer-types]
3950 | rb_define_singleton_method(cWIN32OLE, "create_guid", fole_s_create_guid, 0);
| ^~~~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE) {aka long long unsigned int ()(long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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)' {aka 'long long unsigned int ()(long long unsigned int)'}
365 | void rb_define_singleton_method(VALUE obj, const char mid, VALUE(func)(ANYARGS), int arity);
| ~~~~~~~^~~~~~~~~~~~~~
win32ole.c:2290:1: note: 'fole_s_create_guid' declared here
2290 | fole_s_create_guid(VALUE self)
| ^~~~~~~~~~~~~~~~~~
win32ole.c:3951:61: error: passing argument 3 of 'rb_define_singleton_method' from incompatible pointer type [-Wincompatible-pointer-types]
3951 | rb_define_singleton_method(cWIN32OLE, "ole_initialize", fole_s_ole_initialize, 0);
| ^~~~~~~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE) {aka long long unsigned int ()(long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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)' {aka 'long long unsigned int ()(long long unsigned int)'}
365 | void rb_define_singleton_method(VALUE obj, const char mid, VALUE(func)(ANYARGS), int arity);
| ~~~~~~~^~~~~~~~~~~~~~
win32ole.c:2315:1: note: 'fole_s_ole_initialize' declared here
2315 | fole_s_ole_initialize(VALUE self)
| ^~~~~~~~~~~~~~~~~~~~~
win32ole.c:3952:63: error: passing argument 3 of 'rb_define_singleton_method' from incompatible pointer type [-Wincompatible-pointer-types]
3952 | rb_define_singleton_method(cWIN32OLE, "ole_uninitialize", fole_s_ole_uninitialize, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE) {aka long long unsigned int ()(long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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)' {aka 'long long unsigned int ()(long long unsigned int)'}
365 | void rb_define_singleton_method(VALUE obj, const char mid, VALUE(func)(ANYARGS), int arity);
| ~~~~~~~^~~~~~~~~~~~~~
win32ole.c:2323:1: note: 'fole_s_ole_uninitialize' declared here
2323 | fole_s_ole_uninitialize(VALUE self)
| ^~~~~~~~~~~~~~~~~~~~~~~
win32ole.c:3954:43: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3954 | rb_define_method(cWIN32OLE, "invoke", fole_invoke, -1);
| ^~~~~~~~~~~
| |
| VALUE ()(int, VALUE , VALUE) {aka long long unsigned int ()(int, long long unsigned int , long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:2777:1: note: 'fole_invoke' declared here
2777 | fole_invoke(int argc, VALUE argv, VALUE self)
| ^~~~~~~~~~~
win32ole.c:3955:39: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3955 | rb_define_method(cWIN32OLE, "[]", fole_getproperty_with_bracket, -1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| VALUE ()(int, VALUE , VALUE) {aka long long unsigned int ()(int, long long unsigned int , long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3097:1: note: 'fole_getproperty_with_bracket' declared here
3097 | fole_getproperty_with_bracket(int argc, VALUE argv, VALUE self)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
win32ole.c:3956:44: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3956 | rb_define_method(cWIN32OLE, "_invoke", fole_invoke2, 3);
| ^~~~~~~~~~~~
| |
| VALUE ()(VALUE, VALUE, VALUE, VALUE) {aka long long unsigned int ()(long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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, VALUE, VALUE)' {aka 'long long unsigned int ()(long long unsigned int, 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);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:2988:1: note: 'fole_invoke2' declared here
2988 | fole_invoke2(VALUE self, VALUE dispid, VALUE args, VALUE types)
| ^~~~~~~~~~~~
win32ole.c:3957:49: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3957 | rb_define_method(cWIN32OLE, "_getproperty", fole_getproperty2, 3);
| ^~~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE, VALUE, VALUE, VALUE) {aka long long unsigned int ()(long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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, VALUE, VALUE)' {aka 'long long unsigned int ()(long long unsigned int, 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);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3006:1: note: 'fole_getproperty2' declared here
3006 | fole_getproperty2(VALUE self, VALUE dispid, VALUE args, VALUE types)
| ^~~~~~~~~~~~~~~~~
win32ole.c:3958:49: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3958 | rb_define_method(cWIN32OLE, "_setproperty", fole_setproperty2, 3);
| ^~~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE, VALUE, VALUE, VALUE) {aka long long unsigned int ()(long long unsigned int, long long unsigned int, long long unsigned int, long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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, VALUE, VALUE)' {aka 'long long unsigned int ()(long long unsigned int, 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);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3024:1: note: 'fole_setproperty2' declared here
3024 | fole_setproperty2(VALUE self, VALUE dispid, VALUE args, VALUE types)
| ^~~~~~~~~~~~~~~~~
win32ole.c:3961:40: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3961 | rb_define_method(cWIN32OLE, "[]=", fole_setproperty_with_bracket, -1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| VALUE ()(int, VALUE , VALUE) {aka long long unsigned int ()(int, long long unsigned int , long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3048:1: note: 'fole_setproperty_with_bracket' declared here
3048 | fole_setproperty_with_bracket(int argc, VALUE argv, VALUE self)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
win32ole.c:3963:45: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3963 | rb_define_method(cWIN32OLE, "ole_free", fole_free, 0);
| ^~~~~~~~~
| |
| VALUE ()(VALUE) {aka long long unsigned int ()(long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.0/ruby/internal/method.h:99:61: note: expected 'VALUE ()(void)' {aka 'long long unsigned int ()(void)'} but argument is of type 'VALUE ()(VALUE)' {aka 'long long unsigned int ()(long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char mid, VALUE (func)(ANYARGS), int arity);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3173:1: note: 'fole_free' declared here
3173 | fole_free(VALUE self)
| ^~~~~~~~~
win32ole.c:3965:41: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3965 | rb_define_method(cWIN32OLE, "each", fole_each, 0);
| ^~~~~~~~~
| |
| VALUE ()(VALUE) {aka long long unsigned int ()(long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.0/ruby/internal/method.h:99:61: note: expected 'VALUE ()(void)' {aka 'long long unsigned int ()(void)'} but argument is of type 'VALUE ()(VALUE)' {aka 'long long unsigned int ()(long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char mid, VALUE (func)(ANYARGS), int arity);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3221:1: note: 'fole_each' declared here
3221 | fole_each(VALUE self)
| ^~~~~~~~~
win32ole.c:3966:51: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3966 | rb_define_method(cWIN32OLE, "method_missing", fole_missing, -1);
| ^~~~~~~~~~~~
| |
| VALUE ()(int, VALUE , VALUE) {aka long long unsigned int ()(int, long long unsigned int , long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3284:1: note: 'fole_missing' declared here
3284 | fole_missing(int argc, VALUE argv, VALUE self)
| ^~~~~~~~~~~~
win32ole.c:3969:48: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3969 | rb_define_method(cWIN32OLE, "setproperty", fole_setproperty, -1);
| ^~~~~~~~~~~~~~~~
| |
| VALUE ()(int, VALUE , VALUE) {aka long long unsigned int ()(int, long long unsigned int , long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3071:1: note: 'fole_setproperty' declared here
3071 | fole_setproperty(int argc, VALUE argv, VALUE self)
| ^~~~~~~~~~~~~~~~
win32ole.c:3971:48: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3971 | rb_define_method(cWIN32OLE, "ole_methods", fole_methods, 0);
| ^~~~~~~~~~~~
| |
| VALUE ()(VALUE) {aka long long unsigned int ()(long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.0/ruby/internal/method.h:99:61: note: expected 'VALUE ()(void)' {aka 'long long unsigned int ()(void)'} but argument is of type 'VALUE ()(VALUE)' {aka 'long long unsigned int ()(long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char mid, VALUE (func)(ANYARGS), int arity);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3387:1: note: 'fole_methods' declared here
3387 | fole_methods(VALUE self)
| ^~~~~~~~~~~~
win32ole.c:3972:52: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3972 | rb_define_method(cWIN32OLE, "ole_get_methods", fole_get_methods, 0);
| ^~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE) {aka long long unsigned int ()(long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.0/ruby/internal/method.h:99:61: note: expected 'VALUE ()(void)' {aka 'long long unsigned int ()(void)'} but argument is of type 'VALUE ()(VALUE)' {aka 'long long unsigned int ()(long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char mid, VALUE (func)(ANYARGS), int arity);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3403:1: note: 'fole_get_methods' declared here
3403 | fole_get_methods(VALUE self)
| ^~~~~~~~~~~~~~~~
win32ole.c:3973:52: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3973 | rb_define_method(cWIN32OLE, "ole_put_methods", fole_put_methods, 0);
| ^~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE) {aka long long unsigned int ()(long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.0/ruby/internal/method.h:99:61: note: expected 'VALUE ()(void)' {aka 'long long unsigned int ()(void)'} but argument is of type 'VALUE ()(VALUE)' {aka 'long long unsigned int ()(long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char mid, VALUE (func)(ANYARGS), int arity);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3419:1: note: 'fole_put_methods' declared here
3419 | fole_put_methods(VALUE self)
| ^~~~~~~~~~~~~~~~
win32ole.c:3974:53: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3974 | rb_define_method(cWIN32OLE, "ole_func_methods", fole_func_methods, 0);
| ^~~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE) {aka long long unsigned int ()(long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.0/ruby/internal/method.h:99:61: note: expected 'VALUE ()(void)' {aka 'long long unsigned int ()(void)'} but argument is of type 'VALUE ()(VALUE)' {aka 'long long unsigned int ()(long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char mid, VALUE (func)(ANYARGS), int arity);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3436:1: note: 'fole_func_methods' declared here
3436 | fole_func_methods(VALUE self)
| ^~~~~~~~~~~~~~~~~
win32ole.c:3976:47: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3976 | rb_define_method(cWIN32OLE, "ole_method", fole_method_help, 1);
| ^~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE, VALUE) {aka long long unsigned int ()(long long unsigned int, long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3774:1: note: 'fole_method_help' declared here
3774 | fole_method_help(VALUE self, VALUE cmdname)
| ^~~~~~~~~~~~~~~~
win32ole.c:3978:59: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3978 | rb_define_method(cWIN32OLE, "ole_activex_initialize", fole_activex_initialize, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE) {aka long long unsigned int ()(long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.0/ruby/internal/method.h:99:61: note: expected 'VALUE ()(void)' {aka 'long long unsigned int ()(void)'} but argument is of type 'VALUE ()(VALUE)' {aka 'long long unsigned int ()(long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char mid, VALUE (func)(ANYARGS), int arity);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3817:1: note: 'fole_activex_initialize' declared here
3817 | fole_activex_initialize(VALUE self)
| ^~~~~~~~~~~~~~~~~~~~~~~
win32ole.c:3979:45: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3979 | rb_define_method(cWIN32OLE, "ole_type", fole_type, 0);
| ^~~~~~~~~
| |
| VALUE ()(VALUE) {aka long long unsigned int ()(long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.0/ruby/internal/method.h:99:61: note: expected 'VALUE ()(void)' {aka 'long long unsigned int ()(void)'} but argument is of type 'VALUE ()(VALUE)' {aka 'long long unsigned int ()(long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char mid, VALUE (func)(ANYARGS), int arity);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3451:1: note: 'fole_type' declared here
3451 | fole_type(VALUE self)
| ^~~~~~~~~
win32ole.c:3981:48: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3981 | rb_define_method(cWIN32OLE, "ole_typelib", fole_typelib, 0);
| ^~~~~~~~~~~~
| |
| VALUE ()(VALUE) {aka long long unsigned int ()(long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.0/ruby/internal/method.h:99:61: note: expected 'VALUE ()(void)' {aka 'long long unsigned int ()(void)'} but argument is of type 'VALUE ()(VALUE)' {aka 'long long unsigned int ()(long long unsigned int)'}
99 | void rb_define_method(VALUE klass, const char mid, VALUE (func)(ANYARGS), int arity);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3485:1: note: 'fole_typelib' declared here
3485 | fole_typelib(VALUE self)
| ^~~~~~~~~~~~
win32ole.c:3982:56: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3982 | rb_define_method(cWIN32OLE, "ole_query_interface", fole_query_interface, 1);
| ^~~~~~~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE, VALUE) {aka long long unsigned int ()(long long unsigned int, long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3518:1: note: 'fole_query_interface' declared here
3518 | fole_query_interface(VALUE self, VALUE str_iid)
| ^~~~~~~~~~~~~~~~~~~~
win32ole.c:3983:52: error: passing argument 3 of 'rb_define_method' from incompatible pointer type [-Wincompatible-pointer-types]
3983 | rb_define_method(cWIN32OLE, "ole_respond_to?", fole_respond_to, 1);
| ^~~~~~~~~~~~~~~
| |
| VALUE ()(VALUE, VALUE) {aka long long unsigned int ()(long long unsigned int, long long unsigned int)}
Ruby3281_x64/include/ruby-3.2.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);
| ~~~~~~~~^~~~~~~~~~~~~~
win32ole.c:3563:1: note: 'fole_respond_to' declared here
3563 | fole_respond_to(VALUE self, VALUE method)
| ^~~~~~~~~~~~~~~
make: *** [Makefile:248: win32ole.o] Error 1make failed, exit code 2
gem install win32ole -- --with-cflags="-Wno-error=incompatible-pointer-types" does build.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the native extension build under MSYS2 with GCC 15, then inspect the function registrations in win32ole.c around the reported lines 3938-3948. Confirm that the extension builds without requiring the reported compiler flag, and verify the result with gem install win32ole.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, ruby
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100