- 论坛徽章:
- 0
|
springwind426兄,能否解决一下hashspeed在iptables-1.4.0下的编译,谢谢先
内核2.6.23,iptables-1.4.0,内核模块编译通过,iptables模块编译错误如下
[root@qq hashspeed-0.1]# make
make -C /usr/src/linux-2.6.23 M=/usr/src/pom/hashspeed-0.1 modules
make[1]: Entering directory `/usr/src/linux-2.6.23'
CC [M] /usr/src/pom/hashspeed-0.1/ipt_hashspeed.o
Building modules, stage 2.
MODPOST 1 modules
CC /usr/src/pom/hashspeed-0.1/ipt_hashspeed.mod.o
LD [M] /usr/src/pom/hashspeed-0.1/ipt_hashspeed.ko
make[1]: Leaving directory `/usr/src/linux-2.6.23'
cc -O2 -Wall -DIPTABLES_VERSION=\"1.4.0\" -I/usr/src/iptables-1.4.0/include -fPIC -c libipt_hashspeed.c
在包含自 /usr/src/iptables-1.4.0/include/libiptc/libiptc.h:7 的文件中,
从 /usr/src/iptables-1.4.0/include/iptables.h:5,
从 libipt_hashspeed.c:13:
/usr/src/iptables-1.4.0/include/linux/netfilter_ipv4/ip_tables.h:18:28: 错误:linux/compiler.h:没有那个文件或目录
In file included from /usr/src/iptables-1.4.0/include/libiptc/libiptc.h:7,
from /usr/src/iptables-1.4.0/include/iptables.h:5,
from libipt_hashspeed.c:13:
/usr/src/iptables-1.4.0/include/linux/netfilter_ipv4/ip_tables.h:190: 错误:expected ‘:’, ‘,’, ‘;’, ‘}’ or ‘__attribute__’ before ‘*’ token
make: *** [libipt_hashspeed.so] 错误 1 |
|