[debian-mysql] openssl libcrypto.a and libmysqlclient.a on multiple definition of `ERR_remove_thread_state'

刘菲 mail_liufei at 126.com
Thu Aug 9 04:10:24 BST 2018

hi, the problem occurs  when I link to crypto Since mysqlclient update to the version"
| http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/ | libmysqlclient-dev_5.7.23-0ubuntu0.18.04.1_amd64.deb" |
The detail is below:

There is something wrong with multiple definition of `ERR_remove_thread_state' When I compile a c++ server and link openssl-1.0.2 libcrypto.a and libmysqlclient.a.Here is the error:

/usr/local/openssl-1.0.2/lib/libcrypto.a(err.o): In function `ERR_remove_thread_state':
err.c:(.text+0x1ac0): multiple definition of `ERR_remove_thread_state'
/usr/lib/x86_64-linux-gnu/libmysqlclient.a(ssl.cpp.o):(.text+0x1df0): first defined here

I try to resolve the problem by manual update crypto . but after "apt-get install libcrypto-dev", cannot update to the latest version"libcrypto++-dev_5.6.4-8_amd64.deb"(only can update to "libcrypto++-dev_5.6.1-9_amd64.deb"). 

how to resolve the problem? I have no idea, please take a look for me.

Thank you very much.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-mysql-maint/attachments/20180809/39ec0f05/attachment.html>

More information about the pkg-mysql-maint mailing list