Subject: Re: Libssh2 for Windows Mobile - help

Re: Libssh2 for Windows Mobile - help

From: Geetha <1986geetha_at_gmail.com>
Date: Mon, 12 Oct 2020 11:05:14 +0530

Thanks for your help.

I have tried adding libssh2.lib before/after two openssl library files. But
still the same linker errors are happening.

Below is the error which i received.

Doubt: Could you please clarify my doubt, is there any specific OpenSSL for
ARMV4i platform. (I am using the one I used for Win32 compilation). If yes
please share the link to download.

Please help to resolve these linker errors.

1>------ Build started: Project: Mobiletesting, Configuration: Debug
Windows Mobile 6 Professional SDK (ARMV4I) ------
1>Linking...
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
RSA_new referenced in function _libssh2_rsa_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BN_bin2bn referenced in function _libssh2_rsa_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BN_new referenced in function _libssh2_rsa_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
RSA_verify referenced in function _libssh2_rsa_sha1_verify
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
DSA_new referenced in function _libssh2_dsa_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
DSA_SIG_free referenced in function _libssh2_dsa_sha1_verify
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
DSA_do_verify referenced in function _libssh2_dsa_sha1_verify
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
DSA_SIG_new referenced in function _libssh2_dsa_sha1_verify
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_GROUP_get_curve_name referenced in function
_libssh2_ecdsa_key_get_curve_type
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_KEY_get0_group referenced in function _libssh2_ecdsa_key_get_curve_type
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_POINT_free referenced in function
_libssh2_ecdsa_curve_name_with_octal_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_KEY_set_public_key referenced in function
_libssh2_ecdsa_curve_name_with_octal_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_POINT_oct2point referenced in function
_libssh2_ecdsa_curve_name_with_octal_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_POINT_new referenced in function _libssh2_ecdsa_curve_name_with_octal_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_KEY_new_by_curve_name referenced in function
_libssh2_ecdsa_curve_name_with_octal_new
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BN_clear_free referenced in function _libssh2_ecdsa_verify
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
ECDSA_do_verify referenced in function _libssh2_ecdsa_verify
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_CipherInit referenced in function _libssh2_cipher_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_CIPHER_CTX_init referenced in function _libssh2_cipher_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_Cipher referenced in function _libssh2_cipher_crypt
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_CIPHER_CTX_set_app_data referenced in function aes_ctr_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_CIPHER_CTX_set_padding referenced in function aes_ctr_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_EncryptInit referenced in function aes_ctr_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_aes_256_ecb referenced in function aes_ctr_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_aes_192_ecb referenced in function aes_ctr_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_aes_128_ecb referenced in function aes_ctr_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_CIPHER_CTX_key_length referenced in function aes_ctr_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_EncryptUpdate referenced in function aes_ctr_do_cipher
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_CIPHER_CTX_get_app_data referenced in function aes_ctr_do_cipher
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_CIPHER_CTX_cleanup referenced in function aes_ctr_cleanup
1>libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol
EVP_CIPHER_CTX_cleanup
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
ENGINE_register_all_complete referenced in function
_libssh2_openssl_crypto_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
ENGINE_load_builtin_engines referenced in function
_libssh2_openssl_crypto_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
OpenSSL_add_all_digests referenced in function _libssh2_openssl_crypto_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
OpenSSL_add_all_ciphers referenced in function _libssh2_openssl_crypto_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
OPENSSL_add_all_algorithms_noconf referenced in function
_libssh2_openssl_crypto_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
PEM_read_bio_RSAPrivateKey referenced in function
_libssh2_rsa_new_private_frommemory
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BIO_free referenced in function read_private_key_from_memory
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BIO_new_mem_buf referenced in function read_private_key_from_memory
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BIO_new_file referenced in function read_private_key_from_file
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
RSA_free referenced in function gen_publickey_from_rsa_openssh_priv_data
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_PKEY_free referenced in function
gen_publickey_from_rsa_openssh_priv_data
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_PKEY_set1_RSA referenced in function
gen_publickey_from_rsa_openssh_priv_data
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_PKEY_new referenced in function gen_publickey_from_rsa_openssh_priv_data
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_PKEY_get1_RSA referenced in function gen_publickey_from_rsa_evp
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BN_num_bits referenced in function gen_publickey_from_rsa
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BN_bn2bin referenced in function write_bn
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BN_CTX_free referenced in function _libssh2_rsa_new_additional_parameters
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BN_div referenced in function _libssh2_rsa_new_additional_parameters
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BN_sub referenced in function _libssh2_rsa_new_additional_parameters
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BN_value_one referenced in function _libssh2_rsa_new_additional_parameters
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BN_CTX_new referenced in function _libssh2_rsa_new_additional_parameters
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
PEM_read_bio_DSAPrivateKey referenced in function
_libssh2_dsa_new_private_frommemory
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
DSA_free referenced in function gen_publickey_from_dsa_openssh_priv_data
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_PKEY_set1_DSA referenced in function
gen_publickey_from_dsa_openssh_priv_data
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_PKEY_get1_DSA referenced in function gen_publickey_from_dsa_evp
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
PEM_read_bio_ECPrivateKey referenced in function
_libssh2_ecdsa_new_private_frommemory
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
RSA_sign referenced in function _libssh2_rsa_sha1_sign
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
RSA_size referenced in function _libssh2_rsa_sha1_sign
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
DSA_do_sign referenced in function _libssh2_dsa_sha1_sign
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
ECDSA_SIG_free referenced in function _libssh2_ecdsa_sign
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
ECDSA_do_sign referenced in function _libssh2_ecdsa_sign
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_DigestInit referenced in function _libssh2_sha1_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_get_digestbyname referenced in function _libssh2_sha1_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_MD_CTX_init referenced in function _libssh2_sha1_init
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_DigestFinal referenced in function _libssh2_sha1
1>libssh2.lib(pem.obj) : error LNK2001: unresolved external symbol
EVP_DigestFinal
1>libssh2.lib(bcrypt_pbkdf.obj) : error LNK2001: unresolved external symbol
EVP_DigestFinal
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_DigestUpdate referenced in function _libssh2_sha1
1>libssh2.lib(pem.obj) : error LNK2001: unresolved external symbol
EVP_DigestUpdate
1>libssh2.lib(bcrypt_pbkdf.obj) : error LNK2001: unresolved external symbol
EVP_DigestUpdate
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_KEY_free referenced in function
gen_publickey_from_ecdsa_openssh_priv_data
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_PKEY_set1_EC_KEY referenced in function
gen_publickey_from_ecdsa_openssh_priv_data
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_KEY_set_private_key referenced in function
gen_publickey_from_ecdsa_openssh_priv_data
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_POINT_point2oct referenced in function gen_publickey_from_ec_evp
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_KEY_get0_public_key referenced in function gen_publickey_from_ec_evp
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EVP_PKEY_get1_EC_KEY referenced in function gen_publickey_from_ec_evp
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_KEY_generate_key referenced in function _libssh2_ecdsa_create_key
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
ECDH_compute_key referenced in function _libssh2_ecdh_gen_k
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
EC_GROUP_get_degree referenced in function _libssh2_ecdh_gen_k
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
PEM_read_bio_PrivateKey referenced in function _libssh2_pub_priv_keyfile
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BIO_ctrl referenced in function _libssh2_pub_priv_keyfile
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BN_mod_exp referenced in function _libssh2_dh_key_pair
1>libssh2.lib(openssl.obj) : error LNK2019: unresolved external symbol
BN_rand referenced in function _libssh2_dh_key_pair
1>libssh2.lib(misc.obj) : error LNK2019: unresolved external symbol recv
referenced in function _libssh2_recv
1>libssh2.lib(misc.obj) : error LNK2019: unresolved external symbol
WSAGetLastError referenced in function wsa2errno
1>libssh2.lib(misc.obj) : error LNK2019: unresolved external symbol send
referenced in function _libssh2_send
1>libssh2.lib(misc.obj) : error LNK2019: unresolved external symbol
vsnprintf referenced in function snprintf
1>libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol
EVP_des_ede3_cbc
1>libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol
EVP_cast5_cbc
1>libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol EVP_rc4
1>libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol
EVP_bf_cbc
1>libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol
EVP_aes_256_cbc
1>libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol
EVP_aes_192_cbc
1>libssh2.lib(crypt.obj) : error LNK2001: unresolved external symbol
EVP_aes_128_cbc
1>Windows Mobile 6 Professional SDK (ARMV4I)\Debug/Mobiletesting.exe :
fatal error LNK1120: 90 unresolved externals

Thanks,
Geetha

On Sat, Oct 10, 2020 at 9:55 PM Peter Stuge <peter_at_stuge.se> wrote:

> Geetha wrote:
> > Thanks for your kindly help.
> >
> > I have added openssl libs like libeay32.lib and ssleay32.lib when I link
> > the libssh2.lib in my project.
>
> That's great, that should really be all that is needed. So there must
> be some other, so far unknown problem.
>
>
> > But still I am getting lots of linker errors. I have attached the
> > screenshot for reference. Please help. I have built the libssh2 under
> > ARMV4i platform.(windows mobile 6.0)
>
> Please consider attaching a text file with the full linker output
> (I recommend always doing that; text is significantly easier to process
> than a screenshot) since maybe there is some information in there which
> shows what the problem is.
>
> With some toolchains the order of the added libraries is important,
> so you could also try experimenting with adding libssh2.lib before
> and/or after the two OpenSSL library files.
>
>
> //Peter
>

_______________________________________________
libssh2-devel https://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2020-10-12