G'Day, I was following the HowTo "Virtualization With Xen On CentOS 6.3 (x86_64) (Paravirtualization & Hardware Virtualization)" and was not able to complete the first page due to the following errors in the rpmbuild process. Follows is a subset of the Error from the libvirt rpmbuild CC sanlock_la-lock_driver_sanlock.lo 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' Any thoughts? Kind Regards
I ran into a similar issue, hoping there's an easy fix! Tried to paste as much of the errors I could, but my buffer got maxed out. Code: libxl/libxl_driver.c:106: warning: nested extern declaration of 'libxl_stop_waiting' [-Wnested-externs] libxl/libxl_driver.c:106: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:107: warning: implicit declaration of function 'libxl_free_waiter' [-Wimplicit-function-declaration] libxl/libxl_driver.c:107: warning: nested extern declaration of 'libxl_free_waiter' [-Wnested-externs] libxl/libxl_driver.c:107: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:108: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:108: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c: In function 'libxlVmCleanup': libxl/libxl_driver.c:294: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:295: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:296: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:299: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:300: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:301: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:302: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:302: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c: In function 'libxlVmReap': libxl/libxl_driver.c:358: warning: passing argument 3 of 'libxl_domain_destroy' makes pointer from integer without a cast /usr/include/libxl.h:543: note: expected 'const struct libxl_asyncop_how *' but argument is of type 'int' libxl/libxl_driver.c: In function 'libxlEventHandler': libxl/libxl_driver.c:392: error: 'libxlDomainObjPrivate' has no member named 'waiterFD' libxl/libxl_driver.c:392: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:394: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:401: warning: implicit declaration of function 'libxl_get_event' [-Wimplicit-function-declaration] libxl/libxl_driver.c:401: warning: nested extern declaration of 'libxl_get_event' [-Wnested-externs] libxl/libxl_driver.c:404: error: 'LIBXL_EVENT_DOMAIN_DEATH' undeclared (first use in this function) libxl/libxl_driver.c:404: error: (Each undeclared identifier is reported only once libxl/libxl_driver.c:404: error: for each function it appears in.) libxl/libxl_driver.c:409: warning: implicit declaration of function 'libxl_event_get_domain_death_info' [-Wimplicit-function-declaration] libxl/libxl_driver.c:409: warning: nested extern declaration of 'libxl_event_get_domain_death_info' [-Wnested-externs] libxl/libxl_driver.c:416: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:418: error: 'SHUTDOWN_poweroff' undeclared (first use in this function) libxl/libxl_driver.c:419: error: 'SHUTDOWN_crash' undeclared (first use in this function) libxl/libxl_driver.c:434: error: 'SHUTDOWN_reboot' undeclared (first use in this function) libxl/libxl_driver.c:452: warning: implicit declaration of function 'libxl_free_event' [-Wimplicit-function-declaration] libxl/libxl_driver.c:452: warning: nested extern declaration of 'libxl_free_event' [-Wnested-externs] libxl/libxl_driver.c: In function 'libxlCreateDomEvents': libxl/libxl_driver.c:465: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:465: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:470: warning: implicit declaration of function 'libxl_wait_for_domain_death' [-Wimplicit-function-declaration] libxl/libxl_driver.c:470: warning: nested extern declaration of 'libxl_wait_for_domain_death' [-Wnested-externs] libxl/libxl_driver.c:470: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:473: warning: implicit declaration of function 'libxl_get_wait_fd' [-Wimplicit-function-declaration] libxl/libxl_driver.c:473: warning: nested extern declaration of 'libxl_get_wait_fd' [-Wnested-externs] libxl/libxl_driver.c:477: error: 'libxlDomainObjPrivate' has no member named 'waiterFD' libxl/libxl_driver.c:482: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:494: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:495: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:495: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:496: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c: In function 'libxlDomainSetVcpuAffinites': libxl/libxl_driver.c:505: error: 'libxl_cpumap' undeclared (first use in this function) libxl/libxl_driver.c:505: error: expected ';' before 'map' libxl/libxl_driver.c:534: error: 'map' undeclared (first use in this function) libxl/libxl_driver.c: In function 'libxlFreeMem': libxl/libxl_driver.c:564: error: 'libxl_domain_config' has no member named 'dm_info' libxl/libxl_driver.c:565: error: too many arguments to function 'libxl_domain_need_memory' libxl/libxl_driver.c: In function 'libxlVmStart': libxl/libxl_driver.c:668: warning: passing argument 4 of 'libxl_domain_create_new' from incompatible pointer type /usr/include/libxl.h:503: note: expected 'const struct libxl_asyncop_how *' but argument is of type 'pid_t *' libxl/libxl_driver.c:668: warning: passing argument 5 of 'libxl_domain_create_new' from incompatible pointer type /usr/include/libxl.h:503: note: expected 'const struct libxl_asyncprogress_how *' but argument is of type 'uint32_t *' libxl/libxl_driver.c:672: warning: passing argument 4 of 'libxl_domain_create_restore' makes integer from pointer without a cast /usr/include/libxl.h:508: note: expected 'int' but argument is of type 'pid_t *' libxl/libxl_driver.c:672: warning: passing argument 5 of 'libxl_domain_create_restore' from incompatible pointer type /usr/include/libxl.h:508: note: expected 'const struct libxl_asyncop_how *' but argument is of type 'uint32_t *' libxl/libxl_driver.c:672: warning: passing argument 6 of 'libxl_domain_create_restore' makes pointer from integer without a cast /usr/include/libxl.h:508: note: expected 'const struct libxl_asyncprogress_how *' but argument is of type 'int' libxl/libxl_driver.c:720: warning: implicit declaration of function 'libxl_domain_config_destroy' [-Wimplicit-function-declaration] libxl/libxl_driver.c:720: warning: nested extern declaration of 'libxl_domain_config_destroy' [-Wnested-externs] libxl/libxl_driver.c: In function 'libxlDomainShutdownFlags': libxl/libxl_driver.c:1442: error: too many arguments to function 'libxl_domain_shutdown' libxl/libxl_driver.c: In function 'libxlDomainReboot': libxl/libxl_driver.c:1495: error: too many arguments to function 'libxl_domain_shutdown' libxl/libxl_driver.c: In function 'libxlDoDomainSave': libxl/libxl_driver.c:1867: warning: passing argument 2 of 'libxl_domain_suspend' makes integer from pointer without a cast /usr/include/libxl.h:521: note: expected 'uint32_t' but argument is of type 'void *' libxl/libxl_driver.c:1867: error: too few arguments to function 'libxl_domain_suspend' libxl/libxl_driver.c: In function 'libxlDomainCoreDump': libxl/libxl_driver.c:2043: error: too few arguments to function 'libxl_domain_core_dump' libxl/libxl_driver.c: In function 'libxlDomainSetVcpusFlags': libxl/libxl_driver.c:2215: error: 'libxl_cpumap' undeclared (first use in this function) libxl/libxl_driver.c:2215: error: expected ';' before 'map' libxl/libxl_driver.c:2295: error: 'map' undeclared (first use in this function) libxl/libxl_driver.c: In function 'libxlDomainPinVcpu': libxl/libxl_driver.c:2415: error: 'libxl_cpumap' undeclared (first use in this function) libxl/libxl_driver.c:2415: error: expected ';' before 'map' libxl/libxl_driver.c:2434: error: 'map' undeclared (first use in this function) libxl/libxl_driver.c: In function 'libxlDomainGetVcpus': libxl/libxl_driver.c:2515: warning: implicit declaration of function 'libxl_vcpuinfo_destroy' [-Wimplicit-function-declaration] libxl/libxl_driver.c:2515: warning: nested extern declaration of 'libxl_vcpuinfo_destroy' [-Wnested-externs] libxl/libxl_driver.c: In function 'libxlDomainChangeEjectableMedia': libxl/libxl_driver.c:2879: error: too few arguments to function 'libxl_cdrom_insert' libxl/libxl_driver.c: In function 'libxlDomainAttachDeviceDiskLive': libxl/libxl_driver.c:2935: error: too few arguments to function 'libxl_device_disk_add' libxl/libxl_driver.c: In function 'libxlDomainDetachDeviceDiskLive': libxl/libxl_driver.c:2988: warning: implicit declaration of function 'libxl_device_disk_del' [-Wimplicit-function-declaration] libxl/libxl_driver.c:2988: warning: nested extern declaration of 'libxl_device_disk_del' [-Wnested-externs] libxl/libxl_driver.c: In function 'libxlDomainGetSchedulerType': libxl/libxl_driver.c:3536: warning: implicit declaration of function 'libxl_get_sched_id' [-Wimplicit-function-declaration] libxl/libxl_driver.c:3536: warning: nested extern declaration of 'libxl_get_sched_id' [-Wnested-externs] libxl/libxl_driver.c:3546: error: 'XEN_SCHEDULER_SEDF' undeclared (first use in this function) libxl/libxl_driver.c:3549: error: 'XEN_SCHEDULER_CREDIT' undeclared (first use in this function) libxl/libxl_driver.c:3554: error: 'XEN_SCHEDULER_CREDIT2' undeclared (first use in this function) libxl/libxl_driver.c:3557: error: 'XEN_SCHEDULER_ARINC653' undeclared (first use in this function) libxl/libxl_driver.c: In function 'libxlDomainGetSchedulerParametersFlags': libxl/libxl_driver.c:3582: error: 'libxl_sched_credit' undeclared (first use in this function) libxl/libxl_driver.c:3582: error: expected ';' before 'sc_info' libxl/libxl_driver.c:3611: error: 'XEN_SCHEDULER_CREDIT' undeclared (first use in this function) libxl/libxl_driver.c:3617: warning: implicit declaration of function 'libxl_sched_credit_domain_get' [-Wimplicit-function-declaration] libxl/libxl_driver.c:3617: warning: nested extern declaration of 'libxl_sched_credit_domain_get' [-Wnested-externs] libxl/libxl_driver.c:3617: error: 'sc_info' undeclared (first use in this function) libxl/libxl_driver.c: In function 'libxlDomainSetSchedulerParametersFlags': libxl/libxl_driver.c:3660: error: 'libxl_sched_credit' undeclared (first use in this function) libxl/libxl_driver.c:3660: error: expected ';' before 'sc_info' libxl/libxl_driver.c:3697: error: 'XEN_SCHEDULER_CREDIT' undeclared (first use in this function) libxl/libxl_driver.c:3703: error: 'sc_info' undeclared (first use in this function) libxl/libxl_driver.c:3720: warning: implicit declaration of function 'libxl_sched_credit_domain_set' [-Wimplicit-function-declaration] libxl/libxl_driver.c:3720: warning: nested extern declaration of 'libxl_sched_credit_domain_set' [-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_driver.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.pv83o3 (%build)
Yes. This was a fresh install of 6.3 minimal 64-bit. The only difference I could see in the walkthrough was my libvirt was slightly newer: libvirt-client-0.9.10-21.el6_3.4.x86_64 (this is from memory, I can reconfirm once I get back in front of the box) Would that make a difference? Follow up - just confirmed the libvirt version: Code: # rpm -qa | grep libvirt libvirt-python-0.9.10-21.el6_3.4.x86_64 libvirt-0.9.10-21.el6_3.4.x86_64 libvirt-client-0.9.10-21.el6_3.4.x86_64 And double-checked that selinux was disabled.
Did you download http://vault.centos.org/6.3/os/Source/SPackages/libvirt-0.9.10-21.el6.src.rpm and apply the patch to it? Were there any errors when you applied the patch?
Here's what I get when I patch: Code: # patch -p0 < ~/src/libvirt-spec-rhel6-enable-xen.patch patching file libvirt.spec Hunk #1 succeeded at 137 with fuzz 1 (offset 33 lines). I did notice that when installing libvirt-0.9.10-21.el6.src.rpm the howto mentions that we would get warnings we could ignore. I got a screenful of the warnings about mockbuild not existing - enough to fill my scrollback buffer. Would either of those make any difference?
FWIW I'm getting the same exact errors with the same setup. CentOS 6.3 Minimal 64Bit with SELinux disabled.
I was able to capture the errors this time. It starts with "libxl/libxl_conf.h:61: error: field 'ctx' has incomplete type", and the rest of the build has trouble from there on out: Code: 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]: *** Waiting for unfinished jobs.... In file included from libxl/libxl_driver.c:44: 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_driver.c: In function 'libxlDomainObjPrivateAlloc': libxl/libxl_driver.c:90: warning: implicit declaration of function 'libxl_ctx_init' [-Wimplicit-function-declaration] libxl/libxl_driver.c:90: warning: nested extern declaration of 'libxl_ctx_init' [-Wnested-externs] libxl/libxl_driver.c:91: error: 'libxlDomainObjPrivate' has no member named 'waiterFD' libxl/libxl_driver.c:92: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c: In function 'libxlDomainObjPrivateFree': libxl/libxl_driver.c:102: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:103: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:105: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:106: warning: implicit declaration of function 'libxl_stop_waiting' [-Wimplicit-function-declaration] libxl/libxl_driver.c:106: warning: nested extern declaration of 'libxl_stop_waiting' [-Wnested-externs] libxl/libxl_driver.c:106: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:107: warning: implicit declaration of function 'libxl_free_waiter' [-Wimplicit-function-declaration] libxl/libxl_driver.c:107: warning: nested extern declaration of 'libxl_free_waiter' [-Wnested-externs] libxl/libxl_driver.c:107: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:108: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:108: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c: In function 'libxlVmCleanup': libxl/libxl_driver.c:294: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:295: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:296: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:299: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:300: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:301: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:302: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:302: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c: In function 'libxlVmReap': libxl/libxl_driver.c:358: warning: passing argument 3 of 'libxl_domain_destroy' makes pointer from integer without a cast /usr/include/libxl.h:543: note: expected 'const struct libxl_asyncop_how *' but argument is of type 'int' libxl/libxl_driver.c: In function 'libxlEventHandler': libxl/libxl_driver.c:392: error: 'libxlDomainObjPrivate' has no member named 'waiterFD' libxl/libxl_driver.c:392: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:394: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:401: warning: implicit declaration of function 'libxl_get_event' [-Wimplicit-function-declaration] libxl/libxl_driver.c:401: warning: nested extern declaration of 'libxl_get_event' [-Wnested-externs] libxl/libxl_driver.c:404: error: 'LIBXL_EVENT_DOMAIN_DEATH' undeclared (first use in this function) libxl/libxl_driver.c:404: error: (Each undeclared identifier is reported only once libxl/libxl_driver.c:404: error: for each function it appears in.) libxl/libxl_driver.c:409: warning: implicit declaration of function 'libxl_event_get_domain_death_info' [-Wimplicit-function-declaration] libxl/libxl_driver.c:409: warning: nested extern declaration of 'libxl_event_get_domain_death_info' [-Wnested-externs] libxl/libxl_driver.c:416: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:418: error: 'SHUTDOWN_poweroff' undeclared (first use in this function) libxl/libxl_driver.c:419: error: 'SHUTDOWN_crash' undeclared (first use in this function) libxl/libxl_driver.c:434: error: 'SHUTDOWN_reboot' undeclared (first use in this function) libxl/libxl_driver.c:452: warning: implicit declaration of function 'libxl_free_event' [-Wimplicit-function-declaration] libxl/libxl_driver.c:452: warning: nested extern declaration of 'libxl_free_event' [-Wnested-externs] libxl/libxl_driver.c: In function 'libxlCreateDomEvents': libxl/libxl_driver.c:465: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:465: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:470: warning: implicit declaration of function 'libxl_wait_for_domain_death' [-Wimplicit-function-declaration] libxl/libxl_driver.c:470: warning: nested extern declaration of 'libxl_wait_for_domain_death' [-Wnested-externs] libxl/libxl_driver.c:470: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:473: warning: implicit declaration of function 'libxl_get_wait_fd' [-Wimplicit-function-declaration] libxl/libxl_driver.c:473: warning: nested extern declaration of 'libxl_get_wait_fd' [-Wnested-externs] libxl/libxl_driver.c:477: error: 'libxlDomainObjPrivate' has no member named 'waiterFD' libxl/libxl_driver.c:482: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c:494: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:495: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:495: error: 'libxlDomainObjPrivate' has no member named 'dWaiter' libxl/libxl_driver.c:496: error: 'libxlDomainObjPrivate' has no member named 'eventHdl' libxl/libxl_driver.c: In function 'libxlDomainSetVcpuAffinites': libxl/libxl_driver.c:505: error: 'libxl_cpumap' undeclared (first use in this function) libxl/libxl_driver.c:505: error: expected ';' before 'map' libxl/libxl_driver.c:534: error: 'map' undeclared (first use in this function) libxl/libxl_driver.c: In function 'libxlFreeMem': libxl/libxl_driver.c:564: error: 'libxl_domain_config' has no member named 'dm_info' libxl/libxl_driver.c:565: error: too many arguments to function 'libxl_domain_need_memory' libxl/libxl_driver.c: In function 'libxlVmStart': libxl/libxl_driver.c:668: warning: passing argument 4 of 'libxl_domain_create_new' from incompatible pointer type /usr/include/libxl.h:503: note: expected 'const struct libxl_asyncop_how *' but argument is of type 'pid_t *' libxl/libxl_driver.c:668: warning: passing argument 5 of 'libxl_domain_create_new' from incompatible pointer type /usr/include/libxl.h:503: note: expected 'const struct libxl_asyncprogress_how *' but argument is of type 'uint32_t *' libxl/libxl_driver.c:672: warning: passing argument 4 of 'libxl_domain_create_restore' makes integer from pointer without a cast /usr/include/libxl.h:508: note: expected 'int' but argument is of type 'pid_t *' libxl/libxl_driver.c:672: warning: passing argument 5 of 'libxl_domain_create_restore' from incompatible pointer type /usr/include/libxl.h:508: note: expected 'const struct libxl_asyncop_how *' but argument is of type 'uint32_t *' libxl/libxl_driver.c:672: warning: passing argument 6 of 'libxl_domain_create_restore' makes pointer from integer without a cast /usr/include/libxl.h:508: note: expected 'const struct libxl_asyncprogress_how *' but argument is of type 'int' libxl/libxl_driver.c:720: warning: implicit declaration of function 'libxl_domain_config_destroy' [-Wimplicit-function-declaration] libxl/libxl_driver.c:720: warning: nested extern declaration of 'libxl_domain_config_destroy' [-Wnested-externs] libxl/libxl_driver.c: In function 'libxlDomainShutdownFlags': libxl/libxl_driver.c:1442: error: too many arguments to function 'libxl_domain_shutdown' libxl/libxl_driver.c: In function 'libxlDomainReboot': libxl/libxl_driver.c:1495: error: too many arguments to function 'libxl_domain_shutdown' libxl/libxl_driver.c: In function 'libxlDoDomainSave': libxl/libxl_driver.c:1867: warning: passing argument 2 of 'libxl_domain_suspend' makes integer from pointer without a cast /usr/include/libxl.h:521: note: expected 'uint32_t' but argument is of type 'void *' libxl/libxl_driver.c:1867: error: too few arguments to function 'libxl_domain_suspend' libxl/libxl_driver.c: In function 'libxlDomainCoreDump': libxl/libxl_driver.c:2043: error: too few arguments to function 'libxl_domain_core_dump' libxl/libxl_driver.c: In function 'libxlDomainSetVcpusFlags': libxl/libxl_driver.c:2215: error: 'libxl_cpumap' undeclared (first use in this function) libxl/libxl_driver.c:2215: error: expected ';' before 'map' libxl/libxl_driver.c:2295: error: 'map' undeclared (first use in this function) libxl/libxl_driver.c: In function 'libxlDomainPinVcpu': libxl/libxl_driver.c:2415: error: 'libxl_cpumap' undeclared (first use in this function) libxl/libxl_driver.c:2415: error: expected ';' before 'map' libxl/libxl_driver.c:2434: error: 'map' undeclared (first use in this function) libxl/libxl_driver.c: In function 'libxlDomainGetVcpus': libxl/libxl_driver.c:2515: warning: implicit declaration of function 'libxl_vcpuinfo_destroy' [-Wimplicit-function-declaration] libxl/libxl_driver.c:2515: warning: nested extern declaration of 'libxl_vcpuinfo_destroy' [-Wnested-externs] libxl/libxl_driver.c: In function 'libxlDomainChangeEjectableMedia': libxl/libxl_driver.c:2879: error: too few arguments to function 'libxl_cdrom_insert' libxl/libxl_driver.c: In function 'libxlDomainAttachDeviceDiskLive': libxl/libxl_driver.c:2935: error: too few arguments to function 'libxl_device_disk_add' libxl/libxl_driver.c: In function 'libxlDomainDetachDeviceDiskLive': libxl/libxl_driver.c:2988: warning: implicit declaration of function 'libxl_device_disk_del' [-Wimplicit-function-declaration] libxl/libxl_driver.c:2988: warning: nested extern declaration of 'libxl_device_disk_del' [-Wnested-externs] libxl/libxl_driver.c: In function 'libxlDomainGetSchedulerType': libxl/libxl_driver.c:3536: warning: implicit declaration of function 'libxl_get_sched_id' [-Wimplicit-function-declaration] libxl/libxl_driver.c:3536: warning: nested extern declaration of 'libxl_get_sched_id' [-Wnested-externs] libxl/libxl_driver.c:3546: error: 'XEN_SCHEDULER_SEDF' undeclared (first use in this function) libxl/libxl_driver.c:3549: error: 'XEN_SCHEDULER_CREDIT' undeclared (first use in this function) libxl/libxl_driver.c:3554: error: 'XEN_SCHEDULER_CREDIT2' undeclared (first use in this function) libxl/libxl_driver.c:3557: error: 'XEN_SCHEDULER_ARINC653' undeclared (first use in this function) libxl/libxl_driver.c: In function 'libxlDomainGetSchedulerParametersFlags': libxl/libxl_driver.c:3582: error: 'libxl_sched_credit' undeclared (first use in this function) libxl/libxl_driver.c:3582: error: expected ';' before 'sc_info' libxl/libxl_driver.c:3611: error: 'XEN_SCHEDULER_CREDIT' undeclared (first use in this function) libxl/libxl_driver.c:3617: warning: implicit declaration of function 'libxl_sched_credit_domain_get' [-Wimplicit-function-declaration] libxl/libxl_driver.c:3617: warning: nested extern declaration of 'libxl_sched_credit_domain_get' [-Wnested-externs] libxl/libxl_driver.c:3617: error: 'sc_info' undeclared (first use in this function) libxl/libxl_driver.c: In function 'libxlDomainSetSchedulerParametersFlags': libxl/libxl_driver.c:3660: error: 'libxl_sched_credit' undeclared (first use in this function) libxl/libxl_driver.c:3660: error: expected ';' before 'sc_info' libxl/libxl_driver.c:3697: error: 'XEN_SCHEDULER_CREDIT' undeclared (first use in this function) libxl/libxl_driver.c:3703: error: 'sc_info' undeclared (first use in this function) libxl/libxl_driver.c:3720: warning: implicit declaration of function 'libxl_sched_credit_domain_set' [-Wimplicit-function-declaration] libxl/libxl_driver.c:3720: warning: nested extern declaration of 'libxl_sched_credit_domain_set' [-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_driver.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.KHU3WZ (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.KHU3WZ (%build)
Even I am getting the same error with Centos6.3(x64) minimal. HTML: /tmp/tmp5Q4elR.c:1: warning: return type defaults to 'int' /tmp/tmp5Q4elR.c:1: warning: '__dtrace' defined but not used CC libvirt_qemu_la-libvirt-qemu.lo CC sanlock_la-lock_driver_sanlock.lo 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]: *** Waiting for unfinished jobs.... 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.MxNDu6 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.MxNDu6 (%build)
Well, it's not the minimal build choice, as I just tried the howto using a "Basic" install from the full CentOS 6.3 64bit DVD and got the same error.
G'Day, My Centos was fresh from the Live DVD 64bit. Selinux was disabled. The only item I could see different were around the following. As CentOS 6 is based on RedHat 6, and RedHat has dropped support for Xen in version 6, we need to get Xen from a third-party repository. We can enable the repo as follows: yum install http://au1.mirror.crc.id.au/repo/kernel-xen-release-6-3.noarch.rpm I think the xen release is a different version than that installed in the Howto? Kind Regards Peter
It has to do with the xen version. I compiled 4.2 from source and then tried to compile the latest version of libvirt from source and received the same errors. When I installed xen 4.1 from source I had no issues with libvirt.
Peter - You'll want the 4.1 source for Xen, not libvirt. I think this is it: http://www.xen.org/download/index_4.1.3.html
Looks like currently available libvirt version is not compatible with 4.2 per comments on this page: https://www.crc.id.au/2012/09/20/xen-4-2-0-packages-pushed-to-the-repos/
+1 reporting the same issue, SELinux is disabled and compiling libvirt fails as others have quoted. Is there a workaround?
Unfortunately, I wasn't skilled enough to figure out a workaround. I moved on to using KVM instead. The HowTo on the site was quite instructive: http://www.howtoforge.com/virtualization-with-kvm-on-a-centos-6.3-server
I cleared away the source in ~root/rpmbuild, re-installed, and attempted the rpmbuild with the unpatched spec file. The result was the same - building libvirt fails whether or not Xen is enabled. Which begs the question, how'd they do it in the first place?