[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#439543: marked as done ((Без темы))



Your message dated Tue, 04 Sep 2007 11:47:24 +0200
with message-id <46DD29AC.6010906@aurel32.net>
and subject line Bug#439543: (Без темы)
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: linux-kernel-headers
Version: 2.6.18-7

Kernel 2.6.18 for 486
when i compiled this file (module.c)

#include <linux/kernel.h>
#include <linux/module.h>

int init_module()
{
  return 0;
}

void cleanup_module()
{
}

gcc -Wall -DLINUX -D__KERNEL__ -DMODULE -c module.c

I had very many compilation errors from module.h and files included in module.h and kernel.h:



gcc -Wall -DLINUX -D__KERNEL__ -DMODULE -c module.c
In file included from /usr/include/asm-generic/bitops/fls64.h:5,
                 from /usr/include/asm-i486/bitops.h:408,
                 from /usr/include/asm/bitops.h:8,
                 from /usr/include/linux/bitops.h:9,
                 from /usr/include/linux/kernel.h:15,
                 from module.c:1:
/usr/include/asm-generic/bitops/fls.h:13: error: redefinition of flsтАЩ
/usr/include/asm-i486/bitops.h:394: error: previous definition of тАШflsтАЩ was here
In file included from module.c:1:
/usr/include/linux/kernel.h:114: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/linux/kernel.h:115: error: format string argument not a string type
/usr/include/linux/kernel.h:116: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/linux/kernel.h:118: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/linux/kernel.h:119: error: format string argument not a string type
/usr/include/linux/kernel.h:120: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
In file included from /usr/include/asm/string.h:8,
                 from /usr/include/linux/string.h:21,
                 from /usr/include/linux/bitmap.h:8,
                 from /usr/include/linux/cpumask.h:86,
                 from /usr/include/asm-i486/processor.h:22,
                 from /usr/include/asm/processor.h:8,
                 from /usr/include/asm-i486/thread_info.h:16,
                 from /usr/include/asm/thread_info.h:8,
                 from /usr/include/linux/thread_info.h:21,
                 from /usr/include/linux/preempt.h:9,
                 from /usr/include/linux/spinlock.h:56,
                 from /usr/include/linux/capability.h:45,
                 from /usr/include/linux/sched.h:44,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/asm-i486/string.h:43: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/asm-i486/string.h: In function тАШstrncpyтАЩ:
/usr/include/asm-i486/string.h:57: error: тАШcountтАЩ undeclared (first use in this function)
/usr/include/asm-i486/string.h:57: error: (Each undeclared identifier is reported only once
/usr/include/asm-i486/string.h:57: error: for each function it appears in.)
/usr/include/asm-i486/string.h: At top level:
/usr/include/asm-i486/string.h:79: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/asm-i486/string.h: In function тАШstrncatтАЩ:
/usr/include/asm-i486/string.h:96: error: тАШcountтАЩ undeclared (first use in this function)
/usr/include/asm-i486/string.h: At top level:
/usr/include/asm-i486/string.h:124: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/asm-i486/string.h: In function тАШstrncmpтАЩ:
/usr/include/asm-i486/string.h:142: error: тАШcountтАЩ undeclared (first use in this function)
/usr/include/asm-i486/string.h: At top level:
/usr/include/asm-i486/string.h:188: error: expected тАШ=тАЩ, тАШ,тАЩ, тАШ;тАЩ, тАШasmтАЩ or тАШ__attribute__тАЩ before тАШstrlenтАЩ
/usr/include/asm-i486/string.h:203: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/asm-i486/string.h: In function тАШ__memcpyтАЩ:
/usr/include/asm-i486/string.h:216: error: тАШnтАЩ undeclared (first use in this function)
/usr/include/asm-i486/string.h: At top level:
/usr/include/asm-i486/string.h:225: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/asm-i486/string.h: In function тАШ__constant_memcpyтАЩ:
/usr/include/asm-i486/string.h:228: error: тАШnтАЩ undeclared (first use in this function)
/usr/include/asm-i486/string.h: At top level:
/usr/include/asm-i486/string.h:326: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/asm-i486/string.h:331: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/asm-i486/string.h: In function тАШmemchrтАЩ:
/usr/include/asm-i486/string.h:335: error: тАШcountтАЩ undeclared (first use in this function)
/usr/include/asm-i486/string.h: At top level:
/usr/include/asm-i486/string.h:349: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/asm-i486/string.h: In function тАШ__memset_genericтАЩ:
/usr/include/asm-i486/string.h:356: error: тАШcountтАЩ undeclared (first use in this function)
/usr/include/asm-i486/string.h: At top level:
/usr/include/asm-i486/string.h:369: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/asm-i486/string.h: In function тАШ__constant_c_memsetтАЩ:
/usr/include/asm-i486/string.h:382: error: тАШcountтАЩ undeclared (first use in this function)
/usr/include/asm-i486/string.h: At top level:
/usr/include/asm-i486/string.h:389: error: expected тАШ=тАЩ, тАШ,тАЩ, тАШ;тАЩ, тАШasmтАЩ or тАШ__attribute__тАЩ before тАШstrnlenтАЩ
/usr/include/asm-i486/string.h:418: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/asm-i486/string.h: In function тАШ__constant_c_and_count_memsetтАЩ:
/usr/include/asm-i486/string.h:420: error: тАШcountтАЩ undeclared (first use in this function)
/usr/include/asm-i486/string.h: At top level:
/usr/include/asm-i486/string.h:477: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/asm-i486/string.h: In function тАШmemscanтАЩ:
/usr/include/asm-i486/string.h:479: error: тАШsizeтАЩ undeclared (first use in this function)
/usr/include/asm-i486/string.h:481: error: invalid lvalue in asm output 1
In file included from /usr/include/linux/bitmap.h:8,
                 from /usr/include/linux/cpumask.h:86,
                 from /usr/include/asm-i486/processor.h:22,
                 from /usr/include/asm/processor.h:8,
                 from /usr/include/asm-i486/thread_info.h:16,
                 from /usr/include/asm/thread_info.h:8,
                 from /usr/include/linux/thread_info.h:21,
                 from /usr/include/linux/preempt.h:9,
                 from /usr/include/linux/spinlock.h:56,
                 from /usr/include/linux/capability.h:45,
                 from /usr/include/linux/sched.h:44,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/string.h: At top level:
/usr/include/linux/string.h:30: error: expected тАШ=тАЩ, тАШ,тАЩ, тАШ;тАЩ, тАШasmтАЩ or тАШ__attribute__тАЩ before тАШstrlcpyтАЩ
/usr/include/linux/string.h:39: error: expected тАШ=тАЩ, тАШ,тАЩ, тАШ;тАЩ, тАШasmтАЩ or тАШ__attribute__тАЩ before тАШstrlcatтАЩ
/usr/include/linux/string.h:54: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
In file included from /usr/include/linux/cpumask.h:86,
                 from /usr/include/asm-i486/processor.h:22,
                 from /usr/include/asm/processor.h:8,
                 from /usr/include/asm-i486/thread_info.h:16,
                 from /usr/include/asm/thread_info.h:8,
                 from /usr/include/linux/thread_info.h:21,
                 from /usr/include/linux/preempt.h:9,
                 from /usr/include/linux/spinlock.h:56,
                 from /usr/include/linux/capability.h:45,
                 from /usr/include/linux/sched.h:44,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/bitmap.h: In function тАШbitmap_zeroтАЩ:
/usr/include/linux/bitmap.h:135: error: too many arguments to function тАШ__constant_c_and_count_memsetтАЩ
/usr/include/linux/bitmap.h:135: error: too many arguments to function тАШ__constant_c_memsetтАЩ
/usr/include/linux/bitmap.h:135: error: too many arguments to function тАШ__memset_genericтАЩ
/usr/include/linux/bitmap.h:135: error: too many arguments to function тАШ__memset_genericтАЩ
/usr/include/linux/bitmap.h: In function тАШbitmap_fillтАЩ:
/usr/include/linux/bitmap.h:141: error: тАШsize_tтАЩ undeclared (first use in this function)
/usr/include/linux/bitmap.h:141: error: expected тАШ;тАЩ before тАШnlongsтАЩ
/usr/include/linux/bitmap.h:142: error: тАШnlongsтАЩ undeclared (first use in this function)
/usr/include/linux/bitmap.h:144: error: too many arguments to function тАШ__constant_c_and_count_memsetтАЩ
/usr/include/linux/bitmap.h:144: error: too many arguments to function тАШ__constant_c_memsetтАЩ
/usr/include/linux/bitmap.h:144: error: too many arguments to function тАШ__memset_genericтАЩ
/usr/include/linux/bitmap.h:144: error: too many arguments to function тАШ__memset_genericтАЩ
/usr/include/linux/bitmap.h: In function тАШbitmap_copyтАЩ:
/usr/include/linux/bitmap.h:156: error: too many arguments to function тАШ__constant_memcpyтАЩ
/usr/include/linux/bitmap.h:156: error: too many arguments to function тАШ__memcpyтАЩ
In file included from /usr/include/asm/processor.h:8,
                 from /usr/include/asm-i486/thread_info.h:16,
                 from /usr/include/asm/thread_info.h:8,
                 from /usr/include/linux/thread_info.h:21,
                 from /usr/include/linux/preempt.h:9,
                 from /usr/include/linux/spinlock.h:56,
                 from /usr/include/linux/capability.h:45,
                 from /usr/include/linux/sched.h:44,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/asm-i486/processor.h: At top level:
/usr/include/asm-i486/processor.h:80: error: тАШCONFIG_X86_L1_CACHE_SHIFTтАЩ undeclared here (not in a function)
/usr/include/asm-i486/processor.h:80: error: requested alignment is not a constant
In file included from /usr/include/linux/list.h:8,
                 from /usr/include/linux/lockdep.h:12,
                 from /usr/include/linux/spinlock_types.h:12,
                 from /usr/include/linux/spinlock.h:85,
                 from /usr/include/linux/capability.h:45,
                 from /usr/include/linux/sched.h:44,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/prefetch.h:58: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/linux/prefetch.h: In function тАШprefetch_rangeтАЩ:
/usr/include/linux/prefetch.h:62: error: тАШlenтАЩ undeclared (first use in this function)
In file included from /usr/include/linux/timex.h:57,
                 from /usr/include/linux/sched.h:48,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/time.h: At top level:
/usr/include/linux/time.h:17: error: expected specifier-qualifier-list before тАШtime_tтАЩ
/usr/include/linux/time.h:23: error: expected specifier-qualifier-list before тАШtime_tтАЩ
/usr/include/linux/time.h: In function тАШtimespec_equalтАЩ:
/usr/include/linux/time.h:45: error: тАШstruct timespecтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h:45: error: тАШstruct timespecтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h:45: error: тАШstruct timespecтАЩ has no member named тАШtv_nsecтАЩ
/usr/include/linux/time.h:45: error: тАШstruct timespecтАЩ has no member named тАШtv_nsecтАЩ
/usr/include/linux/time.h: In function тАШtimespec_compareтАЩ:
/usr/include/linux/time.h:55: error: тАШstruct timespecтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h:55: error: тАШstruct timespecтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h:57: error: тАШstruct timespecтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h:57: error: тАШstruct timespecтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h:59: error: тАШstruct timespecтАЩ has no member named тАШtv_nsecтАЩ
/usr/include/linux/time.h:59: error: тАШstruct timespecтАЩ has no member named тАШtv_nsecтАЩ
/usr/include/linux/time.h: In function тАШtimeval_compareтАЩ:
/usr/include/linux/time.h:64: error: тАШstruct timevalтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h:64: error: тАШstruct timevalтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h:66: error: тАШstruct timevalтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h:66: error: тАШstruct timevalтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h:68: error: тАШstruct timevalтАЩ has no member named тАШtv_usecтАЩ
/usr/include/linux/time.h:68: error: тАШstruct timevalтАЩ has no member named тАШtv_usecтАЩ
/usr/include/linux/time.h: At top level:
/usr/include/linux/time.h:75: error: expected declaration specifiers or тАШ...тАЩ before тАШtime_tтАЩ
/usr/include/linux/time.h: In function тАШtimespec_subтАЩ:
/usr/include/linux/time.h:84: error: тАШstruct timespecтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h:84: error: тАШstruct timespecтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h:85: error: тАШstruct timespecтАЩ has no member named тАШtv_nsecтАЩ
/usr/include/linux/time.h:85: error: тАШstruct timespecтАЩ has no member named тАШtv_nsecтАЩ
/usr/include/linux/time.h:85: error: too many arguments to function тАШset_normalized_timespecтАЩ
/usr/include/linux/time.h: In function тАШget_secondsтАЩ:
/usr/include/linux/time.h:103: error: тАШstruct timespecтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h: In function тАШtimespec_to_nsтАЩ:
/usr/include/linux/time.h:135: error: тАШconst struct timespecтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h:135: error: тАШconst struct timespecтАЩ has no member named тАШtv_nsecтАЩ
/usr/include/linux/time.h: In function тАШtimeval_to_nsтАЩ:
/usr/include/linux/time.h:147: error: тАШconst struct timevalтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h:148: error: тАШconst struct timevalтАЩ has no member named тАШtv_usecтАЩ
/usr/include/linux/time.h: In function тАШtimespec_add_nsтАЩ:
/usr/include/linux/time.h:174: error: тАШstruct timespecтАЩ has no member named тАШtv_nsecтАЩ
/usr/include/linux/time.h:177: error: тАШstruct timespecтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/time.h:179: error: тАШstruct timespecтАЩ has no member named тАШtv_nsecтАЩ
In file included from /usr/include/linux/sched.h:49,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/jiffies.h: In function тАШtimespec_to_jiffiesтАЩ:
/usr/include/linux/jiffies.h:314: error: тАШconst struct timespecтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/jiffies.h:315: error: тАШconst struct timespecтАЩ has no member named тАШtv_nsecтАЩ
/usr/include/linux/jiffies.h: In function тАШjiffies_to_timespecтАЩ:
/usr/include/linux/jiffies.h:335: error: тАШstruct timespecтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/jiffies.h:335: error: тАШstruct timespecтАЩ has no member named тАШtv_nsecтАЩ
/usr/include/linux/jiffies.h: In function тАШtimeval_to_jiffiesтАЩ:
/usr/include/linux/jiffies.h:353: error: тАШconst struct timevalтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/jiffies.h:354: error: тАШconst struct timevalтАЩ has no member named тАШtv_usecтАЩ
/usr/include/linux/jiffies.h: In function тАШjiffies_to_timevalтАЩ:
/usr/include/linux/jiffies.h:375: error: тАШstruct timevalтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/jiffies.h:377: error: тАШstruct timevalтАЩ has no member named тАШtv_usecтАЩ
/usr/include/linux/jiffies.h: At top level:
/usr/include/linux/jiffies.h:383: error: expected тАШ=тАЩ, тАШ,тАЩ, тАШ;тАЩ, тАШasmтАЩ or тАШ__attribute__тАЩ before тАШjiffies_to_clock_tтАЩ
In file included from /usr/include/asm/rwsem.h:8,
                 from /usr/include/linux/rwsem.h:24,
                 from /usr/include/asm-i486/semaphore.h:42,
                 from /usr/include/asm/semaphore.h:8,
                 from /usr/include/linux/sched.h:57,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/asm-i486/rwsem.h: In function тАШ__down_readтАЩ:
/usr/include/asm-i486/rwsem.h:104: error: expected тАШ:тАЩ or тАШ)тАЩ before тАШKBUILD_BASENAMEтАЩ
/usr/include/asm-i486/rwsem.h: In function тАШ__down_write_nestedтАЩ:
/usr/include/asm-i486/rwsem.h:156: error: expected тАШ:тАЩ or тАШ)тАЩ before тАШKBUILD_BASENAMEтАЩ
/usr/include/asm-i486/rwsem.h: In function тАШ__up_readтАЩ:
/usr/include/asm-i486/rwsem.h:198: error: expected тАШ:тАЩ or тАШ)тАЩ before тАШKBUILD_BASENAMEтАЩ
/usr/include/asm-i486/rwsem.h: In function тАШ__up_writeтАЩ:
/usr/include/asm-i486/rwsem.h:224: error: expected тАШ:тАЩ or тАШ)тАЩ before тАШKBUILD_BASENAMEтАЩ
/usr/include/asm-i486/rwsem.h: In function тАШ__downgrade_writeтАЩ:
/usr/include/asm-i486/rwsem.h:249: error: expected тАШ:тАЩ or тАШ)тАЩ before тАШKBUILD_BASENAMEтАЩ
In file included from /usr/include/asm/semaphore.h:8,
                 from /usr/include/linux/sched.h:57,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/asm-i486/semaphore.h: In function тАШdownтАЩ:
