Re: [ANNOUNCE] kvm-71 release (typedef 'bool' on RHEL 5.2)

Erik Bussink
2008-07-14T22:44:03Z

On Mon, 2008-07-14 at 18:00 +0300, Avi Kivity wrote:
> Again, this took longer than I'd like, but the new release is finally
> out. It's composed mainly of incremental fixes, but important ones.
>
> Changes from kvm-70:
> ...
> - rhel 5.2/centos 5.2 host support

Thanks for the new release Avi. I'm trying to get kvm-71 to compile on
RHEL 5.2 (x86_64), but I'm running in a typedef 'bool' issue.
Here is my output... I've run thru the 1st make, so this make only shows
the problem.

[root@eowyn kvm-71]# uname -a
Linux eowyn.bussink.local 2.6.18-92.1.6.el5 #1 SMP Fri Jun 20 02:36:06
EDT 2008 x86_64 x86_64 x86_64 GNU/Linux

[root@eowyn kvm-71]# make
make -C libkvm
make[1]: Entering directory `/root/src/kvm-71/libkvm'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/src/kvm-71/libkvm'
make -C extboot
make[1]: Entering directory `/root/src/kvm-71/extboot'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/src/kvm-71/extboot'
if ! [ -f qemu/pc-bios/extboot.bin ] \
|| ! cmp -s qemu/pc-bios/extboot.bin extboot/extboot.bin;
then \
cp extboot/extboot.bin qemu/pc-bios/extboot.bin; \
fi
make -C qemu
make[1]: Entering directory `/root/src/kvm-71/qemu'
make -C x86_64-softmmu all
make[2]: Entering directory `/root/src/kvm-71/qemu/x86_64-softmmu'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/root/src/kvm-71/qemu/x86_64-softmmu'
make[1]: Leaving directory `/root/src/kvm-71/qemu'
make -C kernel
make[1]: Entering directory `/root/src/kvm-71/kernel'
make -C /lib/modules/2.6.18-92.1.6.el5/build M=`pwd` \
LINUXINCLUDE="-I`pwd`/include -Iinclude
-I`pwd`/include-compat \
-include include/linux/autoconf.h \
-include `pwd`/external-module-compat.h"
make[2]: Entering directory `/usr/src/kernels/2.6.18-92.1.6.el5-x86_64'
CC [M] /root/src/kvm-71/kernel/svm.o
In file included from <command line>:2:
/root/src/kvm-71/kernel/external-module-compat.h:360: error:
redefinition of typedef ‘bool’
include/linux/types.h:36: error: previous declaration of ‘bool’ was here
make[3]: *** [/root/src/kvm-71/kernel/svm.o] Error 1
make[2]: *** [_module_/root/src/kvm-71/kernel] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-92.1.6.el5-x86_64'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/root/src/kvm-71/kernel'
make: *** [kernel] Error 2
[root@eowyn kvm-71]#

Thanks for the good work.
Erik