Perl IPTables模块安装错误

时间:2011-07-11 11:00:43

标签: perl cpan perl-module iptables

我一直在尝试为perl http://metacpan.org/pod/IPTables::IPv4安装IPTables模块,我在安装过程中遇到了错误。

我尝试在shell中使用CPAN进行安装,并从上面的链接下载tarball。两个安装都给我错误。我不知道如何从CPAN获取转储,但是当我从tarball运行MAKE文件时,我能得到的是转储我的shell:

[root@localhost IPTables-IPv4-0.98]# make
make -C libiptc/ all
make[1]: Entering directory `/home/student/Downloads/IPTables-IPv4-0.98/libiptc'
gcc -o libip6tc.o -c libip6tc.c -I../include -I/usr/src/linux/include -DIPTABLES_VERSION=\"1.2.8\" -O2 -Wall
In file included from libip6tc.c:111:0:
libiptc.c: In function ‘ip6tc_init’:
libiptc.c:312:10: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness
/usr/include/sys/socket.h:190:12: note: expected ‘socklen_t * __restrict__’ but argument is of type ‘int *’
libiptc.c: In function ‘target_name’:
libiptc.c:727:2: warning: dereferencing type-punned pointer will break strict-aliasing rules
libip6tc.c: In function ‘ipv6_prefix_length’:
libip6tc.c:121:7: error: ‘const struct in6_addr’ has no member named ‘in6_u’
libip6tc.c:125:7: error: ‘const struct in6_addr’ has no member named ‘in6_u’
libip6tc.c: In function ‘dump_entry’:
libip6tc.c:201:3: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[1]: *** [libip6tc.o] Error 1
make[1]: Leaving directory `/home/student/Downloads/IPTables-IPv4-0.98/libiptc'
make: *** [libiptc/libiptc.a] Error 2
[root@localhost IPTables-IPv4-0.98]# 

我想知道我需要做什么才能安装模块。我需要安装一些依赖项吗?

非常感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

此模块的cpanratingsCPAN testers reports让我觉得你在这里浪费时间。

相关问题