<div dir="ltr"><div dir="ltr">On Fri, Sep 25, 2020 at 4:40 PM Andrea Bolognani <<a href="mailto:abologna@redhat.com">abologna@redhat.com</a>> wrote:<br></div><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 Fri, 2020-09-25 at 16:21 +0800, Wei Wang wrote:<br>
> On Fri, Sep 25, 2020 at 3:56 PM Andrea Bolognani <<a href="mailto:abologna@redhat.com" target="_blank">abologna@redhat.com</a>> wrote:<br>
> > On Fri, 2020-09-25 at 10:33 +0800, Wei Wang wrote:<br>
> > > In file included from ../src/util/virfile.c:42:<br>
> > > /usr/include/libutil.h:43:10: fatal error: sys/_types.h: No such file or directory<br>
> > >    43 | #include <sys/_types.h><br>
> > >       |          ^~~~~~~~~~~~~~<br>
> > > compilation terminated.<br>
> > > [51/908] Compiling C object src/qemu/libvirt_driver_qemu_impl.a.p/qemu_driver.c.o<br>
> > > ninja: build stopped: subcommand failed<br>
> > >  <br>
> > > I have  /usr/include/sys/types.h, but no "_types.h"<br>
> > <br>
> > Are you building on FreeBSD? Because that's where we expect<br>
> > <libutil.h> to be included. If you're not on FreeBSD, can you check<br>
> > which package /usr/include/libutil.h belongs to?<br>
>  <br>
> No, I'm building on Linux. It belongs to libutil-freebsd-dev, not sure why that's needed in my build.<br>
<br>
Can you retry after uninstalling that package? It looks like it<br>
messes up our header detection, and I sort of doubt we care enough<br>
about this scenario to change our build system to cope with it.<br><br></blockquote><div><br></div><div>Yes, I tried, but it fails with</div><div>../src/util/virfile.c:42:11: fatal error: libutil.h: No such file or directory<br></div><div><br></div><div>Thanks,</div><div>Wei</div><div><br></div><div> </div></div></div>