supremainc / BioStar2_device_SDK

36 stars 25 forks source link

undefined reference linux gcc c++ linker #3

Open edgarlopez opened 4 years ago

edgarlopez commented 4 years ago

try to linker library libBS_SDK_V2.so

undefined reference to SSL_CTX_free' undefined reference toTLSv1_1_server_method' undefined reference to CRYPTO_set_locking_callback' undefined reference toSSL_CTX_set_default_passwd_cb_userdata' undefined reference to RSA_public_decrypt' undefined reference toSSLv3_server_method' undefined reference to CRYPTO_num_locks' undefined reference toSSL_CTX_check_private_key' undefined reference to SSL_get_error' undefined reference toCRYPTO_malloc' undefined reference to ERR_error_string' undefined reference toRSA_free' undefined reference to SSL_CTX_set_default_passwd_cb' undefined reference toSSL_CTX_load_verify_locations' undefined reference to SSL_CTX_set_cipher_list' undefined reference toSSL_library_init' undefined reference to CRYPTO_free' undefined reference toxmlFreeDoc' undefined reference to CRYPTO_set_id_callback' undefined reference toSSL_read' undefined reference to SSL_accept' undefined reference toTLSv1_server_method' undefined reference to xmlParseDoc' undefined reference toSSLv23_server_method' undefined reference to xmlDocGetRootElement' undefined reference toSSL_shutdown' undefined reference to PEM_read_bio_RSA_PUBKEY' undefined reference toSSL_CTX_set_verify' undefined reference to SSLeay_version' undefined reference toxmlNodeGetContent' undefined reference to SSL_CTX_new' undefined reference toSSL_CTX_use_certificate_chain_file' undefined reference to ERR_clear_error' undefined reference toSSL_load_error_strings' undefined reference to SSL_free' undefined reference toSSL_write' undefined reference to SSL_set_fd' undefined reference toBIO_new_mem_buf' undefined reference to SSL_CTX_use_PrivateKey_file' undefined reference toSSL_CTX_ctrl' undefined reference to ERR_get_error' undefined reference toSSL_new' undefined reference to `TLSv1_2_server_me

suprema-charlie commented 4 years ago

sudo apt install libssl1.0 libssl1.0-dev

edgarlopez commented 4 years ago

sudo apt install libssl1.0 libssl1.0-dev I think the best approach is you compile openssl static into BS_SDK

suprema-charlie commented 4 years ago

I think it's the best. And the SSL in the early versions of the SDK was static. However, as the SSL versions of the devices that the SDK should support are diversified, they have to be separated from static.

tuananhpham2008 commented 4 years ago

Hi @suprema-charlie [INFO] [SocketHandler] [2020/02/14 17:58:47] [TID:577d4b80] StartNewSSLSession [-3002] I got this error on ubuntu 18.04 when I was trying to call BS2_ConnectDeviceViaIP. There seems to be a problem with ssl in Linux. There is no problem in the window

edgarlopez commented 4 years ago

Hi @suprema-charlie [INFO] [SocketHandler] [2020/02/14 17:58:47] [TID:577d4b80] StartNewSSLSession [-3002] I got this error on ubuntu 18.04 when I was trying to call BS2_ConnectDeviceViaIP. There seems to be a problem with ssl in Linux. There is no problem in the window

I have the same issue with previous version too. I use BS2_ConnectDevice (context, deviceID) to connect to the device

edgarlopez commented 4 years ago

I think it's the best. And the SSL in the early versions of the SDK was static. However, as the SSL versions of the devices that the SDK should support are diversified, they have to be separated from static.

could you update to the latest version openssl 1.1.1? https://www.openssl.org/news/changelog.html