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

刘菲 mail_liufei at 126.com
Thu Aug 9 03:38: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

How to solve the problem, please take a look. Can you provide the detail depends version(especially openssl) 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/e5902de1/attachment-0001.html>

More information about the pkg-mysql-maint mailing list