HEX
Server: Apache
System: Windows NT MAGNETO-ARM 10.0 build 22000 (Windows 10) AMD64
User: Michel (0)
PHP: 7.4.7
Disabled: NONE
Upload Files
File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/extensions/x64-mingw32/2.7.0/puma-6.1.0/mkmf.log
block in append_cflags: checking for whether -fstack-protector-strong -D_FORTIFY_SOURCE=2 is accepted as CFLAGS... -------------------- yes

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong  -m64   -lx64-msvcrt-ruby270  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char **argv)
6: {
7:   return !!argv[argc];
8: }
/* end */

"gcc -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -m64 -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char **argv)
6: {
7:   return !!argv[argc];
8: }
/* end */

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

block in append_ldflags: checking for whether -fstack-protector-strong -l:libssp.a is accepted as LDFLAGS... -------------------- yes

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2 conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong  -m64   -lx64-msvcrt-ruby270 -fstack-protector-strong -l:libssp.a -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char **argv)
6: {
7:   return !!argv[argc];
8: }
/* end */

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

have_library: checking for -lssp... -------------------- yes

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2 conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a  -m64   -lx64-msvcrt-ruby270 -lssp  -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: 
 6: /*top*/
 7: extern int t(void);
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     int (* volatile tp)(void)=(int (*)(void))&t;
12:     printf("%d", (*tp)());
13:   }
14: 
15:   return !!argv[argc];
16: }
17: 
18: int t(void) { ; return 0; }
/* end */

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

"pkg-config --exists openssl"
| pkg-config --libs openssl
=> "-LC:/Ruby27-x64/msys64/mingw64/bin/../lib -lssl -lcrypto \n"
"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2 conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a  -m64  -lssp  -lx64-msvcrt-ruby270 -LC:/Ruby27-x64/msys64/mingw64/bin/../lib -lssl -lcrypto -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: int main(int argc, char **argv)
6: {
7:   return !!argv[argc];
8: }
/* end */

| pkg-config --cflags-only-I openssl
=> "-IC:/Ruby27-x64/msys64/mingw64/bin/../include \n"
| pkg-config --cflags-only-other openssl
=> "\n"
| pkg-config --libs-only-l openssl
=> "-lssl -lcrypto \n"
package configuration for openssl
incflags: -IC:/Ruby27-x64/msys64/mingw64/bin/../include
cflags: 
ldflags: -LC:/Ruby27-x64/msys64/mingw64/bin/../lib
libs: -lssl -lcrypto

have_library: checking for BIO_read() in -llibcrypto... -------------------- yes

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -IC:/Ruby27-x64/msys64/mingw64/bin/../include -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2  conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a -LC:/Ruby27-x64/msys64/mingw64/bin/../lib  -m64  -lssp  -lssl -lcrypto -lx64-msvcrt-ruby270 -llibcrypto -lssp  -lssl -lcrypto -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
conftest.c: In function 't':
conftest.c:17:57: error: 'BIO_read' undeclared (first use in this function); did you mean '_read'?
   17 | int t(void) { void ((*volatile p)()); p = (void ((*)()))BIO_read; return !p; }
      |                                                         ^~~~~~~~
      |                                                         _read
conftest.c:17:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: 
 6: /*top*/
 7: extern int t(void);
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     int (* volatile tp)(void)=(int (*)(void))&t;
12:     printf("%d", (*tp)());
13:   }
14: 
15:   return !!argv[argc];
16: }
17: int t(void) { void ((*volatile p)()); p = (void ((*)()))BIO_read; return !p; }
/* end */

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -IC:/Ruby27-x64/msys64/mingw64/bin/../include -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2  conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a -LC:/Ruby27-x64/msys64/mingw64/bin/../lib  -m64  -lssp  -lssl -lcrypto -lx64-msvcrt-ruby270 -llibcrypto -lssp  -lssl -lcrypto -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: 
 6: /*top*/
 7: extern int t(void);
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     int (* volatile tp)(void)=(int (*)(void))&t;
12:     printf("%d", (*tp)());
13:   }
14: 
15:   return !!argv[argc];
16: }
17: extern void BIO_read();
18: int t(void) { BIO_read(); return 0; }
/* end */

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

