<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hi,<br>
      <br>
      On 28/04/21 21:22, Robert Smith wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:84238834.2226036.1619637727198@mail.yahoo.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div class="ydp3cfed854yahoo-style-wrap"
        style="font-family:Helvetica Neue, Helvetica, Arial,
        sans-serif;font-size:13px;">
        <div dir="ltr" data-setdir="false">Hi Jan,<br>
          <br>
          Thank you for your response.<br>
          Obviously <span><span style="color: rgb(38, 40, 42);
              font-family: Helvetica Neue, Helvetica, Arial,
              sans-serif;">the file </span><span style="color: rgb(38,
              40, 42); font-family: Helvetica Neue, Helvetica, Arial,
              sans-serif;">mem_dbg</span></span> is not included and
          that is why I am having this problem.<br>
          <br>
          The questions are: <br>
          Whether the "<span><span style="color: rgb(38, 40, 42);
              font-family: Helvetica Neue, Helvetica, Arial,
              sans-serif;">enable-crypto-mdebug" flag supported in
              Windows at all?</span></span></div>
        <div dir="ltr" data-setdir="false"><span><span style="color:
              rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica,
              Arial, sans-serif;"><br>
              Whether this is known issue?</span></span></div>
        <div dir="ltr" data-setdir="false"><span><span style="color:
              rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica,
              Arial, sans-serif;"><br>
              What control do I have over Windows build (I mean how can
              I include or exclude certain file)? My assumption was if I
              have to mess with Windows build scripts, I am in the wrong
              direction. However I could be I wrong ...</span></span></div>
        <div dir="ltr" data-setdir="false"><span><span style="color:
              rgb(38, 40, 42); font-family: Helvetica Neue, Helvetica,
              Arial, sans-serif;"><br>
              Whether the file <span><span style="color: rgb(38, 40,
                  42); font-family: Helvetica Neue, Helvetica, Arial,
                  sans-serif;">mem_dbg </span></span>was excluded on
              purpose from Windows build?<br>
            </span></span></div>
      </div>
    </blockquote>
    <br>
    there does not seem to be anything specific about mem_dbg ; I don't
    have Visual Studio but if I do a mingw64 build of openssl 1.1.1k
    with "<span><span style="color: rgb(38, 40, 42); font-family:
        Helvetica Neue, Helvetica, Arial, sans-serif;">enable-crypto-mdebug"
        set then it builds just fine.<br>
        <br>
        How did you configure openssl ? what command did you run and
        what build environment are you using? msys?<br>
        <br>
        It will also be interesting to see the output of <br>
          perl configdata.pm --dump<br>
        after you've run  the Configure script - that should tell you
        whether mdebug is enabled or not:<br>
        <br>
            crypto-mdebug           [default] OPENSSL_NO_CRYPTO_MDEBUG<br>
        <br>
        is the default.<br>
        <br>
        HTH,<br>
        <br>
        JJK<br>
        <br>
      </span></span><br>
    <blockquote type="cite"
      cite="mid:84238834.2226036.1619637727198@mail.yahoo.com">
      <div class="ydp3cfed854yahoo-style-wrap"
        style="font-family:Helvetica Neue, Helvetica, Arial,
        sans-serif;font-size:13px;">
        <div dir="ltr" data-setdir="false"></div>
      </div>
      <div id="ydped046d7cyahoo_quoted_0073808408"
        class="ydped046d7cyahoo_quoted">
        <div style="font-family:'Helvetica Neue', Helvetica, Arial,
          sans-serif;font-size:13px;color:#26282a;">
          <div> On Wednesday, April 28, 2021, 06:51:36 AM EDT, Jan Just
            Keijser <a class="moz-txt-link-rfc2396E" href="mailto:janjust@nikhef.nl"><janjust@nikhef.nl></a> wrote: </div>
          <div><br>
          </div>
          <div><br>
          </div>
          <div>
            <div id="ydped046d7cyiv1940411740">
              <div>
                <div class="ydped046d7cyiv1940411740moz-cite-prefix">Hi,<br
                    clear="none">
                  <div class="ydped046d7cyiv1940411740yqt1957455220"
                    id="ydped046d7cyiv1940411740yqtfd04373"><br
                      clear="none">
                    On 26/04/21 20:29, Robert Smith via openssl-users
                    wrote:<br clear="none">
                  </div>
                </div>
                <div class="ydped046d7cyiv1940411740yqt1957455220"
                  id="ydped046d7cyiv1940411740yqtfd64734">
                  <blockquote type="cite"> </blockquote>
                </div>
              </div>
              <div>
                <div class="ydped046d7cyiv1940411740yahoo-style-wrap"
                  style="font-family:Helvetica Neue, Helvetica, Arial,
                  sans-serif;font-size:13px;">
                  <div class="ydped046d7cyiv1940411740yqt1957455220"
                    id="ydped046d7cyiv1940411740yqtfd03240"> </div>
                  <div dir="ltr">
                    <div class="ydped046d7cyiv1940411740yqt1957455220"
                      id="ydped046d7cyiv1940411740yqtfd41939">Hello
                      everyone.<br clear="none">
                      <br clear="none">
                      I'm trying to recompile OpenSSL version 1.1.1k
                      under Windows 10 with the following configuration
                      flag <span>enable-crypto-mdebug<br clear="none">
                      </span>and getting the following linker error:<br
                        clear="none">
                      <br clear="none">
                      <div>
                        <div>  <br clear="none">
                           Creating library apps\openssl.lib and object
                          apps\openssl.exp</div>
                        <div>openssl.obj : error LNK2019: unresolved
                          external symbol _CRYPTO_mem_leaks referenced
                          in function _main</div>
                        <div>apps\openssl.exe : fatal error LNK1120: 1
                          unresolved externals</div>
                        <div>NMAKE : fatal error U1077: '"C:\Program
                          Files (x86)\Microsoft Visual Studio
                          10.0\VC\BIN\link.EXE"' : return code '0x460'</div>
                        <div>Stop.</div>
                        <div>NMAKE : fatal error U1077: '"C:\Program
                          Files (x86)\Microsoft Visual Studio
                          10.0\VC\BIN\nmake.exe"' : return code '0x2'</div>
                        <div>Stop.</div>
                        <div><br clear="none">
                        </div>
                      </div>
                      Wasted already a few hours trying to figure out
                      the cause for this failure.</div>
                    <br clear="none">
                  </div>
                </div>
                <br clear="none">
                when building and linking with "<span>enable-crypto-mdebug"
                  set the file "crypto/mem_dbg.o" needs to be included
                  in the library libcrypto.a (or crypto.lib); check that
                  this file is indeed included when creating the crypto
                  library.<br clear="none">
                  <br clear="none">
                  For the record: a Linux build with </span><span>"<span>enable-crypto-mdebug"
                    works fine.<br clear="none">
                    <br clear="none">
                    HTH,<br clear="none">
                    <br clear="none">
                    JJK
                    <div class="ydped046d7cyiv1940411740yqt1957455220"
                      id="ydped046d7cyiv1940411740yqtfd90766"><br
                        clear="none">
                      <br clear="none">
                    </div>
                  </span></span>
                <div class="ydped046d7cyiv1940411740yqt1957455220"
                  id="ydped046d7cyiv1940411740yqtfd53949"> </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
    <br>
  </body>
</html>