From: Anil Madhavapeddy Subject: Re: mini-os: gnttab.c does not compile Date: Thu, 31 Aug 2006 12:11:36 +0100 Message-ID: References: <200608291442.50081.kaiser@informatik.fh-wiesbaden.de> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <200608291442.50081.kaiser@informatik.fh-wiesbaden.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Robert Kaiser (FH)" Cc: xen-devel@lists.xensource.com, sos22@cam.ac.uk, gm281@cam.ac.uk List-Id: xen-devel@lists.xenproject.org MiniOS wasn't declaring a __XEN_INTERFACE_VERSION__, so it broke =20 after the recent dom0_ops.h change. I pushed a small Makefile fix so it declares it as 0x00030203 (the =20 version right before those changes) and builds again. Someone should =20= also update it to sync with the new header files as well so that the =20 interface version can bumped to the latest. -anil On 29 Aug 2006, at 13:42, Robert Kaiser (FH) wrote: > Hello, > > sorry to bother you with this: while trying to compile mini-os from > xen-unstable.hg, I noticed that compilation failed like this: > > > gcc -fno-builtin -Wall -Werror -Wredundant-decls -Wno-format > -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Winline -m32 > -march=3Di686 -g -Iinclude -Iinclude/x86 -Iinclude/x86/x86_32 -=20= > c gnttab.c > -o gnttab.o > gnttab.c: In Funktion =BBinit_gnttab=AB: > gnttab.c:165: error: request for member `p' in something not a =20 > structure or > union > make: *** [gnttab.o] Error 1 > > Looking at the source code, I'm not surprised that this happens, =20 > and I suspect > that the file of the same name (gnttab.c) found in > linux-2.6-xen-sparse/drivers/xen/core will also fail to compile =20 > (though I > have not checked this). > > It seems that the grant-table functions are currently in a non-=20 > functional > state and that mini-os does not use these functions anyway (except =20 > for a call > to the init function): After commenting out this call, I was able =20 > to build > the mini-os binary. > > Is there a particular reason for this? Can I expect the mini-os to =20 > work after > removing gnttab.c? > > > Kind Regards > > Rob > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel