Guest User

kgio mkmf.log

a guest
Feb 22nd, 2016
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 17.19 KB | None | 0 0
  1. have_macro: checking for CLOCK_MONOTONIC in time.h... -------------------- yes
  2.  
  3. "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/msys64/mingw64/include/ruby-2.2.0/x64-mingw32 -IC:/msys64/mingw64/include/ruby-2.2.0/ruby/backward -IC:/msys64/mingw64/include/ruby-2.2.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  -I/mingw64/include/ncurses -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -march=x86-64 -mtune=generic -O2 -pipe -I/mingw64/include/ncurses -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  conftest.c  -L. -LC:/msys64/mingw64/lib -L. -pipe     -lx64-msvcrt-ruby220  -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
  4. checked program was:
  5. /* begin */
  6. 1: #include "ruby.h"
  7. 2:
  8. 3: #include <winsock2.h>
  9. 4: #include <windows.h>
  10. 5: int main(int argc, char **argv)
  11. 6: {
  12. 7:   return 0;
  13. 8: }
  14. /* end */
  15.  
  16. "x86_64-w64-mingw32-gcc -IC:/msys64/mingw64/include/ruby-2.2.0/x64-mingw32 -IC:/msys64/mingw64/include/ruby-2.2.0/ruby/backward -IC:/msys64/mingw64/include/ruby-2.2.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  -I/mingw64/include/ncurses -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -march=x86-64 -mtune=generic -O2 -pipe -I/mingw64/include/ncurses -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include    -c conftest.c"
  17. checked program was:
  18. /* begin */
  19.  1: #include "ruby.h"
  20.  2:
  21.  3: #include <winsock2.h>
  22.  4: #include <windows.h>
  23.  5: #include <time.h>
  24.  6: /*top*/
  25.  7: #ifndef CLOCK_MONOTONIC
  26.  8: # error
  27.  9: |:/ === CLOCK_MONOTONIC undefined === /:|
  28. 10: #endif
  29. /* end */
  30.  
  31. --------------------
  32.  
  33. have_type: checking for clockid_t in time.h... -------------------- yes
  34.  
  35. "x86_64-w64-mingw32-gcc -IC:/msys64/mingw64/include/ruby-2.2.0/x64-mingw32 -IC:/msys64/mingw64/include/ruby-2.2.0/ruby/backward -IC:/msys64/mingw64/include/ruby-2.2.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  -I/mingw64/include/ncurses -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -march=x86-64 -mtune=generic -O2 -pipe -I/mingw64/include/ncurses -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include    -c conftest.c"
  36. checked program was:
  37. /* begin */
  38. 1: #include "ruby.h"
  39. 2:
  40. 3: #include <winsock2.h>
  41. 4: #include <windows.h>
  42. 5: #include <time.h>
  43. 6:
  44. 7: /*top*/
  45. 8: typedef clockid_t conftest_type;
  46. 9: int conftestval[sizeof(conftest_type)?1:-1];
  47. /* end */
  48.  
  49. --------------------
  50.  
  51. have_library: checking for clock_gettime() in -lrt... -------------------- no
  52.  
  53. "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/msys64/mingw64/include/ruby-2.2.0/x64-mingw32 -IC:/msys64/mingw64/include/ruby-2.2.0/ruby/backward -IC:/msys64/mingw64/include/ruby-2.2.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  -I/mingw64/include/ncurses -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -march=x86-64 -mtune=generic -O2 -pipe -I/mingw64/include/ncurses -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  conftest.c  -L. -LC:/msys64/mingw64/lib -L. -pipe     -lx64-msvcrt-ruby220 -lrt  -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
  54. C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lrt
  55. collect2.exe: error: ld returned 1 exit status
  56. checked program was:
  57. /* begin */
  58.  1: #include "ruby.h"
  59.  2:
  60.  3: #include <winsock2.h>
  61.  4: #include <windows.h>
  62.  5: #include <time.h>
  63.  6:
  64.  7: /*top*/
  65.  8: extern int t(void);
  66.  9: int main(int argc, char **argv)
  67. 10: {
  68. 11:   if (argc > 1000000) {
  69. 12:     printf("%p", &t);
  70. 13:   }
  71. 14:
  72. 15:   return 0;
  73. 16: }
  74. 17: int t(void) { void ((*volatile p)()); p = (void ((*)()))clock_gettime; return 0; }
  75. /* end */
  76.  
  77. "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/msys64/mingw64/include/ruby-2.2.0/x64-mingw32 -IC:/msys64/mingw64/include/ruby-2.2.0/ruby/backward -IC:/msys64/mingw64/include/ruby-2.2.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  -I/mingw64/include/ncurses -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -march=x86-64 -mtune=generic -O2 -pipe -I/mingw64/include/ncurses -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  conftest.c  -L. -LC:/msys64/mingw64/lib -L. -pipe     -lx64-msvcrt-ruby220 -lrt  -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
  78. conftest.c: In function 't':
  79. conftest.c:17:15: error: too few arguments to function 'clock_gettime'
  80.  int t(void) { clock_gettime(); return 0; }
  81.                ^
  82. In file included from C:/msys64/mingw64/x86_64-w64-mingw32/include/time.h:292:0,
  83.                  from C:/msys64/mingw64/x86_64-w64-mingw32/include/iptypes.h:13,
  84.                  from C:/msys64/mingw64/x86_64-w64-mingw32/include/iphlpapi.h:19,
  85.                  from C:/msys64/mingw64/include/ruby-2.2.0/ruby/win32.h:41,
  86.                  from C:/msys64/mingw64/include/ruby-2.2.0/ruby/defines.h:163,
  87.                  from C:/msys64/mingw64/include/ruby-2.2.0/ruby/ruby.h:29,
  88.                  from C:/msys64/mingw64/include/ruby-2.2.0/ruby.h:33,
  89.                  from conftest.c:1:
  90. C:/msys64/mingw64/x86_64-w64-mingw32/include/pthread_time.h:88:28: note: declared here
  91.  int __cdecl WINPTHREAD_API clock_gettime(clockid_t clock_id, struct timespec *tp);
  92.                             ^
  93. checked program was:
  94. /* begin */
  95.  1: #include "ruby.h"
  96.  2:
  97.  3: #include <winsock2.h>
  98.  4: #include <windows.h>
  99.  5: #include <time.h>
  100.  6:
  101.  7: /*top*/
  102.  8: extern int t(void);
  103.  9: int main(int argc, char **argv)
  104. 10: {
  105. 11:   if (argc > 1000000) {
  106. 12:     printf("%p", &t);
  107. 13:   }
  108. 14:
  109. 15:   return 0;
  110. 16: }
  111. 17: int t(void) { clock_gettime(); return 0; }
  112. /* end */
  113.  
  114. --------------------
  115.  
  116. have_library: checking for t_open() in -lnsl... -------------------- no
  117.  
  118. "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/msys64/mingw64/include/ruby-2.2.0/x64-mingw32 -IC:/msys64/mingw64/include/ruby-2.2.0/ruby/backward -IC:/msys64/mingw64/include/ruby-2.2.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  -I/mingw64/include/ncurses -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -march=x86-64 -mtune=generic -O2 -pipe -I/mingw64/include/ncurses -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  conftest.c  -L. -LC:/msys64/mingw64/lib -L. -pipe     -lx64-msvcrt-ruby220 -lnsl  -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
  119. conftest.c: In function 't':
  120. conftest.c:16:57: error: 't_open' undeclared (first use in this function)
  121.  int t(void) { void ((*volatile p)()); p = (void ((*)()))t_open; return 0; }
  122.                                                          ^
  123. conftest.c:16:57: note: each undeclared identifier is reported only once for each function it appears in
  124. checked program was:
  125. /* begin */
  126.  1: #include "ruby.h"
  127.  2:
  128.  3: #include <winsock2.h>
  129.  4: #include <windows.h>
  130.  5:
  131.  6: /*top*/
  132.  7: extern int t(void);
  133.  8: int main(int argc, char **argv)
  134.  9: {
  135. 10:   if (argc > 1000000) {
  136. 11:     printf("%p", &t);
  137. 12:   }
  138. 13:
  139. 14:   return 0;
  140. 15: }
  141. 16: int t(void) { void ((*volatile p)()); p = (void ((*)()))t_open; return 0; }
  142. /* end */
  143.  
  144. "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/msys64/mingw64/include/ruby-2.2.0/x64-mingw32 -IC:/msys64/mingw64/include/ruby-2.2.0/ruby/backward -IC:/msys64/mingw64/include/ruby-2.2.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  -I/mingw64/include/ncurses -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -march=x86-64 -mtune=generic -O2 -pipe -I/mingw64/include/ncurses -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  conftest.c  -L. -LC:/msys64/mingw64/lib -L. -pipe     -lx64-msvcrt-ruby220 -lnsl  -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
  145. conftest.c: In function 't':
  146. conftest.c:16:15: warning: implicit declaration of function 't_open' [-Wimplicit-function-declaration]
  147.  int t(void) { t_open(); return 0; }
  148.                ^
  149. C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lnsl
  150. collect2.exe: error: ld returned 1 exit status
  151. checked program was:
  152. /* begin */
  153.  1: #include "ruby.h"
  154.  2:
  155.  3: #include <winsock2.h>
  156.  4: #include <windows.h>
  157.  5:
  158.  6: /*top*/
  159.  7: extern int t(void);
  160.  8: int main(int argc, char **argv)
  161.  9: {
  162. 10:   if (argc > 1000000) {
  163. 11:     printf("%p", &t);
  164. 12:   }
  165. 13:
  166. 14:   return 0;
  167. 15: }
  168. 16: int t(void) { t_open(); return 0; }
  169. /* end */
  170.  
  171. --------------------
  172.  
  173. have_library: checking for socket() in -lsocket... -------------------- no
  174.  
  175. "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/msys64/mingw64/include/ruby-2.2.0/x64-mingw32 -IC:/msys64/mingw64/include/ruby-2.2.0/ruby/backward -IC:/msys64/mingw64/include/ruby-2.2.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  -I/mingw64/include/ncurses -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -march=x86-64 -mtune=generic -O2 -pipe -I/mingw64/include/ncurses -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  conftest.c  -L. -LC:/msys64/mingw64/lib -L. -pipe     -lx64-msvcrt-ruby220 -lsocket  -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
  176. C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lsocket
  177. collect2.exe: error: ld returned 1 exit status
  178. checked program was:
  179. /* begin */
  180.  1: #include "ruby.h"
  181.  2:
  182.  3: #include <winsock2.h>
  183.  4: #include <windows.h>
  184.  5:
  185.  6: /*top*/
  186.  7: extern int t(void);
  187.  8: int main(int argc, char **argv)
  188.  9: {
  189. 10:   if (argc > 1000000) {
  190. 11:     printf("%p", &t);
  191. 12:   }
  192. 13:
  193. 14:   return 0;
  194. 15: }
  195. 16: int t(void) { void ((*volatile p)()); p = (void ((*)()))socket; return 0; }
  196. /* end */
  197.  
  198. "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/msys64/mingw64/include/ruby-2.2.0/x64-mingw32 -IC:/msys64/mingw64/include/ruby-2.2.0/ruby/backward -IC:/msys64/mingw64/include/ruby-2.2.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  -I/mingw64/include/ncurses -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -march=x86-64 -mtune=generic -O2 -pipe -I/mingw64/include/ncurses -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  conftest.c  -L. -LC:/msys64/mingw64/lib -L. -pipe     -lx64-msvcrt-ruby220 -lsocket  -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
  199. conftest.c: In function 't':
  200. conftest.c:16:15: error: too few arguments to function 'socket'
  201.  int t(void) { socket(); return 0; }
  202.                ^
  203. In file included from C:/msys64/mingw64/include/ruby-2.2.0/ruby/win32.h:38:0,
  204.                  from C:/msys64/mingw64/include/ruby-2.2.0/ruby/defines.h:163,
  205.                  from C:/msys64/mingw64/include/ruby-2.2.0/ruby/ruby.h:29,
  206.                  from C:/msys64/mingw64/include/ruby-2.2.0/ruby.h:33,
  207.                  from conftest.c:1:
  208. C:/msys64/mingw64/x86_64-w64-mingw32/include/winsock2.h:1001:37: note: declared here
  209.    WINSOCK_API_LINKAGE SOCKET WSAAPI socket(int af,int type,int protocol);
  210.                                      ^
  211. checked program was:
  212. /* begin */
  213.  1: #include "ruby.h"
  214.  2:
  215.  3: #include <winsock2.h>
  216.  4: #include <windows.h>
  217.  5:
  218.  6: /*top*/
  219.  7: extern int t(void);
  220.  8: int main(int argc, char **argv)
  221.  9: {
  222. 10:   if (argc > 1000000) {
  223. 11:     printf("%p", &t);
  224. 12:   }
  225. 13:
  226. 14:   return 0;
  227. 15: }
  228. 16: int t(void) { socket(); return 0; }
  229. /* end */
  230.  
  231. --------------------
  232.  
  233. have_func: checking for poll() in poll.h... -------------------- no
  234.  
  235. "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/msys64/mingw64/include/ruby-2.2.0/x64-mingw32 -IC:/msys64/mingw64/include/ruby-2.2.0/ruby/backward -IC:/msys64/mingw64/include/ruby-2.2.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  -I/mingw64/include/ncurses -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -march=x86-64 -mtune=generic -O2 -pipe -I/mingw64/include/ncurses -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  conftest.c  -L. -LC:/msys64/mingw64/lib -L. -pipe     -lx64-msvcrt-ruby220  -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
  236. conftest.c:5:18: fatal error: poll.h: No such file or directory
  237. compilation terminated.
  238. checked program was:
  239. /* begin */
  240.  1: #include "ruby.h"
  241.  2:
  242.  3: #include <winsock2.h>
  243.  4: #include <windows.h>
  244.  5: #include <poll.h>
  245.  6:
  246.  7: /*top*/
  247.  8: extern int t(void);
  248.  9: int main(int argc, char **argv)
  249. 10: {
  250. 11:   if (argc > 1000000) {
  251. 12:     printf("%p", &t);
  252. 13:   }
  253. 14:
  254. 15:   return 0;
  255. 16: }
  256. 17: int t(void) { void ((*volatile p)()); p = (void ((*)()))poll; return 0; }
  257. /* end */
  258.  
  259. "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/msys64/mingw64/include/ruby-2.2.0/x64-mingw32 -IC:/msys64/mingw64/include/ruby-2.2.0/ruby/backward -IC:/msys64/mingw64/include/ruby-2.2.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  -I/mingw64/include/ncurses -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -march=x86-64 -mtune=generic -O2 -pipe -I/mingw64/include/ncurses -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  conftest.c  -L. -LC:/msys64/mingw64/lib -L. -pipe     -lx64-msvcrt-ruby220  -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
  260. conftest.c:5:18: fatal error: poll.h: No such file or directory
  261. compilation terminated.
  262. checked program was:
  263. /* begin */
  264.  1: #include "ruby.h"
  265.  2:
  266.  3: #include <winsock2.h>
  267.  4: #include <windows.h>
  268.  5: #include <poll.h>
  269.  6:
  270.  7: /*top*/
  271.  8: extern int t(void);
  272.  9: int main(int argc, char **argv)
  273. 10: {
  274. 11:   if (argc > 1000000) {
  275. 12:     printf("%p", &t);
  276. 13:   }
  277. 14:
  278. 15:   return 0;
  279. 16: }
  280. 17: int t(void) { poll(); return 0; }
  281. /* end */
  282.  
  283. --------------------
  284.  
  285. have_func: checking for getaddrinfo() in sys/types.h,sys/socket.h,netdb.h... -------------------- no
  286.  
  287. "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/msys64/mingw64/include/ruby-2.2.0/x64-mingw32 -IC:/msys64/mingw64/include/ruby-2.2.0/ruby/backward -IC:/msys64/mingw64/include/ruby-2.2.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  -I/mingw64/include/ncurses -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -march=x86-64 -mtune=generic -O2 -pipe -I/mingw64/include/ncurses -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  conftest.c  -L. -LC:/msys64/mingw64/lib -L. -pipe     -lx64-msvcrt-ruby220  -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
  288. conftest.c:6:24: fatal error: sys/socket.h: No such file or directory
  289. compilation terminated.
  290. checked program was:
  291. /* begin */
  292.  1: #include "ruby.h"
  293.  2:
  294.  3: #include <winsock2.h>
  295.  4: #include <windows.h>
  296.  5: #include <sys/types.h>
  297.  6: #include <sys/socket.h>
  298.  7: #include <netdb.h>
  299.  8:
  300.  9: /*top*/
  301. 10: extern int t(void);
  302. 11: int main(int argc, char **argv)
  303. 12: {
  304. 13:   if (argc > 1000000) {
  305. 14:     printf("%p", &t);
  306. 15:   }
  307. 16:
  308. 17:   return 0;
  309. 18: }
  310. 19: int t(void) { void ((*volatile p)()); p = (void ((*)()))getaddrinfo; return 0; }
  311. /* end */
  312.  
  313. "x86_64-w64-mingw32-gcc -o conftest.exe -IC:/msys64/mingw64/include/ruby-2.2.0/x64-mingw32 -IC:/msys64/mingw64/include/ruby-2.2.0/ruby/backward -IC:/msys64/mingw64/include/ruby-2.2.0 -I. -D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  -I/mingw64/include/ncurses -D_WIN32_WINNT=0x0501 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -D_GNU_SOURCE -DPOSIX_C_SOURCE=1-D_POSIX_C_SOURCE=200112L -march=x86-64 -mtune=generic -O2 -pipe -I/mingw64/include/ncurses -IC:/msys/x86_64/mingw64/lib/libffi-3.2.1/include  conftest.c  -L. -LC:/msys64/mingw64/lib -L. -pipe     -lx64-msvcrt-ruby220  -lgmp -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
  314. conftest.c:6:24: fatal error: sys/socket.h: No such file or directory
  315. compilation terminated.
  316. checked program was:
  317. /* begin */
  318.  1: #include "ruby.h"
  319.  2:
  320.  3: #include <winsock2.h>
  321.  4: #include <windows.h>
  322.  5: #include <sys/types.h>
  323.  6: #include <sys/socket.h>
  324.  7: #include <netdb.h>
  325.  8:
  326.  9: /*top*/
  327. 10: extern int t(void);
  328. 11: int main(int argc, char **argv)
  329. 12: {
  330. 13:   if (argc > 1000000) {
  331. 14:     printf("%p", &t);
  332. 15:   }
  333. 16:
  334. 17:   return 0;
  335. 18: }
  336. 19: int t(void) { getaddrinfo(); return 0; }
  337. /* end */
  338.  
  339. --------------------
Advertisement
Add Comment
Please, Sign In to add comment