/usr/include/asm-i486/semaphore.h:105: error: expected тАШ:тАЩ or тАШ)тАЩ before тАШKBUILD_BASENAMEтАЩ
/usr/include/asm-i486/semaphore.h: In function тАШdown_interruptibleтАЩ:
/usr/include/asm-i486/semaphore.h:130: error: expected тАШ:тАЩ or тАШ)тАЩ before тАШKBUILD_BASENAMEтАЩ
/usr/include/asm-i486/semaphore.h: In function тАШdown_trylockтАЩ:
/usr/include/asm-i486/semaphore.h:155: error: expected тАШ:тАЩ or тАШ)тАЩ before тАШKBUILD_BASENAMEтАЩ
/usr/include/asm-i486/semaphore.h: In function тАШupтАЩ:
/usr/include/asm-i486/semaphore.h:179: error: expected тАШ:тАЩ or тАШ)тАЩ before тАШKBUILD_BASENAMEтАЩ
In file included from /usr/include/asm/acpi.h:8,
                 from /usr/include/asm-i486/fixmap.h:26,
                 from /usr/include/asm/fixmap.h:8,
                 from /usr/include/asm-i486/smp.h:15,
                 from /usr/include/asm/smp.h:8,
                 from /usr/include/linux/smp.h:18,
                 from /usr/include/linux/sched.h:63,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/asm-i486/acpi.h:31:28: error: acpi/pdc_intel.h: No such file or directory
