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

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

pkg_config: checking for pkg-config for libffi... -------------------- ["-I/usr/local/include ", "-L/usr/local/lib", "-lffi"]

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --exists libffi
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} pkg-config --exists libffi
LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --libs libffi |
=> "-L/usr/local/lib -lffi\n"
LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -o conftest -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC conftest.c -L. -L../../../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -Wl,--no-as-needed -lpthread -lc++abi     -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby40-static -lz -lgmp -lm -pthread   -lm -pthread  -lc"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -o\ conftest\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ conftest.c\ -L.\ -L../../../../..\ -L.\ -L/usr/local/lib\ -fstack-protector-strong\ -Wl,-E\ -Wl,--no-as-needed\ -lpthread\ -lc++abi\ \ \ \ \ -Wl,-rpath,/usr/local/lib\ -L/usr/local/lib\ -lruby40-static\ -lz\ -lgmp\ -lm\ -pthread\ \ \ -lm\ -pthread\ \ -lc
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -o conftest -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC conftest.c -L. -L../../../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -Wl,--no-as-needed -lpthread -lc++abi -L/usr/local/lib -lffi    -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby40-static -lz -lgmp -lm -pthread   -lm -pthread  -lc"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -o\ conftest\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ conftest.c\ -L.\ -L../../../../..\ -L.\ -L/usr/local/lib\ -fstack-protector-strong\ -Wl,-E\ -Wl,--no-as-needed\ -lpthread\ -lc++abi\ -L/usr/local/lib\ -lffi\ \ \ \ -Wl,-rpath,/usr/local/lib\ -L/usr/local/lib\ -lruby40-static\ -lz\ -lgmp\ -lm\ -pthread\ \ \ -lm\ -pthread\ \ -lc
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return !!argv[argc];
6: }
/* end */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --cflags-only-I libffi |
=> "-I/usr/local/include\n"
LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --cflags-only-other libffi |
=> "\n"
LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --libs-only-l libffi |
=> "-lffi\n"
package configuration for libffi
incflags: -I/usr/local/include
cflags: 
ldflags: -L/usr/local/lib
libs: -lffi

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

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

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --exists libffi
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} pkg-config --exists libffi
LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 pkg-config --modversion libffi |
=> "3.5.2\n"
--------------------

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

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC    -c conftest.c"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ \ \ -c\ conftest.c
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <ffi.h>
/* end */

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

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

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -o conftest -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC  conftest.c -L. -L../../../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -Wl,--no-as-needed -lpthread -lc++abi -L/usr/local/lib     -lffi -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby40-static -lz -lgmp -lm -pthread  -lffi  -lffi -lm -pthread  -lc"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -o\ conftest\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ conftest.c\ -L.\ -L../../../../..\ -L.\ -L/usr/local/lib\ -fstack-protector-strong\ -Wl,-E\ -Wl,--no-as-needed\ -lpthread\ -lc++abi\ -L/usr/local/lib\ \ \ \ \ -lffi\ -Wl,-rpath,/usr/local/lib\ -L/usr/local/lib\ -lruby40-static\ -lz\ -lgmp\ -lm\ -pthread\ \ -lffi\ \ -lffi\ -lm\ -pthread\ \ -lc
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: 
15: int t(void) { ; return 0; }
/* end */

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

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

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC    -c conftest.c"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ \ \ -c\ conftest.c
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <sys/mman.h>
/* end */

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

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

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC    -c conftest.c"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ \ \ -c\ conftest.c
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <link.h>
/* end */

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

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

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC    -c conftest.c"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ \ \ -c\ conftest.c
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <dlfcn.h>
/* end */

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

