find_header: checking for yaml.h... -------------------- yes "gcc -o conftest -I/opt/hostedtoolcache/Ruby/2.7.8/x64/include/ruby-2.7.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/2.7.8/x64/include/ruby-2.7.0/ruby/backward -I/opt/hostedtoolcache/Ruby/2.7.8/x64/include/ruby-2.7.0 -I. -DENABLE_PATH_CHECK=0 -g -O2 -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/2.7.8/x64/lib -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.8/x64/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.8/x64/lib -L/opt/hostedtoolcache/Ruby/2.7.8/x64/lib -lruby -lm -lc" checked program was: /* begin */ 1: #include "ruby.h" 2: 3: int main(int argc, char **argv) 4: { 5: return !!argv[argc]; 6: } /* end */ "gcc -E -I/opt/hostedtoolcache/Ruby/2.7.8/x64/include/ruby-2.7.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/2.7.8/x64/include/ruby-2.7.0/ruby/backward -I/opt/hostedtoolcache/Ruby/2.7.8/x64/include/ruby-2.7.0 -I. -DENABLE_PATH_CHECK=0 -g -O2 -fPIC 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 "gcc -o conftest -I/opt/hostedtoolcache/Ruby/2.7.8/x64/include/ruby-2.7.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/2.7.8/x64/include/ruby-2.7.0/ruby/backward -I/opt/hostedtoolcache/Ruby/2.7.8/x64/include/ruby-2.7.0 -I. -DENABLE_PATH_CHECK=0 -g -O2 -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/2.7.8/x64/lib -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.8/x64/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.8/x64/lib -L/opt/hostedtoolcache/Ruby/2.7.8/x64/lib -lruby -lyaml -lm -lc" conftest.c: In function ‘t’: conftest.c:14:57: error: ‘yaml_get_version’ undeclared (first use in this function) 14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))yaml_get_version; return !p; } | ^~~~~~~~~~~~~~~~ conftest.c:14: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: 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 */ "gcc -o conftest -I/opt/hostedtoolcache/Ruby/2.7.8/x64/include/ruby-2.7.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/2.7.8/x64/include/ruby-2.7.0/ruby/backward -I/opt/hostedtoolcache/Ruby/2.7.8/x64/include/ruby-2.7.0 -I. -DENABLE_PATH_CHECK=0 -g -O2 -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/2.7.8/x64/lib -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.8/x64/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.8/x64/lib -L/opt/hostedtoolcache/Ruby/2.7.8/x64/lib -lruby -lyaml -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: 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 */ --------------------