Frank Shi
2012-Nov-16 21:01 UTC
[libvirt-users] Failed to build libvirt-1.0.0-1.fc17.src.rpm on a CentOS 6.3 system
Hi, List, I am seeing following problems when building libvirt-1.0.0-1.fc17.src.rpm. The first failed test case is xml2sexprtest as you can see below. $ sudo rpmbuild -ba SPECS/libvirt.spec + make check TEST: virshtest ........................................ 40 ........... 51 OK TEST: sockettest ...................................... 38 OK TEST: virbuftest .... 4 OK TEST: commandtest ..................... 21 OK TEST: virhashtest .............. 14 OK TEST: virnetmessagetest ..... 5 OK TEST: virnetsockettest ............... 15 OK TEST: viratomictest .. 2 OK TEST: utiltest ... 3 OK TEST: virnettlscontexttest ........................................ 40 ........ 48 OK TEST: shunloadtest . 1 OK TEST: virtimetest ............... 15 OK TEST: viruritest .................. 18 OK TEST: virkeyfiletest . 1 OK TEST: virauthconfigtest ...... 6 OK TEST: virbitmaptest ...... 6 OK TEST: virlockspacetest ....... 7 OK TEST: securityselinuxtest TEST: virdrivermoduletest ....... 7 OK TEST: xml2sexprtest .!.!!.....................!..!!!!.!!!!!! 40 !!!!!!!!!!... 53 FAIL TEST: sexpr2xmltest ........................................ 40 ........... 51 OK TEST: xmconfigtest ..............!.!.!.!.!.!.!.!.!.!.!.!.!. 40 !.!.!.!.!.!.!.!.!...!.!.!. 66 FAIL TEST: xencapstest .......... 10 OK TEST: statstest TEST: reconnect TEST: qemuxml2argvtest ........................................ 40 ........................................ 80 ........................................ 120 ........................................ 160 ........................................ 200 ........................................ 240 ...... 246 OK TEST: qemuxml2xmltest ........................................ 40 ........................................ 80 ................................... 115 OK TEST: qemuxmlnstest ....... 7 OK TEST: qemuargv2xmltest ........................................ 40 ................................... 75 OK TEST: qemuhelptest ................ 16 OK TEST: domainsnapshotxml2xmltest ....... 7 OK TEST: qemumonitortest .. 2 OK TEST: qemumonitorjsontest !!!!! 5 FAIL TEST: esxutilstest .... 4 OK TEST: vmx2xmltest ........................................ 40 .......... 50 OK TEST: xml2vmxtest ........................................ 40 ..... 45 OK TEST: networkxml2xmltest ................ 16 OK TEST: networkxml2argvtest ......... 9 OK TEST: nwfilterxml2xmltest ........................................ 40 . 41 OK TEST: storagevolxml2xmltest ....... 7 OK TEST: storagepoolxml2xmltest ............. 13 OK TEST: nodedevxml2xmltest ............. 13 OK TEST: interfacexml2xmltest ................... 19 OK TEST: cputest ........................................ 40 .......................... 66 OK TEST: eventtest ............... 15 OK TEST: libvirtdconftest ....................................... 39 OK make[1]: *** [check-TESTS] Error 1 make: *** [check-am] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.E2o2Vs (%check) Bad exit status from /var/tmp/rpm-tmp.E2o2Vs (%check) Not sure whether the failures are related to xml. Anyway, following is a list of xml packages installed, python-lxml-2.2.3-1.1.el6.x86_64 xmldb-api-sdk-0.1-0.4.20011111cvs.1.5.el6.noarch xmlto-0.0.23-3.el6.x86_64 xmlrpc-c-1.16.24-1209.1840.el6.x86_64 xml-commons-resolver-1.1-4.18.el6.x86_64 xmlrpc-c-client-1.16.24-1209.1840.el6.x86_64 xmldb-api-0.1-0.4.20011111cvs.1.5.el6.noarch xmlrpc3-client-3.0-4.15.el6.noarch xmlgraphics-commons-1.3.1-1.1.el6.noarch libxml2-devel-2.7.6-4.el6_2.4.x86_64 libxml2-2.7.6-4.el6_2.4.x86_64 xml-common-0.6.3-32.el6.noarch perl-libxml-perl-0.08-10.el6.noarch libxml2-python-2.7.6-4.el6_2.4.x86_64 xml-commons-apis-1.3.04-3.6.el6.x86_64 # cat /proc/version Linux version 2.6.32-279.el6.x86_64 (mockbuild at c6b9.bsys.dev.centos.org) (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Fri Jun 22 12:19:21 UTC 2012 Thanks, Frank -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121116/27d4d370/attachment.htm>
Abbas
2012-Nov-16 21:12 UTC
[libvirt-users] Failed to build libvirt-1.0.0-1.fc17.src.rpm on a CentOS 6.3 system
On 11/17/2012 02:01 AM, Frank Shi wrote:> Hi, List, > > I am seeing following problems when building libvirt-1.0.0-1.fc17.src.rpm. > The first failed test case is xml2sexprtest as you can see below.Not recommended.> > $ sudo rpmbuild -ba SPECS/libvirt.specYou'll get bunch of dependency issues even if you manage to bypass it. Compile from source, that would be easiest and quick way to get latest libvirt, after uninstalling the official rpms.> > + make check > TEST: virshtest > ........................................ 40 > ........... 51 OK > TEST: sockettest > ...................................... 38 OK > TEST: virbuftest > .... 4 OK > TEST: commandtest > ..................... 21 OK > TEST: virhashtest > .............. 14 OK > TEST: virnetmessagetest > ..... 5 OK > TEST: virnetsockettest > ............... 15 OK > TEST: viratomictest > .. 2 OK > TEST: utiltest > ... 3 OK > TEST: virnettlscontexttest > ........................................ 40 > ........ 48 OK > TEST: shunloadtest > . 1 OK > TEST: virtimetest > ............... 15 OK > TEST: viruritest > .................. 18 OK > TEST: virkeyfiletest > . 1 OK > TEST: virauthconfigtest > ...... 6 OK > TEST: virbitmaptest > ...... 6 OK > TEST: virlockspacetest > ....... 7 OK > TEST: securityselinuxtest > TEST: virdrivermoduletest > ....... 7 OK > TEST: xml2sexprtest > .!.!!.....................!..!!!!.!!!!!! 40 > !!!!!!!!!!... 53 FAIL > TEST: sexpr2xmltest > ........................................ 40 > ........... 51 OK > TEST: xmconfigtest > ..............!.!.!.!.!.!.!.!.!.!.!.!.!. 40 > !.!.!.!.!.!.!.!.!...!.!.!. 66 FAIL > TEST: xencapstest > .......... 10 OK > TEST: statstest > TEST: reconnect > TEST: qemuxml2argvtest > ........................................ 40 > ........................................ 80 > ........................................ 120 > ........................................ 160 > ........................................ 200 > ........................................ 240 > ...... 246 OK > TEST: qemuxml2xmltest > ........................................ 40 > ........................................ 80 > ................................... 115 OK > TEST: qemuxmlnstest > ....... 7 OK > TEST: qemuargv2xmltest > ........................................ 40 > ................................... 75 OK > TEST: qemuhelptest > ................ 16 OK > TEST: domainsnapshotxml2xmltest > ....... 7 OK > TEST: qemumonitortest > .. 2 OK > TEST: qemumonitorjsontest > !!!!! 5 FAIL > TEST: esxutilstest > .... 4 OK > TEST: vmx2xmltest > ........................................ 40 > .......... 50 OK > TEST: xml2vmxtest > ........................................ 40 > ..... 45 OK > TEST: networkxml2xmltest > ................ 16 OK > TEST: networkxml2argvtest > ......... 9 OK > TEST: nwfilterxml2xmltest > ........................................ 40 > . 41 OK > TEST: storagevolxml2xmltest > ....... 7 OK > TEST: storagepoolxml2xmltest > ............. 13 OK > TEST: nodedevxml2xmltest > ............. 13 OK > TEST: interfacexml2xmltest > ................... 19 OK > TEST: cputest > ........................................ 40 > .......................... 66 OK > TEST: eventtest > ............... 15 OK > TEST: libvirtdconftest > ....................................... 39 OK > make[1]: *** [check-TESTS] Error 1 > make: *** [check-am] Error 2 > error: Bad exit status from /var/tmp/rpm-tmp.E2o2Vs (%check) > Bad exit status from /var/tmp/rpm-tmp.E2o2Vs (%check) > > Not sure whether the failures are related to xml. Anyway, following is a > list of xml packages installed,Oh and also, if you choose this method of manual compilation, you'll have to install other python tools manually as well. Like virt-top, etc.> > python-lxml-2.2.3-1.1.el6.x86_64 > xmldb-api-sdk-0.1-0.4.20011111cvs.1.5.el6.noarch > xmlto-0.0.23-3.el6.x86_64 > xmlrpc-c-1.16.24-1209.1840.el6.x86_64 > xml-commons-resolver-1.1-4.18.el6.x86_64 > xmlrpc-c-client-1.16.24-1209.1840.el6.x86_64 > xmldb-api-0.1-0.4.20011111cvs.1.5.el6.noarch > xmlrpc3-client-3.0-4.15.el6.noarch > xmlgraphics-commons-1.3.1-1.1.el6.noarch > libxml2-devel-2.7.6-4.el6_2.4.x86_64 > libxml2-2.7.6-4.el6_2.4.x86_64 > xml-common-0.6.3-32.el6.noarch > perl-libxml-perl-0.08-10.el6.noarch > libxml2-python-2.7.6-4.el6_2.4.x86_64 > xml-commons-apis-1.3.04-3.6.el6.x86_64 > > # cat /proc/version > Linux version 2.6.32-279.el6.x86_64 (mockbuild at c6b9.bsys.dev.centos.org) > (gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC) ) #1 SMP Fri Jun 22 > 12:19:21 UTC 2012 > > Thanks, Frank > > > > _______________________________________________ > libvirt-users mailing list > libvirt-users at redhat.com > https://www.redhat.com/mailman/listinfo/libvirt-users-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libvirt-users/attachments/20121117/0df559aa/attachment.htm>
Abbas
2012-Nov-16 22:12 UTC
[libvirt-users] Failed to build libvirt-1.0.0-1.fc17.src.rpm on a CentOS 6.3 system
On 11/17/2012 02:47 AM, Frank Shi wrote:> Thanks much Abbas for your prompt response. Right, I have fixed all the > dependency issues. It compiled but failed during running test cases. I > prefer building from src-rpm is because I need to install the package onto > other machines. Building from src-rpm can generate rpm so it makes > future deploy easier.Then the start off point will be CentOS' srpms. You might still need to do some patchwork and testing before you get a working rpm (a reason why there's no third party repo for latest kvm and libvirt). Installing on multiple machines sounds like you tend towards stability and Fedora's packages won't do that job anyway!> Anyway, follow your recommendation, I downloaded the source tar and tried > to compile it from source. This time I am seeing following problems. What > could be the problem? > > Thanks, Frank > > ==============> $ tar xvf libvirt-1.0.0-rc1.tar.gz > $ libvirt-1.0.0 > $ ./configureTry using the supplied autogen script first.> libxl/libxl_conf.c:471: error: 'libxl_domain_build_info'It's a missing dep error. Quick time-savers for latest KVM and Libvirt (on latest CentOS 6.3): # qemu-kvm deps yum install gcc pkgconfig SDL-devel zlib-devel alsa-lib-devel pciutils-devel gnutls-devel glib glib2-devel ./configure --prefix=/usr --sysconfdir=/etc make && make install # libvirt deps yum install git python-devel libtool patch libxml2 libxml2-devel yajl-devel device-mapper-devel libnl-devel ./autogen-sh --system make && make install # packages to remove qemu-img qemu-kvm libvirt libvirt-client virt-top The kvm_intel manually loaded of course! ------ bassu