have_library: checking for -ldl... -------------------- no

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -o conftest -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC  conftest.c -L. -L../../../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -Wl,--no-as-needed -lpthread -lc++abi -L/usr/local/lib    -lffi  -lffi -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby40-static -lz -lgmp -lm -pthread  -ldl -lffi  -lffi -lm -pthread  -lc"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -o\ conftest\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ conftest.c\ -L.\ -L../../../../..\ -L.\ -L/usr/local/lib\ -fstack-protector-strong\ -Wl,-E\ -Wl,--no-as-needed\ -lpthread\ -lc++abi\ -L/usr/local/lib\ \ \ \ -lffi\ \ -lffi\ -Wl,-rpath,/usr/local/lib\ -L/usr/local/lib\ -lruby40-static\ -lz\ -lgmp\ -lm\ -pthread\ \ -ldl\ -lffi\ \ -lffi\ -lm\ -pthread\ \ -lc
ld.lld: error: unable to find library -ldl
cc: 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: 
15: int t(void) { ; return 0; }
/* end */

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

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

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -o conftest -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC  conftest.c -L. -L../../../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -Wl,--no-as-needed -lpthread -lc++abi -L/usr/local/lib    -lffi  -lffi -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby40-static -lz -lgmp -lm -pthread  -lffi  -lffi -lm -pthread  -lc"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -o\ conftest\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ conftest.c\ -L.\ -L../../../../..\ -L.\ -L/usr/local/lib\ -fstack-protector-strong\ -Wl,-E\ -Wl,--no-as-needed\ -lpthread\ -lc++abi\ -L/usr/local/lib\ \ \ \ -lffi\ \ -lffi\ -Wl,-rpath,/usr/local/lib\ -L/usr/local/lib\ -lruby40-static\ -lz\ -lgmp\ -lm\ -pthread\ \ -lffi\ \ -lffi\ -lm\ -pthread\ \ -lc
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 */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -o conftest -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC  conftest.c -L. -L../../../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -Wl,--no-as-needed -lpthread -lc++abi -L/usr/local/lib    -lffi  -lffi -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby40-static -lz -lgmp -lm -pthread  -lffi  -lffi -lm -pthread  -lc"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -o\ conftest\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ conftest.c\ -L.\ -L../../../../..\ -L.\ -L/usr/local/lib\ -fstack-protector-strong\ -Wl,-E\ -Wl,--no-as-needed\ -lpthread\ -lc++abi\ -L/usr/local/lib\ \ \ \ -lffi\ \ -lffi\ -Wl,-rpath,/usr/local/lib\ -L/usr/local/lib\ -lruby40-static\ -lz\ -lgmp\ -lm\ -pthread\ \ -lffi\ \ -lffi\ -lm\ -pthread\ \ -lc
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void dlopen();
15: int t(void) { dlopen(); return 0; }
/* end */

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

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

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -o conftest -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC  conftest.c -L. -L../../../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -Wl,--no-as-needed -lpthread -lc++abi -L/usr/local/lib    -lffi  -lffi -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby40-static -lz -lgmp -lm -pthread  -lffi  -lffi -lm -pthread  -lc"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -o\ conftest\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ conftest.c\ -L.\ -L../../../../..\ -L.\ -L/usr/local/lib\ -fstack-protector-strong\ -Wl,-E\ -Wl,--no-as-needed\ -lpthread\ -lc++abi\ -L/usr/local/lib\ \ \ \ -lffi\ \ -lffi\ -Wl,-rpath,/usr/local/lib\ -L/usr/local/lib\ -lruby40-static\ -lz\ -lgmp\ -lm\ -pthread\ \ -lffi\ \ -lffi\ -lm\ -pthread\ \ -lc
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 */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -o conftest -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC  conftest.c -L. -L../../../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -Wl,--no-as-needed -lpthread -lc++abi -L/usr/local/lib    -lffi  -lffi -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby40-static -lz -lgmp -lm -pthread  -lffi  -lffi -lm -pthread  -lc"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -o\ conftest\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ conftest.c\ -L.\ -L../../../../..\ -L.\ -L/usr/local/lib\ -fstack-protector-strong\ -Wl,-E\ -Wl,--no-as-needed\ -lpthread\ -lc++abi\ -L/usr/local/lib\ \ \ \ -lffi\ \ -lffi\ -Wl,-rpath,/usr/local/lib\ -L/usr/local/lib\ -lruby40-static\ -lz\ -lgmp\ -lm\ -pthread\ \ -lffi\ \ -lffi\ -lm\ -pthread\ \ -lc
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void dlclose();
15: int t(void) { dlclose(); return 0; }
/* end */

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

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

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -o conftest -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC  conftest.c -L. -L../../../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -Wl,--no-as-needed -lpthread -lc++abi -L/usr/local/lib    -lffi  -lffi -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby40-static -lz -lgmp -lm -pthread  -lffi  -lffi -lm -pthread  -lc"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -o\ conftest\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ conftest.c\ -L.\ -L../../../../..\ -L.\ -L/usr/local/lib\ -fstack-protector-strong\ -Wl,-E\ -Wl,--no-as-needed\ -lpthread\ -lc++abi\ -L/usr/local/lib\ \ \ \ -lffi\ \ -lffi\ -Wl,-rpath,/usr/local/lib\ -L/usr/local/lib\ -lruby40-static\ -lz\ -lgmp\ -lm\ -pthread\ \ -lffi\ \ -lffi\ -lm\ -pthread\ \ -lc
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 */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -o conftest -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC  conftest.c -L. -L../../../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -Wl,--no-as-needed -lpthread -lc++abi -L/usr/local/lib    -lffi  -lffi -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby40-static -lz -lgmp -lm -pthread  -lffi  -lffi -lm -pthread  -lc"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -o\ conftest\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ conftest.c\ -L.\ -L../../../../..\ -L.\ -L/usr/local/lib\ -fstack-protector-strong\ -Wl,-E\ -Wl,--no-as-needed\ -lpthread\ -lc++abi\ -L/usr/local/lib\ \ \ \ -lffi\ \ -lffi\ -Wl,-rpath,/usr/local/lib\ -L/usr/local/lib\ -lruby40-static\ -lz\ -lgmp\ -lm\ -pthread\ \ -lffi\ \ -lffi\ -lm\ -pthread\ \ -lc
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void dlsym();
15: int t(void) { dlsym(); return 0; }
/* end */

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

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

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -o conftest -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC  conftest.c -L. -L../../../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -Wl,--no-as-needed -lpthread -lc++abi -L/usr/local/lib    -lffi  -lffi -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby40-static -lz -lgmp -lm -pthread  -lffi  -lffi -lm -pthread  -lc"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -o\ conftest\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ conftest.c\ -L.\ -L../../../../..\ -L.\ -L/usr/local/lib\ -fstack-protector-strong\ -Wl,-E\ -Wl,--no-as-needed\ -lpthread\ -lc++abi\ -L/usr/local/lib\ \ \ \ -lffi\ \ -lffi\ -Wl,-rpath,/usr/local/lib\ -L/usr/local/lib\ -lruby40-static\ -lz\ -lgmp\ -lm\ -pthread\ \ -lffi\ \ -lffi\ -lm\ -pthread\ \ -lc
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 */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -o conftest -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC  conftest.c -L. -L../../../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -Wl,--no-as-needed -lpthread -lc++abi -L/usr/local/lib    -lffi  -lffi -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby40-static -lz -lgmp -lm -pthread  -lffi  -lffi -lm -pthread  -lc"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -o\ conftest\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ conftest.c\ -L.\ -L../../../../..\ -L.\ -L/usr/local/lib\ -fstack-protector-strong\ -Wl,-E\ -Wl,--no-as-needed\ -lpthread\ -lc++abi\ -L/usr/local/lib\ \ \ \ -lffi\ \ -lffi\ -Wl,-rpath,/usr/local/lib\ -L/usr/local/lib\ -lruby40-static\ -lz\ -lgmp\ -lm\ -pthread\ \ -lffi\ \ -lffi\ -lm\ -pthread\ \ -lc
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: extern void dlerror();
15: int t(void) { dlerror(); return 0; }
/* end */

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

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

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -o conftest -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC  conftest.c -L. -L../../../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -Wl,--no-as-needed -lpthread -lc++abi -L/usr/local/lib    -lffi  -lffi -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby40-static -lz -lgmp -lm -pthread  -lffi  -lffi -lm -pthread  -lc"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -o\ conftest\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ conftest.c\ -L.\ -L../../../../..\ -L.\ -L/usr/local/lib\ -fstack-protector-strong\ -Wl,-E\ -Wl,--no-as-needed\ -lpthread\ -lc++abi\ -L/usr/local/lib\ \ \ \ -lffi\ \ -lffi\ -Wl,-rpath,/usr/local/lib\ -L/usr/local/lib\ -lruby40-static\ -lz\ -lgmp\ -lm\ -pthread\ \ -lffi\ \ -lffi\ -lm\ -pthread\ \ -lc
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 */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -o conftest -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC  conftest.c -L. -L../../../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -Wl,--no-as-needed -lpthread -lc++abi -L/usr/local/lib    -lffi  -lffi -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby40-static -lz -lgmp -lm -pthread  -lffi  -lffi -lm -pthread  -lc"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -o\ conftest\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ conftest.c\ -L.\ -L../../../../..\ -L.\ -L/usr/local/lib\ -fstack-protector-strong\ -Wl,-E\ -Wl,--no-as-needed\ -lpthread\ -lc++abi\ -L/usr/local/lib\ \ \ \ -lffi\ \ -lffi\ -Wl,-rpath,/usr/local/lib\ -L/usr/local/lib\ -lruby40-static\ -lz\ -lgmp\ -lm\ -pthread\ \ -lffi\ \ -lffi\ -lm\ -pthread\ \ -lc
ld.lld: error: undefined symbol: dlinfo
>>> referenced by conftest.c:15
>>>               /tmp/conftest-e90d74.o:(t)
cc: 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

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC    -c conftest.c"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ \ \ -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

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC    -c conftest.c"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ \ \ -c\ conftest.c
conftest.c:7:34: error: use of undeclared identifier 'FFI_STDCALL'
    7 | 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

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC    -c conftest.c"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ \ \ -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 */

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC    -c conftest.c"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ \ \ -c\ conftest.c
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <stddef.h>
4: typedef size_t rbcv_typedef_;
5: 
6: /*top*/
7: int conftest_const[((rbcv_typedef_)-1 > 0) ? 1 : -1];
/* end */

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

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

