have_func: checking for rb_enc_raise() in ruby.h... -------------------- yes "gcc -o conftest -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/backward -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0 -I. -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include -DENABLE_PATH_CHECK=0 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -Wl,-R/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -L. -L/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-R/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -L/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -lruby -lpthread -lgmp -ldl -lcrypt -lm -lc" In file included from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby.h:33, from conftest.c:1: /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/ruby.h:631:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 631 | CONSTFUNC(void rb_secure_update(VALUE)); | ^~~~~~~~~ In file included from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/ruby.h:2005, from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby.h:33, from conftest.c:1: /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/intern.h:257:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 257 | CONSTFUNC(void rb_error_untrusted(VALUE)); | ^~~~~~~~~ /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/intern.h:259:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 259 | CONSTFUNC(void rb_check_trusted(VALUE)); | ^~~~~~~~~ cc1: warning: unrecognized command line option ‘-Wno-self-assign’ cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’ cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’ 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/opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/backward -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0 -I. -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include -DENABLE_PATH_CHECK=0 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -Wl,-R/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -L. -L/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-R/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -L/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -lruby -lpthread -lgmp -ldl -lcrypt -lm -lc" In file included from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby.h:33, from conftest.c:1: /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/ruby.h:631:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 631 | CONSTFUNC(void rb_secure_update(VALUE)); | ^~~~~~~~~ In file included from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/ruby.h:2005, from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby.h:33, from conftest.c:1: /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/intern.h:257:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 257 | CONSTFUNC(void rb_error_untrusted(VALUE)); | ^~~~~~~~~ /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/intern.h:259:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 259 | CONSTFUNC(void rb_check_trusted(VALUE)); | ^~~~~~~~~ conftest.c: In function ‘t’: conftest.c:15:57: error: ‘rb_enc_raise’ undeclared (first use in this function); did you mean ‘rb_exc_raise’? 15 | int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_enc_raise; return !p; } | ^~~~~~~~~~~~ | rb_exc_raise conftest.c:15:57: note: each undeclared identifier is reported only once for each function it appears in conftest.c: At top level: cc1: warning: unrecognized command line option ‘-Wno-self-assign’ cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’ cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include 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 ((*)()))rb_enc_raise; return !p; } /* end */ "gcc -o conftest -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/backward -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0 -I. -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include -DENABLE_PATH_CHECK=0 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -Wl,-R/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -L. -L/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-R/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -L/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -lruby -lpthread -lgmp -ldl -lcrypt -lm -lc" In file included from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby.h:33, from conftest.c:1: /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/ruby.h:631:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 631 | CONSTFUNC(void rb_secure_update(VALUE)); | ^~~~~~~~~ In file included from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/ruby.h:2005, from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby.h:33, from conftest.c:1: /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/intern.h:257:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 257 | CONSTFUNC(void rb_error_untrusted(VALUE)); | ^~~~~~~~~ /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/intern.h:259:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 259 | CONSTFUNC(void rb_check_trusted(VALUE)); | ^~~~~~~~~ cc1: warning: unrecognized command line option ‘-Wno-self-assign’ cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’ cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include 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: extern void rb_enc_raise(); 16: int t(void) { rb_enc_raise(); return 0; } /* end */ -------------------- have_func: checking for rb_enc_interned_str() in ruby.h... -------------------- no "gcc -o conftest -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/backward -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0 -I. -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include -DENABLE_PATH_CHECK=0 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -Wl,-R/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -L. -L/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-R/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -L/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -lruby -lpthread -lgmp -ldl -lcrypt -lm -lc" In file included from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby.h:33, from conftest.c:1: /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/ruby.h:631:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 631 | CONSTFUNC(void rb_secure_update(VALUE)); | ^~~~~~~~~ In file included from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/ruby.h:2005, from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby.h:33, from conftest.c:1: /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/intern.h:257:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 257 | CONSTFUNC(void rb_error_untrusted(VALUE)); | ^~~~~~~~~ /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/intern.h:259:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 259 | CONSTFUNC(void rb_check_trusted(VALUE)); | ^~~~~~~~~ conftest.c: In function ‘t’: conftest.c:15:57: error: ‘rb_enc_interned_str’ undeclared (first use in this function); did you mean ‘rb_sym_interned_p’? 15 | int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_enc_interned_str; return !p; } | ^~~~~~~~~~~~~~~~~~~ | rb_sym_interned_p conftest.c:15:57: note: each undeclared identifier is reported only once for each function it appears in conftest.c: At top level: cc1: warning: unrecognized command line option ‘-Wno-self-assign’ cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’ cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’ checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include 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 ((*)()))rb_enc_interned_str; return !p; } /* end */ "gcc -o conftest -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/backward -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0 -I. -I/opt/hostedtoolcache/Ruby/2.4.1/x64/include -DENABLE_PATH_CHECK=0 -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -Wl,-R/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -L. -L/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-R/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -L/opt/hostedtoolcache/Ruby/2.4.1/x64/lib -lruby -lpthread -lgmp -ldl -lcrypt -lm -lc" In file included from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby.h:33, from conftest.c:1: /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/ruby.h:631:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 631 | CONSTFUNC(void rb_secure_update(VALUE)); | ^~~~~~~~~ In file included from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/ruby.h:2005, from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby.h:33, from conftest.c:1: /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/intern.h:257:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 257 | CONSTFUNC(void rb_error_untrusted(VALUE)); | ^~~~~~~~~ /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/ruby/intern.h:259:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes] 259 | CONSTFUNC(void rb_check_trusted(VALUE)); | ^~~~~~~~~ cc1: warning: unrecognized command line option ‘-Wno-self-assign’ cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’ cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’ /usr/bin/ld: /tmp/ccJuc7FH.o: in function `t': /home/runner/work/ruby-sdk/ruby-sdk/vendor/bundle/ruby/2.4.0/gems/json-2.6.2/ext/json/ext/parser/conftest.c:16: undefined reference to `rb_enc_interned_str' collect2: error: ld returned 1 exit status checked program was: /* begin */ 1: #include "ruby.h" 2: 3: #include 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: extern void rb_enc_interned_str(); 16: int t(void) { rb_enc_interned_str(); return 0; } /* end */ --------------------