All pastes #231007 Raw Edit

Stuff

public text v1 · immutable
#231007 ·published 2006-10-31 15:28 UTC
rendered paste body
cc     hello.c   -o hello
In file included from /usr/include/asm-i486/local.h:4,
                 from /usr/include/asm/local.h:8,
                 from /usr/include/linux/module.h:20,
                 from hello.c:1:
/usr/include/linux/percpu.h: In function ‘__alloc_percpu’:
/usr/include/linux/percpu.h:44: error: ‘GFP_KERNEL’ undeclared (first use in this function)
/usr/include/linux/percpu.h:44: error: (Each undeclared identifier is reported only once
/usr/include/linux/percpu.h:44: error: for each function it appears in.)
In file included from /usr/include/asm/module.h:8,
                 from /usr/include/linux/module.h:22,
                 from hello.c:1:
/usr/include/asm-i486/module.h:60:2: error: #error unknown processor family
In file included from hello.c:1:
/usr/include/linux/module.h: At top level:
/usr/include/linux/module.h:49: error: field ‘attr’ has incomplete type
/usr/include/linux/module.h:60: error: field ‘kobj’ has incomplete type
hello.c: In function ‘init_module’:
hello.c:6: error: ‘KERN_INFO’ undeclared (first use in this function)
hello.c:6: error: expected ‘)’ before string constant
hello.c: In function ‘cleanup_module’:
hello.c:12: error: ‘KERN_INFO’ undeclared (first use in this function)
hello.c:12: error: expected ‘)’ before string constant
make: *** [hello] Error 1