From owner-freebsd-alpha Tue Nov 28 17:23:33 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from duke.cs.duke.edu (duke.cs.duke.edu [152.3.140.1]) by hub.freebsd.org (Postfix) with ESMTP id C947E37B400; Tue, 28 Nov 2000 17:23:30 -0800 (PST) Received: from grasshopper.cs.duke.edu (grasshopper.cs.duke.edu [152.3.145.30]) by duke.cs.duke.edu (8.9.3/8.9.3) with ESMTP id UAA16333; Tue, 28 Nov 2000 20:23:29 -0500 (EST) Received: (from gallatin@localhost) by grasshopper.cs.duke.edu (8.11.1/8.9.1) id eAT1NTk82387; Tue, 28 Nov 2000 20:23:29 -0500 (EST) (envelope-from gallatin@cs.duke.edu) From: Andrew Gallatin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Tue, 28 Nov 2000 20:23:28 -0500 (EST) To: alpha@FreeBSD.ORG Cc: marcel@FreeBSD.ORG Subject: Re: Somebody broke the linux module on the Alpha. In-Reply-To: <20001128163140.A43087@dragon.nuxi.com> References: <20001128163140.A43087@dragon.nuxi.com> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14884.23034.111469.296831@grasshopper.cs.duke.edu> Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org David O'Brien writes: <...> > @/alpha/linux/linux.h:34: linux_syscall.h: No such file or directory > In file included from /usr/src/sys/modules/linux/../../alpha/linux/linux_genassym.c:8: > @/alpha/linux/linux.h:428: `LINUX_SYS_MAXSYSCALL' undeclared here (not in a function) > *** Error code 1 This is coming from the dynamic syscall generation. This seems to happen if you attempt to build the module without making 'depend' first. The following patch "fixes" the problem, but I have no clue if it is safe for x86, buildworlds, etc: Index: Makefile =================================================================== RCS file: /home/ncvs/src/sys/modules/linux/Makefile,v retrieving revision 1.46 diff -u -r1.46 Makefile --- Makefile 2000/11/05 03:10:45 1.46 +++ Makefile 2000/11/29 01:19:44 @@ -28,9 +28,6 @@ ${CC} -c -x assembler-with-cpp -DLOCORE ${CFLAGS} \ ${.IMPSRC} -o ${.TARGET} -linux_genassym.o: linux_genassym.c linux.h @ machine - ${CC} -c ${CFLAGS} ${.IMPSRC} - opt_compat.h: echo "#define COMPAT_43 1" > opt_compat.h @@ -47,5 +44,8 @@ sed -e 's|${MACHINE_ARCH}/linux/linux_proto\.h|linux_proto.h|g' \ linux_sysent.c > linux_sysent.c.fixup mv -f linux_sysent.c.fixup linux_sysent.c + +linux_genassym.o: linux_genassym.c linux.h @ machine ${GENSYSCALL} + ${CC} -c ${CFLAGS} ${.IMPSRC} .include Drew To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message