checking for --enable-debug-build option... -------------------- no

--------------------

pkg_config: checking for pkg-config for libffi... -------------------- not found

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --exists libffi
package configuration for libffi is not found
--------------------

have_header: checking for ffi.h... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed     -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread   -lm -lpthread  -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC   -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <ffi.h>
/* end */

--------------------

have_library: checking for -lffi... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed     -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -lffi  -lm -lpthread  -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: 
15: int t(void) { ; return 0; }
/* end */

--------------------

have_func: checking for ffi_closure_alloc() in ffi.h... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -lffi  -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -lffi  -lm -lpthread  -lc"
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <ffi.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     int (* volatile tp)(void)=(int (*)(void))&t;
11:     printf("%d", (*tp)());
12:   }
13: 
14:   return !!argv[argc];
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))ffi_closure_alloc; return !p; }
/* end */

--------------------

have_func: checking for ffi_prep_cif_var() in ffi.h... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -lffi  -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -lffi  -lm -lpthread  -lc"
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <ffi.h>
 4: 
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     int (* volatile tp)(void)=(int (*)(void))&t;
11:     printf("%d", (*tp)());
12:   }
13: 
14:   return !!argv[argc];
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))ffi_prep_cif_var; return !p; }
/* end */

--------------------

have_header: checking for sys/mman.h... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC   -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <sys/mman.h>
/* end */

--------------------

have_header: checking for link.h... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC   -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <link.h>
/* end */

--------------------

have_header: checking for dlfcn.h... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC   -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <dlfcn.h>
/* end */

--------------------

have_library: checking for -ldl... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -lffi  -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -ldl -lffi  -lm -lpthread  -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: 
15: int t(void) { ; return 0; }
/* end */

--------------------

have_func: checking for dlopen()... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -ldl -lffi  -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -ldl -lffi  -lm -lpthread  -lc"
conftest.c: In function 't':
conftest.c:14:57: error: 'dlopen' undeclared (first use in this function); did you mean 'popen'?
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))dlopen; return !p; }
      |                                                         ^~~~~~
      |                                                         popen
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 ((*)()))dlopen; return !p; }
/* end */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -ldl -lffi  -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -ldl -lffi  -lm -lpthread  -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 dlopen();
15: int t(void) { dlopen(); return 0; }
/* end */

--------------------

have_func: checking for dlclose()... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -ldl -lffi  -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -ldl -lffi  -lm -lpthread  -lc"
conftest.c: In function 't':
conftest.c:14:57: error: 'dlclose' undeclared (first use in this function); did you mean 'close'?
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))dlclose; return !p; }
      |                                                         ^~~~~~~
      |                                                         close
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 ((*)()))dlclose; return !p; }
/* end */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -ldl -lffi  -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -ldl -lffi  -lm -lpthread  -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 dlclose();
15: int t(void) { dlclose(); return 0; }
/* end */

--------------------

have_func: checking for dlsym()... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -ldl -lffi  -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -ldl -lffi  -lm -lpthread  -lc"
conftest.c: In function 't':
conftest.c:14:57: error: 'dlsym' undeclared (first use in this function)
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))dlsym; 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 ((*)()))dlsym; return !p; }
/* end */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -ldl -lffi  -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -ldl -lffi  -lm -lpthread  -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 dlsym();
15: int t(void) { dlsym(); return 0; }
/* end */

--------------------

have_func: checking for dlerror()... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -ldl -lffi  -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -ldl -lffi  -lm -lpthread  -lc"
conftest.c: In function 't':
conftest.c:14:57: error: 'dlerror' undeclared (first use in this function); did you mean 'perror'?
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))dlerror; return !p; }
      |                                                         ^~~~~~~
      |                                                         perror
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 ((*)()))dlerror; return !p; }
/* end */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -ldl -lffi  -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -ldl -lffi  -lm -lpthread  -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 dlerror();
15: int t(void) { dlerror(); return 0; }
/* end */

--------------------

have_func: checking for dlinfo()... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -ldl -lffi  -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -ldl -lffi  -lm -lpthread  -lc"
conftest.c: In function 't':
conftest.c:14:57: error: 'dlinfo' undeclared (first use in this function)
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))dlinfo; 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 ((*)()))dlinfo; return !p; }
/* end */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -ldl -lffi  -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -ldl -lffi  -lm -lpthread  -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 dlinfo();
15: int t(void) { dlinfo(); return 0; }
/* end */

--------------------

have_const: checking for RTLD_DI_LINKMAP in dlfcn.h... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC   -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <dlfcn.h>
4: 
5: /*top*/
6: typedef int conftest_type;
7: conftest_type conftestval = (int)RTLD_DI_LINKMAP;
/* end */

--------------------

have_const: checking for FFI_STDCALL in ffi.h... -------------------- no

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC   -c conftest.c"
conftest.c:7:34: error: 'FFI_STDCALL' undeclared here (not in a function)
    7 | conftest_type conftestval = (int)FFI_STDCALL;
      |                                  ^~~~~~~~~~~
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <ffi.h>
4: 
5: /*top*/
6: typedef int conftest_type;
7: conftest_type conftestval = (int)FFI_STDCALL;
/* end */

--------------------

check_signedness: checking signedness of size_t... -------------------- unsigned

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC   -c conftest.c"
conftest.c:7:5: error: size of array 'conftest_const' is negative
    7 | int conftest_const[((rbcv_typedef_)-1 < 0) ? 1 : -1];
      |     ^~~~~~~~~~~~~~
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <stddef.h>
4: typedef size_t rbcv_typedef_;
5: 
6: /*top*/
7: int conftest_const[((rbcv_typedef_)-1 < 0) ? 1 : -1];
/* end */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC   -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <stddef.h>
4: typedef size_t rbcv_typedef_;
5: 
6: /*top*/
7: int conftest_const[((rbcv_typedef_)-1 > 0) ? 1 : -1];
/* end */

--------------------

have_func: checking for rb_str_to_interned_str()... -------------------- yes

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "gcc -o conftest -I../../../../../.ext/include/armv8l-linux-eabihf -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/puppetlabs/puppet/include -D_FORTIFY_SOURCE=2   -fstack-protector-strong -fno-plt -O2 -Wno-error=implicit-function-declaration  -fPIC conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -Wl,-rpath=/opt/puppetlabs/puppet/lib,-z,relro,-z,now -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -Wl,-rpath,/opt/puppetlabs/puppet/lib -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed    -ldl -lffi  -Wl,-rpath,/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lruby-static -lz -lrt -lrt -ldl -lcrypt -lm -lpthread  -ldl -lffi  -lm -lpthread  -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: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_to_interned_str; return !p; }
/* end */

--------------------

extconf.h is:
/* begin */
 1: #ifndef EXTCONF_H
 2: #define EXTCONF_H
 3: #define HAVE_FFI_H 1
 4: #define HAVE_FFI_CLOSURE_ALLOC 1
 5: #define HAVE_FFI_PREP_CIF_VAR 1
 6: #define HAVE_SYS_MMAN_H 1
 7: #define HAVE_LINK_H 1
 8: #define HAVE_DLFCN_H 1
 9: #define HAVE_DLOPEN 1
10: #define HAVE_DLCLOSE 1
11: #define HAVE_DLSYM 1
12: #define HAVE_DLERROR 1
13: #define HAVE_DLINFO 1
14: #define HAVE_CONST_RTLD_DI_LINKMAP 1
15: #define SIGNEDNESS_OF_SIZE_T +1
16: #define HAVE_RB_STR_TO_INTERNED_STR 1
17: #endif
/* end */

