LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   rpmbuild errors out for libvirt.spec (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/rpmbuild-errors-out-for-libvirt-spec-4175434835/)

phanee 10-30-2012 10:30 PM

rpmbuild errors out for libvirt.spec
 
*** Warning: Linking the shared library libvirt.la against the non-libtool
*** objects probes.o is not portable!
CC libvirt_qemu_la-libvirt-qemu.lo
CCLD libvirt-qemu.la
CC sanlock_la-lock_driver_sanlock.lo
CCLD sanlock.la
CC libvirt_driver_libxl_la-libxl_conf.lo
In file included from libxl/libxl_conf.c:43:
libxl/libxl_conf.h:61: error: field 'ctx' has incomplete type
libxl/libxl_conf.h:80: error: field 'ctx' has incomplete type
libxl/libxl_conf.h:81: error: expected specifier-qualifier-list before 'libxl_waiter'
libxl/libxl_conf.c: In function 'libxlMakeDomCreateInfo':
libxl/libxl_conf.c:365: warning: implicit declaration of function 'libxl_init_create_info' [-Wimplicit-function-declaration]
libxl/libxl_conf.c:365: warning: nested extern declaration of 'libxl_init_create_info' [-Wnested-externs]
libxl/libxl_conf.c:367: error: 'libxl_domain_create_info' has no member named 'hvm'
libxl/libxl_conf.c:383: warning: implicit declaration of function 'libxl_domain_create_info_destroy' [-Wimplicit-function-declaration]
libxl/libxl_conf.c:383: warning: nested extern declaration of 'libxl_domain_create_info_destroy' [-Wnested-externs]
libxl/libxl_conf.c: In function 'libxlMakeDomBuildInfo':
libxl/libxl_conf.c:406: warning: implicit declaration of function 'libxl_init_build_info' [-Wimplicit-function-declaration]
libxl/libxl_conf.c:406: warning: nested extern declaration of 'libxl_init_build_info' [-Wnested-externs]
libxl/libxl_conf.c:408: error: 'libxl_domain_build_info' has no member named 'hvm'
libxl/libxl_conf.c:411: error: 'libxl_domain_build_info' has no member named 'cur_vcpus'
libxl/libxl_conf.c:413: error: 'libxl_domain_build_info' has no member named 'cur_vcpus'
libxl/libxl_conf.c:430: error: incompatible types when assigning to type 'libxl_defbool' from type 'int'
libxl/libxl_conf.c:431: error: incompatible types when assigning to type 'libxl_defbool' from type 'int'
libxl/libxl_conf.c:432: error: incompatible types when assigning to type 'libxl_defbool' from type 'int'
libxl/libxl_conf.c:436: error: incompatible types when assigning to type 'libxl_defbool' from type 'int'
libxl/libxl_conf.c:447: error: 'libxl_domain_build_info' has no member named 'cur_vcpus'
libxl/libxl_conf.c:457: warning: assignment from incompatible pointer type
libxl/libxl_conf.c:470: error: 'libxl_domain_build_info' has no member named 'kernel'
libxl/libxl_conf.c:470: error: 'libxl_domain_build_info' has no member named 'kernel'
libxl/libxl_conf.c:471: error: 'libxl_domain_build_info' has no member named 'kernel'
libxl/libxl_conf.c:477: error: request for member 'path' in something not a structure or union
libxl/libxl_conf.c:487: warning: implicit declaration of function 'libxl_domain_build_info_destroy' [-Wimplicit-function-declaration]
libxl/libxl_conf.c:487: warning: nested extern declaration of 'libxl_domain_build_info_destroy' [-Wnested-externs]
libxl/libxl_conf.c: In function 'libxlMakeDisk':
libxl/libxl_conf.c:510: error: 'DISK_FORMAT_QCOW' undeclared (first use in this function)
libxl/libxl_conf.c:510: error: (Each undeclared identifier is reported only once
libxl/libxl_conf.c:510: error: for each function it appears in.)
libxl/libxl_conf.c:511: error: 'DISK_BACKEND_QDISK' undeclared (first use in this function)
libxl/libxl_conf.c:513: error: 'DISK_FORMAT_QCOW2' undeclared (first use in this function)
libxl/libxl_conf.c:516: error: 'DISK_FORMAT_VHD' undeclared (first use in this function)
libxl/libxl_conf.c:517: error: 'DISK_BACKEND_TAP' undeclared (first use in this function)
libxl/libxl_conf.c:520: error: 'DISK_FORMAT_RAW' undeclared (first use in this function)
libxl/libxl_conf.c:533: error: 'DISK_BACKEND_PHY' undeclared (first use in this function)
libxl/libxl_conf.c:547: error: 'libxl_device_disk' has no member named 'unpluggable'
libxl/libxl_conf.c:556: error: 'libxl_device_disk' has no member named 'domid'
libxl/libxl_conf.c: In function 'libxlMakeDiskList':
libxl/libxl_conf.c:586: warning: passing argument 1 of 'libxl_device_disk_destroy' from incompatible pointer type
/usr/include/libxl.h:713: note: expected 'struct libxl_ctx *' but argument is of type 'struct libxl_device_disk *'
libxl/libxl_conf.c:586: error: too few arguments to function 'libxl_device_disk_destroy'
libxl/libxl_conf.c: In function 'libxlMakeNic':
libxl/libxl_conf.c:598: error: 'libxl_device_nic' has no member named 'domid'
libxl/libxl_conf.c:606: error: 'NICTYPE_IOEMU' undeclared (first use in this function)
libxl/libxl_conf.c:608: error: 'NICTYPE_VIF' undeclared (first use in this function)
libxl/libxl_conf.c: In function 'libxlMakeNicList':
libxl/libxl_conf.c:659: error: 'libxl_domain_config' has no member named 'vifs'
libxl/libxl_conf.c:660: error: 'libxl_domain_config' has no member named 'num_vifs'
libxl/libxl_conf.c:666: warning: passing argument 1 of 'libxl_device_nic_destroy' from incompatible pointer type
/usr/include/libxl.h:738: note: expected 'struct libxl_ctx *' but argument is of type 'struct libxl_device_nic *'
libxl/libxl_conf.c:666: error: too few arguments to function 'libxl_device_nic_destroy'
libxl/libxl_conf.c: In function 'libxlMakeVfb':
libxl/libxl_conf.c:680: error: incompatible types when assigning to type 'libxl_sdl_info' from type 'int'
libxl/libxl_conf.c:682: error: 'libxl_device_vfb' has no member named 'display'
libxl/libxl_conf.c:687: error: 'libxl_device_vfb' has no member named 'xauthority'
libxl/libxl_conf.c:694: error: incompatible types when assigning to type 'libxl_vnc_info' from type 'int'
libxl/libxl_conf.c:696: error: 'libxl_device_vfb' has no member named 'vncunused'
libxl/libxl_conf.c:706: error: 'libxl_device_vfb' has no member named 'vncdisplay'
libxl/libxl_conf.c:711: error: 'libxl_device_vfb' has no member named 'vnclisten'
libxl/libxl_conf.c:711: error: 'libxl_device_vfb' has no member named 'vnclisten'
libxl/libxl_conf.c:712: error: 'libxl_device_vfb' has no member named 'vnclisten'
libxl/libxl_conf.c:725: error: 'libxl_device_vfb' has no member named 'domid'
libxl/libxl_conf.c: In function 'libxlMakeVfbList':
libxl/libxl_conf.c:753: error: too many arguments to function 'libxl_device_vfb_init'
libxl/libxl_conf.c:754: error: too many arguments to function 'libxl_device_vkb_init'
libxl/libxl_conf.c:768: warning: passing argument 1 of 'libxl_device_vfb_destroy' from incompatible pointer type
/usr/include/libxl.h:768: note: expected 'struct libxl_ctx *' but argument is of type 'struct libxl_device_vfb *'
libxl/libxl_conf.c:768: error: too few arguments to function 'libxl_device_vfb_destroy'
libxl/libxl_conf.c:769: warning: passing argument 1 of 'libxl_device_vkb_destroy' from incompatible pointer type
/usr/include/libxl.h:755: note: expected 'struct libxl_ctx *' but argument is of type 'struct libxl_device_vkb *'
libxl/libxl_conf.c:769: error: too few arguments to function 'libxl_device_vkb_destroy'
libxl/libxl_conf.c: In function 'libxlMakeDeviceModelInfo':
libxl/libxl_conf.c:821: error: 'libxl_device_model_info' undeclared (first use in this function)
libxl/libxl_conf.c:821: error: 'dm_info' undeclared (first use in this function)
libxl/libxl_conf.c:821: error: 'libxl_domain_config' has no member named 'dm_info'
libxl/libxl_conf.c:825: warning: implicit declaration of function 'libxl_init_dm_info' [-Wimplicit-function-declaration]
libxl/libxl_conf.c:825: warning: nested extern declaration of 'libxl_init_dm_info' [-Wnested-externs]
libxl/libxl_conf.c:827: error: 'libxl_domain_build_info' has no member named 'hvm'
libxl/libxl_conf.c:829: error: 'XENFV' undeclared (first use in this function)
libxl/libxl_conf.c:860: error: 'XENPV' undeclared (first use in this function)
libxl/libxl_conf.c:865: error: used struct type value where scalar is required
libxl/libxl_conf.c:869: error: 'libxl_device_vfb' has no member named 'vnclisten'
libxl/libxl_conf.c:872: error: 'libxl_device_vfb' has no member named 'vnclisten'
libxl/libxl_conf.c:872: error: 'libxl_device_vfb' has no member named 'vnclisten'
libxl/libxl_conf.c:872: error: 'libxl_device_vfb' has no member named 'vnclisten'
libxl/libxl_conf.c:872: error: 'libxl_device_vfb' has no member named 'vnclisten'
libxl/libxl_conf.c:872: error: 'libxl_device_vfb' has no member named 'vnclisten'
libxl/libxl_conf.c:872: error: 'libxl_device_vfb' has no member named 'vnclisten'
libxl/libxl_conf.c:872: error: 'libxl_device_vfb' has no member named 'vnclisten'
libxl/libxl_conf.c:882: error: 'libxl_device_vfb' has no member named 'vncdisplay'
libxl/libxl_conf.c:883: error: 'libxl_device_vfb' has no member named 'vncpasswd'
libxl/libxl_conf.c:885: error: 'libxl_device_vfb' has no member named 'vncpasswd'
libxl/libxl_conf.c:885: error: 'libxl_device_vfb' has no member named 'vncpasswd'
libxl/libxl_conf.c:885: error: 'libxl_device_vfb' has no member named 'vncpasswd'
libxl/libxl_conf.c:885: error: 'libxl_device_vfb' has no member named 'vncpasswd'
libxl/libxl_conf.c:885: error: 'libxl_device_vfb' has no member named 'vncpasswd'
libxl/libxl_conf.c:885: error: 'libxl_device_vfb' has no member named 'vncpasswd'
libxl/libxl_conf.c:885: error: 'libxl_device_vfb' has no member named 'vncpasswd'
libxl/libxl_conf.c:889: error: used struct type value where scalar is required
libxl/libxl_conf.c:906: warning: implicit declaration of function 'libxl_device_model_info_destroy' [-Wimplicit-function-declaration]
libxl/libxl_conf.c:906: warning: nested extern declaration of 'libxl_device_model_info_destroy' [-Wnested-externs]
libxl/libxl_conf.c: In function 'libxlBuildDomainConfig':
libxl/libxl_conf.c:973: warning: implicit declaration of function 'libxl_domain_config_destroy' [-Wimplicit-function-declaration]
libxl/libxl_conf.c:973: warning: nested extern declaration of 'libxl_domain_config_destroy' [-Wnested-externs]
At top level:
cc1: warning: unrecognized command line option "-Wno-suggest-attribute=const"
cc1: warning: unrecognized command line option "-Wno-suggest-attribute=pure"
make[3]: *** [libvirt_driver_libxl_la-libxl_conf.lo] Error 1
make[3]: Leaving directory `/root/rpmbuild/BUILD/libvirt-0.9.10/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/root/rpmbuild/BUILD/libvirt-0.9.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/libvirt-0.9.10'
make: *** [all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.04W5H1 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.04W5H1 (%build)

I'm using CentOS 6.3 on HP DL360 G3

[root@xen SPECS]# uname -a
Linux xen 3.6.3-1.el6xen.i686 #1 SMP Thu Oct 25 13:20:37 EST 2012 i686 i686 i386 GNU/Linux

[root@xen SPECS]# cat /etc/redhat-release
CentOS release 6.3 (Final)

And here are the contents of the file under /tmp/

[root@xen SPECS]# more /var/tmp/rpm-tmp.04W5H1
#!/bin/sh

RPM_SOURCE_DIR="/root/rpmbuild/SOURCES"
RPM_BUILD_DIR="/root/rpmbuild/BUILD"
RPM_OPT_FLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables"
RPM_ARCH="i386"
RPM_OS="linux"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
RPM_DOC_DIR="/usr/share/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="libvirt"
RPM_PACKAGE_VERSION="0.9.10"
RPM_PACKAGE_RELEASE="21.el6"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
LANG=C
export LANG
unset CDPATH DISPLAY ||:
RPM_BUILD_ROOT="/root/rpmbuild/BUILDROOT/libvirt-0.9.10-21.el6.i386"
export RPM_BUILD_ROOT

PKG_CONFIG_PATH="/usr/lib/pkgconfig:/usr/share/pkgconfig"
export PKG_CONFIG_PATH

set -x
umask 022
cd "/root/rpmbuild/BUILD"
cd 'libvirt-0.9.10'
LANG=C
export LANG
unset DISPLAY

autoreconf -if

CFLAGS="${CFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables}" ; export CFLAGS ;
CXXFLAGS="${CXXFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
FFLAGS="${FFLAGS:--O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -I/usr/lib/gfortran/modules}" ; export FFLAGS ;
./configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu \
--target=i686-redhat-linux-gnu \
--program-prefix= \
--prefix=/usr \
--exec-prefix=/usr \
--bindir=/usr/bin \
--sbindir=/usr/sbin \
--sysconfdir=/etc \
--datadir=/usr/share \
--includedir=/usr/include \
--libdir=/usr/lib \
--libexecdir=/usr/libexec \
--localstatedir=/var \
--sharedstatedir=/var/lib \
--mandir=/usr/share/man \
--infodir=/usr/share/info --without-xen \
--without-qemu \
--without-openvz \
\
--without-vbox \
--without-xenapi \
\
\
\
\
\
--without-uml \
--without-phyp \
\
--without-hyperv \
--without-vmware \
\
\
\
\
\
\
\
\
--without-numad \
\
\
\
--without-hal \
\
\
\
--without-libpcap \
--without-macvtap \
\
\
--with-packager="Unknown, 2012-10-31-13:02:22, xen" \
--with-packager-version="21.el6" \
--with-qemu-user=qemu \
--with-qemu-group=qemu \
--with-init_script=redhat \
--with-remote-pid-file=/var/run/libvirtd.pid
make
gzip -9 ChangeLog


exit 0

Can someone advice on how to fix this? I'm using libvirt-0.9.10-21.el6

phanee 10-30-2012 11:20 PM

Just got a confirmation that Xen 4.2.0 is not compatible with libvirt 0.9.10. Trying my luck with xen 4.1.3


All times are GMT -5. The time now is 05:02 AM.