From: Jeff D. <jd...@ad...> - 2006-09-30 04:10:59
|
On Fri, Sep 29, 2006 at 11:10:43PM +0200, Tomka Gergely wrote: > Hi! > > I tried to follow the documentation, but always stopped by this error: > > arch/um/os-Linux/process.c:142: error: syntax error before "getpid" > arch/um/os-Linux/process.c:144: warning: return type defaults to `int' > arch/um/os-Linux/process.c:144: warning: function declaration isn't a > prototype > arch/um/os-Linux/process.c: In function `_syscall0': > arch/um/os-Linux/process.c:145: error: syntax error before '{' token > arch/um/os-Linux/process.c:160: error: syntax error before "prot" > arch/um/os-Linux/process.c:228: error: syntax error before '*' token > make[1]: *** [arch/um/os-Linux/process.o] Error 1 > make: *** [arch/um/os-Linux] Error 2 Apply this patch: http://user-mode-linux.sourceforge.net/work/current/2.6/2.6.18/patches/no-syscallx It seems that the syscallX macros are disappearing, so this fixes UML to only use syscall(). This patch is also in current -git and -mm, so you can grab those rather than applying it separately. Jeff |