Checking if your kit is complete... Looks good Note (probably harmless): No library found for -liptc Note (probably harmless): No library found for -lnsl Writing Makefile for IPTables::libiptc cp lib/IPTables/libiptc.pm blib/lib/IPTables/libiptc.pm AutoSplitting blib/lib/IPTables/libiptc.pm (blib/lib/auto/IPTables/libiptc) /Users/cpanrun/build/5.10.0/bin/perl /Users/cpanrun/build/5.10.0/lib/ExtUtils/xsubpp -typemap /Users/cpanrun/build/5.10.0/lib/ExtUtils/typemap -typemap libiptc.typemap libiptc.xs > libiptc.xsc && mv libiptc.xsc libiptc.c Please specify prototyping behavior for libiptc.xs (see perlxs manual) gcc -c -I/usr/local/include -I./include -I. -fno-common -DPERL_DARWIN -no-cpp-precomp -arch ppc -arch i386 -nostdinc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/include/gcc -B/Developer/SDKs/MacOSX10.4u.sdk/usr/lib/gcc -isystem/Developer/SDKs/MacOSX10.4u.sdk/usr/include -F/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks -mmacosx-version-min=10.3 -DPRIVLIB_LAST_IN_INC -fno-strict-aliasing -pipe -O3 -DVERSION=\"0.05\" -DXS_VERSION=\"0.05\" "-I/Users/cpanrun/build/5.10.0/lib/CORE" -DIPTABLES_VERSION=\"1.3.4\" -DIPT_LIB_DIR=\"/lib/iptables\" libiptc.c In file included from ./include/libiptc/libiptc.h:5In file included from ./include/libiptc/libiptc.h:5, from libiptc.xs:7, from libiptc.xs:7: : ./include/libiptc/ipt_kernel_headers.h:18:22:./include/libiptc/ipt_kernel_headers.h:18:22: error: error: linux/ip.h: No such file or directorylinux/ip.h: No such file or directory ./include/libiptc/ipt_kernel_headers.h:19:22: ./include/libiptc/ipt_kernel_headers.h:19:22:error: linux/in.h: No such file or directoryerror: linux/in.h: No such file or directory ./include/libiptc/ipt_kernel_headers.h:20:22: ./include/libiptc/ipt_kernel_headers.h:20:22:error: linux/if.h: No such file or directoryerror: linux/if.h: No such file or directory ./include/libiptc/ipt_kernel_headers.h:21:24: ./include/libiptc/ipt_kernel_headers.h:21:24:error: linux/icmp.h: No such file or directoryerror: linux/icmp.h: No such file or directory ./include/libiptc/ipt_kernel_headers.h:22:23: ./include/libiptc/ipt_kernel_headers.h:22:23:error: linux/tcp.h: No such file or directoryerror: linux/tcp.h: No such file or directory ./include/libiptc/ipt_kernel_headers.h:23:23: ./include/libiptc/ipt_kernel_headers.h:23:23:error: linux/udp.h: No such file or directoryerror: linux/udp.h: No such file or directory ./include/libiptc/ipt_kernel_headers.h:24:25: ./include/libiptc/ipt_kernel_headers.h:24:25:error: linux/types.h: No such file or directoryerror: linux/types.h: No such file or directory ./include/libiptc/ipt_kernel_headers.h:25:23: ./include/libiptc/ipt_kernel_headers.h:25:23:error: linux/in6.h: No such file or directoryerror: linux/in6.h: No such file or directory In file included from libiptc.xs:7: In file included from libiptc.xs:7./include/libiptc/libiptc.h:6:44:: ./include/libiptc/libiptc.h:6:44:error: linux/netfilter_ipv4/ip_tables.h: No such file or directoryerror: linux/netfilter_ipv4/ip_tables.h: No such file or directory In file included from libiptc.xs:7: ./include/libiptc/libiptc.h:62: warning: 'struct ipt_counters' declared inside parameter listIn file included from libiptc.xs:7: ./include/libiptc/libiptc.h:62: warning: 'struct ipt_counters' declared inside parameter list ./include/libiptc/libiptc.h:62: warning: its scope is only this definition or declaration, which is probably not what you want./include/libiptc/libiptc.h:62: warning: its scope is only this definition or declaration, which is probably not what you want ./include/libiptc/libiptc.h:129: warning: 'struct ipt_counters' declared inside parameter list./include/libiptc/libiptc.h:129: warning: 'struct ipt_counters' declared inside parameter list In file included from libiptc.xs:12: const-c.inc: In function 'constant': In file included from libiptc.xs:12: const-c.inc: In function 'constant': const-c.inc:55: error: invalid application of '__alignof__' to incomplete type 'struct ipt_entry' const-c.inc:55: error: invalid application of '__alignof__' to incomplete type 'struct ipt_entry' libiptc.c: In function 'XS_IPTables__libiptc_is_chain': libiptc.c:296: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.c:296: error: (Each undeclared identifier is reported only once libiptc.c:296: error: for each function it appears in.) libiptc.c: In function 'XS_IPTables__libiptc_is_chain': libiptc.c:296: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.c:296: error: (Each undeclared identifier is reported only once libiptc.c:296: error: for each function it appears in.) libiptc.c: In function 'XS_IPTables__libiptc_create_chain': libiptc.c:347: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.c: In function 'XS_IPTables__libiptc_create_chain': libiptc.c:347: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.c: In function 'XS_IPTables__libiptc_delete_chain': libiptc.c:405: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.c: In function 'XS_IPTables__libiptc_delete_chain': libiptc.c:405: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.c: In function 'XS_IPTables__libiptc_rename_chain': libiptc.c:464: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.c: In function 'XS_IPTables__libiptc_rename_chain': libiptc.c:464: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.c: In function 'XS_IPTables__libiptc_builtin': libiptc.c:538: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.c: In function 'XS_IPTables__libiptc_builtin': libiptc.c:538: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.c: In function 'XS_IPTables__libiptc_get_references': libiptc.c:596: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.xs:176: warning: pointer targets in passing argument 1 of 'iptc_get_references' differ in signedness libiptc.c: In function 'XS_IPTables__libiptc_get_references': libiptc.c:596: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.xs:176: warning: pointer targets in passing argument 1 of 'iptc_get_references' differ in signedness libiptc.c: In function 'XS_IPTables__libiptc_flush_entries': libiptc.c:654: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.c: In function 'XS_IPTables__libiptc_zero_entries':libiptc.c: In function 'XS_IPTables__libiptc_flush_entries': libiptc.c:712: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function)libiptc.c:654: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.c: In function 'XS_IPTables__libiptc_zero_entries': libiptc.c:712: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.c: In function 'XS_IPTables__libiptc_list_rules_IPs': libiptc.c:829: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.xs:283: error: dereferencing pointer to incomplete type libiptc.xs:284: error: dereferencing pointer to incomplete type libiptc.xs:288: error: dereferencing pointer to incomplete type libiptc.xs:289: error: dereferencing pointer to incomplete type libiptc.xs: In function 'XS_IPTables__libiptc_get_policy': libiptc.xs:316: error: storage size of 'counters' isn't known libiptc.c: In function 'XS_IPTables__libiptc_list_rules_IPs': libiptc.c:829: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.c:923: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.xs:283: error: dereferencing pointer to incomplete type libiptc.xs:284: error: dereferencing pointer to incomplete type libiptc.xs:288: error: dereferencing pointer to incomplete type libiptc.xs:289: error: dereferencing pointer to incomplete type libiptc.xs: In function 'XS_IPTables__libiptc_set_policy': libiptc.xs:349: error: storage size of 'old_counters' isn't known libiptc.c:999: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.xs: In function 'XS_IPTables__libiptc_get_policy': libiptc.xs:316: error: storage size of 'counters' isn't known libiptc.c:923: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.xs:357: error: invalid application of 'sizeof' to incomplete type 'struct ipt_counters' libiptc.xs:358: error: dereferencing pointer to incomplete type libiptc.xs:359: error: dereferencing pointer to incomplete type libiptc.xs:364: warning: passing argument 3 of 'iptc_set_policy' from incompatible pointer type libiptc.xs: In function 'XS_IPTables__libiptc_set_policy': libiptc.xs:349: error: storage size of 'old_counters' isn't known libiptc.c:999: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.c: In function 'XS_IPTables__libiptc_iptables_delete_chain': libiptc.c:1107: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.xs:357: error: invalid application of 'sizeof' to incomplete type 'struct ipt_counters' libiptc.xs:358: error: dereferencing pointer to incomplete type libiptc.xs:359: error: dereferencing pointer to incomplete type libiptc.xs:364: warning: passing argument 3 of 'iptc_set_policy' from incompatible pointer type libiptc.xs: In function 'XS_IPTables__libiptc_iptables_do_command': libiptc.xs:444: warning: assignment discards qualifiers from pointer target type libiptc.c: In function 'XS_IPTables__libiptc_iptables_delete_chain': libiptc.c:1107: error: 'IPT_FUNCTION_MAXNAMELEN' undeclared (first use in this function) libiptc.xs: In function 'XS_IPTables__libiptc_iptables_do_command': libiptc.xs:444: warning: assignment discards qualifiers from pointer target type lipo: can't open input file: /var/tmp//cc7wIY7q.out (No such file or directory) make: *** [libiptc.o] Error 1