|
have_library: checking for WSACleanup() in -lws2_32... -------------------- yes
|
|
|
|
"gcc -o conftest -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings conftest.c -L. -L../.. -L. -lmsvcrt-ruby191-static -lws2_32 -lshell32 -lws2_32 "
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5:
|
|
6: /*top*/
|
|
7: int main() {return 0;}
|
|
8: int t() { void ((*volatile p)()); p = (void ((*)()))WSACleanup; return 0; }
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
have_header: checking for arpa/inet.h... -------------------- no
|
|
|
|
"gcc -E -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings conftest.c -o conftest.i"
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5: #include <arpa/inet.h>
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
<top (required)>: checking for ipv6... -------------------- yes
|
|
|
|
"gcc -o conftest -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings conftest.c -L. -L../.. -L. -lws2_32 -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5: #include <sys/types.h>
|
|
6: #ifndef _WIN32
|
|
7: #include <sys/socket.h>
|
|
8: #endif
|
|
9: int
|
|
10: main()
|
|
11: {
|
|
12: socket(AF_INET6, SOCK_STREAM, 0);
|
|
13: }
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
<top (required)>: checking for ipv6 type... -------------------- unknown
|
|
|
|
have_macro: checking for IPV6_INRIA_VERSION in netinet/in.h... -------------------- no
|
|
|
|
"gcc -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -c conftest.c"
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5: #include <netinet/in.h>
|
|
6: /*top*/
|
|
7: #ifndef IPV6_INRIA_VERSION
|
|
8: # error
|
|
9: >>>>>> IPV6_INRIA_VERSION undefined <<<<<<
|
|
10: #endif
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
have_macro: checking for __KAME__ in netinet/in.h... -------------------- no
|
|
|
|
"gcc -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -c conftest.c"
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5: #include <netinet/in.h>
|
|
6: /*top*/
|
|
7: #ifndef __KAME__
|
|
8: # error
|
|
9: >>>>>> __KAME__ undefined <<<<<<
|
|
10: #endif
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
have_macro: checking for _TOSHIBA_INET6 in sys/param.h... -------------------- no
|
|
|
|
"gcc -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -c conftest.c"
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5: #include <sys/param.h>
|
|
6: /*top*/
|
|
7: #ifndef _TOSHIBA_INET6
|
|
8: # error
|
|
9: >>>>>> _TOSHIBA_INET6 undefined <<<<<<
|
|
10: #endif
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
have_macro: checking for __V6D__ in sys/v6config.h... -------------------- no
|
|
|
|
"gcc -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -c conftest.c"
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5: #include <sys/v6config.h>
|
|
6: /*top*/
|
|
7: #ifndef __V6D__
|
|
8: # error
|
|
9: >>>>>> __V6D__ undefined <<<<<<
|
|
10: #endif
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
have_macro: checking for _ZETA_MINAMI_INET6 in sys/param.h... -------------------- no
|
|
|
|
"gcc -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -c conftest.c"
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5: #include <sys/param.h>
|
|
6: /*top*/
|
|
7: #ifndef _ZETA_MINAMI_INET6
|
|
8: # error
|
|
9: >>>>>> _ZETA_MINAMI_INET6 undefined <<<<<<
|
|
10: #endif
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
have_library: checking for main() in -linet6... -------------------- no
|
|
|
|
"gcc -o conftest -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings conftest.c -L. -L../.. -L. -lws2_32 -lmsvcrt-ruby191-static -linet6 -lws2_32 -lshell32 -lws2_32 "
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5:
|
|
6: /*top*/
|
|
7: int main() {return 0;}
|
|
8: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
|
|
/* end */
|
|
|
|
"gcc -o conftest -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings conftest.c -L. -L../.. -L. -lws2_32 -lmsvcrt-ruby191-static -linet6 -lws2_32 -lshell32 -lws2_32 "
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5:
|
|
6: /*top*/
|
|
7: int main() {return 0;}
|
|
8: int t() { main(); return 0; }
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
--------------------
|
|
|
|
have_struct_member: checking for struct sockaddr_in.sin_len... -------------------- no
|
|
|
|
"gcc -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -c conftest.c"
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5:
|
|
6: /*top*/
|
|
7: int main() {return 0;}
|
|
8: int s = (char *)&((struct sockaddr_in*)0)->sin_len - (char *)0;
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
have_struct_member: checking for struct sockaddr_storage.ss_family... -------------------- yes
|
|
|
|
"gcc -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -c conftest.c"
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5:
|
|
6: /*top*/
|
|
7: int main() {return 0;}
|
|
8: int s = (char *)&((struct sockaddr_storage*)0)->ss_family - (char *)0;
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
have_struct_member: checking for struct sockaddr.sa_len... -------------------- no
|
|
|
|
"gcc -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -c conftest.c"
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5:
|
|
6: /*top*/
|
|
7: int main() {return 0;}
|
|
8: int s = (char *)&((struct sockaddr*)0)->sa_len - (char *)0;
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
have_header: checking for netinet/tcp.h... -------------------- no
|
|
|
|
"gcc -E -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings conftest.c -o conftest.i"
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5: #include <netinet/tcp.h>
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
have_header: checking for netinet/udp.h... -------------------- no
|
|
|
|
"gcc -E -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings conftest.c -o conftest.i"
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5: #include <netinet/udp.h>
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
have_func: checking for sendmsg()... -------------------- yes
|
|
|
|
"gcc -o conftest -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings conftest.c -L. -L../.. -L. -lws2_32 -lmsvcrt-ruby191-static -lws2_32 -lshell32 -lws2_32 "
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5:
|
|
6: /*top*/
|
|
7: int main() {return 0;}
|
|
8: int t() { void ((*volatile p)()); p = (void ((*)()))sendmsg; return 0; }
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
have_func: checking for recvmsg()... -------------------- yes
|
|
|
|
"gcc -o conftest -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings conftest.c -L. -L../.. -L. -lws2_32 -lmsvcrt-ruby191-static -lws2_32 -lshell32 -lws2_32 "
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5:
|
|
6: /*top*/
|
|
7: int main() {return 0;}
|
|
8: int t() { void ((*volatile p)()); p = (void ((*)()))recvmsg; return 0; }
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
have_struct_member: checking for struct msghdr.msg_control in sys/types.h,sys/socket.h... -------------------- no
|
|
|
|
"gcc -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -c conftest.c"
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5: #include <sys/types.h>
|
|
6: #include <sys/socket.h>
|
|
7:
|
|
8: /*top*/
|
|
9: int main() {return 0;}
|
|
10: int s = (char *)&((struct msghdr*)0)->msg_control - (char *)0;
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
have_struct_member: checking for struct msghdr.msg_accrights in sys/types.h,sys/socket.h... -------------------- no
|
|
|
|
"gcc -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -c conftest.c"
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5: #include <sys/types.h>
|
|
6: #include <sys/socket.h>
|
|
7:
|
|
8: /*top*/
|
|
9: int main() {return 0;}
|
|
10: int s = (char *)&((struct msghdr*)0)->msg_accrights - (char *)0;
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
block in <top (required)>: checking for wide getaddrinfo... -------------------- no
|
|
|
|
"gcc -o conftest -I../../.ext/include/i386-mingw32 -I../../../ruby_1_9/include -I../../../ruby_1_9/ext/socket -O3 -g -Wall -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings conftest.c -L. -L../.. -L. -lws2_32 -lmsvcrt-ruby191-static -lshell32 -lws2_32 "
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <winsock2.h>
|
|
4: #include <windows.h>
|
|
5:
|
|
6: #include <stdlib.h>
|
|
7:
|
|
8: #ifndef EXIT_SUCCESS
|
|
9: #define EXIT_SUCCESS 0
|
|
10: #endif
|
|
11: #ifndef EXIT_FAILURE
|
|
12: #define EXIT_FAILURE 1
|
|
13: #endif
|
|
14:
|
|
15: #ifndef AF_LOCAL
|
|
16: #define AF_LOCAL AF_UNIX
|
|
17: #endif
|
|
18:
|
|
19: int
|
|
20: main()
|
|
21: {
|
|
22: int passive, gaierr, inet4 = 0, inet6 = 0;
|
|
23: struct addrinfo hints, *ai, *aitop;
|
|
24: char straddr[INET6_ADDRSTRLEN], strport[16];
|
|
25: #ifdef _WIN32
|
|
26: WSADATA retdata;
|
|
27:
|
|
28: WSAStartup(MAKEWORD(2, 0), &retdata);
|
|
29: #endif
|
|
30:
|
|
31: for (passive = 0; passive <= 1; passive++) {
|
|
32: memset(&hints, 0, sizeof(hints));
|
|
33: hints.ai_family = AF_UNSPEC;
|
|
34: hints.ai_protocol = IPPROTO_TCP;
|
|
35: hints.ai_flags = passive ? AI_PASSIVE : 0;
|
|
36: hints.ai_socktype = SOCK_STREAM;
|
|
37: if ((gaierr = getaddrinfo(NULL, "54321", &hints, &aitop)) != 0) {
|
|
38: (void)gai_strerror(gaierr);
|
|
39: goto bad;
|
|
40: }
|
|
41: for (ai = aitop; ai; ai = ai->ai_next) {
|
|
42: if (ai->ai_family == AF_LOCAL) continue;
|
|
43: if (ai->ai_addr == NULL)
|
|
44: goto bad;
|
|
45: #if defined(_AIX)
|
|
46: if (ai->ai_family == AF_INET6 && passive) {
|
|
47: inet6++;
|
|
48: continue;
|
|
49: }
|
|
50: ai->ai_addr->sa_len = ai->ai_addrlen;
|
|
51: ai->ai_addr->sa_family = ai->ai_family;
|
|
52: #endif
|
|
53: if (ai->ai_addrlen == 0 ||
|
|
54: getnameinfo(ai->ai_addr, ai->ai_addrlen,
|
|
55: straddr, sizeof(straddr), strport, sizeof(strport),
|
|
56: NI_NUMERICHOST|NI_NUMERICSERV) != 0) {
|
|
57: goto bad;
|
|
58: }
|
|
59: if (strcmp(strport, "54321") != 0) {
|
|
60: goto bad;
|
|
61: }
|
|
62: switch (ai->ai_family) {
|
|
63: case AF_INET:
|
|
64: if (passive) {
|
|
65: if (strcmp(straddr, "0.0.0.0") != 0) {
|
|
66: goto bad;
|
|
67: }
|
|
68: } else {
|
|
69: if (strcmp(straddr, "127.0.0.1") != 0) {
|
|
70: goto bad;
|
|
71: }
|
|
72: }
|
|
73: inet4++;
|
|
74: break;
|
|
75: case AF_INET6:
|
|
76: if (passive) {
|
|
77: if (strcmp(straddr, "::") != 0) {
|
|
78: goto bad;
|
|
79: }
|
|
80: } else {
|
|
81: if (strcmp(straddr, "::1") != 0) {
|
|
82: goto bad;
|
|
83: }
|
|
84: }
|
|
85: inet6++;
|
|
86: break;
|
|
87: case AF_UNSPEC:
|
|
88: goto bad;
|
|
89: break;
|
|
90: default:
|
|
91: /* another family support? */
|
|
92: break;
|
|
93: }
|
|
94: }
|
|
95: }
|
|
96:
|
|
97: if (!(inet4 == 0 || inet4 == 2))
|
|
98: goto bad;
|
|
99: if (!(inet6 == 0 || inet6 == 2))
|
|
100: goto bad;
|
|
101:
|
|
102: if (aitop)
|
|
103: freeaddrinfo(aitop);
|
|
104: exit(EXIT_SUCCESS);
|
|
105:
|
|
106: bad:
|
|
107: if (aitop)
|
|
108: freeaddrinfo(aitop);
|
|
109: exit(EXIT_FAILURE);
|
|
110: }
|
|
/* end */
|
|
|
|
--------------------
|
|
|