have_library: checking for SSL_CTX_new() in -llibssl... -------------------- yes

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -IC:/Ruby27-x64/msys64/mingw64/bin/../include -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2  conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a -LC:/Ruby27-x64/msys64/mingw64/bin/../lib  -m64  -llibcrypto -lssp  -lssl -lcrypto -lx64-msvcrt-ruby270 -llibssl -llibcrypto -lssp  -lssl -lcrypto -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
conftest.c: In function 't':
conftest.c:17:57: error: 'SSL_CTX_new' undeclared (first use in this function)
   17 | int t(void) { void ((*volatile p)()); p = (void ((*)()))SSL_CTX_new; return !p; }
      |                                                         ^~~~~~~~~~~
conftest.c:17:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: 
 6: /*top*/
 7: extern int t(void);
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     int (* volatile tp)(void)=(int (*)(void))&t;
12:     printf("%d", (*tp)());
13:   }
14: 
15:   return !!argv[argc];
16: }
17: int t(void) { void ((*volatile p)()); p = (void ((*)()))SSL_CTX_new; return !p; }
/* end */

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -IC:/Ruby27-x64/msys64/mingw64/bin/../include -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2  conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a -LC:/Ruby27-x64/msys64/mingw64/bin/../lib  -m64  -llibcrypto -lssp  -lssl -lcrypto -lx64-msvcrt-ruby270 -llibssl -llibcrypto -lssp  -lssl -lcrypto -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: 
 6: /*top*/
 7: extern int t(void);
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     int (* volatile tp)(void)=(int (*)(void))&t;
12:     printf("%d", (*tp)());
13:   }
14: 
15:   return !!argv[argc];
16: }
17: extern void SSL_CTX_new();
18: int t(void) { SSL_CTX_new(); return 0; }
/* end */

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

have_header: checking for openssl/bio.h... -------------------- yes

"gcc -E -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -IC:/Ruby27-x64/msys64/mingw64/bin/../include -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2   conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <winsock2.h>
4: #include <windows.h>
5: #include <openssl/bio.h>
/* end */

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

have_func: checking for DTLS_method() in openssl/ssl.h... -------------------- yes

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -IC:/Ruby27-x64/msys64/mingw64/bin/../include -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2  conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a -LC:/Ruby27-x64/msys64/mingw64/bin/../lib  -m64  -llibssl -llibcrypto -lssp  -lssl -lcrypto -lx64-msvcrt-ruby270 -llibssl -llibcrypto -lssp  -lssl -lcrypto -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: #include <openssl/ssl.h>
 6: 
 7: /*top*/
 8: extern int t(void);
 9: int main(int argc, char **argv)
10: {
11:   if (argc > 1000000) {
12:     int (* volatile tp)(void)=(int (*)(void))&t;
13:     printf("%d", (*tp)());
14:   }
15: 
16:   return !!argv[argc];
17: }
18: int t(void) { void ((*volatile p)()); p = (void ((*)()))DTLS_method; return !p; }
/* end */

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

have_func: checking for SSL_CTX_set_session_cache_mode(NULL, 0) in openssl/ssl.h... -------------------- yes

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -IC:/Ruby27-x64/msys64/mingw64/bin/../include -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2  conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a -LC:/Ruby27-x64/msys64/mingw64/bin/../lib  -m64  -llibssl -llibcrypto -lssp  -lssl -lcrypto -lx64-msvcrt-ruby270 -llibssl -llibcrypto -lssp  -lssl -lcrypto -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: #include <openssl/ssl.h>
 6: 
 7: /*top*/
 8: extern int t(void);
 9: int main(int argc, char **argv)
10: {
11:   if (argc > 1000000) {
12:     int (* volatile tp)(void)=(int (*)(void))&t;
13:     printf("%d", (*tp)());
14:   }
15: 
16:   return !!argv[argc];
17: }
18: 
19: int t(void) { SSL_CTX_set_session_cache_mode(NULL, 0); return 0; }
/* end */

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

have_func: checking for TLS_server_method() in openssl/ssl.h... -------------------- yes

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -IC:/Ruby27-x64/msys64/mingw64/bin/../include -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2  conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a -LC:/Ruby27-x64/msys64/mingw64/bin/../lib  -m64  -llibssl -llibcrypto -lssp  -lssl -lcrypto -lx64-msvcrt-ruby270 -llibssl -llibcrypto -lssp  -lssl -lcrypto -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: #include <openssl/ssl.h>
 6: 
 7: /*top*/
 8: extern int t(void);
 9: int main(int argc, char **argv)
