Re: Bug#391223: linux-kernel-headers: UML fails to build
On Thu, Oct 05, 2006 at 03:03:58PM +0200, Julien Valroff wrote:
> Package: linux-kernel-headers
> Version: 2.6.18-1
> Severity: normal
> Tags: patch
>
> File /usr/include/linux/unistd.h misses syscall macros, preventing building of UML:
>
> julien@hathor:~/kernel/kernel-uml$ LANG=C make ARCH=um
> make[1]: `arch/um/sys-i386/user-offsets.s' is up to date.
> CHK include/linux/version.h
> CHK include/linux/utsrelease.h
> CHK include/linux/compile.h
> CC arch/um/os-Linux/process.o
> arch/um/os-Linux/process.c:144: error: expected declaration specifiers or '...' before 'getpid'
> arch/um/os-Linux/process.c:146: warning: return type defaults to 'int'
> arch/um/os-Linux/process.c: In function '_syscall0':
> arch/um/os-Linux/process.c:147: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' $arch/um/os-Linux/process.c:152: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' $arch/um/os-Linux/process.c:158: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' $arch/um/os-Linux/process.c:173: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' $arch/um/os-Linux/process.c:183: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' $arch/um/os-Linux/process.c:197: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' $arch/um/os-Linux/process.c:207: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' $arch/um/os-Linux/process.c:242: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' $arch/um/os-Linux/process.c:254: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' $arch/um/os-Linux/process.c:274: error: expected '=', ',', ';', 'asm' or '__attribute__' be
> fore '{' $arch/um/os-Linux/process.c:144: error: parameter name omitted
> arch/um/os-Linux/process.c:284: error: expected '{' at end of input
> make[1]: *** [arch/um/os-Linux/process.o] Error 1
> make: *** [arch/um/os-Linux] Error 2
>
> The attached patch found on http://www.uwsg.iu.edu/hypermail/linux/kernel/0609.2/1018.html fixes the issue.
I suppose a more correct patch is what upstream uses:
http://user-mode-linux.sourceforge.net/work/current/2.6/2.6.18/patches/no-syscallx
I just submitted it to the Linux stable team and the same patch is
included in the Debian user-mode-linux package..
Oh, and probably it would be more appropriate to reassign this bug to
the linux-source-2.6.18 package.
--
mattia
:wq!
Reply to: