Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined symbols for architecture arm64 #1067

Closed
jakublaba opened this issue Jul 15, 2024 · 1 comment
Closed

Undefined symbols for architecture arm64 #1067

jakublaba opened this issue Jul 15, 2024 · 1 comment

Comments

@jakublaba
Copy link

jakublaba commented Jul 15, 2024

MacOS version: 14.5 Sonoma
rustc & cargo version: 1.79.0
openssl version: 3.3.1

I'm getting lots of errors related to undefined symbols for arm64 architecture when trying to build.

          Undefined symbols for architecture arm64:
            "_BIO_ctrl", referenced from:
                __libssh2_pub_priv_keyfile in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_pub_priv_keyfilememory in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_BIO_free", referenced from:
                _read_private_key_from_memory in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _read_private_key_from_file in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_pub_priv_keyfile in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_pub_priv_keyfilememory in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_BIO_new_file", referenced from:
                _read_private_key_from_file in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_pub_priv_keyfile in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_BIO_new_mem_buf", referenced from:
                _read_private_key_from_memory in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_pub_priv_keyfilememory in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_BN_CTX_free", referenced from:
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                __libssh2_ecdsa_create_key in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ecdh_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_curve25519_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_ec_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_rsa_new_additional_parameters in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_BN_CTX_new", referenced from:
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                __libssh2_ecdsa_create_key in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ecdh_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_curve25519_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_ec_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_rsa_new_additional_parameters in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_BN_bin2bn", referenced from:
                _kex_method_diffie_hellman_group_exchange_sha256_key_exchange in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _kex_method_diffie_hellman_group_exchange_sha256_key_exchange in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _kex_method_diffie_hellman_group16_sha512_key_exchange in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _kex_method_diffie_hellman_group18_sha512_key_exchange in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _kex_method_diffie_hellman_group14_key_exchange in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _kex_method_diffie_hellman_group1_sha1_key_exchange in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                ...
            "_BN_bn2bin", referenced from:
                _curve25519_sha256 in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _curve25519_sha256 in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _ecdh_sha2_nistp in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _ecdh_sha2_nistp in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                ...
            "_BN_clear_free", referenced from:
                _curve25519_sha256 in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _ecdh_sha2_nistp in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _kex_method_diffie_hellman_group_exchange_sha256_key_exchange in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _kex_method_diffie_hellman_group_exchange_sha256_key_exchange in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                ...
            "_BN_div", referenced from:
                __libssh2_rsa_new_additional_parameters in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_rsa_new_additional_parameters in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_BN_mod_exp", referenced from:
                __libssh2_dh_key_pair in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_dh_secret in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_BN_new", referenced from:
                _curve25519_sha256 in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _ecdh_sha2_nistp in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _kex_method_diffie_hellman_group_exchange_sha256_key_exchange in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _kex_method_diffie_hellman_group_exchange_sha256_key_exchange in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                ...
            "_BN_num_bits", referenced from:
                _curve25519_sha256 in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _curve25519_sha256 in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _curve25519_sha256 in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _ecdh_sha2_nistp in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _ecdh_sha2_nistp in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _ecdh_sha2_nistp in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _diffie_hellman_sha_algo in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                ...
            "_BN_rand", referenced from:
                __libssh2_dh_key_pair in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_BN_set_word", referenced from:
                _kex_method_diffie_hellman_group16_sha512_key_exchange in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _kex_method_diffie_hellman_group18_sha512_key_exchange in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _kex_method_diffie_hellman_group14_key_exchange in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _kex_method_diffie_hellman_group1_sha1_key_exchange in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
            "_BN_sub", referenced from:
                __libssh2_rsa_new_additional_parameters in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_rsa_new_additional_parameters in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_BN_value_one", referenced from:
                __libssh2_rsa_new_additional_parameters in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_rsa_new_additional_parameters in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_DSA_SIG_free", referenced from:
                __libssh2_dsa_sha1_verify in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_dsa_sha1_sign in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_dsa_sha1_sign in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_dsa_sha1_sign in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_DSA_SIG_get0", referenced from:
                __libssh2_dsa_sha1_sign in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_DSA_SIG_new", referenced from:
                __libssh2_dsa_sha1_verify in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_DSA_SIG_set0", referenced from:
                __libssh2_dsa_sha1_verify in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_DSA_do_sign", referenced from:
                __libssh2_dsa_sha1_sign in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_DSA_do_verify", referenced from:
                __libssh2_dsa_sha1_verify in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_DSA_free", referenced from:
                _hostkey_method_ssh_dss_dtor in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                _gen_publickey_from_dsa_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_dsa_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_dsa_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_dsa_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_DSA_get0_key", referenced from:
                _gen_publickey_from_dsa in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_DSA_get0_pqg", referenced from:
                _gen_publickey_from_dsa in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_DSA_new", referenced from:
                __libssh2_dsa_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_DSA_set0_key", referenced from:
                __libssh2_dsa_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_DSA_set0_pqg", referenced from:
                __libssh2_dsa_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_ECDH_compute_key", referenced from:
                __libssh2_ecdh_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_ECDSA_SIG_free", referenced from:
                __libssh2_ecdsa_verify in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ecdsa_sign in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_ECDSA_SIG_get0", referenced from:
                __libssh2_ecdsa_sign in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_ECDSA_SIG_new", referenced from:
                __libssh2_ecdsa_verify in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_ECDSA_SIG_set0", referenced from:
                __libssh2_ecdsa_verify in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_ECDSA_do_sign", referenced from:
                __libssh2_ecdsa_sign in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_ECDSA_do_verify", referenced from:
                __libssh2_ecdsa_verify in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ecdsa_verify in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ecdsa_verify in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EC_GROUP_get_curve_name", referenced from:
                __libssh2_ecdsa_get_curve_type in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EC_GROUP_get_degree", referenced from:
                __libssh2_ecdh_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EC_KEY_free", referenced from:
                _hostkey_method_ssh_ecdsa_dtor in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                _kex_method_ecdh_key_exchange in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                _gen_publickey_from_ec_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EC_KEY_generate_key", referenced from:
                __libssh2_ecdsa_create_key in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EC_KEY_get0_group", referenced from:
                __libssh2_ecdsa_get_curve_type in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ecdsa_curve_name_with_octal_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ecdsa_create_key in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ecdh_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_ec_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EC_KEY_get0_public_key", referenced from:
                __libssh2_ecdsa_create_key in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_ec_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EC_KEY_new_by_curve_name", referenced from:
                __libssh2_ecdsa_curve_name_with_octal_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ecdsa_create_key in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EC_KEY_set_private_key", referenced from:
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EC_KEY_set_public_key", referenced from:
                __libssh2_ecdsa_curve_name_with_octal_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EC_POINT_free", referenced from:
                __libssh2_ecdsa_curve_name_with_octal_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ecdh_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EC_POINT_new", referenced from:
                __libssh2_ecdsa_curve_name_with_octal_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ecdh_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EC_POINT_oct2point", referenced from:
                __libssh2_ecdsa_curve_name_with_octal_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ecdh_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EC_POINT_point2oct", referenced from:
                __libssh2_ecdsa_create_key in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ecdsa_create_key in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_ec_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_ec_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_ENGINE_load_builtin_engines", referenced from:
                __libssh2_openssl_crypto_init in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_ENGINE_register_all_complete", referenced from:
                __libssh2_openssl_crypto_init in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_CIPHER_CTX_free", referenced from:
                _crypt_dtor in liblibssh2_sys-dc573823908a42ca.rlib[9](903bc623e643396f-crypt.o)
            "_EVP_CIPHER_CTX_new", referenced from:
                __libssh2_cipher_init in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_CipherInit", referenced from:
                __libssh2_cipher_init in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_CipherUpdate", referenced from:
                __libssh2_cipher_crypt in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_DigestFinal", referenced from:
                _bcrypt_pbkdf in liblibssh2_sys-dc573823908a42ca.rlib[5](903bc623e643396f-bcrypt_pbkdf.o)
                _bcrypt_pbkdf in liblibssh2_sys-dc573823908a42ca.rlib[5](903bc623e643396f-bcrypt_pbkdf.o)
                _bcrypt_pbkdf in liblibssh2_sys-dc573823908a42ca.rlib[5](903bc623e643396f-bcrypt_pbkdf.o)
                _hostkey_method_ssh_ecdsa_signv in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                _hostkey_method_ssh_ecdsa_signv in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                _hostkey_method_ssh_ecdsa_signv in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                _hostkey_method_ssh_rsa_sha2_512_signv in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                ...
            "_EVP_DigestInit", referenced from:
                __libssh2_sha1 in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha256 in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha512 in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha384 in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha1_init in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha256_init in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha384_init in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                ...
            "_EVP_DigestSign", referenced from:
                __libssh2_ed25519_sign in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ed25519_sign in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_DigestSignInit", referenced from:
                __libssh2_ed25519_sign in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_DigestUpdate", referenced from:
                _bcrypt_pbkdf in liblibssh2_sys-dc573823908a42ca.rlib[5](903bc623e643396f-bcrypt_pbkdf.o)
                _bcrypt_pbkdf in liblibssh2_sys-dc573823908a42ca.rlib[5](903bc623e643396f-bcrypt_pbkdf.o)
                _bcrypt_pbkdf in liblibssh2_sys-dc573823908a42ca.rlib[5](903bc623e643396f-bcrypt_pbkdf.o)
                _hostkey_method_ssh_ecdsa_signv in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                _hostkey_method_ssh_ecdsa_signv in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                _hostkey_method_ssh_ecdsa_signv in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                _hostkey_method_ssh_rsa_sha2_512_signv in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                ...
            "_EVP_DigestVerify", referenced from:
                __libssh2_ed25519_verify in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_DigestVerifyInit", referenced from:
                __libssh2_ed25519_verify in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_MD_CTX_free", referenced from:
                _bcrypt_pbkdf in liblibssh2_sys-dc573823908a42ca.rlib[5](903bc623e643396f-bcrypt_pbkdf.o)
                _bcrypt_pbkdf in liblibssh2_sys-dc573823908a42ca.rlib[5](903bc623e643396f-bcrypt_pbkdf.o)
                _bcrypt_pbkdf in liblibssh2_sys-dc573823908a42ca.rlib[5](903bc623e643396f-bcrypt_pbkdf.o)
                _hostkey_method_ssh_ecdsa_signv in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                _hostkey_method_ssh_ecdsa_signv in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                _hostkey_method_ssh_ecdsa_signv in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                _hostkey_method_ssh_rsa_sha2_512_signv in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                ...
            "_EVP_MD_CTX_new", referenced from:
                __libssh2_sha1 in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha256 in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha512 in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha384 in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha1_init in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha256_init in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha384_init in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                ...
            "_EVP_PKEY_CTX_free", referenced from:
                __libssh2_curve25519_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_curve25519_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_CTX_new", referenced from:
                __libssh2_curve25519_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_CTX_new_id", referenced from:
                __libssh2_curve25519_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_derive", referenced from:
                __libssh2_curve25519_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_curve25519_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_derive_init", referenced from:
                __libssh2_curve25519_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_derive_set_peer", referenced from:
                __libssh2_curve25519_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_free", referenced from:
                _hostkey_method_ssh_ed25519_dtor in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                __libssh2_curve25519_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ed25519_new_private in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_ed25519_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_ed25519_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ed25519_new_private_frommemory in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ed25519_new_public in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                ...
            "_EVP_PKEY_get1_DSA", referenced from:
                _gen_publickey_from_dsa_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_get1_EC_KEY", referenced from:
                _gen_publickey_from_ec_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_get1_RSA", referenced from:
                _gen_publickey_from_rsa_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_get_id", referenced from:
                __libssh2_ed25519_new_private_frommemory in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_pub_priv_keyfile in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_pub_priv_keyfilememory in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_get_raw_private_key", referenced from:
                __libssh2_curve25519_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_get_raw_public_key", referenced from:
                __libssh2_curve25519_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_ed_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_ed_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_keygen", referenced from:
                __libssh2_curve25519_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_keygen_init", referenced from:
                __libssh2_curve25519_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_new", referenced from:
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_dsa_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_new_raw_private_key", referenced from:
                _gen_publickey_from_ed25519_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_curve25519_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_new_raw_public_key", referenced from:
                __libssh2_ed25519_new_public in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_curve25519_gen_k in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_set1_DSA", referenced from:
                _gen_publickey_from_dsa_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_set1_EC_KEY", referenced from:
                _gen_publickey_from_ecdsa_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_PKEY_set1_RSA", referenced from:
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_EVP_aes_128_cbc", referenced from:
                _libssh2_crypt_method_aes128_cbc in liblibssh2_sys-dc573823908a42ca.rlib[9](903bc623e643396f-crypt.o)
            "_EVP_aes_128_ctr", referenced from:
                _libssh2_crypt_method_aes128_ctr in liblibssh2_sys-dc573823908a42ca.rlib[9](903bc623e643396f-crypt.o)
            "_EVP_aes_192_cbc", referenced from:
                _libssh2_crypt_method_aes192_cbc in liblibssh2_sys-dc573823908a42ca.rlib[9](903bc623e643396f-crypt.o)
            "_EVP_aes_192_ctr", referenced from:
                _libssh2_crypt_method_aes192_ctr in liblibssh2_sys-dc573823908a42ca.rlib[9](903bc623e643396f-crypt.o)
            "_EVP_aes_256_cbc", referenced from:
                _libssh2_crypt_method_aes256_cbc in liblibssh2_sys-dc573823908a42ca.rlib[9](903bc623e643396f-crypt.o)
                _libssh2_crypt_method_rijndael_cbc_lysator_liu_se in liblibssh2_sys-dc573823908a42ca.rlib[9](903bc623e643396f-crypt.o)
            "_EVP_aes_256_ctr", referenced from:
                _libssh2_crypt_method_aes256_ctr in liblibssh2_sys-dc573823908a42ca.rlib[9](903bc623e643396f-crypt.o)
            "_EVP_bf_cbc", referenced from:
                _libssh2_crypt_method_blowfish_cbc in liblibssh2_sys-dc573823908a42ca.rlib[9](903bc623e643396f-crypt.o)
            "_EVP_cast5_cbc", referenced from:
                _libssh2_crypt_method_cast128_cbc in liblibssh2_sys-dc573823908a42ca.rlib[9](903bc623e643396f-crypt.o)
            "_EVP_des_ede3_cbc", referenced from:
                _libssh2_crypt_method_3des_cbc in liblibssh2_sys-dc573823908a42ca.rlib[9](903bc623e643396f-crypt.o)
            "_EVP_get_digestbyname", referenced from:
                __libssh2_sha1 in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha256 in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha512 in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha384 in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha1_init in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha256_init in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_sha384_init in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                ...
            "_EVP_md5", referenced from:
                _mac_method_hmac_md5_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
            "_EVP_rc4", referenced from:
                _libssh2_crypt_method_arcfour128 in liblibssh2_sys-dc573823908a42ca.rlib[9](903bc623e643396f-crypt.o)
                _libssh2_crypt_method_arcfour in liblibssh2_sys-dc573823908a42ca.rlib[9](903bc623e643396f-crypt.o)
            "_EVP_ripemd160", referenced from:
                _mac_method_hmac_ripemd160_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
            "_EVP_sha1", referenced from:
                _knownhost_check in liblibssh2_sys-dc573823908a42ca.rlib[14](903bc623e643396f-knownhost.o)
                _mac_method_hmac_sha1_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
            "_EVP_sha256", referenced from:
                _mac_method_hmac_sha2_256_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
            "_EVP_sha512", referenced from:
                _mac_method_hmac_sha2_512_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
            "_HMAC_CTX_free", referenced from:
                _knownhost_check in liblibssh2_sys-dc573823908a42ca.rlib[14](903bc623e643396f-knownhost.o)
                _mac_method_hmac_sha2_256_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_sha2_512_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_sha1_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_md5_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_ripemd160_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
            "_HMAC_CTX_new", referenced from:
                _knownhost_check in liblibssh2_sys-dc573823908a42ca.rlib[14](903bc623e643396f-knownhost.o)
                _mac_method_hmac_sha2_256_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_sha2_512_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_sha1_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_md5_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_ripemd160_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
            "_HMAC_Final", referenced from:
                _knownhost_check in liblibssh2_sys-dc573823908a42ca.rlib[14](903bc623e643396f-knownhost.o)
                _mac_method_hmac_sha2_256_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_sha2_512_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_sha1_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_md5_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_ripemd160_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
            "_HMAC_Init_ex", referenced from:
                _knownhost_check in liblibssh2_sys-dc573823908a42ca.rlib[14](903bc623e643396f-knownhost.o)
                _mac_method_hmac_sha2_256_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_sha2_512_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_sha1_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_md5_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_ripemd160_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
            "_HMAC_Update", referenced from:
                _knownhost_check in liblibssh2_sys-dc573823908a42ca.rlib[14](903bc623e643396f-knownhost.o)
                _mac_method_hmac_sha2_256_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_sha2_256_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_sha2_256_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_sha2_512_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_sha2_512_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                _mac_method_hmac_sha2_512_hash in liblibssh2_sys-dc573823908a42ca.rlib[15](903bc623e643396f-mac.o)
                ...
            "_OPENSSL_init_ssl", referenced from:
                openssl_sys::openssl::init::_$u7b$$u7b$closure$u7d$$u7d$::h45262a8d1164426c in libopenssl_sys-497bef66ef357297.rlib[3](openssl_sys-497bef66ef357297.openssl_sys.6e08c9136609e5e3-cgu.0.rcgu.o)
            "_PEM_read_bio_DSAPrivateKey", referenced from:
                __libssh2_dsa_new_private_frommemory in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_dsa_new_private in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_PEM_read_bio_ECPrivateKey", referenced from:
                __libssh2_ecdsa_new_private_frommemory in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_ecdsa_new_private in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_PEM_read_bio_PrivateKey", referenced from:
                __libssh2_ed25519_new_private_frommemory in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_pub_priv_keyfile in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_pub_priv_keyfilememory in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_PEM_read_bio_RSAPrivateKey", referenced from:
                __libssh2_rsa_new_private_frommemory in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_rsa_new_private in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_RAND_bytes", referenced from:
                _kexinit in liblibssh2_sys-dc573823908a42ca.rlib[13](903bc623e643396f-kex.o)
                __libssh2_transport_send in liblibssh2_sys-dc573823908a42ca.rlib[23](903bc623e643396f-transport.o)
            "_RSA_free", referenced from:
                _hostkey_method_ssh_rsa_dtor in liblibssh2_sys-dc573823908a42ca.rlib[11](903bc623e643396f-hostkey.o)
                _gen_publickey_from_rsa_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_rsa_evp in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_rsa_openssh_priv_data in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_RSA_get0_factors", referenced from:
                __libssh2_rsa_new_additional_parameters in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_RSA_get0_key", referenced from:
                __libssh2_rsa_new_additional_parameters in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                _gen_publickey_from_rsa in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_RSA_new", referenced from:
                __libssh2_rsa_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_RSA_set0_crt_params", referenced from:
                __libssh2_rsa_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_rsa_new_additional_parameters in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_RSA_set0_factors", referenced from:
                __libssh2_rsa_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_RSA_set0_key", referenced from:
                __libssh2_rsa_new in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_RSA_sign", referenced from:
                __libssh2_rsa_sha2_sign in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_rsa_sha2_sign in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
                __libssh2_rsa_sha2_sign in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_RSA_size", referenced from:
                __libssh2_rsa_sha2_sign in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
            "_RSA_verify", referenced from:
                __libssh2_rsa_sha2_verify in liblibssh2_sys-dc573823908a42ca.rlib[26](903bc623e643396f-openssl.o)
          ld: symbol(s) not found for architecture arm64
          clang: error: linker command failed with exit code 1 (use -v to see invocation)

I've tried reinstalling openssl and rust toolchain, tried building with and without libgit2 installed, but it persists.
I've reviewed other issues related to building on MacOS, but they didn't help me either.

@jakublaba jakublaba reopened this Jul 17, 2024
@jakublaba
Copy link
Author

jakublaba commented Jul 26, 2024

I've managed to resolve it - turns out I had intel version of homebrew installed, and because of that I also had x86 versions of openssl and libssh2.
After changing rustup target to stable-x86_64-apple-darwin it works.
I'll also try to install arm version of homebrew and libs, switch target back to stable-aarch64-apple-darwin and give update on that.

EDIT: also no issues with arm versions of packages

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant