From: William P. <wl...@wi...> - 2009-06-10 02:55:37
|
I have IPTables::IPv4 running on several machines in my network. I just tried to add the modules to my "cindy" box and ran into a number of compile errors. [root@cindy IPTables-IPv4-0.98]# perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for IPTables::IPv4 [root@cindy IPTables-IPv4-0.98]# make cp IPv4/TableTie.pm blib/lib/IPTables/IPv4/TableTie.pm cp IPv4/Chain.pm blib/lib/IPTables/IPv4/Chain.pm cp IPv4.pm blib/lib/IPTables/IPv4.pm AutoSplitting blib/lib/IPTables/IPv4.pm (blib/lib/auto/IPTables/IPv4) cp IPv6.pm blib/lib/IPTables/IPv6.pm AutoSplitting blib/lib/IPTables/IPv6.pm (blib/lib/auto/IPTables/IPv6) cp IPv4/Toplevel.pm blib/lib/IPTables/IPv4/Toplevel.pm cp IPv4/Rule.pm blib/lib/IPTables/IPv4/Rule.pm cp IPv4/RuleList.pm blib/lib/IPTables/IPv4/RuleList.pm /usr/bin/perl /usr/lib/perl5/5.10.0/ExtUtils/xsubpp -noprototypes -typemap /usr/lib/perl5/5.10.0/ExtUtils/typemap -typemap IPTables.typemap IPv4.xs > IPv4.xsc && mv IPv4.xsc IPv4.c gcc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/local/lib/IPTables-IPv4\" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DPERL_USE_SAFE_PUTENV -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" IPv4.c IPv4.c: In function ‘XS_IPTables__IPv4__Table_get_policy’: IPv4.xs:136: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result IPv4.xs:139: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result IPv4.xs: In function ‘XS_IPTables__IPv4__Table_get_references’: IPv4.xs:379: warning: pointer targets in passing argument 1 of ‘iptc_get_references’ differ in signedness gcc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/local/lib/IPTables-IPv4\" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DPERL_USE_SAFE_PUTENV -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" loader.c loader.c: In function ‘find_module_int’: loader.c:108: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result gcc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/local/lib/IPTables-IPv4\" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DPERL_USE_SAFE_PUTENV -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" packer.c packer.c: In function ‘ipt_do_pack’: packer.c:249: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result packer.c:310: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result packer.c:372: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result packer.c:542: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result packer.c:558: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result gcc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/local/lib/IPTables-IPv4\" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DPERL_USE_SAFE_PUTENV -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" unpacker.c unpacker.c: In function ‘addr_and_mask_to_sv’: unpacker.c:92: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result unpacker.c:95: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result unpacker.c:101: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result unpacker.c: In function ‘ipt_do_unpack’: unpacker.c:132: warning: value computed is not used unpacker.c:139: warning: value computed is not used unpacker.c:150: warning: value computed is not used unpacker.c:162: warning: value computed is not used unpacker.c:189: warning: value computed is not used unpacker.c:195: warning: value computed is not used unpacker.c:204: warning: value computed is not used unpacker.c:217: warning: value computed is not used unpacker.c:252: warning: value computed is not used unpacker.c:261: warning: value computed is not used unpacker.c:265: warning: value computed is not used unpacker.c:268: warning: value computed is not used unpacker.c:146: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result unpacker.c:158: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result unpacker.c:173: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result unpacker.c:183: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result unpacker.c:214: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result unpacker.c:249: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result unpacker.c:264: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result unpacker.c:267: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result gcc -c -Iinclude -I/usr/src/linux/include -Wall -DMODULE_PATH=\"/usr/local/lib/IPTables-IPv4\" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables -DPERL_USE_SAFE_PUTENV -DVERSION=\"0.98\" -DXS_VERSION=\"0.98\" -fPIC "-I/usr/lib/perl5/5.10.0/i386-linux-thread-multi/CORE" maskgen.c make -C libiptc/ all make[1]: Entering directory `/root/Download/IPTables-IPv4-0.98/libiptc' gcc -o libip4tc.o -c libip4tc.c -I../include -I/usr/src/linux/include -DIPTABLES_VERSION=\"1.2.8\" -O2 -Wall In file included from libip4tc.c:117: libiptc.c: In function ‘iptc_init’: libiptc.c:312: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness 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:112: libiptc.c: In function ‘ip6tc_init’: libiptc.c:312: warning: pointer targets in passing argument 5 of ‘getsockopt’ differ in signedness libip6tc.c: In function ‘ipv6_prefix_length’: libip6tc.c:121: error: ‘const struct in6_addr’ has no member named ‘in6_u’ libip6tc.c:125: error: ‘const struct in6_addr’ has no member named ‘in6_u’ make[1]: *** [libip6tc.o] Error 1 make[1]: Leaving directory `/root/Download/IPTables-IPv4-0.98/libiptc' make: *** [libiptc/libiptc.a] Error 2 Can any kind person help me? -- William Perry |