In file included from /usr/include/asm/mpspec.h:8,
                 from /usr/include/asm-i486/smp.h:17,
                 from /usr/include/asm/smp.h:8,
                 from /usr/include/linux/smp.h:18,
                 from /usr/include/linux/sched.h:63,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/asm-i486/mpspec.h:6:25: error: mach_mpspec.h: No such file or directory
In file included from /usr/include/asm/mpspec.h:8,
                 from /usr/include/asm-i486/smp.h:17,
                 from /usr/include/asm/smp.h:8,
                 from /usr/include/linux/smp.h:18,
                 from /usr/include/linux/sched.h:63,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/asm-i486/mpspec.h: At top level:
/usr/include/asm-i486/mpspec.h:8: error: тАШMAX_MP_BUSSESтАЩ undeclared here (not in a function)
/usr/include/asm-i486/mpspec.h:22: error: тАШMAX_IRQ_SOURCESтАЩ undeclared here (not in a function)
In file included from /usr/include/asm/smp.h:8,
                 from /usr/include/linux/smp.h:18,
                 from /usr/include/linux/sched.h:63,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/asm-i486/smp.h:76:26: error: mach_apicdef.h: No such file or directory
In file included from /usr/include/linux/sem.h:4,
                 from /usr/include/linux/sched.h:64,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/ipc.h:61: error: expected specifier-qualifier-list before тАШkey_tтАЩ
