Project

General

Profile

Bug #15097 » mkmf.log

ext/win32/resolv/mkmf.log - caspercg (Casper G), 09/10/2018 03:44 AM

 
1
have_library: checking for GetNetworkParams() in -liphlpapi... -------------------- no
2

    
3
"gcc -o conftest.exe -I../../../.ext/include/i386-cygwin -I../../.././include -I../../.././ext/win32/resolv -D_XOPEN_SOURCE -D_GNU_SOURCE   -O3 -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict conftest.c  -L. -L../../.. -L. -fstack-protector     -lruby250-static  -lpthread -lgmp -ldl -lcrypt  "
4
checked program was:
5
/* begin */
6
1: #include "ruby.h"
7
2: 
8
3: int main(int argc, char **argv)
9
4: {
10
5:   return 0;
11
6: }
12
/* end */
13

    
14
"gcc -o conftest.exe -I../../../.ext/include/i386-cygwin -I../../.././include -I../../.././ext/win32/resolv -D_XOPEN_SOURCE -D_GNU_SOURCE   -O3 -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict conftest.c  -L. -L../../.. -L. -fstack-protector     -lruby250-static -liphlpapi  -lpthread -lgmp -ldl -lcrypt  "
15
conftest.c: In function ‘t’:
16
conftest.c:13:57: error: ‘GetNetworkParams’ undeclared (first use in this function)
17
 int t(void) { void ((*volatile p)()); p = (void ((*)()))GetNetworkParams; return !p; }
18
                                                         ^~~~~~~~~~~~~~~~
19
conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
20
conftest.c: At top level:
21
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
22
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
23
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
24
checked program was:
25
/* begin */
26
 1: #include "ruby.h"
27
 2: 
28
 3: /*top*/
29
 4: extern int t(void);
30
 5: int main(int argc, char **argv)
31
 6: {
32
 7:   if (argc > 1000000) {
33
 8:     printf("%p", &t);
34
 9:   }
35
10: 
36
11:   return 0;
37
12: }
38
13: int t(void) { void ((*volatile p)()); p = (void ((*)()))GetNetworkParams; return !p; }
39
/* end */
40

    
41
"gcc -o conftest.exe -I../../../.ext/include/i386-cygwin -I../../.././include -I../../.././ext/win32/resolv -D_XOPEN_SOURCE -D_GNU_SOURCE   -O3 -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict conftest.c  -L. -L../../.. -L. -fstack-protector     -lruby250-static -liphlpapi  -lpthread -lgmp -ldl -lcrypt  "
42
/tmp/ccaNnTSY.o: In function `t':
43
/cygdrive/d/Utils/Webdev/ruby/ruby-2.5.1/ext/win32/resolv/conftest.c:14: undefined reference to `GetNetworkParams'
44
collect2: error: ld returned 1 exit status
45
checked program was:
46
/* begin */
47
 1: #include "ruby.h"
48
 2: 
49
 3: /*top*/
50
 4: extern int t(void);
51
 5: int main(int argc, char **argv)
52
 6: {
53
 7:   if (argc > 1000000) {
54
 8:     printf("%p", &t);
55
 9:   }
56
10: 
57
11:   return 0;
58
12: }
59
13: extern void GetNetworkParams();
60
14: int t(void) { GetNetworkParams(); return 0; }
61
/* end */
62

    
63
--------------------
64