From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 9821 invoked from network); 11 Nov 1998 20:46:15 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 11 Nov 1998 20:46:15 -0000 Received: from Platinum.Chem.nthu.edu.tw (jsyumail@Platinum.Chem.nthu.edu.tw [140.114.45.12]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id PAA16319 for ; Wed, 11 Nov 1998 15:45:51 -0500 Received: (from jsyumail@localhost) by Platinum.Chem.nthu.edu.tw (8.9.1/8.9.1) id EAA06838 for axp-list@redhat.com; Thu, 12 Nov 1998 04:44:31 +0800 From: Jen-Shiang Yu Message-Id: <199811112044.EAA06838@Platinum.Chem.nthu.edu.tw> Subject: Failed to compile DMA for 2.1.125 To: axp-list@redhat.com Date: Thu, 12 Nov 1998 04:44:31 +0800 (CST) X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit I encountered the following while trying to comiple CMD0646 DMA IDE support for kernel v2.1.125. I followed exactly as the hints shown in previous discussions, but when I tried to make boot, the following error appeared: make[2]: Entering directory `/usr/src/linux-2.1.125/kernel' gcc -D__KERNEL__ -I/usr/src/linux-2.1.125/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 `/usr/src/linux-2.1.125/kernel' make[1]: *** [first_rule] Error 2 make[1]: Leaving directory `/usr/src/linux-2.1.125/kernel' make: *** [_dir_kernel] Error 2 I tried 2.1.127 as well. It could successfully compile the kernel, but would hang during the boot. Does anyone know how to solve the problem? Thank you for any help in advance. Sincerely, -- Jen-Shiang Kenny Yu // jsyu@Platinum.chem.nthu.edu.tw Deptartment of Chemistry, National Tsing Hua University Hsinchu 300, TAIWAN