Quantcast
Channel: MySQL Forums - Connector/C++
Viewing all articles
Browse latest Browse all 527

Connector/C++ 8.0 library link error (no replies)

$
0
0
Hello,

I'm was try mysql Connector/C++ 8.0 library link from linux centos 7 but error.

I'm did install mysql devl, lib, client, server but it was still there is no change.

I thought it was mysql version problem but according to official MySQL reference, it is not.

I came here because I could not find any related information.

Thank you in advance

Error contents :

# g++ -std=c++11 -DSTATIC_CONCPP -I /usr/include/mysql test.cpp /lib64/mysql/libmysqlcppconn8-static.a -lssl -lcrypto -lpthread -o TEST

/lib64/mysql/libmysqlcppconn8-static.a(cdk_cdk_mysqlx_objs_auth_mysql41.cc.o): In function `scramble(std::string const&, std::string const&)':
auth_mysql41.cc:(.text+0x15b): undefined reference to `TaoCrypt::HASHwithTransform::Update(unsigned char const*, unsigned int)'
auth_mysql41.cc:(.text+0x171): undefined reference to `TaoCrypt::HASHwithTransform::Final(unsigned char*)'
auth_mysql41.cc:(.text+0x18c): undefined reference to `TaoCrypt::HASHwithTransform::Update(unsigned char const*, unsigned int)'
auth_mysql41.cc:(.text+0x1a2): undefined reference to `TaoCrypt::HASHwithTransform::Final(unsigned char*)'
auth_mysql41.cc:(.text+0x1d9): undefined reference to `TaoCrypt::HASHwithTransform::Update(unsigned char const*, unsigned int)'
auth_mysql41.cc:(.text+0x1f4): undefined reference to `TaoCrypt::HASHwithTransform::Update(unsigned char const*, unsigned int)'
auth_mysql41.cc:(.text+0x20a): undefined reference to `TaoCrypt::HASHwithTransform::Final(unsigned char*)'
/lib64/mysql/libmysqlcppconn8-static.a(cdk_cdk_mysqlx_objs_auth_mysql41.cc.o): In function `TaoCrypt::HASHwithTransform::~HASHwithTransform()':
auth_mysql41.cc:(.text._ZN8TaoCrypt17HASHwithTransformD2Ev[_ZN8TaoCrypt17HASHwithTransformD5Ev]+0x13): undefined reference to `vtable for TaoCrypt::HASHwithTransform'
/lib64/mysql/libmysqlcppconn8-static.a(cdk_cdk_mysqlx_objs_auth_mysql41.cc.o): In function `TaoCrypt::SHA::SHA()':
auth_mysql41.cc:(.text._ZN8TaoCrypt3SHAC2Ev[_ZN8TaoCrypt3SHAC5Ev]+0x23): undefined reference to `TaoCrypt::HASHwithTransform::HASHwithTransform(unsigned int, unsigned int)'
auth_mysql41.cc:(.text._ZN8TaoCrypt3SHAC2Ev[_ZN8TaoCrypt3SHAC5Ev]+0x2e): undefined reference to `vtable for TaoCrypt::SHA'
auth_mysql41.cc:(.text._ZN8TaoCrypt3SHAC2Ev[_ZN8TaoCrypt3SHAC5Ev]+0x3a): undefined reference to `TaoCrypt::SHA::Init()'
/lib64/mysql/libmysqlcppconn8-static.a(cdk_cdk_mysqlx_objs_auth_mysql41.cc.o): In function `TaoCrypt::SHA::~SHA()':
auth_mysql41.cc:(.text._ZN8TaoCrypt3SHAD2Ev[_ZN8TaoCrypt3SHAD5Ev]+0x13): undefined reference to `vtable for TaoCrypt::SHA'
/lib64/mysql/libmysqlcppconn8-static.a(cdk_cdk_foundation_objs_socket_detail.cc.o): In function `cdk::foundation::connection::detail::initialize_socket_system()':
socket_detail.cc:(.text+0x1b2): undefined reference to `yaSSL_library_init'
socket_detail.cc:(.text+0x1b7): undefined reference to `yaOpenSSL_add_all_algorithms'
socket_detail.cc:(.text+0x1bc): undefined reference to `yaSSL_load_error_strings'
/lib64/mysql/libmysqlcppconn8-static.a(cdk_cdk_foundation_objs_connection_openssl.cc.o): In function `throw_openssl_error()':
connection_openssl.cc:(.text+0xee): undefined reference to `yaERR_get_error'
connection_openssl.cc:(.text+0x105): undefined reference to `yaERR_error_string_n'
/lib64/mysql/libmysqlcppconn8-static.a(cdk_cdk_foundation_objs_connection_openssl.cc.o): In function `connection_TLS_impl::do_connect()':
connection_openssl.cc:(.text+0x189): undefined reference to `yaTLSv1_1_client_method'
connection_openssl.cc:(.text+0x1a5): undefined reference to `yaSSL_CTX_new'
connection_openssl.cc:(.text+0x219): undefined reference to `yaSSL_CTX_set_cipher_list'
connection_openssl.cc:(.text+0x251): undefined reference to `yaSSL_CTX_set_verify'
connection_openssl.cc:(.text+0x2c0): undefined reference to `yaSSL_CTX_load_verify_locations'
connection_openssl.cc:(.text+0x312): undefined reference to `yaSSL_CTX_set_verify'
connection_openssl.cc:(.text+0x322): undefined reference to `yaSSL_new'
connection_openssl.cc:(.text+0x382): undefined reference to `yaSSL_set_fd'
connection_openssl.cc:(.text+0x392): undefined reference to `yaSSL_connect'
connection_openssl.cc:(.text+0x411): undefined reference to `yaSSL_shutdown'
connection_openssl.cc:(.text+0x421): undefined reference to `yaSSL_free'
connection_openssl.cc:(.text+0x44a): undefined reference to `yaSSL_CTX_free'
/lib64/mysql/libmysqlcppconn8-static.a(cdk_cdk_foundation_objs_connection_openssl.cc.o): In function `connection_TLS_impl::verify_server_cert()':
connection_openssl.cc:(.text+0x4cb): undefined reference to `yaSSL_get_peer_certificate'
connection_openssl.cc:(.text+0x50a): undefined reference to `yaSSL_get_verify_result'
connection_openssl.cc:(.text+0x532): undefined reference to `yaX509_get_subject_name'
connection_openssl.cc:(.text+0x54c): undefined reference to `yaX509_NAME_get_index_by_NID'
connection_openssl.cc:(.text+0x570): undefined reference to `yaX509_NAME_get_entry'
connection_openssl.cc:(.text+0x591): undefined reference to `yaX509_NAME_ENTRY_get_data'
connection_openssl.cc:(.text+0x5b2): undefined reference to `yaASN1_STRING_data'
connection_openssl.cc:(.text+0x5c2): undefined reference to `yaASN1_STRING_length'
/lib64/mysql/libmysqlcppconn8-static.a(cdk_cdk_foundation_objs_connection_openssl.cc.o): In function `cdk::foundation::connection::TLS::Read_op::common_read()':
connection_openssl.cc:(.text+0xa13): undefined reference to `yaSSL_read'
connection_openssl.cc:(.text+0xa3e): undefined reference to `yaSSL_get_error'
/lib64/mysql/libmysqlcppconn8-static.a(cdk_cdk_foundation_objs_connection_openssl.cc.o): In function `cdk::foundation::connection::TLS::Read_some_op::common_read()':
connection_openssl.cc:(.text+0xcff): undefined reference to `yaSSL_read'
/lib64/mysql/libmysqlcppconn8-static.a(cdk_cdk_foundation_objs_connection_openssl.cc.o): In function `cdk::foundation::connection::TLS::Write_op::common_write()':
connection_openssl.cc:(.text+0xf4f): undefined reference to `yaSSL_write'
/lib64/mysql/libmysqlcppconn8-static.a(cdk_cdk_foundation_objs_connection_openssl.cc.o): In function `cdk::foundation::connection::TLS::Write_some_op::common_write()':
connection_openssl.cc:(.text+0x11dd): undefined reference to `yaSSL_write'
/lib64/mysql/libmysqlcppconn8-static.a(cdk_cdk_foundation_objs_connection_openssl.cc.o): In function `connection_TLS_impl::~connection_TLS_impl()':
connection_openssl.cc:(.text._ZN19connection_TLS_implD2Ev[_ZN19connection_TLS_implD5Ev]+0x30): undefined reference to `yaSSL_shutdown'
connection_openssl.cc:(.text._ZN19connection_TLS_implD2Ev[_ZN19connection_TLS_implD5Ev]+0x40): undefined reference to `yaSSL_free'
connection_openssl.cc:(.text._ZN19connection_TLS_implD2Ev[_ZN19connection_TLS_implD5Ev]+0x5d): undefined reference to `yaSSL_CTX_free'
/lib64/mysql/libmysqlcppconn8-static.a(cdk_cdk_foundation_objs_connection_openssl.cc.o): In function `safe_cert::~safe_cert()':
connection_openssl.cc:(.text._ZN9safe_certD2Ev[_ZN9safe_certD5Ev]+0x23): undefined reference to `yaX509_free'
collect2: error: ld returned 1 exit status

Viewing all articles
Browse latest Browse all 527

Trending Articles