Ошибка при установке puma 3.4.0 на рельсы 4.2.10 - PullRequest
0 голосов
/ 24 января 2020

Я использую linux 19.10 и ruby 2.4.0. Я пытаюсь установить проект, поэтому я использую комплект, чтобы получить свои драгоценные камни, но драгоценный камень пумы создает проблему. Я знаю, что на этом сайте есть похожие проблемы, но я не могу найти решение своей проблемы. есть ошибка, которую я получаю

ERROR:  Error installing puma:
        ERROR: Failed to build gem native extension.

    current directory: /home/mert/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.4.0/ext/puma_http11
/home/mert/.rbenv/versions/2.4.0/bin/ruby -r ./siteconf20200124-4954-1tcvg2g.rb extconf.rb
checking for BIO_read() in -lcrypto... yes
checking for SSL_CTX_new() in -lssl... yes
checking for openssl/bio.h... yes
creating Makefile

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /home/mert/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0/puma-3.4.0/mkmf.log

current directory: /home/mert/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.4.0/ext/puma_http11
make "DESTDIR=" clean

current directory: /home/mert/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.4.0/ext/puma_http11
make "DESTDIR="
compiling http11_parser.c
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from http11_parser.h:10,
                 from ext/http11/http11_parser.rl:5:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:627:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  627 | CONSTFUNC(void rb_secure_update(VALUE));
      | ^~~~~~~~~
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:2001,
                 from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from http11_parser.h:10,
                 from ext/http11/http11_parser.rl:5:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:257:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  257 | CONSTFUNC(void rb_error_untrusted(VALUE));
      | ^~~~~~~~~
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:259:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  259 | CONSTFUNC(void rb_check_trusted(VALUE));
      | ^~~~~~~~~
In file included from ext/http11/http11_parser.rl:7:
ext/http11/http11_parser.rl: In function ‘puma_parser_execute’:
ext/http11/http11_parser.rl:111:17: warning: comparison of integer expressions of different signedness: ‘long int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
ext/http11/http11_parser.rl: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
compiling io_buffer.c
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from io_buffer.c:2:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:627:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  627 | CONSTFUNC(void rb_secure_update(VALUE));
      | ^~~~~~~~~
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:2001,
                 from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from io_buffer.c:2:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:257:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  257 | CONSTFUNC(void rb_error_untrusted(VALUE));
      | ^~~~~~~~~
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:259:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  259 | CONSTFUNC(void rb_check_trusted(VALUE));
      | ^~~~~~~~~
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
compiling mini_ssl.c
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from mini_ssl.c:3:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:627:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  627 | CONSTFUNC(void rb_secure_update(VALUE));
      | ^~~~~~~~~
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:2001,
                 from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from mini_ssl.c:3:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:257:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  257 | CONSTFUNC(void rb_error_untrusted(VALUE));
      | ^~~~~~~~~
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:259:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  259 | CONSTFUNC(void rb_check_trusted(VALUE));
      | ^~~~~~~~~
mini_ssl.c: In function ‘get_dh1024’:
mini_ssl.c:90:5: error: dereferencing pointer to incomplete type ‘DH’ {aka ‘struct dh_st’}
   90 |   dh->p = BN_bin2bn(dh1024_p, sizeof(dh1024_p), NULL);
      |     ^~
mini_ssl.c: In function ‘engine_init_server’:
mini_ssl.c:161:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  161 |   DH *dh = get_dh1024();
      |   ^~
mini_ssl.c:165:3: warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]
  165 |   EC_KEY *ecdh = EC_KEY_new_by_curve_name(NID_secp521r1);
      |   ^~~~~~
mini_ssl.c: In function ‘engine_init_client’:
mini_ssl.c:192:3: warning: ‘DTLSv1_method’ is deprecated [-Wdeprecated-declarations]
  192 |   conn->ctx = SSL_CTX_new(DTLSv1_method());
      |   ^~~~
In file included from /usr/include/openssl/e_os2.h:13,
                 from /usr/include/openssl/bio.h:13,
                 from mini_ssl.c:14:
/usr/include/openssl/ssl.h:1895:1: note: declared here
 1895 | DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *DTLSv1_method(void)) /* DTLSv1.0 */
      | ^~~~~~~~~~~~~~~~~~
mini_ssl.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
make: *** [Makefile:242: mini_ssl.o] Error 1

make failed, exit code 2

Gem files will remain installed in /home/mert/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/puma-3.4.0 for inspection.
Results logged to /home/mert/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/extensions/x86_64-linux/2.4.0/puma-3.4.0/gem_make.out

и файл журнала:


"gcc -o conftest -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/x86_64-linux -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/backward -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0 -I. -I/home/mert/.rbenv/versions/2.4.0/include    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0  -fPIC conftest.c  -L. -L/home/mert/.rbenv/versions/2.4.0/lib -Wl,-R/home/mert/.rbenv/versions/2.4.0/lib -L. -L/home/mert/.rbenv/versions/2.4.0/lib  -fstack-protector -rdynamic -Wl,-export-dynamic     -Wl,-R/home/mert/.rbenv/versions/2.4.0/lib -L/home/mert/.rbenv/versions/2.4.0/lib -lruby  -lpthread -ldl -lcrypt -lm   -lc"
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from conftest.c:1:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:627:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  627 | CONSTFUNC(void rb_secure_update(VALUE));
      | ^~~~~~~~~
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:2001,
                 from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from conftest.c:1:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:257:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  257 | CONSTFUNC(void rb_error_untrusted(VALUE));
      | ^~~~~~~~~
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:259:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  259 | CONSTFUNC(void rb_check_trusted(VALUE));
      | ^~~~~~~~~
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

"gcc -o conftest -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/x86_64-linux -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/backward -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0 -I. -I/home/mert/.rbenv/versions/2.4.0/include    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0  -fPIC conftest.c  -L. -L/home/mert/.rbenv/versions/2.4.0/lib -Wl,-R/home/mert/.rbenv/versions/2.4.0/lib -L. -L/home/mert/.rbenv/versions/2.4.0/lib  -fstack-protector -rdynamic -Wl,-export-dynamic     -Wl,-R/home/mert/.rbenv/versions/2.4.0/lib -L/home/mert/.rbenv/versions/2.4.0/lib -lruby -lcrypto  -lpthread -ldl -lcrypt -lm   -lc"
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from conftest.c:1:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:627:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  627 | CONSTFUNC(void rb_secure_update(VALUE));
      | ^~~~~~~~~
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:2001,
                 from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from conftest.c:1:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:257:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  257 | CONSTFUNC(void rb_error_untrusted(VALUE));
      | ^~~~~~~~~
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:259:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  259 | CONSTFUNC(void rb_check_trusted(VALUE));
      | ^~~~~~~~~
conftest.c: In function ‘t’:
conftest.c:13:57: error: ‘BIO_read’ undeclared (first use in this function)
   13 | int t(void) { void ((*volatile p)()); p = (void ((*)()))BIO_read; return !p; }
      |                                                         ^~~~~~~~
conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
conftest.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
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:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: int t(void) { void ((*volatile p)()); p = (void ((*)()))BIO_read; return !p; }
/* end */

"gcc -o conftest -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/x86_64-linux -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/backward -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0 -I. -I/home/mert/.rbenv/versions/2.4.0/include    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0  -fPIC conftest.c  -L. -L/home/mert/.rbenv/versions/2.4.0/lib -Wl,-R/home/mert/.rbenv/versions/2.4.0/lib -L. -L/home/mert/.rbenv/versions/2.4.0/lib  -fstack-protector -rdynamic -Wl,-export-dynamic     -Wl,-R/home/mert/.rbenv/versions/2.4.0/lib -L/home/mert/.rbenv/versions/2.4.0/lib -lruby -lcrypto  -lpthread -ldl -lcrypt -lm   -lc"
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from conftest.c:1:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:627:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  627 | CONSTFUNC(void rb_secure_update(VALUE));
      | ^~~~~~~~~
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:2001,
                 from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from conftest.c:1:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:257:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  257 | CONSTFUNC(void rb_error_untrusted(VALUE));
      | ^~~~~~~~~
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:259:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  259 | CONSTFUNC(void rb_check_trusted(VALUE));
      | ^~~~~~~~~
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
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:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: extern void BIO_read();
14: int t(void) { BIO_read(); return 0; }
/* end */

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

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