LD_LIBRARY_PATH=.:../../../../.. LSAN_OPTIONS=detect_leaks=0 "cc -o conftest -I../../../../../.ext/include/x86_64-openbsd -I../../../../.././include -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle -I/usr/local/include -DOPENSSL_NO_STATIC_ENGINE -I/usr/local/include   -O2 -pipe -g -fstack-protector-strong -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fdeclspec  -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 -fPIC  conftest.c -L. -L../../../../.. -L. -L/usr/local/lib -fstack-protector-strong -Wl,-E -Wl,--no-as-needed -lpthread -lc++abi -L/usr/local/lib    -lffi  -lffi -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby40-static -lz -lgmp -lm -pthread  -lffi  -lffi -lm -pthread  -lc"
\{\"LD_LIBRARY_PATH\"\ \=\>\ \".:../../../../..\",\ \"LSAN_OPTIONS\"\ \=\>\ \"detect_leaks\=0\"\} cc\ -o\ conftest\ -I../../../../../.ext/include/x86_64-openbsd\ -I../../../../.././include\ -I../../../../.././.bundle/gems/fiddle-1.1.8/ext/fiddle\ -I/usr/local/include\ -DOPENSSL_NO_STATIC_ENGINE\ -I/usr/local/include\ \ \ -O2\ -pipe\ -g\ -fstack-protector-strong\ -U_FORTIFY_SOURCE\ -D_FORTIFY_SOURCE\=2\ -fdeclspec\ \ -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\ -fPIC\ \ conftest.c\ -L.\ -L../../../../..\ -L.\ -L/usr/local/lib\ -fstack-protector-strong\ -Wl,-E\ -Wl,--no-as-needed\ -lpthread\ -lc++abi\ -L/usr/local/lib\ \ \ \ -lffi\ \ -lffi\ -Wl,-rpath,/usr/local/lib\ -L/usr/local/lib\ -lruby40-static\ -lz\ -lgmp\ -lm\ -pthread\ \ -lffi\ \ -lffi\ -lm\ -pthread\ \ -lc
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: /*top*/
 4: extern int t(void);
 5: int main(int argc, char **argv)
 6: {
 7:   if (argc > 1000000) {
 8:     int (* volatile tp)(void)=(int (*)(void))&t;
 9:     printf("%d", (*tp)());
10:   }
11: 
12:   return !!argv[argc];
13: }
14: int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_str_to_interned_str; return !p; }
/* end */

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

extconf.h is:
/* begin */
 1: #ifndef EXTCONF_H
 2: #define EXTCONF_H
 3: #define HAVE_FFI_H 1
 4: #define RUBY_LIBFFI_MODVERSION 3005002
 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_LINK_H 1
 9: #define HAVE_DLFCN_H 1
10: #define HAVE_DLOPEN 1
11: #define HAVE_DLCLOSE 1
12: #define HAVE_DLSYM 1
13: #define HAVE_DLERROR 1
14: #define SIGNEDNESS_OF_SIZE_T +1
15: #define HAVE_RB_STR_TO_INTERNED_STR 1
16: #endif
/* end */