10: {
11:   if (argc > 1000000) {
12:     int (* volatile tp)(void)=(int (*)(void))&t;
13:     printf("%d", (*tp)());
14:   }
15: 
16:   return !!argv[argc];
17: }
18: int t(void) { void ((*volatile p)()); p = (void ((*)()))TLS_server_method; return !p; }
/* end */

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

have_func: checking for SSL_CTX_set_min_proto_version(NULL, 0) in openssl/ssl.h... -------------------- yes

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -IC:/Ruby27-x64/msys64/mingw64/bin/../include -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2  conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a -LC:/Ruby27-x64/msys64/mingw64/bin/../lib  -m64  -llibssl -llibcrypto -lssp  -lssl -lcrypto -lx64-msvcrt-ruby270 -llibssl -llibcrypto -lssp  -lssl -lcrypto -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: #include <openssl/ssl.h>
 6: 
 7: /*top*/
 8: extern int t(void);
 9: int main(int argc, char **argv)
10: {
11:   if (argc > 1000000) {
12:     int (* volatile tp)(void)=(int (*)(void))&t;
13:     printf("%d", (*tp)());
14:   }
15: 
16:   return !!argv[argc];
17: }
18: 
19: int t(void) { SSL_CTX_set_min_proto_version(NULL, 0); return 0; }
/* end */

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

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

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -IC:/Ruby27-x64/msys64/mingw64/bin/../include -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2  conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a -LC:/Ruby27-x64/msys64/mingw64/bin/../lib  -m64  -llibssl -llibcrypto -lssp  -lssl -lcrypto -lx64-msvcrt-ruby270 -llibssl -llibcrypto -lssp  -lssl -lcrypto -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
conftest.c: In function 't':
conftest.c:17:57: error: 'X509_STORE_up_ref' undeclared (first use in this function)
   17 | int t(void) { void ((*volatile p)()); p = (void ((*)()))X509_STORE_up_ref; return !p; }
      |                                                         ^~~~~~~~~~~~~~~~~
conftest.c:17:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: 
 6: /*top*/
 7: extern int t(void);
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     int (* volatile tp)(void)=(int (*)(void))&t;
12:     printf("%d", (*tp)());
13:   }
14: 
15:   return !!argv[argc];
16: }
17: int t(void) { void ((*volatile p)()); p = (void ((*)()))X509_STORE_up_ref; return !p; }
/* end */

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -IC:/Ruby27-x64/msys64/mingw64/bin/../include -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2  conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a -LC:/Ruby27-x64/msys64/mingw64/bin/../lib  -m64  -llibssl -llibcrypto -lssp  -lssl -lcrypto -lx64-msvcrt-ruby270 -llibssl -llibcrypto -lssp  -lssl -lcrypto -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: 
 6: /*top*/
 7: extern int t(void);
 8: int main(int argc, char **argv)
 9: {
10:   if (argc > 1000000) {
11:     int (* volatile tp)(void)=(int (*)(void))&t;
12:     printf("%d", (*tp)());
13:   }
14: 
15:   return !!argv[argc];
16: }
17: extern void X509_STORE_up_ref();
18: int t(void) { X509_STORE_up_ref(); return 0; }
/* end */

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

have_func: checking for SSL_CTX_set_ecdh_auto(NULL, 0) in openssl/ssl.h... -------------------- yes

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -IC:/Ruby27-x64/msys64/mingw64/bin/../include -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2  conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a -LC:/Ruby27-x64/msys64/mingw64/bin/../lib  -m64  -llibssl -llibcrypto -lssp  -lssl -lcrypto -lx64-msvcrt-ruby270 -llibssl -llibcrypto -lssp  -lssl -lcrypto -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: #include <openssl/ssl.h>
 6: 
 7: /*top*/
 8: extern int t(void);
 9: int main(int argc, char **argv)
10: {
11:   if (argc > 1000000) {
12:     int (* volatile tp)(void)=(int (*)(void))&t;
13:     printf("%d", (*tp)());
14:   }
15: 
16:   return !!argv[argc];
17: }
18: 
19: int t(void) { SSL_CTX_set_ecdh_auto(NULL, 0); return 0; }
/* end */

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

