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

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

pkg_config: checking for pkg-config for libffi... -------------------- ["-I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi ", "", "-lffi"]

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --exists libffi
DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --libs libffi |
=> "-lffi\n"
DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -o conftest -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib  -arch arm64   -lruby.4.0-static -framework CoreFoundation -ldl -lobjc -lpthread   -lpthread  "
ld: warning: ignoring duplicate libraries: '-lpthread'
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -o conftest -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -lffi -arch arm64   -lruby.4.0-static -framework CoreFoundation -ldl -lobjc -lpthread   -lpthread  "
ld: warning: ignoring duplicate libraries: '-lpthread'
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --cflags-only-I libffi |
=> "-I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi\n"
DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --cflags-only-other libffi |
=> "\n"
DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --libs-only-l libffi |
=> "-lffi\n"
package configuration for libffi
incflags: -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi
cflags: 
ldflags: 
libs: -lffi

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

pkg_config: checking for pkg-config for libffi... -------------------- "3.4-rc1"

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --exists libffi
DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --modversion libffi |
=> "3.4-rc1\n"
--------------------

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

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  -arch arm64  -c conftest.c"
In file included from conftest.c:3:
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi/ffi.h:483:5: warning: 'FFI_GO_CLOSURES' is not defined, evaluates to 0 [-Wundef]
  483 | #if FFI_GO_CLOSURES
      |     ^
1 warning generated.
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <ffi.h>
/* end */

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

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

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -o conftest -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib   -arch arm64   -lffi -lruby.4.0-static -framework CoreFoundation -ldl -lobjc -lpthread  -lffi  -lffi -lpthread  "
ld: warning: ignoring duplicate libraries: '-lffi', '-lpthread'
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_header: checking for sys/mman.h... -------------------- yes

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  -arch arm64  -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <sys/mman.h>
/* end */

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

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

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  -arch arm64  -c conftest.c"
conftest.c:3:10: fatal error: 'link.h' file not found
    3 | #include <link.h>
      |          ^~~~~~~~
1 error generated.
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <link.h>
/* end */

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

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

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  -arch arm64  -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <dlfcn.h>
/* end */

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

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

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -o conftest -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib   -arch arm64  -lffi  -lffi -lruby.4.0-static -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
ld: warning: ignoring duplicate libraries: '-ldl', '-lffi', '-lpthread'
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

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -o conftest -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib   -arch arm64  -ldl -lffi  -lffi -lruby.4.0-static -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
conftest.c:14:57: error: use of undeclared identifier 'dlopen'
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))dlopen; 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 ((*)()))dlopen; return !p; }
/* end */

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -o conftest -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib   -arch arm64  -ldl -lffi  -lffi -lruby.4.0-static -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
ld: warning: ignoring duplicate libraries: '-ldl', '-lffi', '-lpthread'
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

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -o conftest -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib   -arch arm64  -ldl -lffi  -lffi -lruby.4.0-static -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
conftest.c:14:57: error: use of undeclared identifier 'dlclose'
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))dlclose; 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 ((*)()))dlclose; return !p; }
/* end */

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -o conftest -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib   -arch arm64  -ldl -lffi  -lffi -lruby.4.0-static -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
ld: warning: ignoring duplicate libraries: '-ldl', '-lffi', '-lpthread'
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

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -o conftest -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib   -arch arm64  -ldl -lffi  -lffi -lruby.4.0-static -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
conftest.c:14:57: error: use of undeclared identifier 'dlsym'
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))dlsym; 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 ((*)()))dlsym; return !p; }
/* end */

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -o conftest -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib   -arch arm64  -ldl -lffi  -lffi -lruby.4.0-static -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
ld: warning: ignoring duplicate libraries: '-ldl', '-lffi', '-lpthread'
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

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -o conftest -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib   -arch arm64  -ldl -lffi  -lffi -lruby.4.0-static -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
conftest.c:14:57: error: use of undeclared identifier 'dlerror'
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))dlerror; 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 ((*)()))dlerror; return !p; }
/* end */

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -o conftest -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib   -arch arm64  -ldl -lffi  -lffi -lruby.4.0-static -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
ld: warning: ignoring duplicate libraries: '-ldl', '-lffi', '-lpthread'
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()... -------------------- no

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -o conftest -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib   -arch arm64  -ldl -lffi  -lffi -lruby.4.0-static -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
conftest.c:14:57: error: use of undeclared identifier 'dlinfo'
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))dlinfo; 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 ((*)()))dlinfo; return !p; }
/* end */

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -o conftest -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib   -arch arm64  -ldl -lffi  -lffi -lruby.4.0-static -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
ld: warning: ignoring duplicate libraries: '-ldl', '-lffi', '-lpthread'
Undefined symbols for architecture arm64:
  "_dlinfo", referenced from:
      _t in conftest-9fba5c.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
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... -------------------- no

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  -arch arm64  -c conftest.c"
conftest.c:7:34: error: use of undeclared identifier 'RTLD_DI_LINKMAP'
    7 | conftest_type conftestval = (int)RTLD_DI_LINKMAP;
      |                                  ^~~~~~~~~~~~~~~
1 error generated.
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

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  -arch arm64  -c conftest.c"
In file included from conftest.c:3:
/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi/ffi.h:483:5: warning: 'FFI_GO_CLOSURES' is not defined, evaluates to 0 [-Wundef]
  483 | #if FFI_GO_CLOSURES
      |     ^
conftest.c:7:34: error: use of undeclared identifier 'FFI_STDCALL'
    7 | conftest_type conftestval = (int)FFI_STDCALL;
      |                                  ^~~~~~~~~~~
1 warning and 1 error generated.
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

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  -arch arm64  -c conftest.c"
conftest.c:7:20: error: 'conftest_const' declared as an array with a negative size
    7 | int conftest_const[((rbcv_typedef_)-1 < 0) ? 1 : -1];
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
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 */

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  -arch arm64  -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

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "clang -o conftest -I../../../../../.ext/include/arm64-darwin25 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/Library/Developer/CommandLineTools/SDKs/MacOSX26.sdk/usr/include/ffi -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -target arm64-apple-darwin22 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -fno-fast-math -ggdb3 -Wall -Wextra -Wextra-tokens -Wdeprecated-declarations -Wdivision-by-zero -Wdiv-by-zero -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wshorten-64-to-32 -Wwrite-strings -Wold-style-definition -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wunused-variable -Wmisleading-indentation -Wundef -fno-common -pipe  conftest.c -L. -L../../../../.. -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib   -arch arm64  -ldl -lffi  -lffi -lruby.4.0-static -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
ld: warning: ignoring duplicate libraries: '-ldl', '-lffi', '-lpthread'
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 RUBY_LIBFFI_MODVERSION 3004000
 5: #define USE_FFI_CLOSURE_ALLOC 1
 6: #define HAVE_FFI_PREP_CIF_VAR 1
 7: #define HAVE_SYS_MMAN_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 SIGNEDNESS_OF_SIZE_T +1
14: #define HAVE_RB_STR_TO_INTERNED_STR 1
15: #endif
/* end */

