|
From: Ian M. <im...@gm...> - 2005-03-18 03:18:30
|
Hi there,
I've been watching the discussion around 2.6.11 and reading the
archives and I can't find the information with any clarity that I
need. My problem is that I can't get UML to compile. I can on 2.4.27
(with the standard patches) and with 2.6.10 also.
My environment is Debian Woody with 2.4.27 kernel. My gcc version is
2.95.4. I am using default options when I do 'make menu_config
ARCH=um'
Here is the error that I am experiencing once I do 'make linux ARCH=um':
arch/um/kernel/sys_call_table.c:277: duplicate array index in initializer
arch/um/kernel/sys_call_table.c:277: (near initialization for `sys_call_table')
arch/um/kernel/sys_call_table.c:277: duplicate array index in initializer
arch/um/kernel/sys_call_table.c:277: (near initialization for `sys_call_table')
The code at line 277 is:
ARCH_SYSCALLS
[ LAST_SYSCALL + 1 ... NR_syscalls ] =
(syscall_handler_t *) sys_ni_syscall
I don't quite understand this as it surpasses my C knowledge but if I
do a dirty hack and change this to:
[ LAST_SYSCALL + 1 ... NR_syscalls ] =
(syscall_handler_t *) sys_ni_syscall
i.e. remove ARCH_SYSCALS it compiles.
However when it goes to finish off and link I then get this error message
arch/um/kernel/built-in.o: In function `do_buffer_op':
arch/um/kernel/built-in.o(.text+0xcf4a): undefined reference to `va_copy'
arch/um/kernel/built-in.o(.data+0x1570): undefined reference to `sys_vserver'
and I don't have a linux kernel.
Can anybody point me in the right direction?
Regards,
Ian
|