LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices

Reply
 
Search this Thread
Old 10-30-2012, 09:30 PM   #1
phanee
Member
 
Registered: Aug 2005
Location: Melbourne, Australia
Posts: 39

Rep: Reputation: 15
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

Last edited by phanee; 10-30-2012 at 09:36 PM.
 
Old 10-30-2012, 10:20 PM   #2
phanee
Member
 
Registered: Aug 2005
Location: Melbourne, Australia
Posts: 39

Original Poster
Rep: Reputation: 15
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
rpmbuild : need help with spec file. salilgk Linux - General 2 07-29-2011 10:05 AM
rpmbuild a spec file when a BuildRequires is not installed carltm Linux - Software 1 12-08-2008 06:45 PM
Need help with RPMBUILD .spec included wadevondoom Linux - Software 3 07-27-2006 06:59 PM
Problem with rpmbuild and template.spec file abefroman Linux - Software 0 11-27-2005 12:18 AM
rpmbuild -ba php.spec pk21 Linux - General 0 09-16-2003 09:34 AM


All times are GMT -5. The time now is 05:18 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration