|
=== OpenSSL for Ruby configurator ===
|
|
have_func: checking for rb_io_maybe_wait()... -------------------- yes
|
|
|
|
LD_LIBRARY_PATH=.:../.. "gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/openssl -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef conftest.c -L. -L../.. -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby-static -lz -lpthread -lrt -lrt -ldl -lcrypt -lm -lm -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=.:../.. "gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/openssl -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef conftest.c -L. -L../.. -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby-static -lz -lpthread -lrt -lrt -ldl -lcrypt -lm -lm -lc"
|
|
conftest.c: In function ‘t’:
|
|
conftest.c:14:57: error: ‘rb_io_maybe_wait’ undeclared (first use in this function)
|
|
14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))rb_io_maybe_wait; return !p; }
|
|
| ^~~~~~~~~~~~~~~~
|
|
conftest.c:14: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-parentheses-equality’
|
|
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
|
|
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_io_maybe_wait; return !p; }
|
|
/* end */
|
|
|
|
LD_LIBRARY_PATH=.:../.. "gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/openssl -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef conftest.c -L. -L../.. -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby-static -lz -lpthread -lrt -lrt -ldl -lcrypt -lm -lm -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 rb_io_maybe_wait();
|
|
15: int t(void) { rb_io_maybe_wait(); return 0; }
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
=== Checking for system dependent stuff... ===
|
|
have_library: checking for t_open() in -lnsl... -------------------- no
|
|
|
|
LD_LIBRARY_PATH=.:../.. "gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/openssl -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef conftest.c -L. -L../.. -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby-static -lz -lpthread -lrt -lrt -ldl -lcrypt -lm -lnsl -lm -lc"
|
|
conftest.c: In function ‘t’:
|
|
conftest.c:14:57: error: ‘t_open’ undeclared (first use in this function); did you mean ‘popen’?
|
|
14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))t_open; return !p; }
|
|
| ^~~~~~
|
|
| popen
|
|
conftest.c:14: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-parentheses-equality’
|
|
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
|
|
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 ((*)()))t_open; return !p; }
|
|
/* end */
|
|
|
|
LD_LIBRARY_PATH=.:../.. "gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/openssl -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef conftest.c -L. -L../.. -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby-static -lz -lpthread -lrt -lrt -ldl -lcrypt -lm -lnsl -lm -lc"
|
|
/usr/bin/ld: /tmp/cc6ZbOLY.o: na função "t":
|
|
/opt/ruby-3.1.1/ext/openssl/conftest.c:15: referência não definida para "t_open"
|
|
collect2: error: ld returned 1 exit status
|
|
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 t_open();
|
|
15: int t(void) { t_open(); return 0; }
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
have_library: checking for socket() in -lsocket... -------------------- no
|
|
|
|
LD_LIBRARY_PATH=.:../.. "gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/openssl -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef conftest.c -L. -L../.. -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby-static -lz -lpthread -lrt -lrt -ldl -lcrypt -lm -lsocket -lm -lc"
|
|
conftest.c: In function ‘t’:
|
|
conftest.c:14:57: error: ‘socket’ undeclared (first use in this function)
|
|
14 | int t(void) { void ((*volatile p)()); p = (void ((*)()))socket; return !p; }
|
|
| ^~~~~~
|
|
conftest.c:14: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-parentheses-equality’
|
|
cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
|
|
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 ((*)()))socket; return !p; }
|
|
/* end */
|
|
|
|
LD_LIBRARY_PATH=.:../.. "gcc -o conftest -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/openssl -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef conftest.c -L. -L../.. -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby-static -lz -lpthread -lrt -lrt -ldl -lcrypt -lm -lsocket -lm -lc"
|
|
/usr/bin/ld: não foi possível localizar -lsocket
|
|
collect2: error: ld returned 1 exit status
|
|
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 socket();
|
|
15: int t(void) { socket(); return 0; }
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
=== Checking for required stuff... ===
|
|
LD_LIBRARY_PATH=.:../.. pkg-config --exists openssl
|
|
package configuration for openssl is not found
|
|
have_header: checking for openssl/ssl.h... -------------------- no
|
|
|
|
LD_LIBRARY_PATH=.:../.. "gcc -I../../.ext/include/x86_64-linux -I../.././include -I../.././ext/openssl -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wundef -c conftest.c"
|
|
conftest.c:3:10: fatal error: openssl/ssl.h: Arquivo ou diretório inexistente
|
|
3 | #include <openssl/ssl.h>
|
|
| ^~~~~~~~~~~~~~~
|
|
compilation terminated.
|
|
checked program was:
|
|
/* begin */
|
|
1: #include "ruby.h"
|
|
2:
|
|
3: #include <openssl/ssl.h>
|
|
/* end */
|
|
|
|
--------------------
|
|
|
|
=== Checking for required stuff failed. ===
|
|
Makefile wasn't created. Fix the errors above.
|
|
/opt/ruby-3.1.1/ext/openssl/extconf.rb:100: OpenSSL library could not be found. You might want to use --with-openssl-dir=<dir> option to specify the prefix where OpenSSL is installed.
|
|
/opt/ruby-3.1.1/ext/openssl/extconf.rb:100:in `<top (required)>'
|
|
./ext/extmk.rb:214:in `load'
|
|
./ext/extmk.rb:214:in `block in extmake'
|
|
/opt/ruby-3.1.1/lib/mkmf.rb:332:in `open'
|
|
./ext/extmk.rb:210:in `extmake'
|
|
./ext/extmk.rb:572:in `block in <main>'
|
|
./ext/extmk.rb:568:in `each'
|
|
./ext/extmk.rb:568:in `<main>'
|