2011-07-11 59 views
0

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

我已经尝试使用CPAN在shell中安装以及下载tarball形式的上面的链接。这两个安装给我错误。我不知道如何从CPAN转储,但我能得到什么是我的外壳的转储当我运行从压缩包的生成文件:

[[email protected] 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 
[[email protected] IPTables-IPv4-0.98]# 

我想知道什么,我需要做的这样我可以安装模块。我需要安装一些依赖项吗?

非常感谢您的帮助。

+2

你是否意识到自己多年来一直没有得到维护? [RT队列]中有一些补丁(https://rt.cpan.org/Dist/Display.html?Name=IPTables-IPv4),但我认为你更好[尝试不同的发行版](http: //search.cpan.org/search?query=iptables)。 – daxim

+0

是的,我意识到它的老,但我有点需要这个工作。除非有一些替代品可用? –

回答