Forum: Ruby-core [ruby-trunk - Bug #9184][Open] Build failure on Windows introduced by r43910

666b4e17b4bb0e2d999037a25f65a7cb?d=identicon&s=25 Heesob Park (phasis)
on 2013-11-30 08:23
(Received via mailing list)
Issue #9184 has been reported by phasis68 (Heesob Park).

----------------------------------------
Bug #9184: Build failure on Windows introduced by r43910
https://bugs.ruby-lang.org/issues/9184

Author: phasis68 (Heesob Park)
Status: Open
Priority: Normal
Assignee:
Category:
Target version:
ruby -v: ruby 2.1.0dev (2013-11-30 trunk 43923) [i386-mingw32]
Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN


r43910 introduced a build failure in RubyInstaller CI:

http://ci.rubyinstaller.org/job/ruby-trunk-x86-bui...

compiling ../../../ext/win32ole/win32ole.c
../../../ext/win32ole/win32ole.c:3305:1: error: conflicting types for
'hash2named_arg'
../../../ext/win32ole/win32ole.c:386:14: note: previous declaration of
'hash2named_arg' was here
make[2]: *** [win32ole.o] Error 1

Here is a patch.

diff --git a/win32ole.c b/win32ole.c.new
index 9254ca4..66d05f8 100644
--- a/win32ole.c
+++ b/win32ole.c.new
@@ -383,7 +383,7 @@ static VALUE fole_s_create_guid(VALUE self);
 static VALUE fole_s_ole_initialize(VALUE self);
 static VALUE fole_s_ole_uninitialize(VALUE self);
 static VALUE fole_initialize(int argc, VALUE *argv, VALUE self);
-static VALUE hash2named_arg(VALUE pair, struct oleparam* pOp);
+static VALUE hash2named_arg(RB_BLOCK_CALL_FUNC_ARGLIST(pair,pOp));
 static VALUE set_argv(VARIANTARG* realargs, unsigned int beg, unsigned
int end);
 static VALUE ole_invoke(int argc, VALUE *argv, VALUE self, USHORT
wFlags, BOOL is_bracket);
 static VALUE fole_invoke(int argc, VALUE *argv, VALUE self);
This topic is locked and can not be replied to.