<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html lang="en">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<title>
GitLab
</title>
<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">
<div></div>
<p dir="auto">I can not build v3.6.5 on macOS with nettle v3.4.1. Compilation fails with <code>configure: error: Nettle lacks the required rsa_sec_decrypt function</code>.</p>
<p dir="auto">config.log has the following lines for that section. Full log is can be found in <a href="https://gitlab.com/gnutls/gnutls/uploads/380a945fa34813fde3b49b29d97f5d33/config.log.gz">config.log.gz</a>.</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">configure:61617: checking for rsa_sec_decrypt</span>
<span id="LC2" class="line" lang="plaintext">configure:61617: gcc -o conftest -g -O2 -I/usr/local/include -Wl,-no_weak_imports conftest.c -lidn2 -L/usr/local/lib -lhogweed >&5</span>
<span id="LC3" class="line" lang="plaintext">Undefined symbols for architecture x86_64:</span>
<span id="LC4" class="line" lang="plaintext"> "_rsa_sec_decrypt", referenced from:</span>
<span id="LC5" class="line" lang="plaintext"> _main in conftest-97e833.o</span>
<span id="LC6" class="line" lang="plaintext">ld: symbol(s) not found for architecture x86_64</span>
<span id="LC7" class="line" lang="plaintext">clang: error: linker command failed with exit code 1 (use -v to see invocation)</span></code></pre>
<p dir="auto">nettle v3.4.1 is installed with <code>./configure; make; make install</code> command under /usr/local.</p>
<p dir="auto">When I checked the <code>rsa_sec_decrypt</code> function, I saw that it was defined inside libhogweed library with the <code>nettle</code> prefix.</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">nm -a rsa-sec-decrypt.o </span>
<span id="LC2" class="line" lang="plaintext">0000000000000000 T _nettle_rsa_sec_decrypt</span></code></pre>
<p dir="auto">It seems like there is a mismatch in function names. Do you have a fix for that?</p>
</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #777777;">
—
<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/issues/662">view it on GitLab</a>.
<br>
You're receiving this email because of your account on gitlab.com.
If you'd like to receive fewer emails, you can
<a href="https://gitlab.com/sent_notifications/6461582f8089f8246b66f2adcfde4b17/unsubscribe">unsubscribe</a>
from this thread or
adjust your notification settings.
<script type="application/ld+json">{"@context":"http://schema.org","@type":"EmailMessage","action":{"@type":"ViewAction","name":"View Issue","url":"https://gitlab.com/gnutls/gnutls/issues/662"}}</script>
</p>
</div>
</body>
</html>