Re: kvm userland: Build misses -I kernel include dir

2008-09-14 Thread Iain Paton
Ben Bucksch wrote: Reason is, as said, that the build assumes that /usr/include/linux/ioctl.h exists, i.e. it just #include linux/ioctl.h Oh, that's not nice. Certainly for me /usr/include/linux will never point to the kernel I'm building against so that's just a problem waiting to happen.

Re: kvm userland: Build misses -I kernel include dir

2008-09-13 Thread Ben Bucksch
Avi Kivity wrote: Ben Bucksch wrote: configure accepts the kernel source dir as input param, or automatically finds /lib/modules/2.6.27-rc5/build/ or similar. But the build only uses the dir to copy the latest kvm*.h into the local dir. The directory is not passed to gcc via -I . This

Re: kvm userland: Build misses -I kernel include dir

2008-09-12 Thread Avi Kivity
Ben Bucksch wrote: configure accepts the kernel source dir as input param, or automatically finds /lib/modules/2.6.27-rc5/build/ or similar. But the build only uses the dir to copy the latest kvm*.h into the local dir. The directory is not passed to gcc via -I . This results in a

kvm userland: Build misses -I kernel include dir

2008-09-09 Thread Ben Bucksch
configure accepts the kernel source dir as input param, or automatically finds /lib/modules/2.6.27-rc5/build/ or similar. But the build only uses the dir to copy the latest kvm*.h into the local dir. The directory is not passed to gcc via -I . This results in a linux/ioctl.h not found and