In file included from /usr/include/linux/sched.h:64,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/sem.h:94: error: expected specifier-qualifier-list before тАШtime_tтАЩ
In file included from /usr/include/asm/signal.h:8,
                 from /usr/include/linux/signal.h:4,
                 from /usr/include/linux/sched.h:65,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/asm-i486/signal.h:154: error: expected specifier-qualifier-list before тАШsize_tтАЩ
In file included from /usr/include/asm-i486/siginfo.h:4,
                 from /usr/include/asm/siginfo.h:8,
                 from /usr/include/linux/signal.h:5,
                 from /usr/include/linux/sched.h:65,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/asm-generic/siginfo.h:50: error: expected specifier-qualifier-list before тАШpid_tтАЩ
/usr/include/asm-generic/siginfo.h:56: error: expected specifier-qualifier-list before тАШtimer_tтАЩ
/usr/include/asm-generic/siginfo.h:65: error: expected specifier-qualifier-list before тАШpid_tтАЩ
/usr/include/asm-generic/siginfo.h:72: error: expected specifier-qualifier-list before тАШpid_tтАЩ
/usr/include/asm-generic/siginfo.h: In function тАШcopy_siginfoтАЩ:
/usr/include/asm-generic/siginfo.h:282: error: too many arguments to function тАШ__constant_memcpyтАЩ
/usr/include/asm-generic/siginfo.h:282: error: too many arguments to function тАШ__memcpyтАЩ
/usr/include/asm-generic/siginfo.h:285: error: too many arguments to function тАШ__constant_memcpyтАЩ
/usr/include/asm-generic/siginfo.h:285: error: too many arguments to function тАШ__memcpyтАЩ
In file included from /usr/include/linux/sched.h:65,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/signal.h: In function тАШsigemptysetтАЩ:
/usr/include/linux/signal.h:159: error: too many arguments to function тАШ__constant_c_and_count_memsetтАЩ
/usr/include/linux/signal.h:159: error: too many arguments to function тАШ__constant_c_memsetтАЩ
/usr/include/linux/signal.h:159: error: too many arguments to function тАШ__memset_genericтАЩ
/usr/include/linux/signal.h:159: error: too many arguments to function тАШ__memset_genericтАЩ
/usr/include/linux/signal.h: In function тАШsigfillsetтАЩ:
/usr/include/linux/signal.h:171: error: too many arguments to function тАШ__constant_c_and_count_memsetтАЩ
/usr/include/linux/signal.h:171: error: too many arguments to function тАШ__constant_c_memsetтАЩ
/usr/include/linux/signal.h:171: error: too many arguments to function тАШ__memset_genericтАЩ
/usr/include/linux/signal.h:171: error: too many arguments to function тАШ__memset_genericтАЩ
/usr/include/linux/signal.h: In function тАШsiginitsetтАЩ:
/usr/include/linux/signal.h:201: error: too many arguments to function тАШ__constant_c_and_count_memsetтАЩ
/usr/include/linux/signal.h:201: error: too many arguments to function тАШ__constant_c_memsetтАЩ
/usr/include/linux/signal.h:201: error: too many arguments to function тАШ__memset_genericтАЩ
/usr/include/linux/signal.h:201: error: too many arguments to function тАШ__memset_genericтАЩ
/usr/include/linux/signal.h: In function тАШsiginitsetinvтАЩ:
/usr/include/linux/signal.h:213: error: too many arguments to function тАШ__constant_c_and_count_memsetтАЩ
/usr/include/linux/signal.h:213: error: too many arguments to function тАШ__constant_c_memsetтАЩ
/usr/include/linux/signal.h:213: error: too many arguments to function тАШ__memset_genericтАЩ
/usr/include/linux/signal.h:213: error: too many arguments to function тАШ__memset_genericтАЩ
In file included from /usr/include/linux/gfp.h:4,
                 from /usr/include/linux/slab.h:14,
                 from /usr/include/linux/percpu.h:4,
                 from /usr/include/linux/rcupdate.h:41,
                 from /usr/include/linux/pid.h:4,
                 from /usr/include/linux/sched.h:70,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/mmzone.h: At top level:
/usr/include/linux/mmzone.h:416: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/linux/mmzone.h:416: error: expected declaration specifiers or тАШ...тАЩ before тАШloff_tтАЩ
/usr/include/linux/mmzone.h:419: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/linux/mmzone.h:419: error: expected declaration specifiers or тАШ...тАЩ before тАШloff_tтАЩ
/usr/include/linux/mmzone.h:421: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/linux/mmzone.h:421: error: expected declaration specifiers or тАШ...тАЩ before тАШloff_tтАЩ
/usr/include/linux/mmzone.h:423: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/linux/mmzone.h:423: error: expected declaration specifiers or тАШ...тАЩ before тАШloff_tтАЩ
In file included from /usr/include/linux/percpu.h:4,
                 from /usr/include/linux/rcupdate.h:41,
                 from /usr/include/linux/pid.h:4,
                 from /usr/include/linux/sched.h:70,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/slab.h:60: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/linux/slab.h:60: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
/usr/include/linux/slab.h:70: error: expected тАШ)тАЩ before тАШsizeтАЩ
/usr/include/linux/slab.h:74: error: expected specifier-qualifier-list before тАШsize_tтАЩ
/usr/include/linux/slab.h:80: error: expected тАШ)тАЩ before тАШgfp_tтАЩ
/usr/include/linux/slab.h:134: error: expected тАШ)тАЩ before тАШsizeтАЩ
In file included from /usr/include/linux/percpu.h:4,
                 from /usr/include/linux/rcupdate.h:41,
                 from /usr/include/linux/pid.h:4,
                 from /usr/include/linux/sched.h:70,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/slab.h:157: error: expected тАШ)тАЩ before тАШgfp_tтАЩ