have_func: checking for SSL_CTX_set_dh_auto(NULL, 0) in openssl/ssl.h... -------------------- yes

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -IC:/Ruby27-x64/msys64/mingw64/bin/../include -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2  conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a -LC:/Ruby27-x64/msys64/mingw64/bin/../lib  -m64  -llibssl -llibcrypto -lssp  -lssl -lcrypto -lx64-msvcrt-ruby270 -llibssl -llibcrypto -lssp  -lssl -lcrypto -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: #include <openssl/ssl.h>
 6: 
 7: /*top*/
 8: extern int t(void);
 9: int main(int argc, char **argv)
10: {
11:   if (argc > 1000000) {
12:     int (* volatile tp)(void)=(int (*)(void))&t;
13:     printf("%d", (*tp)());
14:   }
15: 
16:   return !!argv[argc];
17: }
18: 
19: int t(void) { SSL_CTX_set_dh_auto(NULL, 0); return 0; }
/* end */

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

have_func: checking for SSL_get1_peer_certificate() in openssl/ssl.h... -------------------- no

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -IC:/Ruby27-x64/msys64/mingw64/bin/../include -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2  conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a -LC:/Ruby27-x64/msys64/mingw64/bin/../lib  -m64  -llibssl -llibcrypto -lssp  -lssl -lcrypto -lx64-msvcrt-ruby270 -llibssl -llibcrypto -lssp  -lssl -lcrypto -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
conftest.c: In function 't':
conftest.c:18:57: error: 'SSL_get1_peer_certificate' undeclared (first use in this function); did you mean 'SSL_get_peer_certificate'?
   18 | int t(void) { void ((*volatile p)()); p = (void ((*)()))SSL_get1_peer_certificate; return !p; }
      |                                                         ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                                         SSL_get_peer_certificate
conftest.c:18:57: note: each undeclared identifier is reported only once for each function it appears in
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: #include <openssl/ssl.h>
 6: 
 7: /*top*/
 8: extern int t(void);
 9: int main(int argc, char **argv)
10: {
11:   if (argc > 1000000) {
12:     int (* volatile tp)(void)=(int (*)(void))&t;
13:     printf("%d", (*tp)());
14:   }
15: 
16:   return !!argv[argc];
17: }
18: int t(void) { void ((*volatile p)()); p = (void ((*)()))SSL_get1_peer_certificate; return !p; }
/* end */

"gcc -o conftest.exe -IC:/Ruby27-x64/include/ruby-2.7.0/x64-mingw32 -IC:/Ruby27-x64/include/ruby-2.7.0/ruby/backward -IC:/Ruby27-x64/include/ruby-2.7.0 -I. -IC:/Ruby27-x64/msys64/mingw64/bin/../include -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048 -D_WIN32_WINNT=0x0600 -D__MINGW_USE_VC2005_COMPAT -D_FILE_OFFSET_BITS=64  -O3 -fno-fast-math -fstack-protector-strong -fstack-protector-strong -D_FORTIFY_SOURCE=2  conftest.c  -L. -LC:/Ruby27-x64/lib -L. -pipe -s -fstack-protector-strong -fstack-protector-strong -l:libssp.a -LC:/Ruby27-x64/msys64/mingw64/bin/../lib  -m64  -llibssl -llibcrypto -lssp  -lssl -lcrypto -lx64-msvcrt-ruby270 -llibssl -llibcrypto -lssp  -lssl -lcrypto -lshell32 -lws2_32 -liphlpapi -limagehlp -lshlwapi  "
C:/Ruby27-x64/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\Michel\AppData\Local\Temp\ccihjw8r.o:conftest.c:(.text+0x5): undefined reference to `SSL_get1_peer_certificate'
collect2.exe: error: ld returned 1 exit status
checked program was:
/* begin */
 1: #include "ruby.h"
 2: 
 3: #include <winsock2.h>
 4: #include <windows.h>
 5: #include <openssl/ssl.h>
 6: 
 7: /*top*/
 8: extern int t(void);
 9: int main(int argc, char **argv)
10: {
11:   if (argc > 1000000) {
12:     int (* volatile tp)(void)=(int (*)(void))&t;
13:     printf("%d", (*tp)());
14:   }
15: 
16:   return !!argv[argc];
17: }
18: extern void SSL_get1_peer_certificate();
19: int t(void) { SSL_get1_peer_certificate(); return 0; }
/* end */

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