<div dir="ltr">On Fri, Sep 27, 2013 at 4:57 AM, Eric Blake <span dir="ltr"><<a href="mailto:eblake@redhat.com" target="_blank">eblake@redhat.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 09/27/2013 01:35 AM, Michal Privoznik wrote:<br>
><br>
> make[3]: Entering directory<br>
> `/home/zippy/work/tmp/a/libvirt-1.1.2/gnulib/lib'<br>
>   CC       allocator.lo<br>
> In file included from allocator.c:4:0:<br>
> ./stdlib.h:76:8: error: redefinition of 'struct random_data'<br>
>  struct random_data<br>
>         ^<br>
> In file included from ./stdlib.h:36:0,<br>
>                  from allocator.c:4:<br>
> /usr/include/stdlib.h:349:8: note: originally defined here<br>
>  struct random_data<br>
>         ^<br>
> In file included from /usr/include/sys/types.h:220:0,<br>
>                  from ./sys/types.h:27,<br>
>                  from /usr/include/stdlib.h:320,<br>
>                  from ./stdlib.h:36,<br>
>                  from allocator.c:4:<br>
><br>
> There are a few more but of the same nature.<br>
> The problem is, gnulib's stdlib.h defines the struct random_data. And so<br>
> does the system's /usr/include/stdlib.h. Unfortunately, I'm not that<br>
> familiar with gnulib to fix the issue myself. Eric, any thoughts on<br>
> this? Is it possible that your recent gnulib update has fixed this?<br>
<br>
That implies a bug in gnulib; I'll see if I can get it fixed today; we'd<br>
need to update the gnulib submodule of libvirt to pull in the fix, so<br>
hopefully I can get it done in time before the rc2 build is cut.  Can<br>
you show me the config.log output related to detecting whether 'struct<br>
random_data' exists?  Is this a case of circular header inclusion on<br>
FreeBSD (that is, does <sys/types.h> try to recursively include<br>
<stdlib.h> to pick up the struct?)<br>
<span class=""><font color="#888888"><br>
--<br>
Eric Blake   eblake redhat com    <a href="tel:%2B1-919-301-3266" value="+19193013266">+1-919-301-3266</a><br>
Libvirt virtualization library <a href="http://libvirt.org" target="_blank">http://libvirt.org</a></font></span></blockquote><div> </div></div></div><div class="gmail_extra">Should be available here: <a href="http://people.freebsd.org/~jgh/files/libvirt_83amd64.tar.xz">http://people.freebsd.org/~jgh/files/libvirt_83amd64.tar.xz</a><br>
<br></div><div class="gmail_extra">-jgh<br clear="all"></div><div class="gmail_extra"><br>-- <br><div dir="ltr">Jason Helfman          | FreeBSD Committer<br>jgh@FreeBSD.org     | <a href="http://people.freebsd.org/%7Ejgh" target="_blank">http://people.freebsd.org/~jgh</a>  | The Power to Serve<br>
</div>
</div></div>