Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Nov 2000 20:23:28 -0500 (EST)
From:      Andrew Gallatin <gallatin@cs.duke.edu>
To:        alpha@FreeBSD.ORG
Cc:        marcel@FreeBSD.ORG
Subject:   Re: Somebody broke the linux module on the Alpha.
Message-ID:  <14884.23034.111469.296831@grasshopper.cs.duke.edu>
In-Reply-To: <20001128163140.A43087@dragon.nuxi.com>
References:  <20001128163140.A43087@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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 <bsd.kmod.mk>


Drew


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14884.23034.111469.296831>