|
楼主 |
发表于 2005-2-1 08:24:57
|
显示全部楼层
还是不行,搞不懂了!
错误一大堆!以下是部分错误
我的OS: RHEL4AS(内核2.6.9)
-----------------------------------------------------------------------------------
from hello.c:4:
/usr/src/linux/include/linux/topology.h: In function `__next_node_with_cpus':
/usr/src/linux/include/linux/topology.h:50: error: incompatible types in assignment
In file included from /usr/src/linux/include/linux/sched.h:31,
from /usr/src/linux/include/linux/module.h:10,
from hello.c:4:
/usr/src/linux/include/linux/percpu.h:7:24: asm/percpu.h: No such file or directory
In file included from /usr/src/linux/include/linux/module.h:10,
from hello.c:4:
/usr/src/linux/include/linux/sched.h: At top level:
/usr/src/linux/include/linux/sched.h:95: error: syntax error before "process_counts"
/usr/src/linux/include/linux/sched.h:95: warning: data definition has no type or storage class
In file included from /usr/src/linux/include/linux/module.h:10,
from hello.c:4:
/usr/src/linux/include/linux/sched.h:223: error: syntax error before "pgd_t"
/usr/src/linux/include/linux/sched.h:223: warning: no semicolon at end of struct or union
/usr/src/linux/include/linux/sched.h:236: error: 'brk' redeclared as different kind of symbol
/usr/include/unistd.h:932: error: previous declaration of 'brk' was here
/usr/src/linux/include/linux/sched.h:236: error: 'brk' redeclared as different kind of symbol
/usr/include/unistd.h:932: error: previous declaration of 'brk' was here
/usr/src/linux/include/linux/sched.h:243: error: syntax error before ':' token
/usr/src/linux/include/linux/sched.h:262: error: syntax error before '}' token
/usr/src/linux/include/linux/sched.h:268: error: `_NSIG' undeclared here (not in a function)
/usr/src/linux/include/linux/sched.h:286: error: field `shared_pending' has incomplete type
/usr/src/linux/include/linux/sched.h:377: error: syntax error before "clockid_t"
/usr/src/linux/include/linux/sched.h:377: warning: no semicolon at end of struct or union
/usr/src/linux/include/linux/sched.h:378: warning: data definition has no type or storage class
/usr/src/linux/include/linux/sched.h:391: error: syntax error before '}' token
/usr/src/linux/include/linux/sched.h:551: error: syntax error before "sigset_t"
/usr/src/linux/include/linux/sched.h:551: warning: no semicolon at end of struct or union
/usr/src/linux/include/linux/sched.h:558: error: syntax error before '*' token
/usr/src/linux/include/linux/sched.h:558: warning: data definition has no type or storage class
/usr/src/linux/include/linux/sched.h:569: error: syntax error before "parent_exec_id"
/usr/src/linux/include/linux/sched.h:569: warning: data definition has no type or storage class
/usr/src/linux/include/linux/sched.h:570: error: syntax error before "self_exec_id"
/usr/src/linux/include/linux/sched.h:570: warning: data definition has no type or storage class
/usr/src/linux/include/linux/sched.h:602: error: syntax error before '}' token
/usr/src/linux/include/linux/sched.h: In function `process_group':
/usr/src/linux/include/linux/sched.h:606: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h: At top level:
/usr/src/linux/include/linux/sched.h:675: error: field `thread_info' has incomplete type
In file included from /usr/src/linux/include/linux/module.h:10,
from hello.c:4:
/usr/src/linux/include/linux/sched.h:709:25: asm/current.h: No such file or directory
/usr/src/linux/include/linux/sched.h:733: error: syntax error before "sigset_t"
/usr/src/linux/include/linux/sched.h:735: error: syntax error before "sigset_t"
/usr/src/linux/include/linux/sched.h: In function `dequeue_signal_lock':
/usr/src/linux/include/linux/sched.h:740: error: `tsk' undeclared (first use in this function)
/usr/src/linux/include/linux/sched.h:741: error: `mask' undeclared (first use in this function)
/usr/src/linux/include/linux/sched.h:741: error: `info' undeclared (first use in this function)
/usr/src/linux/include/linux/sched.h: At top level:
/usr/src/linux/include/linux/sched.h:748: error: syntax error before "sigset_t"
/usr/src/linux/include/linux/sched.h: In function `on_sig_stack':
/usr/src/linux/include/linux/sched.h:782: error: `current' undeclared (first use in this function)
/usr/src/linux/include/linux/sched.h: In function `sas_ss_flags':
/usr/src/linux/include/linux/sched.h:787: error: `current' undeclared (first use in this function)
/usr/src/linux/include/linux/sched.h: In function `mmdrop':
/usr/src/linux/include/linux/sched.h:815: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h: In function `thread_group_empty':
/usr/src/linux/include/linux/sched.h:896: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h: In function `task_lock':
/usr/src/linux/include/linux/sched.h:914: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:914: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:914: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:914: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:914: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:914: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:914: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:914: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:914: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:914: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:914: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:914: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h: In function `task_unlock':
/usr/src/linux/include/linux/sched.h:919: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:919: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:919: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:919: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:919: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:919: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:919: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:919: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h: In function `set_tsk_thread_flag':
/usr/src/linux/include/linux/sched.h:927: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h: In function `clear_tsk_thread_flag':
/usr/src/linux/include/linux/sched.h:932: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h: In function `test_and_set_tsk_thread_flag':
/usr/src/linux/include/linux/sched.h:937: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h: In function `test_and_clear_tsk_thread_flag':
/usr/src/linux/include/linux/sched.h:942: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h: In function `test_tsk_thread_flag':
/usr/src/linux/include/linux/sched.h:947: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h: In function `set_tsk_need_resched':
/usr/src/linux/include/linux/sched.h:952: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
/usr/src/linux/include/linux/sched.h: In function `clear_tsk_need_resched':
/usr/src/linux/include/linux/sched.h:957: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
/usr/src/linux/include/linux/sched.h: In function `signal_pending':
/usr/src/linux/include/linux/sched.h:962: error: `TIF_SIGPENDING' undeclared (first use in this function)
/usr/src/linux/include/linux/sched.h: In function `need_resched':
/usr/src/linux/include/linux/sched.h:967: error: `TIF_NEED_RESCHED' undeclared (first use in this function)
/usr/src/linux/include/linux/sched.h: In function `arch_pick_mmap_layout':
/usr/src/linux/include/linux/sched.h:1040: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:1040: error: `PAGE_OFFSET' undeclared (first use in this function)
/usr/src/linux/include/linux/sched.h:1041: error: dereferencing pointer to incomplete type
/usr/src/linux/include/linux/sched.h:1042: error: dereferencing pointer to incomplete type
--------------------------------------------------------------------------------------------- |
|