find_header: checking for yaml.h... -------------------- yes "clang -o conftest -I/Users/nico/.rbenv/versions/2.7.5/include/ruby-2.7.0/x86_64-darwin19 -I/Users/nico/.rbenv/versions/2.7.5/include/ruby-2.7.0/ruby/backward -I/Users/nico/.rbenv/versions/2.7.5/include/ruby-2.7.0 -I. -I/Users/nico/.rbenv/versions/2.7.5/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -O2 -fno-common -pipe conftest.c -L. -L/Users/nico/.rbenv/versions/2.7.5/lib -L. -L/Users/nico/.rbenv/versions/2.7.5/lib -fstack-protector-strong -L/usr/local/lib -lruby.2.7 " checked program was: /* begin */ 1: #include "ruby.h" 2: 3: int main(int argc, char **argv) 4: { 5: return !!argv[argc]; 6: } /* end */ "clang -E -I/Users/nico/.rbenv/versions/2.7.5/include/ruby-2.7.0/x86_64-darwin19 -I/Users/nico/.rbenv/versions/2.7.5/include/ruby-2.7.0/ruby/backward -I/Users/nico/.rbenv/versions/2.7.5/include/ruby-2.7.0 -I. -I/Users/nico/.rbenv/versions/2.7.5/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -O2 -fno-common -pipe conftest.c -o conftest.i" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include /* end */ -------------------- find_library: checking for yaml_get_version() in -lyaml... -------------------- yes "clang -o conftest -I/Users/nico/.rbenv/versions/2.7.5/include/ruby-2.7.0/x86_64-darwin19 -I/Users/nico/.rbenv/versions/2.7.5/include/ruby-2.7.0/ruby/backward -I/Users/nico/.rbenv/versions/2.7.5/include/ruby-2.7.0 -I. -I/Users/nico/.rbenv/versions/2.7.5/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -O2 -fno-common -pipe conftest.c -L. -L/Users/nico/.rbenv/versions/2.7.5/lib -L. -L/Users/nico/.rbenv/versions/2.7.5/lib -fstack-protector-strong -L/usr/local/lib -lruby.2.7 -lyaml " conftest.c:14:57: error: use of undeclared identifier 'yaml_get_version' int t(void) { void ((*volatile p)()); p = (void ((*)()))yaml_get_version; 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 ((*)()))yaml_get_version; return !p; } /* end */ "clang -o conftest -I/Users/nico/.rbenv/versions/2.7.5/include/ruby-2.7.0/x86_64-darwin19 -I/Users/nico/.rbenv/versions/2.7.5/include/ruby-2.7.0/ruby/backward -I/Users/nico/.rbenv/versions/2.7.5/include/ruby-2.7.0 -I. -I/Users/nico/.rbenv/versions/2.7.5/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -g -O2 -fno-common -pipe conftest.c -L. -L/Users/nico/.rbenv/versions/2.7.5/lib -L. -L/Users/nico/.rbenv/versions/2.7.5/lib -fstack-protector-strong -L/usr/local/lib -lruby.2.7 -lyaml " 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 yaml_get_version(); 15: int t(void) { yaml_get_version(); return 0; } /* end */ --------------------