|
| 1 | +have_func: checking for rb_enc_raise() in ruby.h... -------------------- yes |
| 2 | + |
| 3 | +"gcc -o conftest -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include/ruby-2.7.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include/ruby-2.7.0/ruby/backward -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include/ruby-2.7.0 -I. -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include -DENABLE_PATH_CHECK=0 -g -O2 -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -L. -L/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -L/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -lruby -lm -lc" |
| 4 | +checked program was: |
| 5 | +/* begin */ |
| 6 | +1: #include "ruby.h" |
| 7 | +2: |
| 8 | +3: int main(int argc, char **argv) |
| 9 | +4: { |
| 10 | +5: return !!argv[argc]; |
| 11 | +6: } |
| 12 | +/* end */ |
| 13 | + |
| 14 | +"gcc -o conftest -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include/ruby-2.7.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include/ruby-2.7.0/ruby/backward -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include/ruby-2.7.0 -I. -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include -DENABLE_PATH_CHECK=0 -g -O2 -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -L. -L/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -L/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -lruby -lm -lc" |
| 15 | +conftest.c: In function ‘t’: |
| 16 | +conftest.c:16:57: error: ‘rb_enc_raise’ undeclared (first use in this function); did you mean ‘rb_exc_raise’? |
| 17 | + 16 | int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_enc_raise; return !p; } |
| 18 | + | ^~~~~~~~~~~~ |
| 19 | + | rb_exc_raise |
| 20 | +conftest.c:16:57: note: each undeclared identifier is reported only once for each function it appears in |
| 21 | +checked program was: |
| 22 | +/* begin */ |
| 23 | + 1: #include "ruby.h" |
| 24 | + 2: |
| 25 | + 3: #include <ruby.h> |
| 26 | + 4: |
| 27 | + 5: /*top*/ |
| 28 | + 6: extern int t(void); |
| 29 | + 7: int main(int argc, char **argv) |
| 30 | + 8: { |
| 31 | + 9: if (argc > 1000000) { |
| 32 | +10: int (* volatile tp)(void)=(int (*)(void))&t; |
| 33 | +11: printf("%d", (*tp)()); |
| 34 | +12: } |
| 35 | +13: |
| 36 | +14: return !!argv[argc]; |
| 37 | +15: } |
| 38 | +16: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_enc_raise; return !p; } |
| 39 | +/* end */ |
| 40 | + |
| 41 | +"gcc -o conftest -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include/ruby-2.7.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include/ruby-2.7.0/ruby/backward -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include/ruby-2.7.0 -I. -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include -DENABLE_PATH_CHECK=0 -g -O2 -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -L. -L/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -L/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -lruby -lm -lc" |
| 42 | +checked program was: |
| 43 | +/* begin */ |
| 44 | + 1: #include "ruby.h" |
| 45 | + 2: |
| 46 | + 3: #include <ruby.h> |
| 47 | + 4: |
| 48 | + 5: /*top*/ |
| 49 | + 6: extern int t(void); |
| 50 | + 7: int main(int argc, char **argv) |
| 51 | + 8: { |
| 52 | + 9: if (argc > 1000000) { |
| 53 | +10: int (* volatile tp)(void)=(int (*)(void))&t; |
| 54 | +11: printf("%d", (*tp)()); |
| 55 | +12: } |
| 56 | +13: |
| 57 | +14: return !!argv[argc]; |
| 58 | +15: } |
| 59 | +16: extern void rb_enc_raise(); |
| 60 | +17: int t(void) { rb_enc_raise(); return 0; } |
| 61 | +/* end */ |
| 62 | + |
| 63 | +-------------------- |
| 64 | + |
| 65 | +have_func: checking for rb_enc_interned_str() in ruby.h... -------------------- no |
| 66 | + |
| 67 | +"gcc -o conftest -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include/ruby-2.7.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include/ruby-2.7.0/ruby/backward -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include/ruby-2.7.0 -I. -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include -DENABLE_PATH_CHECK=0 -g -O2 -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -L. -L/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -L/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -lruby -lm -lc" |
| 68 | +conftest.c: In function ‘t’: |
| 69 | +conftest.c:16:57: error: ‘rb_enc_interned_str’ undeclared (first use in this function); did you mean ‘rb_sym_interned_p’? |
| 70 | + 16 | int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_enc_interned_str; return !p; } |
| 71 | + | ^~~~~~~~~~~~~~~~~~~ |
| 72 | + | rb_sym_interned_p |
| 73 | +conftest.c:16:57: note: each undeclared identifier is reported only once for each function it appears in |
| 74 | +checked program was: |
| 75 | +/* begin */ |
| 76 | + 1: #include "ruby.h" |
| 77 | + 2: |
| 78 | + 3: #include <ruby.h> |
| 79 | + 4: |
| 80 | + 5: /*top*/ |
| 81 | + 6: extern int t(void); |
| 82 | + 7: int main(int argc, char **argv) |
| 83 | + 8: { |
| 84 | + 9: if (argc > 1000000) { |
| 85 | +10: int (* volatile tp)(void)=(int (*)(void))&t; |
| 86 | +11: printf("%d", (*tp)()); |
| 87 | +12: } |
| 88 | +13: |
| 89 | +14: return !!argv[argc]; |
| 90 | +15: } |
| 91 | +16: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_enc_interned_str; return !p; } |
| 92 | +/* end */ |
| 93 | + |
| 94 | +"gcc -o conftest -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include/ruby-2.7.0/x86_64-linux -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include/ruby-2.7.0/ruby/backward -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include/ruby-2.7.0 -I. -I/opt/hostedtoolcache/Ruby/2.7.7/x64/include -DENABLE_PATH_CHECK=0 -g -O2 -fPIC conftest.c -L. -L/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -L. -L/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -L/opt/hostedtoolcache/Ruby/2.7.7/x64/lib -lruby -lm -lc" |
| 95 | +/usr/bin/ld: /tmp/cc6RUtBd.o: in function `t': |
| 96 | +/home/runner/work/puppet-lint-check_unsafe_interpolations/puppet-lint-check_unsafe_interpolations/vendor/bundle/ruby/2.7.0/gems/json-2.6.3/ext/json/ext/parser/conftest.c:17: undefined reference to `rb_enc_interned_str' |
| 97 | +collect2: error: ld returned 1 exit status |
| 98 | +checked program was: |
| 99 | +/* begin */ |
| 100 | + 1: #include "ruby.h" |
| 101 | + 2: |
| 102 | + 3: #include <ruby.h> |
| 103 | + 4: |
| 104 | + 5: /*top*/ |
| 105 | + 6: extern int t(void); |
| 106 | + 7: int main(int argc, char **argv) |
| 107 | + 8: { |
| 108 | + 9: if (argc > 1000000) { |
| 109 | +10: int (* volatile tp)(void)=(int (*)(void))&t; |
| 110 | +11: printf("%d", (*tp)()); |
| 111 | +12: } |
| 112 | +13: |
| 113 | +14: return !!argv[argc]; |
| 114 | +15: } |
| 115 | +16: extern void rb_enc_interned_str(); |
| 116 | +17: int t(void) { rb_enc_interned_str(); return 0; } |
| 117 | +/* end */ |
| 118 | + |
| 119 | +-------------------- |
| 120 | + |
0 commit comments