[libvirt] libvirt cannot be built with -Werror on RHEL6RC(x86_64)

Eric Blake eblake at redhat.com
Thu May 12 14:35:24 UTC 2011


On 05/12/2011 12:40 AM, Wen Congyang wrote:
> My steps to build libvirt:
> 1. # export CFLAGS=-Werror

The general advice from the gnulib list is that using -Werror during the
duration of ./configure is unsupported.  There are a number of
gnulib-supplied configure tests that get the wrong answer if -Werror is
on too early, with no plans to fix those upstream in gnulib, so
downstream libvirt cannot control all the problems caused by adding
-Werror to CFLAGS before configure.  Rather, it's better to rely on the
./configure --enable-compile-warnings=error, which libvirt uses to probe
if -Werror works, then ensure that -Werror is used during the Makefile
when building sane code, but omitted during configure tests where the
code is intentionally hairy.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list