Unable to build kvm-72 + kernel 2.6.26.2

Claudio Cuqui
2008-08-20T15:13:23Z

[-- Attachment #1: Type: text/plain, Size: 1529 bytes --]

Hi there !

I´m trying to install kvm on a FC5-64bits with a custom kernel
(2.6.26.2) - processor Intel Q6700.

When I run make, I got the following error (after many files compiled
without any errors):

gcc -I /C3Systems/kvm/source-72/qemu/../libkvm -DCONFIG_X86 -Wall -O2
-g -fno-strict-aliasing -m64 -I. -I/C3Systems/kvm/source-72/qemu -MMD
-MP -MT scsi-generic.o -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64
-D_LARGEFILE_SOURCE -I/C3Systems/kvm/source-72/qemu/slirp -c -o
scsi-generic.o /C3Systems/kvm/source-72/qemu/hw/scsi-generic.c
In file included from /C3Systems/kvm/source-72/qemu/hw/scsi-generic.c:46:
/usr/include/scsi/scsi.h:140: error: expected specifier-qualifier-list
before 'u8'
/usr/include/scsi/scsi.h: In function 'scsi_varlen_cdb_length':
/usr/include/scsi/scsi.h:151: error: 'struct scsi_varlen_cdb_hdr' has no
member named 'additional_cdb_length'
make[1]: *** [scsi-generic.o] Error 1
make[1]: Leaving directory `/C3Systems/kvm/source-72/qemu'
make: *** [qemu] Error 2

GCC version below:
[root@bluegene source-72]# gcc --version
gcc (GCC) 4.1.1 20070105 (Red Hat 4.1.1-51)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

The configure line used to build it was:

./configure --prefix=/C3Systems/kvm/bin-72 --with-patched-kernel

Kernel is a vanilla 2.6.26.2 (kernel.org).

Ideas ?

TIA,

Claudio Cuqui

[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3265 bytes --]