当前位置: 技术问答>linux和unix
linux下编译#include <linux/skbuff.h>出很多错误
来源: 互联网 发布时间:2016-08-07
本文导语: 为什么啊,很奇怪啊。 In file included from /usr/include/asm/bitops.h:12, from /usr/include/linux/bitops.h:9, from /usr/include/linux/thread_info.h:20, from /usr/inc...
为什么啊,很奇怪啊。
In file included from /usr/include/asm/bitops.h:12,
from /usr/include/linux/bitops.h:9,
from /usr/include/linux/thread_info.h:20,
from /usr/include/linux/preempt.h:9,
from /usr/include/linux/spinlock.h:49,
from /usr/include/linux/module.h:10,
from aatacktool.h:12,
from aatacktool.c:5:
/usr/include/asm-generic/bitops/atomic.h: In function ‘set_bit’:
/usr/include/asm-generic/bitops/atomic.h:69: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/include/asm-generic/bitops/atomic.h:69: error: (Each undeclared identifier is reported only once
/usr/include/asm-generic/bitops/atomic.h:69: error: for each function it appears in.)
/usr/include/asm-generic/bitops/atomic.h: In function ‘clear_bit’:
/usr/include/asm-generic/bitops/atomic.h:90: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/include/asm-generic/bitops/atomic.h: In function ‘change_bit’:
/usr/include/asm-generic/bitops/atomic.h:111: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/include/asm-generic/bitops/atomic.h: In function ‘test_and_set_bit’:
/usr/include/asm-generic/bitops/atomic.h:131: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/include/asm-generic/bitops/atomic.h: In function ‘test_and_clear_bit’:
/usr/include/asm-generic/bitops/atomic.h:155: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
In file included from /usr/include/asm/bitops.h:12,
from /usr/include/linux/bitops.h:9,
from /usr/include/linux/thread_info.h:20,
from /usr/include/linux/preempt.h:9,
from /usr/include/linux/spinlock.h:49,
from /usr/include/linux/module.h:10,
from aatacktool.h:12,
from aatacktool.c:5:
/usr/include/asm-generic/bitops/atomic.h: In function ‘set_bit’:
/usr/include/asm-generic/bitops/atomic.h:69: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/include/asm-generic/bitops/atomic.h:69: error: (Each undeclared identifier is reported only once
/usr/include/asm-generic/bitops/atomic.h:69: error: for each function it appears in.)
/usr/include/asm-generic/bitops/atomic.h: In function ‘clear_bit’:
/usr/include/asm-generic/bitops/atomic.h:90: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/include/asm-generic/bitops/atomic.h: In function ‘change_bit’:
/usr/include/asm-generic/bitops/atomic.h:111: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/include/asm-generic/bitops/atomic.h: In function ‘test_and_set_bit’:
/usr/include/asm-generic/bitops/atomic.h:131: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
/usr/include/asm-generic/bitops/atomic.h: In function ‘test_and_clear_bit’:
/usr/include/asm-generic/bitops/atomic.h:155: error: ‘BITS_PER_LONG’ undeclared (first use in this function)
|
这是在编译内核出现的吧。哪个内核版本??
没碰到过这种问题
mark
没碰到过这种问题
mark