[libvirt] make check error

hzguanqiang at corp.netease.com hzguanqiang at corp.netease.com
Tue Sep 17 11:31:15 UTC 2013


Hi guys,
I made a automated test for the libvirt code in git source repository right now, It reported a check error.

The operation steps and error info are as following:

ubuntu at ubuntu:~/github/libvirt.git$ ./autogen.sh
ubuntu at ubuntu:~/github/libvirt.git$ ./configure --enable-werror
ubuntu at ubuntu:~/github/libvirt.git$ make check
............
make  check-local
make[3]: Entering directory `/home/ubuntu/github/libvirt.git/daemon'
  GEN    check-augeas
make[3]: Leaving directory `/home/ubuntu/github/libvirt.git/daemon'
make[2]: Leaving directory `/home/ubuntu/github/libvirt.git/daemon'
make[1]: Leaving directory `/home/ubuntu/github/libvirt.git/daemon'
Making check in tools
make[1]: Entering directory `/home/ubuntu/github/libvirt.git/tools'
  GEN    libvirt-guests.sh
make  check-am
make[2]: Entering directory `/home/ubuntu/github/libvirt.git/tools'
  CC     virsh-virsh.o
  CC     virsh-virsh-console.o
  CC     virsh-virsh-domain.o
virsh-domain.c: In function 'cmdMetadata':
virsh-domain.c:6857:10: error: declaration of 'remove' shadows a global declaration [-Werror=shadow]
cc1: all warnings being treated as errors
make[2]: *** [virsh-virsh-domain.o] Error 1
make[2]: Leaving directory `/home/ubuntu/github/libvirt.git/tools'
make[1]: *** [check] Error 2
make[1]: Leaving directory `/home/ubuntu/github/libvirt.git/tools'
make: *** [check-recursive] Error 1

What's the problem? Thanks.

BTW, The code version is:
ubuntu at ubuntu:~/github/libvirt.git$ git branch -a -v
* master                       7655ed0 conf: Don't corrupt metadata on OOM
  remotes/origin/HEAD          -> origin/master
  remotes/origin/master        7655ed0 conf: Don't corrupt metadata on OOM
------------------     
Best regards!
GuanQiang

2013-09-17
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20130917/28ceddab/attachment-0001.htm>


More information about the libvir-list mailing list