pkg_config: checking for pkg-config for libffi... -------------------- ["-I/opt/puppetlabs/puppet/include ", "-L/opt/puppetlabs/puppet/lib", "-lffi"]

DYLD_LIBRARY_PATH=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 pkg-config --exists libffi
DYLD_LIBRARY_PATH=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 pkg-config --libs libffi |
=> "-L/opt/puppetlabs/puppet/lib -lffi\n"
DYLD_LIBRARY_PATH=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 "clang -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -o conftest -I/opt/puppetlabs/puppet/include/ruby-4.0.0/arm64-darwin25 -I/opt/puppetlabs/puppet/include/ruby-4.0.0/ruby/backward -I/opt/puppetlabs/puppet/include/ruby-4.0.0 -I. -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 -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/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib  -arch arm64   -lruby.4.0  -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=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 "clang -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -o conftest -I/opt/puppetlabs/puppet/include/ruby-4.0.0/arm64-darwin25 -I/opt/puppetlabs/puppet/include/ruby-4.0.0/ruby/backward -I/opt/puppetlabs/puppet/include/ruby-4.0.0 -I. -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 -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/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -lffi -arch arm64   -lruby.4.0  -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=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 pkg-config --cflags-only-I libffi |
=> "-I/opt/puppetlabs/puppet/include\n"
DYLD_LIBRARY_PATH=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 pkg-config --cflags-only-other libffi |
=> "\n"
DYLD_LIBRARY_PATH=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 pkg-config --libs-only-l libffi |
=> "-lffi\n"
package configuration for libffi
incflags: -I/opt/puppetlabs/puppet/include
cflags: 
ldflags: -L/opt/puppetlabs/puppet/lib
libs: -lffi

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

have_library: checking for ffi_prep_closure_loc() in -lffi... -------------------- yes

DYLD_LIBRARY_PATH=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 "clang -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -o conftest -I/opt/puppetlabs/puppet/include/ruby-4.0.0/arm64-darwin25 -I/opt/puppetlabs/puppet/include/ruby-4.0.0/ruby/backward -I/opt/puppetlabs/puppet/include/ruby-4.0.0 -I. -I/opt/puppetlabs/puppet/include -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 -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/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib  -arch arm64   -lffi -lruby.4.0 -lffi  -lffi -lpthread  "
ld: warning: ignoring duplicate libraries: '-lffi'
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_closure_loc; return !p; }
/* end */

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

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

DYLD_LIBRARY_PATH=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 "clang -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -o conftest -I/opt/puppetlabs/puppet/include/ruby-4.0.0/arm64-darwin25 -I/opt/puppetlabs/puppet/include/ruby-4.0.0/ruby/backward -I/opt/puppetlabs/puppet/include/ruby-4.0.0 -I. -I/opt/puppetlabs/puppet/include -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 -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/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib  -arch arm64  -lffi  -lffi -lruby.4.0 -lffi  -lffi -lpthread  "
conftest.c:14:57: error: use of undeclared identifier 'ffi_prep_cif_var'
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))ffi_prep_cif_var; 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 ((*)()))ffi_prep_cif_var; return !p; }
/* end */

DYLD_LIBRARY_PATH=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 "clang -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -o conftest -I/opt/puppetlabs/puppet/include/ruby-4.0.0/arm64-darwin25 -I/opt/puppetlabs/puppet/include/ruby-4.0.0/ruby/backward -I/opt/puppetlabs/puppet/include/ruby-4.0.0 -I. -I/opt/puppetlabs/puppet/include -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 -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/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib  -arch arm64  -lffi  -lffi -lruby.4.0 -lffi  -lffi -lpthread  "
ld: warning: ignoring duplicate libraries: '-lffi'
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 ffi_prep_cif_var();
15: int t(void) { ffi_prep_cif_var(); return 0; }
/* end */

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

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

DYLD_LIBRARY_PATH=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 "clang -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -o conftest -I/opt/puppetlabs/puppet/include/ruby-4.0.0/arm64-darwin25 -I/opt/puppetlabs/puppet/include/ruby-4.0.0/ruby/backward -I/opt/puppetlabs/puppet/include/ruby-4.0.0 -I. -I/opt/puppetlabs/puppet/include -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 -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/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib  -arch arm64  -lffi  -lffi -lruby.4.0 -lffi  -lffi -lpthread  "
conftest.c:14:57: error: use of undeclared identifier 'ffi_raw_call'
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))ffi_raw_call; 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 ((*)()))ffi_raw_call; return !p; }
/* end */

