[libvirt] [PATCH] build: fix building with '--enable-test-locking'

Eric Blake eblake at redhat.com
Wed Dec 18 13:17:23 UTC 2013


On 12/18/2013 06:09 AM, Eric Blake wrote:
> On 12/18/2013 02:35 AM, Martin Kletzander wrote:
>> When test-locking is enabled, CFLAGS have -Dbool=char, which makes
> 
> Huh?  bool should never be defined to char in CFLAGS; it should only be
> replaced if gnulib thinks the compiler is too old.

I actually looked at configure.ac, and wow, we really ARE doing
-Dbool=char when trying to use CIL.  Yuck.  I think --with-test-locking
has bit-rotted for some time now, and is going to need a LOT of work
before it can be considered usable.  That option was added in commit
6962a2d, in 2009, which predates my time on libvirt, and I don't ever
recall using it myself.  I'm not familiar enough with CIL to speculate
why it doesn't work with C99 bool (or maybe that was a limitation back
in 2009 but has since been fixed).  Dan?

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 621 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20131218/d7e5430a/attachment-0001.sig>


More information about the libvir-list mailing list