From: Brian Jackson Subject: Re: kvm userland: configure does not check for gawk Date: Tue, 9 Sep 2008 23:21:14 -0500 Message-ID: <200809092321.14847.iggy@theiggy.com> References: <48C73BB4.7040900@bucksch.org> <200809092316.03261.iggy@theiggy.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from theiggy.com ([66.220.1.110]:57797 "EHLO mail.theiggy.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750865AbYIJEVT (ORCPT ); Wed, 10 Sep 2008 00:21:19 -0400 Received: from phil-connors.local (unknown [216.63.86.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.theiggy.com (Postfix) with ESMTPSA id 1EC32C311 for ; Tue, 9 Sep 2008 23:21:16 -0500 (CDT) In-Reply-To: <200809092316.03261.iggy@theiggy.com> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Or we could try a correct version: diff --git a/configure b/configure index 3bb10ce..5cac4c8 100755 --- a/configure +++ b/configure @@ -102,6 +102,12 @@ if [ "$arch" = "powerpc" ]; then qemu_ldflags="$qemu_ldflags -L $PWD/libfdt" fi +# check for some utils we use +if [ -d .git -a ! -x "`which gawk`" ] ; then + echo "gawk not installed and necessary for compiling from git" + exit +fi + #configure user dir (cd user; ./configure --prefix="$prefix" --kerneldir="$libkvm_kerneldir" \ --arch="$arch" \ On Tuesday 09 September 2008 11:16:03 pm Brian Jackson wrote: > Maybe something like this is in order: > > diff --git a/configure b/configure > index 3bb10ce..efbfa24 100755 > --- a/configure > +++ b/configure > @@ -102,6 +102,11 @@ if [ "$arch" = "powerpc" ]; then > qemu_ldflags="$qemu_ldflags -L $PWD/libfdt" > fi > > +# check for some utils we use > +if [ -d .git -a ! -x "`which gawk`" ] ; then > + echo "gawk not installed and necessary for compiling from git" > +fi > + > #configure user dir > (cd user; ./configure --prefix="$prefix" --kerneldir="$libkvm_kerneldir" \ > --arch="$arch" \ > > On Tuesday 09 September 2008 10:15:00 pm Ben Bucksch wrote: > > If gawk is not installed, the build reports "gawk not found", but then > > fails with strange errors about kvm.h having the wrong version, mismatch > > between kernel and userland, and even more resulting errors later on. > > This sent me off the wrong trail. > > > > Please: > > > > 1. Check that all apps used in the build process are checked in > > configure and reported right there. Esp. gawk in this case. > > 2. Improve the version check to not say "version mismatch" when the > > kvm.h file does not exist at all or is entirely empty, i.e. > > KVM_API_VERSION is empty. > > > > > > -- > > To unsubscribe from this list: send the line "unsubscribe kvm" in > > the body of a message to majordomo@vger.kernel.org > > More majordomo info at http://vger.kernel.org/majordomo-info.html > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html