<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 2019-01-12, at 11:20 AM, Riccardo Mottola via macports-users wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,<br><br><br></div></blockquote><br><blockquote type="cite"><div>"Strong" of Ken's work on clang 5.0 and TLS, I tried:<br><br>port -v upgrade gnutls configure.compiler=macports-clang-5.0<br><br>things look better but still don't build for me, I get this error:<br></div></blockquote><div><br></div><div><br></div><div>Yep, you are almost there! that TLS-supporting clang has come along just in time, as more and more ports are using TLS now.</div><div><br></div><br><blockquote type="cite"><div><br>libs/libcrypto.a |  | /usr/bin/sed 's/.* //' | sort | uniq > .libs/libgnutls.exp<br>../libtool: eval: line 1731: syntax error near unexpected token `|'<br></div></blockquote><div><br></div><div><br></div><div><table class="highlight tab-size js-file-line-container" data-tab-size="8"><tbody><tr><td id="file-gistfile1-txt-LC1" class="blob-code blob-code-inner js-file-line">this occurs because the version of nm used to process the objects from the compiler is not new enough</td>
      </tr>
      <tr>
        </tr></tbody></table><table class="highlight tab-size js-file-line-container" data-tab-size="8"><tbody><tr></tr><tr>
        <td id="file-gistfile1-txt-LC2" class="blob-code blob-code-inner js-file-line">see <a href="https://trac.macports.org/ticket/51815">https://trac.macports.org/ticket/51815</a></td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="file-gistfile1-txt-LC3" class="blob-code blob-code-inner js-file-line">
</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="file-gistfile1-txt-LC4" class="blob-code blob-code-inner js-file-line">solution is to use the newer nm from cctools at ${prefix}/bin/nm</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="file-gistfile1-txt-LC5" class="blob-code blob-code-inner js-file-line">this can be set with an environment variable sometimes</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="file-gistfile1-txt-LC6" class="blob-code blob-code-inner js-file-line">
</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="file-gistfile1-txt-LC7" class="blob-code blob-code-inner js-file-line">configure.env-append    NM=${prefix}/bin/nm</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="file-gistfile1-txt-LC8" class="blob-code blob-code-inner js-file-line">
</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="file-gistfile1-txt-LC9" class="blob-code blob-code-inner js-file-line">or for autotools, by passing this in:</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="file-gistfile1-txt-LC10" class="blob-code blob-code-inner js-file-line">
</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="file-gistfile1-txt-LC11" class="blob-code blob-code-inner js-file-line">configure.env-append    lt_cv_path_NM=${prefix}/bin/nm</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="file-gistfile1-txt-LC12" class="blob-code blob-code-inner js-file-line">
</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="file-gistfile1-txt-LC13" class="blob-code blob-code-inner js-file-line">I usually just add both.</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="file-gistfile1-txt-LC14" class="blob-code blob-code-inner js-file-line">
</td>
      </tr>
      <tr>
        </tr><tr></tr><tr>
        <td id="file-gistfile1-txt-LC15" class="blob-code blob-code-inner js-file-line">configure.env-append    NM=${prefix}/bin/nm</td>
      </tr>
      <tr>
        </tr></tbody></table><table class="highlight tab-size js-file-line-container" data-tab-size="8"><tbody><tr>
        <td id="file-gistfile1-txt-LC16" class="blob-code blob-code-inner js-file-line">configure.env-append    lt_cv_path_NM=${prefix}/bin/nm</td></tr></tbody></table><div><br></div><div><br></div><div>I just added a combination of the above to the `gnutls` portfile, and success:</div><div><br></div><div><div>$ port -v installed gnutls</div><div>The following ports are currently installed:</div><div>  gnutls @3.6.5_1+doc (active) platform='darwin 9' archs='i386' date='2019-01-10T22:53:28-0800'</div></div><div><br></div><div><br></div><div>I have not factored exactly which one worked, so I didn't PR it yet (and we still have other pressing compiler selection issues to sort out first anyway).</div><div><br></div><div>Best,</div><div><br></div><div>Ken</div></div></div></body></html>