krzyzanowskim/OpenSSL

Compilation error

ygf-git opened this issue · 1 comments

There is no problem using 1.0.2.20 because to be compatible with MacOS M1 chips, OpenSSL needs to be upgraded.
Error reported after upgrade
Undefined symbols for architecture x86_64:
"_HMAC_CTX_cleanup", referenced from:
_srtp_hmac_dealloc in hmac_ossl.o
"_HMAC_CTX_init", referenced from:
_srtp_hmac_alloc in hmac_ossl.o
"_RAND_egd", referenced from:
_create_ssl in ssl_sock_ossl.o
"_SSL_get_ex_new_index", referenced from:
_init_openssl in ssl_sock_ossl.o
"_SSL_library_init", referenced from:
_init_openssl in ssl_sock_ossl.o
"_SSL_load_error_strings", referenced from:
_init_openssl in ssl_sock_ossl.o
"_SSL_state", referenced from:
_ssl_on_destroy in ssl_sock_ossl.o
_do_handshake in ssl_sock_ossl.o
(maybe you meant: _SSL_stateless)
"_SSLv23_method", referenced from:
_create_ssl in ssl_sock_ossl.o
"_SSLv23_server_method", referenced from:
_init_openssl in ssl_sock_ossl.o
"_SSLv2_method", referenced from:
_create_ssl in ssl_sock_ossl.o
"_SSLv2_server_method", referenced from:
_init_openssl in ssl_sock_ossl.o
"_SSLv3_method", referenced from:
_create_ssl in ssl_sock_ossl.o
"_SSLv3_server_method", referenced from:
_init_openssl in ssl_sock_ossl.o
"_sk_num", referenced from:
_init_openssl in ssl_sock_ossl.o
_get_cert_info in ssl_sock_ossl.o
_create_ssl in ssl_sock_ossl.o
(maybe you meant: _OPENSSL_sk_num)
"_sk_pop_free", referenced from:
_create_ssl in ssl_sock_ossl.o
(maybe you meant: _OPENSSL_sk_pop_free)
"_sk_value", referenced from:
_init_openssl in ssl_sock_ossl.o
_get_cert_info in ssl_sock_ossl.o
_create_ssl in ssl_sock_ossl.o
(maybe you meant: _OPENSSL_sk_value)
ld: symbol(s) not found for architecture x86_64

I suggest update to 1.1.2200