File: //usr/local/rvm/src/ruby-2.5.9/ext/digest/sha2/mkmf.log
"pkg-config --exists openssl"
| pkg-config --libs openssl
=> "-lssl -lcrypto \n"
"gcc -o conftest -I../../../.ext/include/x86_64-linux -I../../.././include -I../../.././ext/digest/sha2 -O3 -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 -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict -fPIC conftest.c -L. -L../../.. -L. -fstack-protector -rdynamic -Wl,-export-dynamic -Wl,-rpath,/usr/local/rvm/rubies/ruby-2.5.9/lib -L/usr/local/rvm/rubies/ruby-2.5.9/lib -lruby-static -lssl -lcrypto -lpthread -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5: return 0;
6: }
/* end */
| pkg-config --cflags-only-I openssl
=> "\n"
| pkg-config --cflags-only-other openssl
=> "\n"
| pkg-config --libs-only-l openssl
=> "-lssl -lcrypto \n"
package configuration for openssl
cflags:
ldflags:
libs: -lssl -lcrypto
have_header: checking for openssl/ssl.h... -------------------- yes
"gcc -E -I../../../.ext/include/x86_64-linux -I../../.././include -I../../.././ext/digest/sha2 -O3 -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 -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict -fPIC conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <openssl/ssl.h>
/* end */
--------------------
have_library: checking for CRYPTO_malloc() in -lcrypto... -------------------- yes
"gcc -o conftest -I../../../.ext/include/x86_64-linux -I../../.././include -I../../.././ext/digest/sha2 -O3 -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 -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict -fPIC conftest.c -L. -L../../.. -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lssl -lcrypto -Wl,-rpath,/usr/local/rvm/rubies/ruby-2.5.9/lib -L/usr/local/rvm/rubies/ruby-2.5.9/lib -lruby-static -lcrypto -lssl -lcrypto -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:13:57: error: ‘CRYPTO_malloc’ undeclared (first use in this function)
int t(void) { void ((*volatile p)()); p = (void ((*)()))CRYPTO_malloc; 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 ((*)()))CRYPTO_malloc; return !p; }
/* end */
"gcc -o conftest -I../../../.ext/include/x86_64-linux -I../../.././include -I../../.././ext/digest/sha2 -O3 -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 -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict -fPIC conftest.c -L. -L../../.. -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lssl -lcrypto -Wl,-rpath,/usr/local/rvm/rubies/ruby-2.5.9/lib -L/usr/local/rvm/rubies/ruby-2.5.9/lib -lruby-static -lcrypto -lssl -lcrypto -lpthread -ldl -lcrypt -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: printf("%p", &t);
9: }
10:
11: return 0;
12: }
13: extern void CRYPTO_malloc();
14: int t(void) { CRYPTO_malloc(); return 0; }
/* end */
--------------------
have_library: checking for SSL_new() in -lssl... -------------------- yes
"gcc -o conftest -I../../../.ext/include/x86_64-linux -I../../.././include -I../../.././ext/digest/sha2 -O3 -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 -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict -fPIC conftest.c -L. -L../../.. -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lcrypto -lssl -lcrypto -Wl,-rpath,/usr/local/rvm/rubies/ruby-2.5.9/lib -L/usr/local/rvm/rubies/ruby-2.5.9/lib -lruby-static -lssl -lcrypto -lssl -lcrypto -lpthread -ldl -lcrypt -lm -lc"
conftest.c: In function ‘t’:
conftest.c:13:57: error: ‘SSL_new’ undeclared (first use in this function)
int t(void) { void ((*volatile p)()); p = (void ((*)()))SSL_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_new; return !p; }
/* end */
"gcc -o conftest -I../../../.ext/include/x86_64-linux -I../../.././include -I../../.././ext/digest/sha2 -O3 -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 -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict -fPIC conftest.c -L. -L../../.. -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lcrypto -lssl -lcrypto -Wl,-rpath,/usr/local/rvm/rubies/ruby-2.5.9/lib -L/usr/local/rvm/rubies/ruby-2.5.9/lib -lruby-static -lssl -lcrypto -lssl -lcrypto -lpthread -ldl -lcrypt -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: printf("%p", &t);
9: }
10:
11: return 0;
12: }
13: extern void SSL_new();
14: int t(void) { SSL_new(); return 0; }
/* end */
--------------------
have_func: checking for SHA256_Transform() in openssl/sha.h with -Werror=deprecated-declarations... -------------------- yes
"gcc -o conftest -I../../../.ext/include/x86_64-linux -I../../.././include -I../../.././ext/digest/sha2 -O3 -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 -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict -fPIC conftest.c -L. -L../../.. -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lssl -lcrypto -lssl -lcrypto -Wl,-rpath,/usr/local/rvm/rubies/ruby-2.5.9/lib -L/usr/local/rvm/rubies/ruby-2.5.9/lib -lruby-static -Werror=deprecated-declarations -lssl -lcrypto -lssl -lcrypto -lpthread -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <openssl/sha.h>
4:
5: /*top*/
6: extern int t(void);
7: int main(int argc, char **argv)
8: {
9: if (argc > 1000000) {
10: printf("%p", &t);
11: }
12:
13: return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))SHA256_Transform; return !p; }
/* end */
--------------------
have_func: checking for SHA512_Transform() in openssl/sha.h with -Werror=deprecated-declarations... -------------------- yes
"gcc -o conftest -I../../../.ext/include/x86_64-linux -I../../.././include -I../../.././ext/digest/sha2 -O3 -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 -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict -fPIC conftest.c -L. -L../../.. -L. -fstack-protector -rdynamic -Wl,-export-dynamic -lssl -lcrypto -lssl -lcrypto -Wl,-rpath,/usr/local/rvm/rubies/ruby-2.5.9/lib -L/usr/local/rvm/rubies/ruby-2.5.9/lib -lruby-static -Werror=deprecated-declarations -lssl -lcrypto -lssl -lcrypto -lpthread -ldl -lcrypt -lm -lc"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <openssl/sha.h>
4:
5: /*top*/
6: extern int t(void);
7: int main(int argc, char **argv)
8: {
9: if (argc > 1000000) {
10: printf("%p", &t);
11: }
12:
13: return 0;
14: }
15: int t(void) { void ((*volatile p)()); p = (void ((*)()))SHA512_Transform; return !p; }
/* end */
--------------------
have_type: checking for SHA256_CTX in openssl/sha.h... -------------------- yes
"gcc -I../../../.ext/include/x86_64-linux -I../../.././include -I../../.././ext/digest/sha2 -O3 -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 -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict -fPIC -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <openssl/sha.h>
4:
5: /*top*/
6: typedef SHA256_CTX conftest_type;
7: int conftestval[sizeof(conftest_type)?1:-1];
/* end */
--------------------
have_type: checking for SHA512_CTX in openssl/sha.h... -------------------- yes
"gcc -I../../../.ext/include/x86_64-linux -I../../.././include -I../../.././ext/digest/sha2 -O3 -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 -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict -fPIC -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <openssl/sha.h>
4:
5: /*top*/
6: typedef SHA512_CTX conftest_type;
7: int conftestval[sizeof(conftest_type)?1:-1];
/* end */
--------------------
have_header: checking for sys/cdefs.h... -------------------- yes
"gcc -E -I../../../.ext/include/x86_64-linux -I../../.././include -I../../.././ext/digest/sha2 -O3 -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 -Wmisleading-indentation -Wno-packed-bitfield-compat -Wsuggest-attribute=noreturn -Wsuggest-attribute=format -Wimplicit-fallthrough=0 -Wduplicated-cond -Wrestrict -fPIC conftest.c -o conftest.i"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: #include <sys/cdefs.h>
/* end */
--------------------
extconf.h is:
/* begin */
1: #ifndef EXTCONF_H
2: #define EXTCONF_H
3: #define HAVE_CONFIG_H 1
4: #define HAVE_OPENSSL_SSL_H 1
5: #define HAVE_SHA256_TRANSFORM 1
6: #define HAVE_SHA512_TRANSFORM 1
7: #define HAVE_TYPE_SHA256_CTX 1
8: #define HAVE_TYPE_SHA512_CTX 1
9: #define SHA2_USE_OPENSSL 1
10: #define HAVE_SYS_CDEFS_H 1
11: #endif
/* end */