File: //usr/local/rvm/src/ruby-2.2.10/ext/win32ole/mkmf.log
have_library: checking for main() in -lole32... -------------------- no
"gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/win32ole -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -L. -L../.. -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-R/usr/local/rvm/rubies/ruby-2.2.10/lib -L/usr/local/rvm/rubies/ruby-2.2.10/lib -lruby-static -lole32 -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:13:43: warning: cast between incompatible function types from ‘int (*)(int, char **)’ to ‘void (*)()’ [-Wcast-function-type]
int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
^
conftest.c:13:32: warning: variable ‘p’ set but not used [-Wunused-but-set-variable]
int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
^
/usr/bin/ld: cannot find -lole32
collect2: error: ld returned 1 exit status
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: extern int t(void);
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: printf("%p", &t);
9: }
10:
11: return 0;
12: }
13: int t(void) { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
/* end */
"gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/win32ole -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -fPIC conftest.c -L. -L../.. -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-R/usr/local/rvm/rubies/ruby-2.2.10/lib -L/usr/local/rvm/rubies/ruby-2.2.10/lib -lruby-static -lole32 -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:13:15: error: too few arguments to function ‘main’
int t(void) { main(); return 0; }
^~~~
conftest.c:5:5: note: declared here
int main(int argc, char **argv)
^~~~
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: /*top*/
4: extern int t(void);
5: int main(int argc, char **argv)
6: {
7: if (argc > 1000000) {
8: printf("%p", &t);
9: }
10:
11: return 0;
12: }
13: int t(void) { main(); return 0; }
/* end */
--------------------
Failed to configure win32ole. It will not be installed.