<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<style>
font{
line-height: 1.6;
}
ul,ol{
padding-left: 20px;
list-style-position: inside;
}
</style>
<div style="font-family:微软雅黑,Verdana,"Microsoft Yahei",SimSun,sans-serif; line-height:1.6;">
<div>
<div><span style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; line-height: 1.6;">hi, the problem occurs when I link to crypto Since mysqlclient update to the version"</span></div></div><blockquote id="ntes-pcmail-quote" style="margin: 0px; padding: 0px;"><table style="font-family: 'Microsoft YaHei'; font-size: 14px; line-height: 1.6; orphans: 2; widows: 2;"><tbody><tr class="firstRow"><td valign="top" style="word-break: break-all;">http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/</td><td style="word-break: break-all;"><a href="http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/libmysqlclient-dev_5.7.23-0ubuntu0.18.04.1_amd64.deb">libmysqlclient-dev_5.7.23-0ubuntu0.18.04.1_amd64.deb</a>"</td></tr></tbody></table><font face="微软雅黑, Verdana, Microsoft Yahei, SimSun, sans-serif"><span style="line-height: 1.6;">.</span></font><div style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; font-size: 14px; line-height: 1.6;">The detail is below:</div><div><p style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; font-size: 14px; line-height: 1.6;">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:</p><pre style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; font-size: 14px; line-height: 1.6;"><code>/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
</code></pre><pre style="font-family: 微软雅黑, Verdana, 'Microsoft Yahei', SimSun, sans-serif; font-size: 14px; line-height: 1.6;"><br></pre>
<div id="ntes-pcmail-signature">
<style type="text/css">
a#ntes-pcmail-signature-default:hover {
text-decoration: underline;
color: #199cff;
cursor: pointer;
}
a#ntes-pcmail-signature-default:active {
text-decoration: underline;
color: #246fce;
cursor: pointer;
}
</style>
<font style="padding: 0px; margin: 0px;">
<div id="ntes-pcmail-signature-default"><div id="ntes-pcmail-signature-default" style=""><br></div><div id="ntes-pcmail-signature-default"><br></div><div id="ntes-pcmail-signature-default" style="">I try to resolve the problem by manual update crypto . but after "apt-get install libcrypto-dev", cannot update to the latest version<span style="line-height: 22.4px;">"libcrypto++-dev_5.6.4-8_amd64.deb"</span><span style="line-height: 1.6;">(only can update to "</span><span style="line-height: 22.4px;">libcrypto++-dev_5.6.1-9_amd64.deb"). </span></div><div id="ntes-pcmail-signature-default" style=""><span style="line-height: 22.4px;"><br></span></div><div id="ntes-pcmail-signature-default" style=""><span style="line-height: 22.4px;">how to resolve the problem? I have no idea, please take a look for me.</span></div><div id="ntes-pcmail-signature-default"><br></div><div id="ntes-pcmail-signature-default">Thank you very much.</div><div style="color: rgb(0, 0, 0); font-family: 微软雅黑; font-size: 14px; line-height: 1.6; text-decoration: none;"><br></div></div> </font>
</div></div>
</blockquote><style type="text/css">
a#ntes-pcmail-signature-default:hover {
text-decoration: underline;
color: #199cff;
cursor: pointer;
}
a#ntes-pcmail-signature-default:active {
text-decoration: underline;
color: #246fce;
cursor: pointer;
}
</style><style>
font{
line-height: 1.6;
}
ul,ol{
padding-left: 20px;
list-style-position: inside;
}
</style><!--😀-->
</div>
</body>
</html>