"gcc -o conftest -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/x86_64-linux -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/backward -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0 -I. -I/home/mert/.rbenv/versions/2.4.0/include    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0  -fPIC conftest.c  -L. -L/home/mert/.rbenv/versions/2.4.0/lib -Wl,-R/home/mert/.rbenv/versions/2.4.0/lib -L. -L/home/mert/.rbenv/versions/2.4.0/lib  -fstack-protector -rdynamic -Wl,-export-dynamic    -lcrypto  -Wl,-R/home/mert/.rbenv/versions/2.4.0/lib -L/home/mert/.rbenv/versions/2.4.0/lib -lruby -lssl -lcrypto  -lpthread -ldl -lcrypt -lm   -lc"
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from conftest.c:1:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:627:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  627 | CONSTFUNC(void rb_secure_update(VALUE));
      | ^~~~~~~~~
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:2001,
                 from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from conftest.c:1:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:257:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  257 | CONSTFUNC(void rb_error_untrusted(VALUE));
      | ^~~~~~~~~
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:259:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  259 | CONSTFUNC(void rb_check_trusted(VALUE));
      | ^~~~~~~~~
conftest.c: In function ‘t’:
conftest.c:13:57: error: ‘SSL_CTX_new’ undeclared (first use in this function)
   13 | int t(void) { void ((*volatile p)()); p = (void ((*)()))SSL_CTX_new; return !p; }
      |                                                         ^~~~~~~~~~~
conftest.c:13:57: note: each undeclared identifier is reported only once for each function it appears in
conftest.c: At top level:
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
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:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: int t(void) { void ((*volatile p)()); p = (void ((*)()))SSL_CTX_new; return !p; }
/* end */

"gcc -o conftest -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/x86_64-linux -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/backward -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0 -I. -I/home/mert/.rbenv/versions/2.4.0/include    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0  -fPIC conftest.c  -L. -L/home/mert/.rbenv/versions/2.4.0/lib -Wl,-R/home/mert/.rbenv/versions/2.4.0/lib -L. -L/home/mert/.rbenv/versions/2.4.0/lib  -fstack-protector -rdynamic -Wl,-export-dynamic    -lcrypto  -Wl,-R/home/mert/.rbenv/versions/2.4.0/lib -L/home/mert/.rbenv/versions/2.4.0/lib -lruby -lssl -lcrypto  -lpthread -ldl -lcrypt -lm   -lc"
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from conftest.c:1:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:627:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  627 | CONSTFUNC(void rb_secure_update(VALUE));
      | ^~~~~~~~~
In file included from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/ruby.h:2001,
                 from /home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby.h:33,
                 from conftest.c:1:
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:257:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  257 | CONSTFUNC(void rb_error_untrusted(VALUE));
      | ^~~~~~~~~
/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/intern.h:259:1: warning: ‘const’ attribute on function returning ‘void’ [-Wattributes]
  259 | CONSTFUNC(void rb_check_trusted(VALUE));
      | ^~~~~~~~~
cc1: warning: unrecognized command line option ‘-Wno-self-assign’
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
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:     printf("%p", &t);
 9:   }
10: 
11:   return 0;
12: }
13: extern void SSL_CTX_new();
14: int t(void) { SSL_CTX_new(); return 0; }
/* end */

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

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

"gcc -E -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/x86_64-linux -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0/ruby/backward -I/home/mert/.rbenv/versions/2.4.0/include/ruby-2.4.0 -I. -I/home/mert/.rbenv/versions/2.4.0/include    -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wno-tautological-compare -Wno-parentheses-equality -Wno-constant-logical-operand -Wno-self-assign -Wunused-variable -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -Wdeprecated-declarations -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0  -fPIC  conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2: 
3: #include <openssl/bio.h>
/* end */

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


Я думаю, что это может быть сделано путем понижения ssl до 1.0, потому что я читал некоторые темы об этом, это может вызывают проблемы в ssl 1.1

ruby 2.4.0p0 (ревизия 2016-12-24 57164) [x86_64-linux] OpenSSL 1.1.1 c 28 мая 2019

, так что это мои версии. Кто-нибудь может мне помочь с этим? может как понизить до 1.0?

...