<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p><font face="Arial">Hi Michael</font></p>
    <p><font face="Arial">Thanks for the reply</font></p>
    <p><font face="Arial">The build.log for python3 contains<br>
      </font></p>
    <p><font face="Arial">
        <blockquote type="cite">checking whether compiling and linking
          against OpenSSL works... yes<br>
          checking for X509_VERIFY_PARAM_set1_host in libssl... yes<br>
          checking for --with-ssl-default-suites... python<br>
          configure: creating ./config.status<br>
          config.status: creating Makefile.pre<br>
          config.status: creating Misc/python.pc<br>
          config.status: creating Misc/python-embed.pc<br>
          config.status: creating Misc/python-config.sh<br>
          config.status: creating Modules/ld_so_aix<br>
          config.status: creating pyconfig.h<br>
          creating Modules/Setup.local<br>
          creating Makefile<br>
          <br>
          <br>
          If you want a release build with all stable optimizations
          active (PGO, etc),<br>
          please run ./configure --enable-optimizations<br>
          <br>
          <br>
          make[2]: Entering directory
          '/home/master/master/workdir/UnpackedTarball/python3'<br>
        </blockquote>
        <br>
      </font></p>
    <p><font face="Arial">after a short while it fails with<br>
      </font></p>
    <p><font face="Arial"> </font></p>
    <blockquote type="cite"><font face="Arial">The following modules
        found by detect_modules() in setup.py, have been<br>
        built by the Makefile instead, as configured by the Setup files:<br>
        _abc                  atexit                pwd                <br>
        time                                                           <br>
        <br>
        <br>
        Failed to build these modules:<br>
        _ssl                                                           <br>
        <br>
        <br>
        Could not build the ssl module!<br>
        Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with
        X509_VERIFY_PARAM_set1_host().<br>
        LibreSSL 2.6.4 and earlier do not provide the necessary APIs, <a
          class="moz-txt-link-freetext"
          href="https://github.com/libressl-portable/portable/issues/381">https://github.com/libressl-portable/portable/issues/381</a><br>
        <br>
        running build_scripts<br>
      </font></blockquote>
    <p><font face="Arial"><br>
      </font></p>
    <p><font face="Arial">On my system I ran </font></p>
    <p><font face="Arial">
        <blockquote type="cite">strings --print-file-name $(locate
          libssl) | grep X509_VERIFY_PARAM_set1_host <br>
        </blockquote>
        <br>
      </font></p>
    <p><font face="Arial">which returned<br>
      </font></p>
    <p><font face="Arial"><br>
        <blockquote type="cite">/lib/libssl.so.1.1:
          X509_VERIFY_PARAM_set1_host<br>
          /lib64/libssl.so.1.1: X509_VERIFY_PARAM_set1_host<br>
          /usr/lib/libssl.so: X509_VERIFY_PARAM_set1_host<br>
          /usr/lib/libssl.so.1.1: X509_VERIFY_PARAM_set1_host<br>
          /usr/lib64/libssl.so: X509_VERIFY_PARAM_set1_host<br>
          /usr/lib64/libssl.so.1.1: X509_VERIFY_PARAM_set1_host<br>
        </blockquote>
        <br>
      </font></p>
    <p>So is it telling me that this python3 build is seeing <font
        face="Arial">X509_VERIFY_PARAM_set1_host at the beginning, but
        not at the end?<br>
      </font></p>
    <p><font face="Arial">Alex<br>
      </font></p>
    <p><br>
    </p>
    <div class="moz-cite-prefix">On 29/09/2021 09:41, Michael Stahl
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:2286fccc-96d0-3711-cf40-551b025df925@libreoffice.org">On
      27.09.21 08:52, mcmurchy1917techy wrote: <br>
      <blockquote type="cite">Did a pull over the weekend. <br>
        <br>
        Compiled and got this error. <br>
        <br>
        <blockquote type="cite">[build DEP] LNK:Library/libcuilo.so <br>
          [build DEP] LNK:Library/libcuilo.so <br>
          [build LNK] Library/libcuilo.so <br>
/home/master/master/external/python3/ExternalPackage_python3.mk:46: ***
          file
/home/master/master/workdir/UnpackedTarball/python3/LO_lib/_ssl.cpython-3.8.so
          does not exist in the tarball.  Stop. <br>
          make[1]: *** Waiting for unfinished jobs.... <br>
          make: *** [Makefile:288: build] Error 2 <br>
        </blockquote>
      </blockquote>
      <br>
      the problem is that python's configure equivalent is far too
      magical in nature and will auto-detect what dependencies it can
      find and then enable the corresponding modules. <br>
      <br>
      for some reason the internal python cannot find the OpenSSL
      library (either on system or internal, depending on
      --with-system-openssl) and thus it did not build the ssl module
      and the earliest point where we can detect failure is that the
      file doesn't exsit when trying to copy it to instdir. <br>
      <br>
      <blockquote type="cite">My autogen has this flag
        --enable-python=internal. If I remove the flag 
        --enable-python=internal libreoffice compiles successfully. <br>
        <br>
        I'm a bit behind the curve, the last time I compiled was June
        12th also with  --enable-python=internal, that was successful <br>
        <br>
        What do I need to do to resolve? <br>
      </blockquote>
      <br>
      try to figure out from the
      workdir/UnpackedTarball/python3/build.log why OpenSSL isn't found.
      <br>
      <br>
      <blockquote type="cite">My system has the python3 3.9.6 package.
        Have I got myself ahead of the curve? <br>
      </blockquote>
      <br>
      that should be unrelated. <br>
    </blockquote>
  </body>
</html>