JezK
Edit File: mkmf.log
have_func: checking for mmap() in sys/mman.h... -------------------- yes "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -L/home/pere/src/debian/ruby/ruby2.1/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.1 -lpthread -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: int main(int argc, char **argv) 4: { 5: return 0; 6: } /* end */ "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -L/home/pere/src/debian/ruby/ruby2.1/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.1 -lpthread -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/mman.h> 4: 5: /*top*/ 6: extern int t(void); 7: int main(int argc, char **argv) 8: { 9: if (argc > 1000000) { 10: printf("%p", &t); 11: } 12: 13: return 0; 14: } 15: int t(void) { void ((*volatile p)()); p = (void ((*)()))mmap; return 0; } /* end */ -------------------- have_func: checking for munmap() in sys/mman.h... -------------------- yes "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -L/home/pere/src/debian/ruby/ruby2.1/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.1 -lpthread -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/mman.h> 4: 5: /*top*/ 6: extern int t(void); 7: int main(int argc, char **argv) 8: { 9: if (argc > 1000000) { 10: printf("%p", &t); 11: } 12: 13: return 0; 14: } 15: int t(void) { void ((*volatile p)()); p = (void ((*)()))munmap; return 0; } /* end */ -------------------- have_func: checking for mremap() in sys/mman.h... -------------------- yes "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -L/home/pere/src/debian/ruby/ruby2.1/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.1 -lpthread -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/mman.h> 4: 5: /*top*/ 6: extern int t(void); 7: int main(int argc, char **argv) 8: { 9: if (argc > 1000000) { 10: printf("%p", &t); 11: } 12: 13: return 0; 14: } 15: int t(void) { void ((*volatile p)()); p = (void ((*)()))mremap; return 0; } /* end */ -------------------- have_header: checking for linux/tcp.h... -------------------- yes "gcc -E -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -o conftest.i" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <linux/tcp.h> /* end */ -------------------- have_type: checking for struct tcp_info in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef struct tcp_info conftest_type; 12: int conftestval[sizeof(conftest_type)?1:-1]; /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_state in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_state - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_ca_state in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_ca_state - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_retransmits in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_retransmits - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_probes in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_probes - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_backoff in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_backoff - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_options in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_options - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_snd_wscale in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:11:27: error: cannot take address of bit-field ‘tcpi_snd_wscale’ int s = (char *)&((struct tcp_info*)0)->tcpi_snd_wscale - (char *)0; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_snd_wscale - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_rcv_wscale in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:11:27: error: cannot take address of bit-field ‘tcpi_rcv_wscale’ int s = (char *)&((struct tcp_info*)0)->tcpi_rcv_wscale - (char *)0; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_rcv_wscale - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_rto in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_rto - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_ato in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_ato - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_snd_mss in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_snd_mss - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_rcv_mss in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_rcv_mss - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_unacked in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_unacked - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_sacked in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_sacked - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_lost in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_lost - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_retrans in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_retrans - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_fackets in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_fackets - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_last_data_sent in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_last_data_sent - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_last_ack_sent in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_last_ack_sent - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_last_data_recv in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_last_data_recv - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_last_ack_recv in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_last_ack_recv - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_pmtu in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_pmtu - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_rcv_ssthresh in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_rcv_ssthresh - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_rtt in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_rtt - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_rttvar in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_rttvar - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_snd_ssthresh in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_snd_ssthresh - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_snd_cwnd in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_snd_cwnd - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_advmss in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_advmss - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_reordering in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_reordering - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_rcv_rtt in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_rcv_rtt - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_rcv_space in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_rcv_space - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_total_retrans in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- yes "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_total_retrans - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_snd_wnd in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:11:39: error: ‘struct tcp_info’ has no member named ‘tcpi_snd_wnd’ int s = (char *)&((struct tcp_info*)0)->tcpi_snd_wnd - (char *)0; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_snd_wnd - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_snd_bwnd in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:11:39: error: ‘struct tcp_info’ has no member named ‘tcpi_snd_bwnd’ int s = (char *)&((struct tcp_info*)0)->tcpi_snd_bwnd - (char *)0; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_snd_bwnd - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_snd_nxt in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:11:39: error: ‘struct tcp_info’ has no member named ‘tcpi_snd_nxt’ int s = (char *)&((struct tcp_info*)0)->tcpi_snd_nxt - (char *)0; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_snd_nxt - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_rcv_nxt in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:11:39: error: ‘struct tcp_info’ has no member named ‘tcpi_rcv_nxt’ int s = (char *)&((struct tcp_info*)0)->tcpi_rcv_nxt - (char *)0; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_rcv_nxt - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_toe_tid in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:11:39: error: ‘struct tcp_info’ has no member named ‘tcpi_toe_tid’ int s = (char *)&((struct tcp_info*)0)->tcpi_toe_tid - (char *)0; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_toe_tid - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_snd_rexmitpack in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:11:39: error: ‘struct tcp_info’ has no member named ‘tcpi_snd_rexmitpack’ int s = (char *)&((struct tcp_info*)0)->tcpi_snd_rexmitpack - (char *)0; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_snd_rexmitpack - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_rcv_ooopack in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:11:39: error: ‘struct tcp_info’ has no member named ‘tcpi_rcv_ooopack’ int s = (char *)&((struct tcp_info*)0)->tcpi_rcv_ooopack - (char *)0; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_rcv_ooopack - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_struct_member: checking for struct tcp_info.tcpi_snd_zerowin in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:11:39: error: ‘struct tcp_info’ has no member named ‘tcpi_snd_zerowin’ int s = (char *)&((struct tcp_info*)0)->tcpi_snd_zerowin - (char *)0; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: int s = (char *)&((struct tcp_info*)0)->tcpi_snd_zerowin - (char *)0; 12: int main(int argc, char **argv) 13: { 14: return 0; 15: } /* end */ -------------------- have_const: checking for TCP_ESTABLISHED in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCP_ESTABLISHED’ undeclared here (not in a function) conftest_type conftestval = (int)TCP_ESTABLISHED; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCP_ESTABLISHED; /* end */ -------------------- have_const: checking for TCPS_ESTABLISHED in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCPS_ESTABLISHED’ undeclared here (not in a function) conftest_type conftestval = (int)TCPS_ESTABLISHED; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCPS_ESTABLISHED; /* end */ -------------------- have_const: checking for TCP_SYN_SENT in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCP_SYN_SENT’ undeclared here (not in a function) conftest_type conftestval = (int)TCP_SYN_SENT; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCP_SYN_SENT; /* end */ -------------------- have_const: checking for TCPS_SYN_SENT in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCPS_SYN_SENT’ undeclared here (not in a function) conftest_type conftestval = (int)TCPS_SYN_SENT; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCPS_SYN_SENT; /* end */ -------------------- have_const: checking for TCP_SYN_RECV in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCP_SYN_RECV’ undeclared here (not in a function) conftest_type conftestval = (int)TCP_SYN_RECV; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCP_SYN_RECV; /* end */ -------------------- have_const: checking for TCPS_SYN_RECEIVED in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCPS_SYN_RECEIVED’ undeclared here (not in a function) conftest_type conftestval = (int)TCPS_SYN_RECEIVED; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCPS_SYN_RECEIVED; /* end */ -------------------- have_const: checking for TCP_FIN_WAIT1 in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCP_FIN_WAIT1’ undeclared here (not in a function) conftest_type conftestval = (int)TCP_FIN_WAIT1; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCP_FIN_WAIT1; /* end */ -------------------- have_const: checking for TCPS_FIN_WAIT_1 in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCPS_FIN_WAIT_1’ undeclared here (not in a function) conftest_type conftestval = (int)TCPS_FIN_WAIT_1; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCPS_FIN_WAIT_1; /* end */ -------------------- have_const: checking for TCP_FIN_WAIT2 in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCP_FIN_WAIT2’ undeclared here (not in a function) conftest_type conftestval = (int)TCP_FIN_WAIT2; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCP_FIN_WAIT2; /* end */ -------------------- have_const: checking for TCPS_FIN_WAIT_2 in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCPS_FIN_WAIT_2’ undeclared here (not in a function) conftest_type conftestval = (int)TCPS_FIN_WAIT_2; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCPS_FIN_WAIT_2; /* end */ -------------------- have_const: checking for TCP_TIME_WAIT in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCP_TIME_WAIT’ undeclared here (not in a function) conftest_type conftestval = (int)TCP_TIME_WAIT; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCP_TIME_WAIT; /* end */ -------------------- have_const: checking for TCPS_TIME_WAIT in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCPS_TIME_WAIT’ undeclared here (not in a function) conftest_type conftestval = (int)TCPS_TIME_WAIT; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCPS_TIME_WAIT; /* end */ -------------------- have_const: checking for TCP_CLOSE in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCP_CLOSE’ undeclared here (not in a function) conftest_type conftestval = (int)TCP_CLOSE; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCP_CLOSE; /* end */ -------------------- have_const: checking for TCPS_CLOSED in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCPS_CLOSED’ undeclared here (not in a function) conftest_type conftestval = (int)TCPS_CLOSED; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCPS_CLOSED; /* end */ -------------------- have_const: checking for TCP_CLOSE_WAIT in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCP_CLOSE_WAIT’ undeclared here (not in a function) conftest_type conftestval = (int)TCP_CLOSE_WAIT; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCP_CLOSE_WAIT; /* end */ -------------------- have_const: checking for TCPS_CLOSE_WAIT in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCPS_CLOSE_WAIT’ undeclared here (not in a function) conftest_type conftestval = (int)TCPS_CLOSE_WAIT; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCPS_CLOSE_WAIT; /* end */ -------------------- have_const: checking for TCP_LAST_ACK in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCP_LAST_ACK’ undeclared here (not in a function) conftest_type conftestval = (int)TCP_LAST_ACK; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCP_LAST_ACK; /* end */ -------------------- have_const: checking for TCPS_LAST_ACK in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCPS_LAST_ACK’ undeclared here (not in a function) conftest_type conftestval = (int)TCPS_LAST_ACK; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCPS_LAST_ACK; /* end */ -------------------- have_const: checking for TCP_LISTEN in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCP_LISTEN’ undeclared here (not in a function) conftest_type conftestval = (int)TCP_LISTEN; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCP_LISTEN; /* end */ -------------------- have_const: checking for TCPS_LISTEN in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCPS_LISTEN’ undeclared here (not in a function) conftest_type conftestval = (int)TCPS_LISTEN; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCPS_LISTEN; /* end */ -------------------- have_const: checking for TCP_CLOSING in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCP_CLOSING’ undeclared here (not in a function) conftest_type conftestval = (int)TCP_CLOSING; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCP_CLOSING; /* end */ -------------------- have_const: checking for TCPS_CLOSING in sys/types.h,netdb.h,string.h,sys/socket.h,netinet/in.h,linux/tcp.h... -------------------- no "gcc -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC -c conftest.c" conftest.c:12:34: error: ‘TCPS_CLOSING’ undeclared here (not in a function) conftest_type conftestval = (int)TCPS_CLOSING; ^ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <sys/types.h> 4: #include <netdb.h> 5: #include <string.h> 6: #include <sys/socket.h> 7: #include <netinet/in.h> 8: #include <linux/tcp.h> 9: 10: /*top*/ 11: typedef int conftest_type; 12: conftest_type conftestval = (int)TCPS_CLOSING; /* end */ -------------------- have_func: checking for getpagesize() in unistd.h... -------------------- yes "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -L/home/pere/src/debian/ruby/ruby2.1/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.1 -lpthread -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include <unistd.h> 4: 5: /*top*/ 6: extern int t(void); 7: int main(int argc, char **argv) 8: { 9: if (argc > 1000000) { 10: printf("%p", &t); 11: } 12: 13: return 0; 14: } 15: int t(void) { void ((*volatile p)()); p = (void ((*)()))getpagesize; return 0; } /* end */ -------------------- have_func: checking for rb_thread_call_without_gvl()... -------------------- yes "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -L/home/pere/src/debian/ruby/ruby2.1/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.1 -lpthread -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘rb_thread_call_without_gvl’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_call_without_gvl; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in 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 ((*)()))rb_thread_call_without_gvl; return 0; } /* end */ "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -L/home/pere/src/debian/ruby/ruby2.1/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.1 -lpthread -lgmp -ldl -lcrypt -lm -lc" 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) { rb_thread_call_without_gvl(); return 0; } /* end */ -------------------- have_func: checking for rb_thread_blocking_region()... -------------------- yes "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -L/home/pere/src/debian/ruby/ruby2.1/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.1 -lpthread -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:1: warning: ‘rb_thread_blocking_region’ is deprecated (declared at /usr/include/ruby-2.1.0/ruby/intern.h:870) [-Wdeprecated-declarations] int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_blocking_region; return 0; } ^ 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 ((*)()))rb_thread_blocking_region; return 0; } /* end */ -------------------- have_func: checking for rb_thread_io_blocking_region()... -------------------- yes "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -L/home/pere/src/debian/ruby/ruby2.1/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.1 -lpthread -lgmp -ldl -lcrypt -lm -lc" conftest.c: In function ‘t’: conftest.c:13:57: error: ‘rb_thread_io_blocking_region’ undeclared (first use in this function) int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_thread_io_blocking_region; return 0; } ^ conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in 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 ((*)()))rb_thread_io_blocking_region; return 0; } /* end */ "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -L/home/pere/src/debian/ruby/ruby2.1/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.1 -lpthread -lgmp -ldl -lcrypt -lm -lc" 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) { rb_thread_io_blocking_region(); return 0; } /* end */ -------------------- checking for GCC 4+ atomic builtins... -------------------- yes "gcc -o conftest -I/usr/include/x86_64-linux-gnu/ruby-2.1.0 -I/usr/include/ruby-2.1.0/ruby/backward -I/usr/include/ruby-2.1.0 -I. -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_BSD_SOURCE -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -fPIC conftest.c -L. -L/usr/lib/x86_64-linux-gnu -L. -Wl,-z,relro -L/home/pere/src/debian/ruby/ruby2.1/debian/lib -fstack-protector -rdynamic -Wl,-export-dynamic -lruby-2.1 -lpthread -lgmp -ldl -lcrypt -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: int main(int argc, char * const argv[]) { 4: unsigned long i = 0; 5: __sync_lock_test_and_set(&i, 0); 6: __sync_lock_test_and_set(&i, 1); 7: __sync_bool_compare_and_swap(&i, 0, 1); 8: __sync_add_and_fetch(&i, argc); 9: __sync_sub_and_fetch(&i, argc); 10: return 0; 11: } /* end */ -------------------- extconf.h is: /* begin */ 1: #ifndef EXTCONF_H 2: #define EXTCONF_H 3: #define HAVE_MMAP 1 4: #define HAVE_MUNMAP 1 5: #define HAVE_MREMAP 1 6: #define HAVE_LINUX_TCP_H 1 7: #define HAVE_TYPE_STRUCT_TCP_INFO 1 8: #define HAVE_STRUCT_TCP_INFO_TCPI_STATE 1 9: #define HAVE_ST_TCPI_STATE 1 10: #define CFUNC_tcp_info_tcpi_state static VALUE tcp_info_tcpi_state(VALUE self){\ 11: struct tcp_info *info = DATA_PTR(self);\ 12: return UINT2NUM((uint32_t)info->tcpi_state);} 13: #define DEFINE_METHOD_tcp_info_tcpi_state rb_define_method(cTCP_Info,"state",tcp_info_tcpi_state,0) 14: #define HAVE_STRUCT_TCP_INFO_TCPI_CA_STATE 1 15: #define HAVE_ST_TCPI_CA_STATE 1 16: #define CFUNC_tcp_info_tcpi_ca_state static VALUE tcp_info_tcpi_ca_state(VALUE self){\ 17: struct tcp_info *info = DATA_PTR(self);\ 18: return UINT2NUM((uint32_t)info->tcpi_ca_state);} 19: #define DEFINE_METHOD_tcp_info_tcpi_ca_state rb_define_method(cTCP_Info,"ca_state",tcp_info_tcpi_ca_state,0) 20: #define HAVE_STRUCT_TCP_INFO_TCPI_RETRANSMITS 1 21: #define HAVE_ST_TCPI_RETRANSMITS 1 22: #define CFUNC_tcp_info_tcpi_retransmits static VALUE tcp_info_tcpi_retransmits(VALUE self){\ 23: struct tcp_info *info = DATA_PTR(self);\ 24: return UINT2NUM((uint32_t)info->tcpi_retransmits);} 25: #define DEFINE_METHOD_tcp_info_tcpi_retransmits rb_define_method(cTCP_Info,"retransmits",tcp_info_tcpi_retransmits,0) 26: #define HAVE_STRUCT_TCP_INFO_TCPI_PROBES 1 27: #define HAVE_ST_TCPI_PROBES 1 28: #define CFUNC_tcp_info_tcpi_probes static VALUE tcp_info_tcpi_probes(VALUE self){\ 29: struct tcp_info *info = DATA_PTR(self);\ 30: return UINT2NUM((uint32_t)info->tcpi_probes);} 31: #define DEFINE_METHOD_tcp_info_tcpi_probes rb_define_method(cTCP_Info,"probes",tcp_info_tcpi_probes,0) 32: #define HAVE_STRUCT_TCP_INFO_TCPI_BACKOFF 1 33: #define HAVE_ST_TCPI_BACKOFF 1 34: #define CFUNC_tcp_info_tcpi_backoff static VALUE tcp_info_tcpi_backoff(VALUE self){\ 35: struct tcp_info *info = DATA_PTR(self);\ 36: return UINT2NUM((uint32_t)info->tcpi_backoff);} 37: #define DEFINE_METHOD_tcp_info_tcpi_backoff rb_define_method(cTCP_Info,"backoff",tcp_info_tcpi_backoff,0) 38: #define HAVE_STRUCT_TCP_INFO_TCPI_OPTIONS 1 39: #define HAVE_ST_TCPI_OPTIONS 1 40: #define CFUNC_tcp_info_tcpi_options static VALUE tcp_info_tcpi_options(VALUE self){\ 41: struct tcp_info *info = DATA_PTR(self);\ 42: return UINT2NUM((uint32_t)info->tcpi_options);} 43: #define DEFINE_METHOD_tcp_info_tcpi_options rb_define_method(cTCP_Info,"options",tcp_info_tcpi_options,0) 44: #define CFUNC_tcp_info_tcpi_snd_wscale static inline void tcp_info_tcpi_snd_wscale(void) {} 45: #define DEFINE_METHOD_tcp_info_tcpi_snd_wscale rb_define_method(cTCP_Info,"snd_wscale",rb_f_notimplement,0) 46: #define CFUNC_tcp_info_tcpi_rcv_wscale static inline void tcp_info_tcpi_rcv_wscale(void) {} 47: #define DEFINE_METHOD_tcp_info_tcpi_rcv_wscale rb_define_method(cTCP_Info,"rcv_wscale",rb_f_notimplement,0) 48: #define HAVE_STRUCT_TCP_INFO_TCPI_RTO 1 49: #define HAVE_ST_TCPI_RTO 1 50: #define CFUNC_tcp_info_tcpi_rto static VALUE tcp_info_tcpi_rto(VALUE self){\ 51: struct tcp_info *info = DATA_PTR(self);\ 52: return UINT2NUM((uint32_t)info->tcpi_rto);} 53: #define DEFINE_METHOD_tcp_info_tcpi_rto rb_define_method(cTCP_Info,"rto",tcp_info_tcpi_rto,0) 54: #define HAVE_STRUCT_TCP_INFO_TCPI_ATO 1 55: #define HAVE_ST_TCPI_ATO 1 56: #define CFUNC_tcp_info_tcpi_ato static VALUE tcp_info_tcpi_ato(VALUE self){\ 57: struct tcp_info *info = DATA_PTR(self);\ 58: return UINT2NUM((uint32_t)info->tcpi_ato);} 59: #define DEFINE_METHOD_tcp_info_tcpi_ato rb_define_method(cTCP_Info,"ato",tcp_info_tcpi_ato,0) 60: #define HAVE_STRUCT_TCP_INFO_TCPI_SND_MSS 1 61: #define HAVE_ST_TCPI_SND_MSS 1 62: #define CFUNC_tcp_info_tcpi_snd_mss static VALUE tcp_info_tcpi_snd_mss(VALUE self){\ 63: struct tcp_info *info = DATA_PTR(self);\ 64: return UINT2NUM((uint32_t)info->tcpi_snd_mss);} 65: #define DEFINE_METHOD_tcp_info_tcpi_snd_mss rb_define_method(cTCP_Info,"snd_mss",tcp_info_tcpi_snd_mss,0) 66: #define HAVE_STRUCT_TCP_INFO_TCPI_RCV_MSS 1 67: #define HAVE_ST_TCPI_RCV_MSS 1 68: #define CFUNC_tcp_info_tcpi_rcv_mss static VALUE tcp_info_tcpi_rcv_mss(VALUE self){\ 69: struct tcp_info *info = DATA_PTR(self);\ 70: return UINT2NUM((uint32_t)info->tcpi_rcv_mss);} 71: #define DEFINE_METHOD_tcp_info_tcpi_rcv_mss rb_define_method(cTCP_Info,"rcv_mss",tcp_info_tcpi_rcv_mss,0) 72: #define HAVE_STRUCT_TCP_INFO_TCPI_UNACKED 1 73: #define HAVE_ST_TCPI_UNACKED 1 74: #define CFUNC_tcp_info_tcpi_unacked static VALUE tcp_info_tcpi_unacked(VALUE self){\ 75: struct tcp_info *info = DATA_PTR(self);\ 76: return UINT2NUM((uint32_t)info->tcpi_unacked);} 77: #define DEFINE_METHOD_tcp_info_tcpi_unacked rb_define_method(cTCP_Info,"unacked",tcp_info_tcpi_unacked,0) 78: #define HAVE_STRUCT_TCP_INFO_TCPI_SACKED 1 79: #define HAVE_ST_TCPI_SACKED 1 80: #define CFUNC_tcp_info_tcpi_sacked static VALUE tcp_info_tcpi_sacked(VALUE self){\ 81: struct tcp_info *info = DATA_PTR(self);\ 82: return UINT2NUM((uint32_t)info->tcpi_sacked);} 83: #define DEFINE_METHOD_tcp_info_tcpi_sacked rb_define_method(cTCP_Info,"sacked",tcp_info_tcpi_sacked,0) 84: #define HAVE_STRUCT_TCP_INFO_TCPI_LOST 1 85: #define HAVE_ST_TCPI_LOST 1 86: #define CFUNC_tcp_info_tcpi_lost static VALUE tcp_info_tcpi_lost(VALUE self){\ 87: struct tcp_info *info = DATA_PTR(self);\ 88: return UINT2NUM((uint32_t)info->tcpi_lost);} 89: #define DEFINE_METHOD_tcp_info_tcpi_lost rb_define_method(cTCP_Info,"lost",tcp_info_tcpi_lost,0) 90: #define HAVE_STRUCT_TCP_INFO_TCPI_RETRANS 1 91: #define HAVE_ST_TCPI_RETRANS 1 92: #define CFUNC_tcp_info_tcpi_retrans static VALUE tcp_info_tcpi_retrans(VALUE self){\ 93: struct tcp_info *info = DATA_PTR(self);\ 94: return UINT2NUM((uint32_t)info->tcpi_retrans);} 95: #define DEFINE_METHOD_tcp_info_tcpi_retrans rb_define_method(cTCP_Info,"retrans",tcp_info_tcpi_retrans,0) 96: #define HAVE_STRUCT_TCP_INFO_TCPI_FACKETS 1 97: #define HAVE_ST_TCPI_FACKETS 1 98: #define CFUNC_tcp_info_tcpi_fackets static VALUE tcp_info_tcpi_fackets(VALUE self){\ 99: struct tcp_info *info = DATA_PTR(self);\ 100: return UINT2NUM((uint32_t)info->tcpi_fackets);} 101: #define DEFINE_METHOD_tcp_info_tcpi_fackets rb_define_method(cTCP_Info,"fackets",tcp_info_tcpi_fackets,0) 102: #define HAVE_STRUCT_TCP_INFO_TCPI_LAST_DATA_SENT 1 103: #define HAVE_ST_TCPI_LAST_DATA_SENT 1 104: #define CFUNC_tcp_info_tcpi_last_data_sent static VALUE tcp_info_tcpi_last_data_sent(VALUE self){\ 105: struct tcp_info *info = DATA_PTR(self);\ 106: return UINT2NUM((uint32_t)info->tcpi_last_data_sent);} 107: #define DEFINE_METHOD_tcp_info_tcpi_last_data_sent rb_define_method(cTCP_Info,"last_data_sent",tcp_info_tcpi_last_data_sent,0) 108: #define HAVE_STRUCT_TCP_INFO_TCPI_LAST_ACK_SENT 1 109: #define HAVE_ST_TCPI_LAST_ACK_SENT 1 110: #define CFUNC_tcp_info_tcpi_last_ack_sent static VALUE tcp_info_tcpi_last_ack_sent(VALUE self){\ 111: struct tcp_info *info = DATA_PTR(self);\ 112: return UINT2NUM((uint32_t)info->tcpi_last_ack_sent);} 113: #define DEFINE_METHOD_tcp_info_tcpi_last_ack_sent rb_define_method(cTCP_Info,"last_ack_sent",tcp_info_tcpi_last_ack_sent,0) 114: #define HAVE_STRUCT_TCP_INFO_TCPI_LAST_DATA_RECV 1 115: #define HAVE_ST_TCPI_LAST_DATA_RECV 1 116: #define CFUNC_tcp_info_tcpi_last_data_recv static VALUE tcp_info_tcpi_last_data_recv(VALUE self){\ 117: struct tcp_info *info = DATA_PTR(self);\ 118: return UINT2NUM((uint32_t)info->tcpi_last_data_recv);} 119: #define DEFINE_METHOD_tcp_info_tcpi_last_data_recv rb_define_method(cTCP_Info,"last_data_recv",tcp_info_tcpi_last_data_recv,0) 120: #define HAVE_STRUCT_TCP_INFO_TCPI_LAST_ACK_RECV 1 121: #define HAVE_ST_TCPI_LAST_ACK_RECV 1 122: #define CFUNC_tcp_info_tcpi_last_ack_recv static VALUE tcp_info_tcpi_last_ack_recv(VALUE self){\ 123: struct tcp_info *info = DATA_PTR(self);\ 124: return UINT2NUM((uint32_t)info->tcpi_last_ack_recv);} 125: #define DEFINE_METHOD_tcp_info_tcpi_last_ack_recv rb_define_method(cTCP_Info,"last_ack_recv",tcp_info_tcpi_last_ack_recv,0) 126: #define HAVE_STRUCT_TCP_INFO_TCPI_PMTU 1 127: #define HAVE_ST_TCPI_PMTU 1 128: #define CFUNC_tcp_info_tcpi_pmtu static VALUE tcp_info_tcpi_pmtu(VALUE self){\ 129: struct tcp_info *info = DATA_PTR(self);\ 130: return UINT2NUM((uint32_t)info->tcpi_pmtu);} 131: #define DEFINE_METHOD_tcp_info_tcpi_pmtu rb_define_method(cTCP_Info,"pmtu",tcp_info_tcpi_pmtu,0) 132: #define HAVE_STRUCT_TCP_INFO_TCPI_RCV_SSTHRESH 1 133: #define HAVE_ST_TCPI_RCV_SSTHRESH 1 134: #define CFUNC_tcp_info_tcpi_rcv_ssthresh static VALUE tcp_info_tcpi_rcv_ssthresh(VALUE self){\ 135: struct tcp_info *info = DATA_PTR(self);\ 136: return UINT2NUM((uint32_t)info->tcpi_rcv_ssthresh);} 137: #define DEFINE_METHOD_tcp_info_tcpi_rcv_ssthresh rb_define_method(cTCP_Info,"rcv_ssthresh",tcp_info_tcpi_rcv_ssthresh,0) 138: #define HAVE_STRUCT_TCP_INFO_TCPI_RTT 1 139: #define HAVE_ST_TCPI_RTT 1 140: #define CFUNC_tcp_info_tcpi_rtt static VALUE tcp_info_tcpi_rtt(VALUE self){\ 141: struct tcp_info *info = DATA_PTR(self);\ 142: return UINT2NUM((uint32_t)info->tcpi_rtt);} 143: #define DEFINE_METHOD_tcp_info_tcpi_rtt rb_define_method(cTCP_Info,"rtt",tcp_info_tcpi_rtt,0) 144: #define HAVE_STRUCT_TCP_INFO_TCPI_RTTVAR 1 145: #define HAVE_ST_TCPI_RTTVAR 1 146: #define CFUNC_tcp_info_tcpi_rttvar static VALUE tcp_info_tcpi_rttvar(VALUE self){\ 147: struct tcp_info *info = DATA_PTR(self);\ 148: return UINT2NUM((uint32_t)info->tcpi_rttvar);} 149: #define DEFINE_METHOD_tcp_info_tcpi_rttvar rb_define_method(cTCP_Info,"rttvar",tcp_info_tcpi_rttvar,0) 150: #define HAVE_STRUCT_TCP_INFO_TCPI_SND_SSTHRESH 1 151: #define HAVE_ST_TCPI_SND_SSTHRESH 1 152: #define CFUNC_tcp_info_tcpi_snd_ssthresh static VALUE tcp_info_tcpi_snd_ssthresh(VALUE self){\ 153: struct tcp_info *info = DATA_PTR(self);\ 154: return UINT2NUM((uint32_t)info->tcpi_snd_ssthresh);} 155: #define DEFINE_METHOD_tcp_info_tcpi_snd_ssthresh rb_define_method(cTCP_Info,"snd_ssthresh",tcp_info_tcpi_snd_ssthresh,0) 156: #define HAVE_STRUCT_TCP_INFO_TCPI_SND_CWND 1 157: #define HAVE_ST_TCPI_SND_CWND 1 158: #define CFUNC_tcp_info_tcpi_snd_cwnd static VALUE tcp_info_tcpi_snd_cwnd(VALUE self){\ 159: struct tcp_info *info = DATA_PTR(self);\ 160: return UINT2NUM((uint32_t)info->tcpi_snd_cwnd);} 161: #define DEFINE_METHOD_tcp_info_tcpi_snd_cwnd rb_define_method(cTCP_Info,"snd_cwnd",tcp_info_tcpi_snd_cwnd,0) 162: #define HAVE_STRUCT_TCP_INFO_TCPI_ADVMSS 1 163: #define HAVE_ST_TCPI_ADVMSS 1 164: #define CFUNC_tcp_info_tcpi_advmss static VALUE tcp_info_tcpi_advmss(VALUE self){\ 165: struct tcp_info *info = DATA_PTR(self);\ 166: return UINT2NUM((uint32_t)info->tcpi_advmss);} 167: #define DEFINE_METHOD_tcp_info_tcpi_advmss rb_define_method(cTCP_Info,"advmss",tcp_info_tcpi_advmss,0) 168: #define HAVE_STRUCT_TCP_INFO_TCPI_REORDERING 1 169: #define HAVE_ST_TCPI_REORDERING 1 170: #define CFUNC_tcp_info_tcpi_reordering static VALUE tcp_info_tcpi_reordering(VALUE self){\ 171: struct tcp_info *info = DATA_PTR(self);\ 172: return UINT2NUM((uint32_t)info->tcpi_reordering);} 173: #define DEFINE_METHOD_tcp_info_tcpi_reordering rb_define_method(cTCP_Info,"reordering",tcp_info_tcpi_reordering,0) 174: #define HAVE_STRUCT_TCP_INFO_TCPI_RCV_RTT 1 175: #define HAVE_ST_TCPI_RCV_RTT 1 176: #define CFUNC_tcp_info_tcpi_rcv_rtt static VALUE tcp_info_tcpi_rcv_rtt(VALUE self){\ 177: struct tcp_info *info = DATA_PTR(self);\ 178: return UINT2NUM((uint32_t)info->tcpi_rcv_rtt);} 179: #define DEFINE_METHOD_tcp_info_tcpi_rcv_rtt rb_define_method(cTCP_Info,"rcv_rtt",tcp_info_tcpi_rcv_rtt,0) 180: #define HAVE_STRUCT_TCP_INFO_TCPI_RCV_SPACE 1 181: #define HAVE_ST_TCPI_RCV_SPACE 1 182: #define CFUNC_tcp_info_tcpi_rcv_space static VALUE tcp_info_tcpi_rcv_space(VALUE self){\ 183: struct tcp_info *info = DATA_PTR(self);\ 184: return UINT2NUM((uint32_t)info->tcpi_rcv_space);} 185: #define DEFINE_METHOD_tcp_info_tcpi_rcv_space rb_define_method(cTCP_Info,"rcv_space",tcp_info_tcpi_rcv_space,0) 186: #define HAVE_STRUCT_TCP_INFO_TCPI_TOTAL_RETRANS 1 187: #define HAVE_ST_TCPI_TOTAL_RETRANS 1 188: #define CFUNC_tcp_info_tcpi_total_retrans static VALUE tcp_info_tcpi_total_retrans(VALUE self){\ 189: struct tcp_info *info = DATA_PTR(self);\ 190: return UINT2NUM((uint32_t)info->tcpi_total_retrans);} 191: #define DEFINE_METHOD_tcp_info_tcpi_total_retrans rb_define_method(cTCP_Info,"total_retrans",tcp_info_tcpi_total_retrans,0) 192: #define CFUNC_tcp_info_tcpi_snd_wnd static inline void tcp_info_tcpi_snd_wnd(void) {} 193: #define DEFINE_METHOD_tcp_info_tcpi_snd_wnd rb_define_method(cTCP_Info,"snd_wnd",rb_f_notimplement,0) 194: #define CFUNC_tcp_info_tcpi_snd_bwnd static inline void tcp_info_tcpi_snd_bwnd(void) {} 195: #define DEFINE_METHOD_tcp_info_tcpi_snd_bwnd rb_define_method(cTCP_Info,"snd_bwnd",rb_f_notimplement,0) 196: #define CFUNC_tcp_info_tcpi_snd_nxt static inline void tcp_info_tcpi_snd_nxt(void) {} 197: #define DEFINE_METHOD_tcp_info_tcpi_snd_nxt rb_define_method(cTCP_Info,"snd_nxt",rb_f_notimplement,0) 198: #define CFUNC_tcp_info_tcpi_rcv_nxt static inline void tcp_info_tcpi_rcv_nxt(void) {} 199: #define DEFINE_METHOD_tcp_info_tcpi_rcv_nxt rb_define_method(cTCP_Info,"rcv_nxt",rb_f_notimplement,0) 200: #define CFUNC_tcp_info_tcpi_toe_tid static inline void tcp_info_tcpi_toe_tid(void) {} 201: #define DEFINE_METHOD_tcp_info_tcpi_toe_tid rb_define_method(cTCP_Info,"toe_tid",rb_f_notimplement,0) 202: #define CFUNC_tcp_info_tcpi_snd_rexmitpack static inline void tcp_info_tcpi_snd_rexmitpack(void) {} 203: #define DEFINE_METHOD_tcp_info_tcpi_snd_rexmitpack rb_define_method(cTCP_Info,"snd_rexmitpack",rb_f_notimplement,0) 204: #define CFUNC_tcp_info_tcpi_rcv_ooopack static inline void tcp_info_tcpi_rcv_ooopack(void) {} 205: #define DEFINE_METHOD_tcp_info_tcpi_rcv_ooopack rb_define_method(cTCP_Info,"rcv_ooopack",rb_f_notimplement,0) 206: #define CFUNC_tcp_info_tcpi_snd_zerowin static inline void tcp_info_tcpi_snd_zerowin(void) {} 207: #define DEFINE_METHOD_tcp_info_tcpi_snd_zerowin rb_define_method(cTCP_Info,"snd_zerowin",rb_f_notimplement,0) 208: #define HAVE_GETPAGESIZE 1 209: #define HAVE_RB_THREAD_CALL_WITHOUT_GVL 1 210: #define HAVE_RB_THREAD_BLOCKING_REGION 1 211: #define HAVE_RB_THREAD_IO_BLOCKING_REGION 1 212: #define HAVE_GCC_ATOMIC_BUILTINS 1 213: #endif /* end */