/opt/Python-3.10.1/Modules/_ssl/debughelpers.c: In function ‘_PySSLContext_set_keylog_filename’: /opt/Python-3.10.1/Modules/_ssl/debughelpers.c:180:5: error: implicit declaration of function ‘SSL_CTX_set_keylog_callback’; did you mean ‘SSL_CTX_set_info_callback’? [-Werror=implicit-function-declaration] SSL_CTX_set_keylog_callback(self->ctx, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ SSL_CTX_set_info_callback /opt/Python-3.10.1/Modules/_ssl.c: In function ‘_ssl_configure_hostname’: /opt/Python-3.10.1/Modules/_ssl.c:764:51: error: implicit declaration of function ‘ASN1_STRING_get0_data’; did you mean ‘ASN1_STRING_data’? [-Werror=implicit-function-declaration] if (!X509_VERIFY_PARAM_set1_ip(param, ASN1_STRING_get0_data(ip), ^~~~~~~~~~~~~~~~~~~~~ ASN1_STRING_data /opt/Python-3.10.1/Modules/_ssl.c:764:51: warning: passing argument 2 of ‘X509_VERIFY_PARAM_set1_ip’ makes pointer from integer without a cast [-Wint-conversion] In file included from /usr/include/openssl/x509.h:581:0, from /opt/Python-3.10.1/Modules/_ssl.h:6, from /opt/Python-3.10.1/Modules/_ssl.c:31: /usr/include/openssl/x509_vfy.h:604:5: note: expected ‘const unsigned char *’ but argument is of type ‘int’ int X509_VERIFY_PARAM_set1_ip(X509_VERIFY_PARAM *param, ^~~~~~~~~~~~~~~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_ssl.c: In function ‘newPySSLSocket’: /opt/Python-3.10.1/Modules/_ssl.c:845:9: error: implicit declaration of function ‘BIO_up_ref’; did you mean ‘DH_up_ref’? [-Werror=implicit-function-declaration] BIO_up_ref(inbio->bio); ^~~~~~~~~~ DH_up_ref /opt/Python-3.10.1/Modules/_ssl.c: In function ‘_create_tuple_for_X509_NAME’: /opt/Python-3.10.1/Modules/_ssl.c:1100:30: error: implicit declaration of function ‘X509_NAME_ENTRY_set’; did you mean ‘X509_NAME_ENTRY_new’? [-Werror=implicit-function-declaration] if (rdn_level != X509_NAME_ENTRY_set(entry)) { ^~~~~~~~~~~~~~~~~~~ X509_NAME_ENTRY_new /opt/Python-3.10.1/Modules/_ssl.c: In function ‘_get_peer_alt_names’: /opt/Python-3.10.1/Modules/_ssl.c:1265:49: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] v = PyUnicode_FromStringAndSize((char *)ASN1_STRING_get0_data(as), ^ /opt/Python-3.10.1/Modules/_ssl.c: In function ‘_decode_certificate’: /opt/Python-3.10.1/Modules/_ssl.c:1625:17: error: implicit declaration of function ‘X509_get0_notBefore’; did you mean ‘X509_get_notBefore’? [-Werror=implicit-function-declaration] notBefore = X509_get0_notBefore(certificate); ^~~~~~~~~~~~~~~~~~~ X509_get_notBefore /opt/Python-3.10.1/Modules/_ssl.c:1625:15: warning: assignment makes pointer from integer without a cast [-Wint-conversion] notBefore = X509_get0_notBefore(certificate); ^ /opt/Python-3.10.1/Modules/_ssl.c:1642:16: error: implicit declaration of function ‘X509_get0_notAfter’; did you mean ‘X509_get_notAfter’? [-Werror=implicit-function-declaration] notAfter = X509_get0_notAfter(certificate); ^~~~~~~~~~~~~~~~~~ X509_get_notAfter /opt/Python-3.10.1/Modules/_ssl.c:1642:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion] notAfter = X509_get0_notAfter(certificate); ^ In file included from /opt/Python-3.10.1/Modules/_ssl.c:1738:0: /opt/Python-3.10.1/Modules/_ssl/cert.c: In function ‘newCertificate’: /opt/Python-3.10.1/Modules/_ssl/cert.c:30:9: error: implicit declaration of function ‘X509_up_ref’; did you mean ‘DH_up_ref’? [-Werror=implicit-function-declaration] X509_up_ref(cert); ^~~~~~~~~~~ DH_up_ref /opt/Python-3.10.1/Modules/_ssl.c: In function ‘_ssl__SSLSocket_get_verified_chain_impl’: /opt/Python-3.10.1/Modules/_ssl.c:1842:29: error: implicit declaration of function ‘SSL_get0_verified_chain’; did you mean ‘SSL_get_peer_cert_chain’? [-Werror=implicit-function-declaration] STACK_OF(X509) *chain = SSL_get0_verified_chain(self->ssl); ^~~~~~~~~~~~~~~~~~~~~~~ SSL_get_peer_cert_chain /opt/Python-3.10.1/Modules/_ssl.c:1842:29: warning: initialization makes pointer from integer without a cast [-Wint-conversion] /opt/Python-3.10.1/Modules/_ssl.c: In function ‘cipher_to_dict’: /opt/Python-3.10.1/Modules/_ssl.c:1960:12: error: implicit declaration of function ‘SSL_CIPHER_is_aead’; did you mean ‘SSL_CIPHER_find’? [-Werror=implicit-function-declaration] aead = SSL_CIPHER_is_aead(cipher); ^~~~~~~~~~~~~~~~~~ SSL_CIPHER_find /opt/Python-3.10.1/Modules/_ssl.c:1961:11: error: implicit declaration of function ‘SSL_CIPHER_get_cipher_nid’; did you mean ‘SSL_CIPHER_get_id’? [-Werror=implicit-function-declaration] nid = SSL_CIPHER_get_cipher_nid(cipher); ^~~~~~~~~~~~~~~~~~~~~~~~~ SSL_CIPHER_get_id /opt/Python-3.10.1/Modules/_ssl.c:1963:11: error: implicit declaration of function ‘SSL_CIPHER_get_digest_nid’; did you mean ‘SSL_CIPHER_get_id’? [-Werror=implicit-function-declaration] nid = SSL_CIPHER_get_digest_nid(cipher); ^~~~~~~~~~~~~~~~~~~~~~~~~ SSL_CIPHER_get_id /opt/Python-3.10.1/Modules/_ssl.c:1965:11: error: implicit declaration of function ‘SSL_CIPHER_get_kx_nid’; did you mean ‘SSL_CIPHER_get_id’? [-Werror=implicit-function-declaration] nid = SSL_CIPHER_get_kx_nid(cipher); ^~~~~~~~~~~~~~~~~~~~~ SSL_CIPHER_get_id /opt/Python-3.10.1/Modules/_ssl.c:1967:11: error: implicit declaration of function ‘SSL_CIPHER_get_auth_nid’; did you mean ‘SSL_CIPHER_get_id’? [-Werror=implicit-function-declaration] nid = SSL_CIPHER_get_auth_nid(cipher); ^~~~~~~~~~~~~~~~~~~~~~~ SSL_CIPHER_get_id /opt/Python-3.10.1/Modules/_ssl.c: In function ‘_ssl__SSLSocket_compression_impl’: /opt/Python-3.10.1/Modules/_ssl.c:2092:32: error: implicit declaration of function ‘COMP_get_type’; did you mean ‘OBJ_set_ctype’? [-Werror=implicit-function-declaration] if (comp_method == NULL || COMP_get_type(comp_method) == NID_undef) ^~~~~~~~~~~~~ OBJ_set_ctype /opt/Python-3.10.1/Modules/_ssl.c: In function ‘_ssl__SSLSocket_write_impl’: /opt/Python-3.10.1/Modules/_ssl.c:2349:18: error: implicit declaration of function ‘SSL_write_ex’; did you mean ‘SSL_write’? [-Werror=implicit-function-declaration] retval = SSL_write_ex(self->ssl, b->buf, (size_t)b->len, &count); ^~~~~~~~~~~~ SSL_write /opt/Python-3.10.1/Modules/_ssl.c: In function ‘_ssl__SSLSocket_read_impl’: /opt/Python-3.10.1/Modules/_ssl.c:2501:18: error: implicit declaration of function ‘SSL_read_ex’; did you mean ‘SSL_read’? [-Werror=implicit-function-declaration] retval = SSL_read_ex(self->ssl, mem, (size_t)len, &count); ^~~~~~~~~~~ SSL_read /opt/Python-3.10.1/Modules/_ssl.c: In function ‘_ssl__SSLContext_impl’: /opt/Python-3.10.1/Modules/_ssl.c:3027:18: error: implicit declaration of function ‘TLS_method’; did you mean ‘DTLS_method’? [-Werror=implicit-function-declaration] method = TLS_method(); ^~~~~~~~~~ DTLS_method /opt/Python-3.10.1/Modules/_ssl.c:3027:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion] method = TLS_method(); ^ /opt/Python-3.10.1/Modules/_ssl.c:3030:18: error: implicit declaration of function ‘TLS_client_method’; did you mean ‘DTLS_client_method’? [-Werror=implicit-function-declaration] method = TLS_client_method(); ^~~~~~~~~~~~~~~~~ DTLS_client_method /opt/Python-3.10.1/Modules/_ssl.c:3030:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion] method = TLS_client_method(); ^ /opt/Python-3.10.1/Modules/_ssl.c:3033:18: error: implicit declaration of function ‘TLS_server_method’; did you mean ‘DTLS_server_method’? [-Werror=implicit-function-declaration] method = TLS_server_method(); ^~~~~~~~~~~~~~~~~ DTLS_server_method /opt/Python-3.10.1/Modules/_ssl.c:3033:16: warning: assignment makes pointer from integer without a cast [-Wint-conversion] method = TLS_server_method(); ^ /opt/Python-3.10.1/Modules/_ssl.c:3136:18: error: implicit declaration of function ‘SSL_CTX_set_min_proto_version’; did you mean ‘SSL_CTX_set_ssl_version’? [-Werror=implicit-function-declaration] result = SSL_CTX_set_min_proto_version(ctx, PY_SSL_MIN_PROTOCOL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SSL_CTX_set_ssl_version /opt/Python-3.10.1/Modules/_ssl.c: In function ‘set_min_max_proto_version’: /opt/Python-3.10.1/Modules/_ssl.c:3496:18: error: implicit declaration of function ‘SSL_CTX_set_max_proto_version’; did you mean ‘SSL_CTX_set_ssl_version’? [-Werror=implicit-function-declaration] result = SSL_CTX_set_max_proto_version(self->ctx, v); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SSL_CTX_set_ssl_version /opt/Python-3.10.1/Modules/_ssl.c: In function ‘get_minimum_version’: /opt/Python-3.10.1/Modules/_ssl.c:3509:37: error: ‘SSL_CTRL_GET_MIN_PROTO_VERSION’ undeclared (first use in this function); did you mean ‘SSL_CTRL_CHECK_PROTO_VERSION’? int v = SSL_CTX_ctrl(self->ctx, SSL_CTRL_GET_MIN_PROTO_VERSION, 0, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SSL_CTRL_CHECK_PROTO_VERSION /opt/Python-3.10.1/Modules/_ssl.c:3509:37: note: each undeclared identifier is reported only once for each function it appears in /opt/Python-3.10.1/Modules/_ssl.c: In function ‘get_maximum_version’: /opt/Python-3.10.1/Modules/_ssl.c:3525:37: error: ‘SSL_CTRL_GET_MAX_PROTO_VERSION’ undeclared (first use in this function); did you mean ‘SSL_CTRL_CHECK_PROTO_VERSION’? int v = SSL_CTX_ctrl(self->ctx, SSL_CTRL_GET_MAX_PROTO_VERSION, 0, NULL); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SSL_CTRL_CHECK_PROTO_VERSION /opt/Python-3.10.1/Modules/_ssl.c: In function ‘get_security_level’: /opt/Python-3.10.1/Modules/_ssl.c:3574:28: error: implicit declaration of function ‘SSL_CTX_get_security_level’; did you mean ‘get_security_level’? [-Werror=implicit-function-declaration] return PyLong_FromLong(SSL_CTX_get_security_level(self->ctx)); ^~~~~~~~~~~~~~~~~~~~~~~~~~ get_security_level /opt/Python-3.10.1/Modules/_ssl.c: In function ‘set_options’: /opt/Python-3.10.1/Modules/_ssl.c:3590:49: error: ‘SSL_OP_NO_TLSv1_3’ undeclared (first use in this function); did you mean ‘SSL_OP_NO_TLSv1_2’? SSL_OP_NO_TLSv1_1 | SSL_OP_NO_TLSv1_2 | SSL_OP_NO_TLSv1_3 ^~~~~~~~~~~~~~~~~ SSL_OP_NO_TLSv1_2 /opt/Python-3.10.1/Modules/_ssl.c: In function ‘_ssl__SSLContext_load_cert_chain_impl’: /opt/Python-3.10.1/Modules/_ssl.c:3815:39: error: implicit declaration of function ‘SSL_CTX_get_default_passwd_cb’; did you mean ‘SSL_CTX_set_default_passwd_cb’? [-Werror=implicit-function-declaration] pem_password_cb *orig_passwd_cb = SSL_CTX_get_default_passwd_cb(self->ctx); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SSL_CTX_set_default_passwd_cb /opt/Python-3.10.1/Modules/_ssl.c:3815:39: warning: initialization makes pointer from integer without a cast [-Wint-conversion] /opt/Python-3.10.1/Modules/_ssl.c:3816:34: error: implicit declaration of function ‘SSL_CTX_get_default_passwd_cb_userdata’; did you mean ‘SSL_CTX_set_default_passwd_cb_userdata’? [-Werror=implicit-function-declaration] void *orig_passwd_userdata = SSL_CTX_get_default_passwd_cb_userdata(self->ctx); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SSL_CTX_set_default_passwd_cb_userdata /opt/Python-3.10.1/Modules/_ssl.c:3816:34: warning: initialization makes pointer from integer without a cast [-Wint-conversion] /opt/Python-3.10.1/Modules/_ssl.c: In function ‘_add_ca_certs’: /opt/Python-3.10.1/Modules/_ssl.c:3947:38: warning: passing argument 3 of ‘PEM_read_bio_X509’ makes pointer from integer without a cast [-Wint-conversion] SSL_CTX_get_default_passwd_cb(self->ctx), ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/Python-3.10.1/Modules/_ssl.c:59:0: /usr/include/openssl/pem.h:451:1: note: expected ‘int (*)(char *, int, int, void *)’ but argument is of type ‘int’ DECLARE_PEM_rw(X509, X509) ^ /opt/Python-3.10.1/Modules/_ssl.c:3948:38: warning: passing argument 4 of ‘PEM_read_bio_X509’ makes pointer from integer without a cast [-Wint-conversion] SSL_CTX_get_default_passwd_cb_userdata(self->ctx) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /opt/Python-3.10.1/Modules/_ssl.c:59:0: /usr/include/openssl/pem.h:451:1: note: expected ‘void *’ but argument is of type ‘int’ DECLARE_PEM_rw(X509, X509) ^ /opt/Python-3.10.1/Modules/_ssl.c: In function ‘_ssl__SSLContext_cert_store_stats_impl’: /opt/Python-3.10.1/Modules/_ssl.c:4509:12: error: implicit declaration of function ‘X509_STORE_get0_objects’; did you mean ‘X509_STORE_get1_certs’? [-Werror=implicit-function-declaration] objs = X509_STORE_get0_objects(store); ^~~~~~~~~~~~~~~~~~~~~~~ X509_STORE_get1_certs /opt/Python-3.10.1/Modules/_ssl.c:4509:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion] objs = X509_STORE_get0_objects(store); ^ /opt/Python-3.10.1/Modules/_ssl.c:4512:17: error: implicit declaration of function ‘X509_OBJECT_get_type’; did you mean ‘sk_X509_OBJECT_delete’? [-Werror=implicit-function-declaration] switch (X509_OBJECT_get_type(obj)) { ^~~~~~~~~~~~~~~~~~~~ sk_X509_OBJECT_delete /opt/Python-3.10.1/Modules/_ssl.c:4515:35: error: implicit declaration of function ‘X509_OBJECT_get0_X509’; did you mean ‘X509_REQ_to_X509’? [-Werror=implicit-function-declaration] if (X509_check_ca(X509_OBJECT_get0_X509(obj))) { ^~~~~~~~~~~~~~~~~~~~~ X509_REQ_to_X509 /opt/Python-3.10.1/Modules/_ssl.c:4515:35: warning: passing argument 1 of ‘X509_check_ca’ makes pointer from integer without a cast [-Wint-conversion] In file included from /opt/Python-3.10.1/Modules/_ssl.c:58:0: /usr/include/openssl/x509v3.h:700:5: note: expected ‘X509 * {aka struct x509_st *}’ but argument is of type ‘int’ int X509_check_ca(X509 *x); ^~~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_ssl.c: In function ‘_ssl__SSLContext_get_ca_certs_impl’: /opt/Python-3.10.1/Modules/_ssl.c:4560:10: warning: assignment makes pointer from integer without a cast [-Wint-conversion] objs = X509_STORE_get0_objects(store); ^ /opt/Python-3.10.1/Modules/_ssl.c:4571:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion] cert = X509_OBJECT_get0_X509(obj); ^ /opt/Python-3.10.1/Modules/_ssl.c: In function ‘PySSLSession_get_ticket_lifetime_hint’: /opt/Python-3.10.1/Modules/_ssl.c:4998:26: error: implicit declaration of function ‘SSL_SESSION_get_ticket_lifetime_hint’; did you mean ‘PySSLSession_get_ticket_lifetime_hint’? [-Werror=implicit-function-declaration] unsigned long hint = SSL_SESSION_get_ticket_lifetime_hint(self->session); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ PySSLSession_get_ticket_lifetime_hint /opt/Python-3.10.1/Modules/_ssl.c: In function ‘PySSLSession_get_has_ticket’: /opt/Python-3.10.1/Modules/_ssl.c:5020:9: error: implicit declaration of function ‘SSL_SESSION_has_ticket’; did you mean ‘SSL_SESSION_set_time’? [-Werror=implicit-function-declaration] if (SSL_SESSION_has_ticket(self->session)) { ^~~~~~~~~~~~~~~~~~~~~~ SSL_SESSION_set_time /opt/Python-3.10.1/Modules/_ssl.c: In function ‘sslmodule_init_versioninfo’: /opt/Python-3.10.1/Modules/_ssl.c:6073:14: error: implicit declaration of function ‘OpenSSL_version_num’; did you mean ‘SSL_version’? [-Werror=implicit-function-declaration] libver = OpenSSL_version_num(); ^~~~~~~~~~~~~~~~~~~ SSL_version /opt/Python-3.10.1/Modules/_ssl.c:6083:30: error: implicit declaration of function ‘OpenSSL_version’; did you mean ‘SSL_version’? [-Werror=implicit-function-declaration] r = PyUnicode_FromString(OpenSSL_version(OPENSSL_VERSION)); ^~~~~~~~~~~~~~~ SSL_version /opt/Python-3.10.1/Modules/_ssl.c:6083:46: error: ‘OPENSSL_VERSION’ undeclared (first use in this function); did you mean ‘OPENSSL_STRING’? r = PyUnicode_FromString(OpenSSL_version(OPENSSL_VERSION)); ^~~~~~~~~~~~~~~ OPENSSL_STRING cc1: some warnings being treated as errors building '_hashlib' extension gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fno-semantic-interposition -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=implicit-function-declaration -fvisibility=hidden -I./Include/internal -fPIC -I./Include -I. -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/opt/Python-3.10.1/Include -I/opt/Python-3.10.1 -c /opt/Python-3.10.1/Modules/_hashopenssl.c -o build/temp.linux-x86_64-3.10/opt/Python-3.10.1/Modules/_hashopenssl.o /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘py_digest_name’: /opt/Python-3.10.1/Modules/_hashopenssl.c:158:10: error: ‘NID_sha3_224’ undeclared (first use in this function); did you mean ‘NID_sha224’? case NID_sha3_224: ^~~~~~~~~~~~ NID_sha224 /opt/Python-3.10.1/Modules/_hashopenssl.c:158:10: note: each undeclared identifier is reported only once for each function it appears in /opt/Python-3.10.1/Modules/_hashopenssl.c:161:10: error: ‘NID_sha3_256’ undeclared (first use in this function); did you mean ‘NID_sha3_224’? case NID_sha3_256: ^~~~~~~~~~~~ NID_sha3_224 /opt/Python-3.10.1/Modules/_hashopenssl.c:164:10: error: ‘NID_sha3_384’ undeclared (first use in this function); did you mean ‘NID_sha3_224’? case NID_sha3_384: ^~~~~~~~~~~~ NID_sha3_224 /opt/Python-3.10.1/Modules/_hashopenssl.c:167:10: error: ‘NID_sha3_512’ undeclared (first use in this function); did you mean ‘NID_sha512’? case NID_sha3_512: ^~~~~~~~~~~~ NID_sha512 /opt/Python-3.10.1/Modules/_hashopenssl.c:172:10: error: ‘NID_shake128’ undeclared (first use in this function); did you mean ‘NID_sha512’? case NID_shake128: ^~~~~~~~~~~~ NID_sha512 /opt/Python-3.10.1/Modules/_hashopenssl.c:175:10: error: ‘NID_shake256’ undeclared (first use in this function); did you mean ‘NID_sha3_256’? case NID_shake256: ^~~~~~~~~~~~ NID_sha3_256 /opt/Python-3.10.1/Modules/_hashopenssl.c:180:10: error: ‘NID_blake2s256’ undeclared (first use in this function); did you mean ‘NID_shake256’? case NID_blake2s256: ^~~~~~~~~~~~~~ NID_shake256 /opt/Python-3.10.1/Modules/_hashopenssl.c:183:10: error: ‘NID_blake2b512’ undeclared (first use in this function); did you mean ‘NID_blake2s256’? case NID_blake2b512: ^~~~~~~~~~~~~~ NID_blake2s256 /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘py_digest_by_name’: /opt/Python-3.10.1/Modules/_hashopenssl.c:222:22: error: implicit declaration of function ‘EVP_sha3_224’; did you mean ‘EVP_sha224’? [-Werror=implicit-function-declaration] digest = EVP_sha3_224(); ^~~~~~~~~~~~ EVP_sha224 /opt/Python-3.10.1/Modules/_hashopenssl.c:222:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion] digest = EVP_sha3_224(); ^ /opt/Python-3.10.1/Modules/_hashopenssl.c:225:22: error: implicit declaration of function ‘EVP_sha3_256’; did you mean ‘EVP_sha256’? [-Werror=implicit-function-declaration] digest = EVP_sha3_256(); ^~~~~~~~~~~~ EVP_sha256 /opt/Python-3.10.1/Modules/_hashopenssl.c:225:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion] digest = EVP_sha3_256(); ^ /opt/Python-3.10.1/Modules/_hashopenssl.c:228:22: error: implicit declaration of function ‘EVP_sha3_384’; did you mean ‘EVP_sha384’? [-Werror=implicit-function-declaration] digest = EVP_sha3_384(); ^~~~~~~~~~~~ EVP_sha384 /opt/Python-3.10.1/Modules/_hashopenssl.c:228:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion] digest = EVP_sha3_384(); ^ /opt/Python-3.10.1/Modules/_hashopenssl.c:231:22: error: implicit declaration of function ‘EVP_sha3_512’; did you mean ‘EVP_sha512’? [-Werror=implicit-function-declaration] digest = EVP_sha3_512(); ^~~~~~~~~~~~ EVP_sha512 /opt/Python-3.10.1/Modules/_hashopenssl.c:231:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion] digest = EVP_sha3_512(); ^ /opt/Python-3.10.1/Modules/_hashopenssl.c:236:22: error: implicit declaration of function ‘EVP_shake128’; did you mean ‘EVP_sha512’? [-Werror=implicit-function-declaration] digest = EVP_shake128(); ^~~~~~~~~~~~ EVP_sha512 /opt/Python-3.10.1/Modules/_hashopenssl.c:236:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion] digest = EVP_shake128(); ^ /opt/Python-3.10.1/Modules/_hashopenssl.c:239:22: error: implicit declaration of function ‘EVP_shake256’; did you mean ‘EVP_sha256’? [-Werror=implicit-function-declaration] digest = EVP_shake256(); ^~~~~~~~~~~~ EVP_sha256 /opt/Python-3.10.1/Modules/_hashopenssl.c:239:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion] digest = EVP_shake256(); ^ /opt/Python-3.10.1/Modules/_hashopenssl.c:244:22: error: implicit declaration of function ‘EVP_blake2s256’; did you mean ‘EVP_sha256’? [-Werror=implicit-function-declaration] digest = EVP_blake2s256(); ^~~~~~~~~~~~~~ EVP_sha256 /opt/Python-3.10.1/Modules/_hashopenssl.c:244:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion] digest = EVP_blake2s256(); ^ /opt/Python-3.10.1/Modules/_hashopenssl.c:247:22: error: implicit declaration of function ‘EVP_blake2b512’; did you mean ‘EVP_sha512’? [-Werror=implicit-function-declaration] digest = EVP_blake2b512(); ^~~~~~~~~~~~~~ EVP_sha512 /opt/Python-3.10.1/Modules/_hashopenssl.c:247:20: warning: assignment makes pointer from integer without a cast [-Wint-conversion] digest = EVP_blake2b512(); ^ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘newEVPobject’: /opt/Python-3.10.1/Modules/_hashopenssl.c:312:19: error: implicit declaration of function ‘EVP_MD_CTX_new’; did you mean ‘EVP_MD_CTX_init’? [-Werror=implicit-function-declaration] retval->ctx = EVP_MD_CTX_new(); ^~~~~~~~~~~~~~ EVP_MD_CTX_init /opt/Python-3.10.1/Modules/_hashopenssl.c:312:17: warning: assignment makes pointer from integer without a cast [-Wint-conversion] retval->ctx = EVP_MD_CTX_new(); ^ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘EVP_dealloc’: /opt/Python-3.10.1/Modules/_hashopenssl.c:350:5: error: implicit declaration of function ‘EVP_MD_CTX_free’; did you mean ‘EVP_MD_CTX_create’? [-Werror=implicit-function-declaration] EVP_MD_CTX_free(self->ctx); ^~~~~~~~~~~~~~~ EVP_MD_CTX_create /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘EVP_digest_impl’: /opt/Python-3.10.1/Modules/_hashopenssl.c:404:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion] temp_ctx = EVP_MD_CTX_new(); ^ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘EVP_hexdigest_impl’: /opt/Python-3.10.1/Modules/_hashopenssl.c:438:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion] temp_ctx = EVP_MD_CTX_new(); ^ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘EVPXOF_digest_impl’: /opt/Python-3.10.1/Modules/_hashopenssl.c:616:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion] temp_ctx = EVP_MD_CTX_new(); ^ /opt/Python-3.10.1/Modules/_hashopenssl.c:628:10: error: implicit declaration of function ‘EVP_DigestFinalXOF’; did you mean ‘EVP_DigestFinal’? [-Werror=implicit-function-declaration] if (!EVP_DigestFinalXOF(temp_ctx, ^~~~~~~~~~~~~~~~~~ EVP_DigestFinal /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘EVPXOF_hexdigest_impl’: /opt/Python-3.10.1/Modules/_hashopenssl.c:663:14: warning: assignment makes pointer from integer without a cast [-Wint-conversion] temp_ctx = EVP_MD_CTX_new(); ^ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘EVPnew’: /opt/Python-3.10.1/Modules/_hashopenssl.c:761:33: error: ‘EVP_MD_FLAG_XOF’ undeclared (first use in this function); did you mean ‘EVP_MD_FLAG_FIPS’? if ((EVP_MD_flags(digest) & EVP_MD_FLAG_XOF) == EVP_MD_FLAG_XOF) { ^~~~~~~~~~~~~~~ EVP_MD_FLAG_FIPS /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘_hashlib_openssl_sha3_224_impl’: /opt/Python-3.10.1/Modules/_hashopenssl.c:1009:43: warning: passing argument 3 of ‘EVP_fast_new’ makes pointer from integer without a cast [-Wint-conversion] return EVP_fast_new(module, data_obj, EVP_sha3_224(), usedforsecurity); ^~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c:852:1: note: expected ‘const EVP_MD * {aka const struct env_md_st *}’ but argument is of type ‘int’ EVP_fast_new(PyObject *module, PyObject *data_obj, const EVP_MD *digest, ^~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘_hashlib_openssl_sha3_256_impl’: /opt/Python-3.10.1/Modules/_hashopenssl.c:1028:43: warning: passing argument 3 of ‘EVP_fast_new’ makes pointer from integer without a cast [-Wint-conversion] return EVP_fast_new(module, data_obj, EVP_sha3_256(), usedforsecurity); ^~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c:852:1: note: expected ‘const EVP_MD * {aka const struct env_md_st *}’ but argument is of type ‘int’ EVP_fast_new(PyObject *module, PyObject *data_obj, const EVP_MD *digest, ^~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘_hashlib_openssl_sha3_384_impl’: /opt/Python-3.10.1/Modules/_hashopenssl.c:1047:43: warning: passing argument 3 of ‘EVP_fast_new’ makes pointer from integer without a cast [-Wint-conversion] return EVP_fast_new(module, data_obj, EVP_sha3_384(), usedforsecurity); ^~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c:852:1: note: expected ‘const EVP_MD * {aka const struct env_md_st *}’ but argument is of type ‘int’ EVP_fast_new(PyObject *module, PyObject *data_obj, const EVP_MD *digest, ^~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘_hashlib_openssl_sha3_512_impl’: /opt/Python-3.10.1/Modules/_hashopenssl.c:1066:43: warning: passing argument 3 of ‘EVP_fast_new’ makes pointer from integer without a cast [-Wint-conversion] return EVP_fast_new(module, data_obj, EVP_sha3_512(), usedforsecurity); ^~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c:852:1: note: expected ‘const EVP_MD * {aka const struct env_md_st *}’ but argument is of type ‘int’ EVP_fast_new(PyObject *module, PyObject *data_obj, const EVP_MD *digest, ^~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘_hashlib_openssl_shake_128_impl’: /opt/Python-3.10.1/Modules/_hashopenssl.c:1087:43: warning: passing argument 3 of ‘EVP_fast_new’ makes pointer from integer without a cast [-Wint-conversion] return EVP_fast_new(module, data_obj, EVP_shake128(), usedforsecurity); ^~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c:852:1: note: expected ‘const EVP_MD * {aka const struct env_md_st *}’ but argument is of type ‘int’ EVP_fast_new(PyObject *module, PyObject *data_obj, const EVP_MD *digest, ^~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘_hashlib_openssl_shake_256_impl’: /opt/Python-3.10.1/Modules/_hashopenssl.c:1106:43: warning: passing argument 3 of ‘EVP_fast_new’ makes pointer from integer without a cast [-Wint-conversion] return EVP_fast_new(module, data_obj, EVP_shake256(), usedforsecurity); ^~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c:852:1: note: expected ‘const EVP_MD * {aka const struct env_md_st *}’ but argument is of type ‘int’ EVP_fast_new(PyObject *module, PyObject *data_obj, const EVP_MD *digest, ^~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘_hashlib_scrypt_impl’: /opt/Python-3.10.1/Modules/_hashopenssl.c:1298:14: error: implicit declaration of function ‘EVP_PBE_scrypt’; did you mean ‘EVP_PKEY_decrypt’? [-Werror=implicit-function-declaration] retval = EVP_PBE_scrypt(NULL, 0, NULL, 0, n, r, p, maxmem, NULL, 0); ^~~~~~~~~~~~~~ EVP_PKEY_decrypt /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘_hashlib_hmac_new_impl’: /opt/Python-3.10.1/Modules/_hashopenssl.c:1428:11: error: implicit declaration of function ‘HMAC_CTX_new’; did you mean ‘HMAC_CTX_init’? [-Werror=implicit-function-declaration] ctx = HMAC_CTX_new(); ^~~~~~~~~~~~ HMAC_CTX_init /opt/Python-3.10.1/Modules/_hashopenssl.c:1428:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion] ctx = HMAC_CTX_new(); ^ /opt/Python-3.10.1/Modules/_hashopenssl.c:1461:14: error: implicit declaration of function ‘HMAC_CTX_free’; did you mean ‘HMAC_CTX_copy’? [-Werror=implicit-function-declaration] if (ctx) HMAC_CTX_free(ctx); ^~~~~~~~~~~~~ HMAC_CTX_copy /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘_hmac_digest_size’: /opt/Python-3.10.1/Modules/_hashopenssl.c:1480:44: error: implicit declaration of function ‘HMAC_CTX_get_md’; did you mean ‘HMAC_CTX_set_flags’? [-Werror=implicit-function-declaration] unsigned int digest_size = EVP_MD_size(HMAC_CTX_get_md(self->ctx)); ^~~~~~~~~~~~~~~ HMAC_CTX_set_flags /opt/Python-3.10.1/Modules/_hashopenssl.c:1480:44: warning: passing argument 1 of ‘EVP_MD_size’ makes pointer from integer without a cast [-Wint-conversion] In file included from /opt/Python-3.10.1/Modules/_hashopenssl.c:28:0: /usr/include/openssl/evp.h:520:5: note: expected ‘const EVP_MD * {aka const struct env_md_st *}’ but argument is of type ‘int’ int EVP_MD_size(const EVP_MD *md); ^~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘_hashlib_HMAC_copy_impl’: /opt/Python-3.10.1/Modules/_hashopenssl.c:1529:21: warning: initialization makes pointer from integer without a cast [-Wint-conversion] HMAC_CTX *ctx = HMAC_CTX_new(); ^~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘_hmac_repr’: /opt/Python-3.10.1/Modules/_hashopenssl.c:1564:44: warning: passing argument 1 of ‘py_digest_name’ makes pointer from integer without a cast [-Wint-conversion] PyObject *digest_name = py_digest_name(HMAC_CTX_get_md(self->ctx)); ^~~~~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c:122:1: note: expected ‘const EVP_MD * {aka const struct env_md_st *}’ but argument is of type ‘int’ py_digest_name(const EVP_MD *md) ^~~~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘_hmac_digest’: /opt/Python-3.10.1/Modules/_hashopenssl.c:1595:26: warning: initialization makes pointer from integer without a cast [-Wint-conversion] HMAC_CTX *temp_ctx = HMAC_CTX_new(); ^~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘_hashlib_hmac_get_block_size’: /opt/Python-3.10.1/Modules/_hashopenssl.c:1672:24: warning: initialization makes pointer from integer without a cast [-Wint-conversion] const EVP_MD *md = HMAC_CTX_get_md(self->ctx); ^~~~~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c: In function ‘_hashlib_hmac_get_name’: /opt/Python-3.10.1/Modules/_hashopenssl.c:1682:44: warning: passing argument 1 of ‘py_digest_name’ makes pointer from integer without a cast [-Wint-conversion] PyObject *digest_name = py_digest_name(HMAC_CTX_get_md(self->ctx)); ^~~~~~~~~~~~~~~ /opt/Python-3.10.1/Modules/_hashopenssl.c:122:1: note: expected ‘const EVP_MD * {aka const struct env_md_st *}’ but argument is of type ‘int’ py_digest_name(const EVP_MD *md) ^~~~~~~~~~~~~~ cc1: some warnings being treated as errors Python build finished successfully! The necessary bits to build these optional modules were not found: _bz2 _curses _curses_panel _dbm _gdbm _sqlite3 _tkinter readline To find the necessary bits, look in setup.py in detect_modules() for the module's name. The following modules found by detect_modules() in setup.py, have been built by the Makefile instead, as configured by the Setup files: _abc pwd time Failed to build these modules: _hashlib _ssl Could not build the ssl module! Python requires a OpenSSL 1.1.1 or newer