- 论坛徽章:
- 0
|
请LZ帮忙看看是什么错误
LZ确实强人,为我们无私奉献这么好的软件!
不过我在编译时出现错误,如下:
[root@Lux ipp2p-0.99.13]# make KERNEL_SRC=/usr/src/linux IPTABLES_SRC=/usr/src/iptables
gcc -O3 -Wall -DIPTABLES_VERSION=\"1.4.0\" -I/usr/src/iptables/include -fPIC -c libipt_ipp2p.c
In file included from /usr/src/iptables/include/libiptc/libiptc.h:7,
from /usr/src/iptables/include/iptables.h:5,
from libipt_ipp2p.c:8:
/usr/src/iptables/include/linux/netfilter_ipv4/ip_tables.h:190: warning: no semicolon at end of struct or union
/usr/src/iptables/include/linux/netfilter_ipv4/ip_tables.h:190: error: syntax error before '*' token
/usr/src/iptables/include/linux/netfilter_ipv4/ip_tables.h:194: error: syntax error before '}' token
libipt_ipp2p.c:375: warning: initialization from incompatible pointer type
libipt_ipp2p.c:376: warning: initialization from incompatible pointer type
libipt_ipp2p.c:378: warning: initialization from incompatible pointer type
libipt_ipp2p.c:379: warning: initialization from incompatible pointer type
make: *** [libipt_ipp2p.so] Error 1
其它两个ipt_ipp2p.mod.o和ipt_ipp2p.ko早前已编译好,但编译libipt_ipp2p.so时就出错!
我也按照LZ在第一页所示把Makefile中的$(CC) -shared -o libipt_ipp2p.so libipt_ipp2p.o
语句改为ld -shared -o libipt_ipp2p.so libipt_ipp2p.o,仍然编译出错,
看提示就是ip_tables.h有错误,但如果该文件有错的话,iptables 1.4.0也应该无法编译通过,是不是对于iptables 1.4.0,
编译ipp2p 0.99.13时还要再包含其它什么头文件呢?
我系统情况是:
RHEL AS4 U4 ,原先内核为2.6.9-42.ELsmp,最近升为2.6.23.12,
iptables也升级为1.4.0,编译成功!
gcc版本为3.4.6 20060404
主板ASUS P2L97-DS,双PII 333,
请问如何处理,谢谢!
[ 本帖最后由 太空漫步 于 2008-1-14 21:08 编辑 ] |
|