Re: Unable to build kvm-72 + kernel 2.6.26.2

Avi Kivity
2008-08-20T15:22:55Z

Claudio Cuqui wrote:
> 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'

Your /usr/include/scsi/scsi.h is broken. Instead of u8, it should use __u8.

Update your glibc-headers (or whatever package supplies this file).

--
error compiling committee.c: too many arguments to function