<!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: #777;">
<a href="https://gitlab.com/fernando.xps">Fernando Martinez</a> created an issue <a href="https://gitlab.com/gnutls/libtasn1/-/issues/28">#28</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">I am trying to cross compile libtasn1 4.16 to armv7 iOS, but i am getting a linker error that i can't solve</p>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">Undefined symbols for architecture armv7:</span>
<span id="LC2" class="line" lang="plaintext">  "_c_isdigit", referenced from:</span>
<span id="LC3" class="line" lang="plaintext">      __asn1_expand_object_id in libtasn1.a(parser_aux.o)</span>
<span id="LC4" class="line" lang="plaintext">      __asn1_check_identifier in libtasn1.a(parser_aux.o)</span></code></pre>
<h2 dir="auto">
<a id="user-content-version-of-libtasn1-used" class="anchor" href="#version-of-libtasn1-used" aria-hidden="true"></a>Version of libtasn1 used:</h2>
<p dir="auto">4.16</p>
<p dir="auto"><a href="https://ftp.gnu.org/gnu/libtasn1/libtasn1-4.16.0.tar.gz" rel="nofollow noreferrer noopener" target="_blank">https://ftp.gnu.org/gnu/libtasn1/libtasn1-4.16.0.tar.gz</a></p>
<h2 dir="auto">
<a id="user-content-distributor-of-libtasn1-eg-ubuntu-fedora-rhel" class="anchor" href="#distributor-of-libtasn1-eg-ubuntu-fedora-rhel" aria-hidden="true"></a>Distributor of libtasn1 (e.g., Ubuntu, Fedora, RHEL)</h2>
<p dir="auto">I am compiling the source code itself</p>
<h2 dir="auto">
<a id="user-content-how-reproducible" class="anchor" href="#how-reproducible" aria-hidden="true"></a>How reproducible:</h2>
<pre class="code highlight js-syntax-highlight plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">export SDKPATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk</span>
<span id="LC2" class="line" lang="plaintext">export MIN_IOS_VERSION=10.0</span>
<span id="LC3" class="line" lang="plaintext">export HOST=arm-apple-darwin</span>
<span id="LC4" class="line" lang="plaintext">export BUILD=armv7</span>
<span id="LC5" class="line" lang="plaintext">export LDFLAGS_NATIVE="-isysroot $SDKPATH "</span>
<span id="LC6" class="line" lang="plaintext">export ARCHES=armv7</span>
<span id="LC7" class="line" lang="plaintext"></span>
<span id="LC8" class="line" lang="plaintext">export LDFLAGS=$LDFLAGS_NATIVE</span>
<span id="LC9" class="line" lang="plaintext">export CFLAGS="-arch $ARCH $LDFLAGS -miphoneos-version-min=$MIN_IOS_VERSION -fembed-bitcode -Wno-sign-compare "</span>
<span id="LC10" class="line" lang="plaintext">./configure --host=$HOST --build=$BUILD --enable-static --disable-shared --prefix=$PWD/build/$ARCH && make && make install</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 plaintext" lang="plaintext" v-pre="true"><code><span id="LC1" class="line" lang="plaintext">/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive</span>
<span id="LC2" class="line" lang="plaintext">Making all in lib</span>
<span id="LC3" class="line" lang="plaintext">Making all in gl</span>
<span id="LC4" class="line" lang="plaintext">/Applications/Xcode.app/Contents/Developer/usr/bin/make  all-recursive</span>
<span id="LC5" class="line" lang="plaintext">make[5]: Nothing to be done for `all-am'.</span>
<span id="LC6" class="line" lang="plaintext">  CC       coding.lo</span>
<span id="LC7" class="line" lang="plaintext">  CC       decoding.lo</span>
<span id="LC8" class="line" lang="plaintext">  CC       element.lo</span>
<span id="LC9" class="line" lang="plaintext">  CC       errors.lo</span>
<span id="LC10" class="line" lang="plaintext">  CC       gstr.lo</span>
<span id="LC11" class="line" lang="plaintext">  CC       parser_aux.lo</span>
<span id="LC12" class="line" lang="plaintext">  CC       structure.lo</span>
<span id="LC13" class="line" lang="plaintext">  CC       version.lo</span>
<span id="LC14" class="line" lang="plaintext">  CCLD     libtasn1.la</span>
<span id="LC15" class="line" lang="plaintext">Making all in src</span>
<span id="LC16" class="line" lang="plaintext">  CC       asn1Parser.o</span>
<span id="LC17" class="line" lang="plaintext">  CCLD     asn1Parser</span>
<span id="LC18" class="line" lang="plaintext">Undefined symbols for architecture armv7:</span>
<span id="LC19" class="line" lang="plaintext">  "_c_isdigit", referenced from:</span>
<span id="LC20" class="line" lang="plaintext">      __asn1_expand_object_id in libtasn1.a(parser_aux.o)</span>
<span id="LC21" class="line" lang="plaintext">      __asn1_check_identifier in libtasn1.a(parser_aux.o)</span>
<span id="LC22" class="line" lang="plaintext">ld: symbol(s) not found for architecture armv7</span>
<span id="LC23" class="line" lang="plaintext">clang: error: linker command failed with exit code 1 (use -v to see invocation)</span>
<span id="LC24" class="line" lang="plaintext">make[2]: *** [asn1Parser] Error 1</span>
<span id="LC25" class="line" lang="plaintext">make[1]: *** [all-recursive] Error 1</span>
<span id="LC26" class="line" lang="plaintext">make: *** [all] Error 2</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">I see the lib now has a custom c-ctype implementation and it should be included for cross compilation</p>

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

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


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