/usr/include/linux/slab.h:164: error: expected тАШ)тАЩ before тАШsizeтАЩ
In file included from /usr/include/linux/percpu.h:4,
                 from /usr/include/linux/rcupdate.h:41,
                 from /usr/include/linux/pid.h:4,
                 from /usr/include/linux/sched.h:70,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/slab.h:193: error: expected тАШ)тАЩ before тАШnтАЩ
/usr/include/linux/slab.h:212: error: expected тАШ)тАЩ before тАШsizeтАЩ
In file included from /usr/include/linux/rcupdate.h:41,
                 from /usr/include/linux/pid.h:4,
                 from /usr/include/linux/sched.h:70,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/percpu.h:35: error: expected тАШ)тАЩ before тАШsizeтАЩ
In file included from /usr/include/linux/hrtimer.h:19,
                 from /usr/include/linux/sched.h:82,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/ktime.h: In function тАШtimespec_to_ktimeтАЩ:
/usr/include/linux/ktime.h:204: error: тАШconst struct timespecтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/ktime.h:205: error: тАШconst struct timespecтАЩ has no member named тАШtv_nsecтАЩ
/usr/include/linux/ktime.h: In function тАШtimeval_to_ktimeтАЩ:
/usr/include/linux/ktime.h:216: error: тАШconst struct timevalтАЩ has no member named тАШtv_secтАЩ
/usr/include/linux/ktime.h:217: error: тАШconst struct timevalтАЩ has no member named тАШtv_usecтАЩ
/usr/include/linux/ktime.h: In function тАШktime_to_timespecтАЩ:
/usr/include/linux/ktime.h:228: error: unknown field тАШtv_secтАЩ specified in initializer
/usr/include/linux/ktime.h:228: error: тАШtime_tтАЩ undeclared (first use in this function)
/usr/include/linux/ktime.h:228: error: expected тАШ}тАЩ before тАШktтАЩ
/usr/include/linux/ktime.h: In function тАШktime_to_timevalтАЩ:
/usr/include/linux/ktime.h:241: error: unknown field тАШtv_secтАЩ specified in initializer
/usr/include/linux/ktime.h:241: error: тАШtime_tтАЩ undeclared (first use in this function)
/usr/include/linux/ktime.h:241: error: expected тАШ}тАЩ before тАШktтАЩ
In file included from /usr/include/linux/sched.h:82,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/hrtimer.h: At top level:
/usr/include/linux/hrtimer.h:86: error: expected specifier-qualifier-list before тАШclockid_tтАЩ
/usr/include/linux/hrtimer.h:108: error: expected declaration specifiers or тАШ...тАЩ before тАШclockid_tтАЩ
/usr/include/linux/hrtimer.h:121: error: expected тАШ;тАЩ, тАШ,тАЩ or тАШ)тАЩ before тАШwhich_clockтАЩ
/usr/include/linux/hrtimer.h:140: error: expected тАШ;тАЩ, тАШ,тАЩ or тАШ)тАЩ before тАШclockidтАЩ
In file included from /usr/include/linux/sched.h:248,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/aio.h:94: error: expected specifier-qualifier-list before тАШssize_tтАЩ
/usr/include/linux/aio.h:199: error: expected тАШ=тАЩ, тАШ,тАЩ, тАШ;тАЩ, тАШasmтАЩ or тАШ__attribute__тАЩ before тАШwait_on_sync_kiocbтАЩ
/usr/include/linux/aio.h: In function тАШlist_kiocbтАЩ:
/usr/include/linux/aio.h:243: error: тАШstruct kiocbтАЩ has no member named тАШki_listтАЩ
/usr/include/linux/aio.h:243: error: тАШstruct kiocbтАЩ has no member named тАШki_listтАЩ
In file included from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/sched.h: At top level:
/usr/include/linux/sched.h:418: error: expected specifier-qualifier-list before тАШpid_tтАЩ
/usr/include/linux/sched.h:533: error: expected specifier-qualifier-list before тАШuid_tтАЩ
/usr/include/linux/sched.h:720: error: expected specifier-qualifier-list before тАШgid_tтАЩ
/usr/include/linux/sched.h:743: error: expected declaration specifiers or тАШ...тАЩ before тАШgid_tтАЩ
/usr/include/linux/sched.h:820: error: expected specifier-qualifier-list before тАШpid_tтАЩ
/usr/include/linux/sched.h:1001: error: expected тАШ=тАЩ, тАШ,тАЩ, тАШ;тАЩ, тАШasmтАЩ or тАШ__attribute__тАЩ before тАШprocess_groupтАЩ
/usr/include/linux/sched.h: In function тАШpid_aliveтАЩ:
/usr/include/linux/sched.h:1016: error: тАШstruct task_structтАЩ has no member named тАШpidsтАЩ
/usr/include/linux/sched.h: At top level:
/usr/include/linux/sched.h:1167: error: expected тАШ)тАЩ before тАШsessionтАЩ
/usr/include/linux/sched.h:1168: error: expected тАШ)тАЩ before тАШsessionтАЩ
In file included from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/sched.h: In function тАШdequeue_signal_lockтАЩ:
/usr/include/linux/sched.h:1209: error: тАШstruct task_structтАЩ has no member named тАШsighandтАЩ
/usr/include/linux/sched.h:1211: error: тАШstruct task_structтАЩ has no member named тАШsighandтАЩ
/usr/include/linux/sched.h: At top level:
/usr/include/linux/sched.h:1224: error: expected declaration specifiers or тАШ...тАЩ before тАШpid_tтАЩ
/usr/include/linux/sched.h:1225: error: expected declaration specifiers or тАШ...тАЩ before тАШpid_tтАЩ
/usr/include/linux/sched.h:1226: error: expected declaration specifiers or тАШ...тАЩ before тАШpid_tтАЩ
/usr/include/linux/sched.h:1227: error: expected declaration specifiers or тАШ...тАЩ before тАШpid_tтАЩ
/usr/include/linux/sched.h:1227: error: expected declaration specifiers or тАШ...тАЩ before тАШuid_tтАЩ
/usr/include/linux/sched.h:1227: error: expected declaration specifiers or тАШ...тАЩ before тАШuid_tтАЩ
/usr/include/linux/sched.h:1233: error: expected тАШ)тАЩ before тАШintтАЩ
/usr/include/linux/sched.h:1234: error: expected тАШ)тАЩ before тАШintтАЩ
/usr/include/linux/sched.h: In function тАШon_sig_stackтАЩ:
/usr/include/linux/sched.h:1256: error: тАШstruct task_structтАЩ has no member named тАШsas_ss_spтАЩ
/usr/include/linux/sched.h:1256: error: тАШstruct task_structтАЩ has no member named тАШsas_ss_sizeтАЩ
/usr/include/linux/sched.h: In function тАШsas_ss_flagsтАЩ:
/usr/include/linux/sched.h:1261: error: тАШstruct task_structтАЩ has no member named тАШsas_ss_sizeтАЩ
/usr/include/linux/sched.h: In function тАШnext_threadтАЩ:
/usr/include/linux/sched.h:1337: error: тАШstruct task_structтАЩ has no member named тАШthread_groupтАЩ
/usr/include/linux/sched.h:1337: error: тАШconst struct task_structтАЩ has no member named тАШthread_groupтАЩ
/usr/include/linux/sched.h:1337: error: тАШconst struct task_structтАЩ has no member named тАШthread_groupтАЩ
/usr/include/linux/sched.h:1337: error: тАШstruct task_structтАЩ has no member named тАШthread_groupтАЩ
/usr/include/linux/sched.h: In function тАШthread_group_emptyтАЩ:
/usr/include/linux/sched.h:1343: error: тАШstruct task_structтАЩ has no member named тАШthread_groupтАЩ
/usr/include/linux/sched.h: In function тАШtask_lockтАЩ:
/usr/include/linux/sched.h:1360: error: тАШstruct task_structтАЩ has no member named тАШalloc_lockтАЩ
/usr/include/linux/sched.h: In function тАШtask_unlockтАЩ:
/usr/include/linux/sched.h:1365: error: тАШstruct task_structтАЩ has no member named тАШalloc_lockтАЩ
/usr/include/linux/sched.h: In function тАШunlock_task_sighandтАЩ:
/usr/include/linux/sched.h:1374: error: тАШstruct task_structтАЩ has no member named тАШsighandтАЩ
/usr/include/linux/sched.h: In function тАШlock_need_reschedтАЩ:
/usr/include/linux/sched.h:1470: error: тАШspinlock_tтАЩ has no member named тАШbreak_lockтАЩ
/usr/include/linux/sched.h: At top level:
/usr/include/linux/sched.h:1523: error: expected тАШ)тАЩ before тАШpidтАЩ
/usr/include/linux/sched.h:1524: error: expected тАШ)тАЩ before тАШpidтАЩ
In file included from /usr/include/linux/kobject.h:22,
                 from /usr/include/linux/sysdev.h:24,
                 from /usr/include/linux/sched.h:1526,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/sysfs.h:21: error: expected specifier-qualifier-list before тАШmode_tтАЩ
