From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 6540 invoked from network); 12 Oct 1998 12:16:11 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 12 Oct 1998 12:16:11 -0000 Received: from erm6.u-strasbg.fr (casset@erm6.u-strasbg.fr [130.79.74.76]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id IAA04246 for ; Mon, 12 Oct 1998 08:10:14 -0400 Received: from localhost (casset@localhost) by erm6.u-strasbg.fr (8.8.8/8.8.8) with SMTP id OAA25003; Mon, 12 Oct 1998 14:14:27 +0200 Date: Mon, 12 Oct 1998 14:14:27 +0200 (CET) From: Stephane Casset To: Andrew.Almond@man.ac.uk cc: axp-list@redhat.com Subject: Re: Problem compiling 2.1.125 In-Reply-To: <445F8F7877@fs1.scg.man.ac.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Hi On Mon, 12 Oct 1998, Andy Almond wrote: > Tried to compile 2.1.125 using ecgs 1.1b on Alpha LX164 (RH 5.1), > but the compilation stopped with the error: > > gcc -D__KERNEL__ -I/dec1/almond/linux/include -Wall > -Wstrict-prototypes -O2 -fomit-frame-pointer -pipe -mno-fp-regs > -ffixed-8 -Wa,-m21164a -DBWIO_ENABLED -c -o dma.o dma.c dma.c:35: > parse error before `dma_spin_lock' dma.c:35: warning: type defaults to > `int' in declaration of `dma_spin_lock' dma.c:35: `SPIN_LOCK_UNLOCKED' > undeclared here (not in a function) dma.c:35: warning: data definition > has no type or storage class make[2]: *** [dma.o] Error 1 make[2]: > Leaving directory `/dec1/almond/linux/kernel' make[1]: *** > [first_rule] Error 2 make[1]: Leaving directory > `/dec1/almond/linux/kernel' make: *** [_dir_kernel] Error 2 Just had the same problem... I just add the line : #include in linux/include/asm-alpha/dma.h Then the compilation complete... I didn't try the compiled kernel though... So I don't know if it is the right fix ;) ... > This is a new error in 2.1.125 because kernels 2.1.120-2.1.124 have > all compiled first time. I assume there's a simple fix for the above. > > Thanks in advance, Regards, Stephane *************************************************************** ----/ | << On ne voit bien qu'avec le coeur, / | l'essentiel est invisible pour les yeux. >> / | St. Exupery / | Stephane Casset : casset@inforezo.u-strasbg.fr / | http://inforezo.u-strasbg.fr/~casset ***************************************************************