From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: kvm userland: Build misses -I Date: Sat, 13 Sep 2008 08:16:56 +0300 Message-ID: <48CB4CC8.5050903@qumranet.com> References: <48C73CBF.3070605@bucksch.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Ben Bucksch Return-path: Received: from il.qumranet.com ([212.179.150.194]:22563 "EHLO il.qumranet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758838AbYIMFTX (ORCPT ); Sat, 13 Sep 2008 01:19:23 -0400 In-Reply-To: <48C73CBF.3070605@bucksch.org> Sender: kvm-owner@vger.kernel.org List-ID: 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 > "linux/ioctl.h not found" and resulting errors, if /usr/include/linux/ > does not exist. If I pass the kernel source explicitly, then please > use it. > > 1. Please pass gcc -I /include/ > What are you doing exactly? I've never had such issues. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.