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

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

pkg_config: checking for pkg-config for libffi... -------------------- [" ", "-L/opt/local/lib", "-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 |
=> "-L/opt/local/lib -lffi\n"
DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib   -arch x86_64   -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread   -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 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib -L/opt/local/lib -lffi  -arch x86_64   -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread   -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 |
=> "\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: 
cflags: 
ldflags: -L/opt/local/lib
libs: -lffi

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

pkg_config: checking for pkg-config for libffi... -------------------- "3.4.8"

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.8\n"
--------------------

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

DYLD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "/usr/bin/clang -std=gnu11 -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common   -arch x86_64  -c conftest.c"
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 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common  conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib -L/opt/local/lib   -arch x86_64   -lffi -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread  -lffi  -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 "/usr/bin/clang -std=gnu11 -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common   -arch x86_64  -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 "/usr/bin/clang -std=gnu11 -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common   -arch x86_64  -c conftest.c"
conftest.c:3:10: fatal error: 'link.h' file not found
#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 "/usr/bin/clang -std=gnu11 -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common   -arch x86_64  -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 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common  conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib -L/opt/local/lib   -arch x86_64  -lffi  -lffi -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -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 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common  conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib -L/opt/local/lib   -arch x86_64  -ldl -lffi  -lffi -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
conftest.c:14:57: error: use of undeclared identifier 'dlopen'
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 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common  conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib -L/opt/local/lib   -arch x86_64  -ldl -lffi  -lffi -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -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 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common  conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib -L/opt/local/lib   -arch x86_64  -ldl -lffi  -lffi -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
conftest.c:14:57: error: use of undeclared identifier 'dlclose'
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 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common  conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib -L/opt/local/lib   -arch x86_64  -ldl -lffi  -lffi -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -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 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common  conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib -L/opt/local/lib   -arch x86_64  -ldl -lffi  -lffi -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
conftest.c:14:57: error: use of undeclared identifier 'dlsym'
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 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common  conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib -L/opt/local/lib   -arch x86_64  -ldl -lffi  -lffi -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -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 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common  conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib -L/opt/local/lib   -arch x86_64  -ldl -lffi  -lffi -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
conftest.c:14:57: error: use of undeclared identifier 'dlerror'
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 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common  conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib -L/opt/local/lib   -arch x86_64  -ldl -lffi  -lffi -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -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 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common  conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib -L/opt/local/lib   -arch x86_64  -ldl -lffi  -lffi -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
conftest.c:14:57: error: use of undeclared identifier 'dlinfo'
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 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common  conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib -L/opt/local/lib   -arch x86_64  -ldl -lffi  -lffi -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -lffi -lpthread  "
Undefined symbols for architecture x86_64:
  "_dlinfo", referenced from:
      _t in conftest-5208d7.o
ld: symbol(s) not found for architecture x86_64
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 "/usr/bin/clang -std=gnu11 -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common   -arch x86_64  -c conftest.c"
conftest.c:7:34: error: use of undeclared identifier 'RTLD_DI_LINKMAP'
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 "/usr/bin/clang -std=gnu11 -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common   -arch x86_64  -c conftest.c"
conftest.c:7:34: error: use of undeclared identifier 'FFI_STDCALL'
conftest_type conftestval = (int)FFI_STDCALL;
                                 ^
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 "/usr/bin/clang -std=gnu11 -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common   -arch x86_64  -c conftest.c"
conftest.c:7:20: error: 'conftest_const' declared as an array with a negative size
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 "/usr/bin/clang -std=gnu11 -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common   -arch x86_64  -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 "/usr/bin/clang -std=gnu11 -o conftest -I../../../../../.ext/include/x86_64-darwin13 -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle  -I/opt/local/include -isystem/opt/local/include/LegacySupport -I/opt/local/libexec/openssl3/include -isystem/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT   -pipe -I/opt/local/libexec/openssl3/include -Os -fno-common  conftest.c -L. -L../../../../.. -L/opt/local/lib -L. -L/opt/local/libexec/openssl3/lib -Wl,-headerpad_max_install_names -L/opt/local/lib -lMacportsLegacySupport -fstack-protector -L/opt/local/lib -L/opt/local/lib   -arch x86_64  -ldl -lffi  -lffi -lruby.4.0-static -framework Security -framework CoreFoundation -ldl -lobjc -lpthread  -ldl -lffi  -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 3004008
 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 */

