x1762 发表于 2004-6-19 11:05:29

向内核中添加了几个系统调用,出现了这样的错误!?

向系统中添加了4个新的系统调用,重新编译内核(2.4.22):出现如下错误:
arch/i386/kernel/kernel.o(.data+0x430): In function `sys_call_table':
: undefined reference to `sys_futex'
arch/i386/kernel/kernel.o(.data+0x434): In function `sys_call_table':
: undefined reference to `sys_sched_setaffinity'
arch/i386/kernel/kernel.o(.data+0x438): In function `sys_call_table':
: undefined reference to `sys_sched_getaffinity'
arch/i386/kernel/kernel.o(.data+0x43c): In function `sys_call_table':
: undefined reference to `sys_set_thread_area'
arch/i386/kernel/kernel.o(.data+0x440): In function `sys_call_table':
: undefined reference to `sys_get_thread_area'
arch/i386/kernel/kernel.o(.data+0x460): In function `sys_call_table':
: undefined reference to `sys_exit_group'
arch/i386/kernel/kernel.o(.data+0x464): In function `sys_call_table':
: undefined reference to `sys_lookup_dcookie'
arch/i386/kernel/kernel.o(.data+0x478): In function `sys_call_table':
: undefined reference to `sys_set_tid_address'
kernel/kernel.o(__ksymtab+0xc00): undefined reference to `sys_call_table'
make: *** Error 1

这些错误所出现的系统调用全是系统自有的,我自己添加的到没有提示,为什么啊? :x:x:evil::evil:

Dragonfly 发表于 2004-6-19 21:25:15

have u change this sys_call_table? if so, comment u change and recompile. make sure this error come from u changes.
then check where u add u changes, related ? place near them? any syntax error?
页: [1]
查看完整版本: 向内核中添加了几个系统调用,出现了这样的错误!?