<p> Attention is currently required from: Bernd Kuhls, Fabrice Fontaine. </p>
<p>Sean Bright would like Bernd Kuhls and Fabrice Fontaine to <strong>review</strong> this change.
</p><p><a href="https://gerrit.asterisk.org/c/asterisk/+/19965">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">configure: fix detection of re-entrant resolver functions<br><br>uClibc does not provide res_nsearch:<br>asterisk-16.0.0/main/dns.c:506: undefined reference to `res_nsearch'<br><br>Patch coded by Yann E. MORIN:<br>http://lists.busybox.net/pipermail/buildroot/2018-October/232630.html<br><br>ASTERISK-21795 #close<br><br>Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de><br>[Retrieved from:<br>https: //git.buildroot.net/buildroot/tree/package/asterisk/0005-configure-fix-detection-of-re-entrant-resolver-funct.patch]<br>Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com><br>Change-Id: I79296f19e28ec764bbd1e991bf11c416d0b10563<br>---<br>M configure<br>M configure.ac<br>2 files changed, 31 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/65/19965/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/configure b/configure</span><br><span>index 0fd4641..5079b37 100755</span><br><span>--- a/configure</span><br><span>+++ b/configure</span><br><span>@@ -19348,7 +19348,11 @@</span><br><span> int</span><br><span> main ()</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-int foo = res_ninit(NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+                            int foo;</span><br><span style="color: hsl(120, 100%, 40%);">+                              foo = res_ninit(NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+                                foo = res_nsearch(NULL, NULL, 0, 0, NULL, 0);</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>   ;</span><br><span>   return 0;</span><br><span> }</span><br><span>diff --git a/configure.ac b/configure.ac</span><br><span>index 6c8ed5f..2893248 100644</span><br><span>--- a/configure.ac</span><br><span>+++ b/configure.ac</span><br><span>@@ -1487,7 +1487,11 @@</span><br><span>                     #include <arpa/nameser.h></span><br><span>                      #endif</span><br><span>                       #include <resolv.h>],</span><br><span style="color: hsl(0, 100%, 40%);">-                     [int foo = res_ninit(NULL);])],</span><br><span style="color: hsl(120, 100%, 40%);">+                       [</span><br><span style="color: hsl(120, 100%, 40%);">+                             int foo;</span><br><span style="color: hsl(120, 100%, 40%);">+                              foo = res_ninit(NULL);</span><br><span style="color: hsl(120, 100%, 40%);">+                                foo = res_nsearch(NULL, NULL, 0, 0, NULL, 0);</span><br><span style="color: hsl(120, 100%, 40%);">+                 ])],</span><br><span>         AC_MSG_RESULT(yes)</span><br><span>   AC_DEFINE([HAVE_RES_NINIT], 1, [Define to 1 if your system has the re-entrant resolver functions.])</span><br><span>  AC_SEARCH_LIBS(res_9_ndestroy, resolv)</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.asterisk.org/c/asterisk/+/19965">change 19965</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.asterisk.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.asterisk.org/c/asterisk/+/19965"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 20 </div>
<div style="display:none"> Gerrit-Change-Id: I79296f19e28ec764bbd1e991bf11c416d0b10563 </div>
<div style="display:none"> Gerrit-Change-Number: 19965 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Sean Bright <sean@seanbright.com> </div>
<div style="display:none"> Gerrit-Reviewer: Bernd Kuhls <bernd.kuhls@t-online.de> </div>
<div style="display:none"> Gerrit-Reviewer: Fabrice Fontaine <fontaine.fabrice@gmail.com> </div>
<div style="display:none"> Gerrit-Attention: Bernd Kuhls <bernd.kuhls@t-online.de> </div>
<div style="display:none"> Gerrit-Attention: Fabrice Fontaine <fontaine.fabrice@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>