/usr/include/linux/sysfs.h:55: error: expected specifier-qualifier-list before тАШsize_tтАЩ
/usr/include/linux/sysfs.h:64: error: expected specifier-qualifier-list before тАШssize_tтАЩ
/usr/include/linux/sysfs.h:105: error: expected declaration specifiers or тАШ...тАЩ before тАШmode_tтАЩ
In file included from /usr/include/linux/sysdev.h:24,
                 from /usr/include/linux/sched.h:1526,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/kobject.h:257: error: expected specifier-qualifier-list before тАШssize_tтАЩ
In file included from /usr/include/linux/sched.h:1526,
                 from /usr/include/linux/module.h:9,
                 from module.c:2:
/usr/include/linux/sysdev.h:42: error: expected specifier-qualifier-list before тАШssize_tтАЩ
/usr/include/linux/sysdev.h:96: error: expected specifier-qualifier-list before тАШssize_tтАЩ
In file included from /usr/include/linux/module.h:12,
                 from module.c:2:
/usr/include/linux/stat.h:61: error: expected specifier-qualifier-list before тАШdev_tтАЩ
In file included from module.c:2:
/usr/include/linux/module.h:50: error: expected specifier-qualifier-list before тАШssize_tтАЩ
/usr/include/linux/module.h:366: error: expected declaration specifiers or тАШ...тАЩ before тАШsize_tтАЩ
make: *** [module.o] Error 1











--- End Message ---
--- Begin Message ---
Tsendrovsky Vladislav a écrit :
> Package: linux-kernel-headers
> Version: 2.6.18-7
> 
> Kernel 2.6.18 for 486
> when i compiled this file (module.c)
> 
> #include <linux/kernel.h>
> #include <linux/module.h>
> 
> int init_module()
> {
>   return 0;
> }
> 
> void cleanup_module()
> {
> }
> 
> gcc -Wall -DLINUX -D__KERNEL__ -DMODULE -c module.c
> 
> I had very many compilation errors from module.h and files included in module.h and kernel.h:

You should not use linux-kernel-headers to compile kernel modules, it
has not been designed for that. Please use one of the linux-headers-*
package corresponding to your kernel instead.

-- 
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   aurel32@debian.org         | aurelien@aurel32.net
   `-    people.debian.org/~aurel32 | www.aurel32.net

--- End Message ---

Reply to: