<!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>
<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">With <a href="https://gitlab.com/gnutls/gnutls/commit/adb31e778c28ef821a173dd5d98585b525c53665" data-original="adb31e77" data-link="false" data-link-reference="false" data-project="179611" data-commit="adb31e778c28ef821a173dd5d98585b525c53665" data-reference-type="commit" data-container="body" data-placement="bottom" title="Fix gnutls.pc for multiarch builds" class="gfm gfm-commit has-tooltip">adb31e77</a>, <code>AC_LIB_HAVE_LINKFLAGS</code> usage was replaced with <code>AC_SEARCH_LIBS</code> and <code>AC_SUBST</code>
for checking <code>unistring</code> library.
It may resolve unwanted full path of libunistring in pc files, it also affect to real link,
e.g. missing rpath. Furthermore, AC_SEARCH_LIBS also affect to LIBS globally.</p>
<p dir="auto">The first hit issue is in configure script, subsequent <code>try_compile_and run</code> type checks may be
result in unwanted result, because it will always try to link with -lunistring but failed to run
due to missing "unistring.so" if it is not in system default rpath.</p>
<p dir="auto"><code>LIBS</code> should be reset with <code>$ac_func_search_save_LIBS</code> after the <code>unistring</code> check.</p>
<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.6.6</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">N/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">Steps to Reproduce:</p>
<ul dir="auto">
<li>install and use libunistring not in system path</li>
<li>configure with <code>LDFLAG</code> having -L to find the libuistring</li>
<li>do <code>configure</code> and <code>make</code>
</li>
</ul>
<h2 dir="auto">
<a id="user-content-actual-results" class="anchor" href="#actual-results" aria-hidden="true"></a>Actual results:</h2>
<p dir="auto">configured as <code>ftellio</code> is broken and try to compile and use  gnulib one.</p>
<h2 dir="auto">
<a id="user-content-expected-results" class="anchor" href="#expected-results" aria-hidden="true"></a>Expected results:</h2>
<p dir="auto">No problem!</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/gnutls/issues/735">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/779a9fbbed64620699a747b3a221bb38/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/735"}}</script>

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