Perl IPTables 模块安装错误

2024-04-12

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

我尝试在 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]# 

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

非常感谢您的帮助。


The 泛评级 http://cpanratings.perl.org/dist/IPTables-IPv4 and CPAN 测试人员报告 http://static.cpantesters.org/distro/I/IPTables-IPv4.html对于这个模块让我觉得你在这里浪费时间。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Perl IPTables 模块安装错误 的相关文章

随机推荐