Closed
Description
I'm getting such an error when performing gem update
on the arm64
based mac.
/opt/local/bin/ruby3.1 -I /opt/local/lib/ruby3.1/3.1.0 -r ./siteconf20220913-28742-hv4oe6.rb extconf.rb
checking for rb_io_maybe_wait()... yes
checking for t_open() in -lnsl... no
checking for socket() in -lsocket... no
checking for openssl/ssl.h... yes
checking for CRYPTO_malloc() in -lcrypto... yes
checking for SSL_new() in -lssl... yes
checking for LIBRESSL_VERSION_NUMBER in openssl/opensslv.h... no
checking for OpenSSL version >= 1.0.2... yes
checking for RAND_egd()... no
checking for ENGINE_load_dynamic() in openssl/engine.h... yes
checking for ENGINE_load_4758cca() in openssl/engine.h... no
checking for ENGINE_load_aep() in openssl/engine.h... no
checking for ENGINE_load_atalla() in openssl/engine.h... no
checking for ENGINE_load_chil() in openssl/engine.h... no
checking for ENGINE_load_cswift() in openssl/engine.h... no
checking for ENGINE_load_nuron() in openssl/engine.h... no
checking for ENGINE_load_sureware() in openssl/engine.h... no
checking for ENGINE_load_ubsec() in openssl/engine.h... no
checking for ENGINE_load_padlock() in openssl/engine.h... no
checking for ENGINE_load_capi() in openssl/engine.h... no
checking for ENGINE_load_gmp() in openssl/engine.h... no
checking for ENGINE_load_gost() in openssl/engine.h... no
checking for ENGINE_load_cryptodev() in openssl/engine.h... yes
checking for SSL.ctx in openssl/ssl.h... no
checking for EVP_MD_CTX_new()... yes
checking for EVP_MD_CTX_free()... yes
checking for EVP_MD_CTX_pkey_ctx()... no
checking for X509_STORE_get_ex_data()... yes
checking for X509_STORE_set_ex_data()... yes
checking for X509_STORE_get_ex_new_index()... no
checking for X509_CRL_get0_signature()... yes
checking for X509_REQ_get0_signature()... yes
checking for X509_REVOKED_get0_serialNumber()... yes
checking for X509_REVOKED_get0_revocationDate()... yes
checking for X509_get0_tbs_sigalg()... yes
checking for X509_STORE_CTX_get0_untrusted()... yes
checking for X509_STORE_CTX_get0_cert()... yes
checking for X509_STORE_CTX_get0_chain()... yes
checking for OCSP_SINGLERESP_get0_id()... yes
checking for SSL_CTX_get_ciphers()... yes
checking for X509_up_ref()... yes
checking for X509_CRL_up_ref()... yes
checking for X509_STORE_up_ref()... yes
checking for SSL_SESSION_up_ref()... yes
checking for EVP_PKEY_up_ref()... yes
checking for SSL_CTX_set_min_proto_version(NULL, 0) in openssl/ssl.h... yes
checking for SSL_CTX_get_security_level()... yes
checking for X509_get0_notBefore()... yes
checking for SSL_SESSION_get_protocol_version()... yes
checking for TS_STATUS_INFO_get0_status()... yes
checking for TS_STATUS_INFO_get0_text()... yes
checking for TS_STATUS_INFO_get0_failure_info()... yes
checking for TS_VERIFY_CTS_set_certs(NULL, NULL) in openssl/ts.h... no
checking for TS_VERIFY_CTX_set_store()... yes
checking for TS_VERIFY_CTX_add_flags()... yes
checking for TS_RESP_CTX_set_time_cb()... yes
checking for EVP_PBE_scrypt()... yes
checking for SSL_CTX_set_post_handshake_auth()... yes
checking for EVP_PKEY_check()... yes
checking for EVP_PKEY_new_raw_private_key()... yes
checking for SSL_set0_tmp_dh_pkey()... yes
checking for ERR_get_error_all()... yes
checking for TS_VERIFY_CTX_set_certs(NULL, NULL) in openssl/ts.h... no
checking for SSL_CTX_load_verify_file()... yes
checking for BN_check_prime()... yes
checking for EVP_MD_CTX_get0_md()... yes
checking for EVP_MD_CTX_get_pkey_ctx()... yes
checking for EVP_PKEY_eq()... yes
checking for EVP_PKEY_dup()... yes
creating extconf.h
creating Makefile
current directory: /opt/local/lib/ruby3.1/gems/3.1.0/gems/openssl-3.0.1/ext/openssl
make DESTDIR\= clean
current directory: /opt/local/lib/ruby3.1/gems/3.1.0/gems/openssl-3.0.1/ext/openssl
make DESTDIR\=
compiling openssl_missing.c
compiling ossl.c
ossl.c:322:21: error: implicit declaration of function 'ERR_get_error_all' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
while ((e = ERR_get_error_all(&file, &line, &func, &data, &flags))) {
^
1 error generated.
make: *** [ossl.o] Error 1
make failed, exit code 2
ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [arm64-darwin21]
gem list openssl
*** LOCAL GEMS ***
openssl (default: 3.0.0)
openssl version
OpenSSL 3.0.5 5 Jul 2022 (Library: OpenSSL 3.0.5 5 Jul 2022)
Metadata
Metadata
Assignees
Labels
No labels