<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    <div class="moz-cite-prefix">On 08/09/2018 05:10 AM, 刘菲 wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:12b28e92.612c.1651ca9f294.Coremail.mail_liufei@126.com">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <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 style="word-break: break-all;" valign="top"><a class="moz-txt-link-freetext" href="http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/">http://security.ubuntu.com/ubuntu/pool/main/m/mysql-5.7/</a></td>
                <td style="word-break: break-all;"><a
href="https://urldefense.proofpoint.com/v2/url?u=http-3A__security.ubuntu.com_ubuntu_pool_main_m_mysql-2D5.7_libmysqlclient-2Ddev-5F5.7.23-2D0ubuntu0.18.04.1-5Famd64.deb&d=DwMGaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=M-8dedO8w3Vlx9Nb3v_HN_eQTPKU36yJj5mmQmreYMQ&m=9js77s89BD_w2pEpZdfUz3JQjchLQ65oUfLPJGNzXRs&s=00hIiuCwTLEhykigi7l78zldBDVRNBS2LjgpV33MlQs&e="
                    moz-do-not-send="true">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;">
</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>
              </font></div>
          </div>
        </blockquote>
      </div>
    </blockquote>
    Hi,<br>
    <br>
    I'll take a look and see if I can reproduce, but a couple of extra
    questions:<br>
    * Did this work with 5.7.22? MySQL 5.7 links yaSSL statically, and
    mixing this with your own link to openssl would always have a big
    chance of causing issues, but version updates to yaSSL or OpenSSL
    could have triggered the actual error.<br>
    * Have you tested the build without linking to openssl (this would
    mean you get all ssl functionality through libmysqlclient and
    yassl)?<br>
    <br>
    Also note that if it is an option for you, MySQL 8.0 uses dynamic
    linking with OpenSSL, so this would no longer be a problem.<br>
    <br>
    --<br>
    Lars<br>
    <blockquote type="cite"
      cite="mid:12b28e92.612c.1651ca9f294.Coremail.mail_liufei@126.com">
      <div style="font-family:微软雅黑,Verdana,"Microsoft
        Yahei",SimSun,sans-serif; line-height:1.6;">
        <blockquote id="ntes-pcmail-quote" style="margin: 0px; padding:
          0px;">
          <div>
            <div id="ntes-pcmail-signature"><font style="padding: 0px;
                margin: 0px;">
                <div id="ntes-pcmail-signature-default">
                  <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>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
pkg-mysql-maint mailing list
<a class="moz-txt-link-abbreviated" href="mailto:pkg-mysql-maint@alioth-lists.debian.net">pkg-mysql-maint@alioth-lists.debian.net</a>
<a class="moz-txt-link-freetext" href="https://urldefense.proofpoint.com/v2/url?u=https-3A__alioth-2Dlists.debian.net_cgi-2Dbin_mailman_listinfo_pkg-2Dmysql-2Dmaint&d=DwIGaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=M-8dedO8w3Vlx9Nb3v_HN_eQTPKU36yJj5mmQmreYMQ&m=9js77s89BD_w2pEpZdfUz3JQjchLQ65oUfLPJGNzXRs&s=DsQ4hNtQWy60bTBuw0VENPmT2080YP09m-w4QZgrdXI&e=">https://urldefense.proofpoint.com/v2/url?u=https-3A__alioth-2Dlists.debian.net_cgi-2Dbin_mailman_listinfo_pkg-2Dmysql-2Dmaint&d=DwIGaQ&c=RoP1YumCXCgaWHvlZYR8PZh8Bv7qIrMUB65eapI_JnE&r=M-8dedO8w3Vlx9Nb3v_HN_eQTPKU36yJj5mmQmreYMQ&m=9js77s89BD_w2pEpZdfUz3JQjchLQ65oUfLPJGNzXRs&s=DsQ4hNtQWy60bTBuw0VENPmT2080YP09m-w4QZgrdXI&e=</a></pre>
    </blockquote>
    <br>
  </body>
</html>