<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 29, 2017 at 10:45 AM, Daniel P. Berrange <span dir="ltr"><<a href="mailto:berrange@redhat.com" target="_blank">berrange@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-">On Thu, Sep 28, 2017 at 04:41:37PM -0700, Paul Eggert wrote:<br>
> That patch essentially negates the point of the test, which is that getopt<br>
> should be visible from unistd.h. I'd rather fix the problem than nuke the<br>
> test.<br>
><br>
> Could you explain what the Gnulib problem is here? I can't really see it in<br>
> your email. A self-contained example would help.<br>
><br>
> For what it's worth, I could not reproduce the problem on Fedora 26 by doing<br>
> this in Gnulib (this tells 'configure' to use Gnulib-supplied getopt.h and<br>
> getopt.c):<br>
<br>
</span>Fedora 26 only has glibc 2.25 - you need to have Fedora rawhide to get<br>
the broken behaviour, as that has glibc 2.26.90<br>
<span class="gmail-im gmail-HOEnZb"><br>
> ./gnulib-tool --create-testdir --dir foo getopt-posix<br>
> cd foo<br>
> ./configure gl_cv_func_getopt_posix=no ac_cv_header_getopt_h=no<br>
> make<br>
> make check<br></span></blockquote><div><br></div><div>As Daniel said at least glibc 2.26 as in Fedora rawhide or Ubuntu Artful.</div><div>But thanks for these commands that way I could reproduce without needing any of the libvirt build env.</div><div><br></div><div>Here [1] a log of your commands on such a system showing the issue.</div><div>I added a gdb to show the assert and an LD_DEBUG so you can see that getopt is not taken from gnulib as the test assumes when verifying behavior.</div><div><br></div><div>[1]: <a href="http://paste.ubuntu.com/25638847/">http://paste.ubuntu.com/25638847/</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-im gmail-HOEnZb">
</span><div class="gmail-HOEnZb"><div class="gmail-h5">Regards,<br>
Daniel<br>
--<br>
|: <a href="https://berrange.com" rel="noreferrer" target="_blank">https://berrange.com</a>      -o-    <a href="https://www.flickr.com/photos/dberrange" rel="noreferrer" target="_blank">https://www.flickr.com/photos/<wbr>dberrange</a> :|<br>
|: <a href="https://libvirt.org" rel="noreferrer" target="_blank">https://libvirt.org</a>         -o-            <a href="https://fstop138.berrange.com" rel="noreferrer" target="_blank">https://fstop138.berrange.com</a> :|<br>
|: <a href="https://entangle-photo.org" rel="noreferrer" target="_blank">https://entangle-photo.org</a>    -o-    <a href="https://www.instagram.com/dberrange" rel="noreferrer" target="_blank">https://www.instagram.com/<wbr>dberrange</a> :|<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(136,136,136);font-size:12.8px">Christian Ehrhardt</span><div style="color:rgb(136,136,136);font-size:12.8px">Software Engineer, Ubuntu Server</div><div style="color:rgb(136,136,136);font-size:12.8px">Canonical Ltd</div></div></div></div></div>
</div></div>