DYLD_LIBRARY_PATH=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 "clang -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -o conftest -I/opt/puppetlabs/puppet/include/ruby-4.0.0/arm64-darwin25 -I/opt/puppetlabs/puppet/include/ruby-4.0.0/ruby/backward -I/opt/puppetlabs/puppet/include/ruby-4.0.0 -I. -I/opt/puppetlabs/puppet/include -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 -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/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib  -arch arm64  -lffi  -lffi -lruby.4.0 -lffi  -lffi -lpthread  "
ld: warning: ignoring duplicate libraries: '-lffi'
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 ffi_raw_call();
15: int t(void) { ffi_raw_call(); return 0; }
/* end */

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

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

DYLD_LIBRARY_PATH=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 "clang -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -o conftest -I/opt/puppetlabs/puppet/include/ruby-4.0.0/arm64-darwin25 -I/opt/puppetlabs/puppet/include/ruby-4.0.0/ruby/backward -I/opt/puppetlabs/puppet/include/ruby-4.0.0 -I. -I/opt/puppetlabs/puppet/include -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 -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/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib  -arch arm64  -lffi  -lffi -lruby.4.0 -lffi  -lffi -lpthread  "
conftest.c:14:57: error: use of undeclared identifier 'ffi_prep_raw_closure'
   14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))ffi_prep_raw_closure; 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 ((*)()))ffi_prep_raw_closure; return !p; }
/* end */

DYLD_LIBRARY_PATH=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 "clang -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -o conftest -I/opt/puppetlabs/puppet/include/ruby-4.0.0/arm64-darwin25 -I/opt/puppetlabs/puppet/include/ruby-4.0.0/ruby/backward -I/opt/puppetlabs/puppet/include/ruby-4.0.0 -I. -I/opt/puppetlabs/puppet/include -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 -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/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib  -arch arm64  -lffi  -lffi -lruby.4.0 -lffi  -lffi -lpthread  "
ld: warning: ignoring duplicate libraries: '-lffi'
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 ffi_prep_raw_closure();
15: int t(void) { ffi_prep_raw_closure(); return 0; }
/* end */

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

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

DYLD_LIBRARY_PATH=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 "clang -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -o conftest -I/opt/puppetlabs/puppet/include/ruby-4.0.0/arm64-darwin25 -I/opt/puppetlabs/puppet/include/ruby-4.0.0/ruby/backward -I/opt/puppetlabs/puppet/include/ruby-4.0.0 -I. -I/opt/puppetlabs/puppet/include -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 -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/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib  -arch arm64  -lffi  -lffi -lruby.4.0 -lffi  -lffi -lpthread  "
ld: warning: ignoring duplicate libraries: '-lffi'
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_gc_mark_movable; return !p; }
/* end */

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

append_ldflags: checking for whether -pthread is accepted as LDFLAGS... -------------------- yes

DYLD_LIBRARY_PATH=.:/opt/puppetlabs/puppet/lib LSAN_OPTIONS=detect_leaks=0 "clang -target arm64-apple-darwin22 -arch arm64 -mmacos-version-min=13.0 -I/opt/puppetlabs/puppet/include -std=gnu17 -o conftest -I/opt/puppetlabs/puppet/include/ruby-4.0.0/arm64-darwin25 -I/opt/puppetlabs/puppet/include/ruby-4.0.0/ruby/backward -I/opt/puppetlabs/puppet/include/ruby-4.0.0 -I. -I/opt/puppetlabs/puppet/include -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 -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/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -L. -L/opt/puppetlabs/puppet/lib -fstack-protector-strong -L/opt/puppetlabs/puppet/lib -L/opt/puppetlabs/puppet/lib -pthread -arch arm64  -lffi  -lffi -lruby.4.0  -lpthread  "
ld: warning: ignoring duplicate libraries: '-lffi'
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

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

extconf.h is:
/* begin */
1: #ifndef EXTCONF_H
2: #define EXTCONF_H
3: #define HAVE_FFI_PREP_CIF_VAR 1
4: #define HAVE_FFI_RAW_CALL 1
5: #define HAVE_FFI_PREP_RAW_CLOSURE 1
6: #define HAVE_RAW_API 1
7: #define HAVE_RB_GC_MARK_MOVABLE 1
8: #define USE_FFI_ALLOC 1
9: #endif
/* end */

