<!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=US-ASCII" http-equiv="Content-Type">
<title>
GitLab
</title>


<style>img {
max-width: 100%; height: auto;
}
</style>
</head>
<body>
<div class="content">

<p class="details" style="font-style: italic; color: #666;">
<a href="https://gitlab.com/errodriguez">Eduardo René Rodríguez Ávila</a> created an issue: <a href="https://gitlab.com/gnutls/gnutls/-/issues/1288">#1288</a>
</p>
<div></div>
<h2 dir="auto">
<a id="user-content-description-of-problem" class="anchor" href="#description-of-problem" aria-hidden="true"></a>Description of problem:</h2>
<p dir="auto">Building <code>gnutls</code> 3.7.2 fails on macOS Monterey with error:</p>
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">...</span>
<span id="LC2" class="line" lang="plaintext">CCLD     libgnutls.la<br></span>
<span id="LC3" class="line" lang="plaintext">ld: warning: cannot export hidden symbol __gnutls_arm_cpuid_s from accelerated/.libs/libaccelerated.a(aarch64-common.o)<br></span>
<span id="LC4" class="line" lang="plaintext">Undefined symbols for architecture arm64:<br></span>
<span id="LC5" class="line" lang="plaintext">  "_c_isdigit", referenced from:<br></span>
<span id="LC6" class="line" lang="plaintext">      __asn1_expand_object_id in libminitasn1.a(parser_aux.o)<br></span>
<span id="LC7" class="line" lang="plaintext">      __asn1_check_identifier in libminitasn1.a(parser_aux.o)<br></span>
<span id="LC8" class="line" lang="plaintext">ld: symbol(s) not found for architecture arm64<br></span>
<span id="LC9" class="line" lang="plaintext">clang: error: linker command failed with exit code 1 (use -v to see invocation)</span></code></pre>
<h2 dir="auto">
<a id="user-content-version-of-gnutls-used" class="anchor" href="#version-of-gnutls-used" aria-hidden="true"></a>Version of gnutls used:</h2>
<p dir="auto">3.7.2</p>
<h2 dir="auto">
<a id="user-content-distributor-of-gnutls-eg-ubuntu-fedora-rhel" class="anchor" href="#distributor-of-gnutls-eg-ubuntu-fedora-rhel" aria-hidden="true"></a>Distributor of gnutls (e.g., Ubuntu, Fedora, RHEL)</h2>
<p dir="auto">Tarball downloaded from <a href="https://www.gnupg.org/ftp/gcrypt/gnutls/v3.7/" rel="nofollow noreferrer noopener" target="_blank">gnupg.org</a></p>
<h2 dir="auto">
<a id="user-content-how-reproducible" class="anchor" href="#how-reproducible" aria-hidden="true"></a>How reproducible:</h2>
<p dir="auto">In a Mac M1 with macOS Monterey and using ZSH, follow next steps:</p>
<p dir="auto">Steps to Reproduce:</p>
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">% curl -O https://www.gnupg.org/ftp/gcrypt/gnutls/v3.7/gnutls-3.7.2.tar.xz</span>
<span id="LC2" class="line" lang="plaintext">% tar -xvf gnutls-3.7.2.tar.xz</span>
<span id="LC3" class="line" lang="plaintext">% pushd gnutls-3.7.2</span>
<span id="LC4" class="line" lang="plaintext">% /usr/local/sbin/unbound-anchor -a "/etc/unbound/root.key"</span>
<span id="LC5" class="line" lang="plaintext">% CFLAGS="-m64" CXXFLAGS="-m64" ./configure --prefix=/usr/local --without-p11-kit --with-ncluded-libtasn1 --with-included-unistring</span>
<span id="LC6" class="line" lang="plaintext">% make</span></code></pre>
<h2 dir="auto">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true"></a>Actual results:</h2>
<pre class="code highlight js-syntax-highlight language-plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">...</span>
<span id="LC2" class="line" lang="plaintext">ld: warning: cannot export hidden symbol __gnutls_arm_cpuid_s from accelerated/.libs/libaccelerated.a(aarch64-common.o)<br></span>
<span id="LC3" class="line" lang="plaintext">Undefined symbols for architecture arm64:<br></span>
<span id="LC4" class="line" lang="plaintext">  "_c_isdigit", referenced from:<br></span>
<span id="LC5" class="line" lang="plaintext">      __asn1_expand_object_id in libminitasn1.a(parser_aux.o)<br></span>
<span id="LC6" class="line" lang="plaintext">      __asn1_check_identifier in libminitasn1.a(parser_aux.o)<br></span>
<span id="LC7" class="line" lang="plaintext">ld: symbol(s) not found for architecture arm64<br></span>
<span id="LC8" class="line" lang="plaintext">clang: error: linker command failed with exit code 1 (use -v to see invocation)</span></code></pre>
<h2 dir="auto">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true"></a>Expected results:</h2>
<p dir="auto">Successful compilation.</p>

</div>
<div class="footer" style="margin-top: 10px;">
<p style="font-size: small; color: #666;">

<br>
Reply to this email directly or <a href="https://gitlab.com/gnutls/gnutls/-/issues/1288">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/a580e6099002ec1e295eb183b4d0e16b/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/1288"}}</script>


</p>
</div>
</body>
</html>