have_func: checking for rb_io_wait()... -------------------- no "gcc -o conftest -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0/arm64-darwin21 -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0/ruby/backward -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0 -I. -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/libyaml/include -I/opt/homebrew/opt/gdbm/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -O2 -pipe conftest.c -L. -L/Users/bladmin/.rubies/ruby-2.7.4/lib -L/opt/homebrew/opt/openssl@1.1/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/libyaml/lib -L/opt/homebrew/opt/gdbm/lib -L. -fstack-protector-strong -L/opt/homebrew/opt/openssl@1.1/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/libyaml/lib -L/opt/homebrew/opt/gdbm/lib -m64 -lruby.2.7-static -framework Security -framework Foundation -lpthread -ldl -lobjc " checked program was: /* begin */ 1: #include "ruby.h" 2: 3: int main(int argc, char **argv) 4: { 5: return !!argv[argc]; 6: } /* end */ "gcc -o conftest -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0/arm64-darwin21 -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0/ruby/backward -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0 -I. -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/libyaml/include -I/opt/homebrew/opt/gdbm/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -O2 -pipe conftest.c -L. -L/Users/bladmin/.rubies/ruby-2.7.4/lib -L/opt/homebrew/opt/openssl@1.1/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/libyaml/lib -L/opt/homebrew/opt/gdbm/lib -L. -fstack-protector-strong -L/opt/homebrew/opt/openssl@1.1/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/libyaml/lib -L/opt/homebrew/opt/gdbm/lib -m64 -lruby.2.7-static -framework Security -framework Foundation -lpthread -ldl -lobjc " conftest.c:14:57: error: use of undeclared identifier 'rb_io_wait' int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_io_wait; return !p; } ^ 1 error generated. 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: int (* volatile tp)(void)=(int (*)(void))&t; 9: printf("%d", (*tp)()); 10: } 11: 12: return !!argv[argc]; 13: } 14: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_io_wait; return !p; } /* end */ "gcc -o conftest -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0/arm64-darwin21 -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0/ruby/backward -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0 -I. -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/libyaml/include -I/opt/homebrew/opt/gdbm/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -O2 -pipe conftest.c -L. -L/Users/bladmin/.rubies/ruby-2.7.4/lib -L/opt/homebrew/opt/openssl@1.1/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/libyaml/lib -L/opt/homebrew/opt/gdbm/lib -L. -fstack-protector-strong -L/opt/homebrew/opt/openssl@1.1/lib -L/opt/homebrew/opt/readline/lib -L/opt/homebrew/opt/libyaml/lib -L/opt/homebrew/opt/gdbm/lib -m64 -lruby.2.7-static -framework Security -framework Foundation -lpthread -ldl -lobjc " Undefined symbols for architecture arm64: "_rb_io_wait", referenced from: _t in conftest-10868b.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation) 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: int (* volatile tp)(void)=(int (*)(void))&t; 9: printf("%d", (*tp)()); 10: } 11: 12: return !!argv[argc]; 13: } 14: extern void rb_io_wait(); 15: int t(void) { rb_io_wait(); return 0; } /* end */ -------------------- "gcc -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0/arm64-darwin21 -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0/ruby/backward -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0 -I. -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/libyaml/include -I/opt/homebrew/opt/gdbm/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -O2 -pipe -m64 -c conftest.c" conftest.c:6:3: error: # error ^ conftest.c:7:1: error: expected identifier or '(' |:/ === DOSISH undefined === /:| ^ 2 errors generated. checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include 4: /*top*/ 5: #ifndef DOSISH 6: # error 7: |:/ === DOSISH undefined === /:| 8: #endif /* end */ have_header: checking for sys/ioctl.h... -------------------- yes "gcc -E -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0/arm64-darwin21 -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0/ruby/backward -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0 -I. -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/libyaml/include -I/opt/homebrew/opt/gdbm/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -O2 -pipe conftest.c -o conftest.i" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include /* end */ -------------------- have_macro: checking for FIONREAD in sys/ioctl.h,sys/ioctl.h... -------------------- yes "gcc -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0/arm64-darwin21 -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0/ruby/backward -I/Users/bladmin/.rubies/ruby-2.7.4/include/ruby-2.7.0 -I. -I/opt/homebrew/opt/openssl@1.1/include -I/opt/homebrew/opt/readline/include -I/opt/homebrew/opt/libyaml/include -I/opt/homebrew/opt/gdbm/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -O2 -pipe -m64 -c conftest.c" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include 4: #include 5: /*top*/ 6: #ifndef FIONREAD 7: # error 8: |:/ === FIONREAD undefined === /:| 9: #endif /* end */ --------------------