+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/perl-IPTables-libiptc.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.CZaaCT + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf IPTables-libiptc-0.52 + /usr/bin/gzip -dc /builddir/build/SOURCES/IPTables-libiptc-0.52.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd IPTables-libiptc-0.52 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (perl-IPTables-libiptc-0.51-Support-iptables-1.4.12.patch):' Patch #0 (perl-IPTables-libiptc-0.51-Support-iptables-1.4.12.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file iptables/iptables-blocking.c patching file iptables/iptables-detect-version.c patching file iptables/iptables-standalone.c patching file iptables/iptables-standalone.c-old patching file iptables/iptables-standalone.c-v1.4.12 patching file iptables/iptables.c-v1.4.12 patching file iptables/xshared.c patching file iptables/xshared.c-old patching file iptables/xshared.c-v1.4.12 patching file iptables/xshared.h patching file iptables/xshared.h-old patching file iptables/xshared.h-v1.4.12 patching file libiptc.xs Hunk #1 succeeded at 437 (offset 1 line). Hunk #2 succeeded at 517 (offset 1 line). + echo 'Patch #1 (IPTables-libiptc-0.52-Support-for-1.4.16.2.patch):' Patch #1 (IPTables-libiptc-0.52-Support-for-1.4.16.2.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file iptables/Makefile patching file iptables/iptables-detect-version.c patching file iptables/iptables-standalone.c patching file iptables/iptables-standalone.c-v1.4.16.2 patching file iptables/iptables.c-v1.4.16.2 patching file iptables/xshared.c patching file iptables/xshared.c-v1.4.16.2 patching file iptables/xshared.h patching file iptables/xshared.h-v1.4.16.2 + echo 'Patch #2 (IPTables-libiptc-0.52-Support-for-1.4.18.patch):' Patch #2 (IPTables-libiptc-0.52-Support-for-1.4.18.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file iptables/iptables-detect-version.c patching file iptables/iptables-standalone.c patching file iptables/iptables-standalone.c-v1.4.18 patching file iptables/iptables.c-v1.4.18 patching file iptables/xshared.c patching file iptables/xshared.c-v1.4.18 patching file iptables/xshared.h patching file iptables/xshared.h-v1.4.18 + echo 'Patch #3 (IPTables-libiptc-0.52-Support-for-1.6.0.patch):' Patch #3 (IPTables-libiptc-0.52-Support-for-1.6.0.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file iptables/iptables-detect-version.c patching file iptables/iptables-standalone.c patching file iptables/iptables-standalone.c-v1.6.0 patching file iptables/iptables.c-v1.6.0 patching file iptables/xshared.c patching file iptables/xshared.c-v1.6.0 patching file iptables/xshared.h patching file iptables/xshared.h-v1.6.0 + echo 'Patch #4 (IPTables-libiptc-0.52-Support-for-1.6.1.patch):' Patch #4 (IPTables-libiptc-0.52-Support-for-1.6.1.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file iptables/iptables-detect-version.c patching file iptables/iptables-standalone.c patching file iptables/iptables-standalone.c-v1.6.1 patching file iptables/iptables.c-v1.6.1 patching file iptables/xshared.c patching file iptables/xshared.c-v1.6.1 patching file iptables/xshared.h patching file iptables/xshared.h-v1.6.1 + echo 'Patch #5 (IPTables-libiptc-0.52-Fix-GCC-format-security-warning.patch):' Patch #5 (IPTables-libiptc-0.52-Fix-GCC-format-security-warning.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 --fuzz=0 patching file libiptc.xs + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.S1aDvC + umask 022 + cd /builddir/build/BUILD + cd IPTables-libiptc-0.52 + perl Makefile.PL PREFIX=/usr INSTALLDIRS=vendor 'OPTIMIZE=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' Checking if your kit is complete... Looks good Detect iptables version via command: "iptables -V" Detect the xtables libdir path of: "iptables" - detected xtables libdir: "/usr/libexec/xtables" Detected iptables version: 1.6.1 (vercode:67073) Module only supports version 1.4.x, fallback Using iptables version: 1.4.4 Checking for header files - detected include path: "/usr/include" - check-header: xtables.h Generating a Unix-style Makefile Writing Makefile for IPTables::libiptc Writing MYMETA.yml and MYMETA.json + make -j4 Running Mkbootstrap for libiptc () "/usr/bin/perl" "/usr/share/perl5/vendor_perl/ExtUtils/xsubpp" -typemap '/usr/share/perl5/ExtUtils/typemap' -typemap '/builddir/build/BUILD/IPTables-libiptc-0.52/libiptc.typemap' libiptc.xs > libiptc.xsc make -C iptables/ all PREFIX="/usr" IPTABLES_VERSION="1.4.4" XTABLES_LIBDIR="/usr/libexec/xtables" IPTABLES_VERSION_CODE="67073" EXTRALIBS="-lnsl -liptc -lip4tc -lxtables" make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. make[1]: Entering directory '/builddir/build/BUILD/IPTables-libiptc-0.52/iptables' cc -O2 -Wall -Wunused -I/include -I/usr/include -I../include/ -fPIC -DXTABLES_INTERNAL -g -DIPTABLES_VERSION=\"1.4.4\" -DXTABLES_LIBDIR=\"/usr/libexec/xtables\" -DIPTABLES_VERSION_CODE=\67073 -c -o iptables.o iptables-detect-version.c chmod 644 "libiptc.bs" make -C iptables/ all PREFIX="/usr" IPTABLES_VERSION="1.4.4" XTABLES_LIBDIR="/usr/libexec/xtables" IPTABLES_VERSION_CODE="67073" EXTRALIBS="-lnsl -liptc -lip4tc -lxtables" make[1]: warning: jobserver unavailable: using -j1. Add '+' to parent make rule. make[1]: Entering directory '/builddir/build/BUILD/IPTables-libiptc-0.52/iptables' cc -O2 -Wall -Wunused -I/include -I/usr/include -I../include/ -fPIC -DXTABLES_INTERNAL -g -DIPTABLES_VERSION=\"1.4.4\" -DXTABLES_LIBDIR=\"/usr/libexec/xtables\" -DIPTABLES_VERSION_CODE=\67073 -c -o iptables.o iptables-detect-version.c cp lib/IPTables/libiptc.pm blib/lib/IPTables/libiptc.pm AutoSplitting blib/lib/IPTables/libiptc.pm (blib/lib/auto/IPTables/libiptc) "/usr/bin/perl" -MExtUtils::Command::MM -e 'cp_nonempty' -- libiptc.bs blib/arch/auto/IPTables/libiptc/libiptc.bs 644 iptables-detect-version.c:65:2: warning: #warning "This version of xtables is currently not supported by this Perl package" [-Wcpp] #warning "This version of xtables is currently not supported by this Perl package" ^~~~~~~ iptables-detect-version.c:65:2: warning: #warning "This version of xtables is currently not supported by this Perl package" [-Wcpp] #warning "This version of xtables is currently not supported by this Perl package" ^~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'print_header': iptables.c-v1.6.1:454:54: warning: passing argument 3 of 'iptc_get_policy' from incompatible pointer type [-Wincompatible-pointer-types] const char *pol = iptc_get_policy(chain, &counters, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:65:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_get_policy(const char *chain, ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:468:42: warning: passing argument 3 of 'iptc_get_references' from incompatible pointer type [-Wincompatible-pointer-types] if (!iptc_get_references(&refs, chain, handle)) ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:137:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_get_references(unsigned int *ref, ^~~~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'print_firewall': iptables.c-v1.6.1:536:31: warning: passing argument 2 of 'iptc_is_chain' from incompatible pointer type [-Wincompatible-pointer-types] if (!iptc_is_chain(targname, handle)) ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:37:5: note: expected 'struct iptc_handle * const' but argument is of type 'struct xtc_handle * const' int iptc_is_chain(const char *chain, struct iptc_handle *const handle); ^~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'append_entry': iptables.c-v1.6.1:684:40: warning: passing argument 3 of 'iptc_append_entry' from incompatible pointer type [-Wincompatible-pointer-types] ret &= iptc_append_entry(chain, fw, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:87:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_append_entry(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'replace_entry': iptables.c-v1.6.1:707:48: warning: passing argument 4 of 'iptc_replace_entry' from incompatible pointer type [-Wincompatible-pointer-types] return iptc_replace_entry(chain, fw, rulenum, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:80:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_replace_entry(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'insert_entry': iptables.c-v1.6.1:734:49: warning: passing argument 4 of 'iptc_insert_entry' from incompatible pointer type [-Wincompatible-pointer-types] ret &= iptc_insert_entry(chain, fw, rulenum, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:74:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_insert_entry(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'delete_entry': iptables.c-v1.6.1:802:46: warning: passing argument 4 of 'iptc_delete_entry' from incompatible pointer type [-Wincompatible-pointer-types] ret &= iptc_delete_entry(chain, fw, mask, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:93:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_delete_entry(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'check_entry': iptables.c-v1.6.1:832:11: warning: implicit declaration of function 'iptc_check_entry'; did you mean 'check_entry'? [-Wimplicit-function-declaration] ret &= iptc_check_entry(chain, fw, mask, handle); ^~~~~~~~~~~~~~~~ check_entry iptables.c-v1.6.1: In function 'for_each_chain4': iptables.c-v1.6.1:849:27: warning: passing argument 1 of 'iptc_first_chain' from incompatible pointer type [-Wincompatible-pointer-types] chain = iptc_first_chain(handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:46:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_first_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:852:27: warning: passing argument 1 of 'iptc_next_chain' from incompatible pointer type [-Wincompatible-pointer-types] chain = iptc_next_chain(handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:47:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_next_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:857:27: warning: passing argument 1 of 'iptc_first_chain' from incompatible pointer type [-Wincompatible-pointer-types] chain = iptc_first_chain(handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:46:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_first_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:861:27: warning: passing argument 1 of 'iptc_next_chain' from incompatible pointer type [-Wincompatible-pointer-types] chain = iptc_next_chain(handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:47:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_next_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:867:9: warning: passing argument 2 of 'iptc_builtin' from incompatible pointer type [-Wincompatible-pointer-types] handle) == 1) ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:62:5: note: expected 'struct iptc_handle * const' but argument is of type 'struct xtc_handle *' int iptc_builtin(const char *chain, struct iptc_handle *const handle); ^~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'flush_entries4': iptables.c-v1.6.1:885:35: warning: passing argument 2 of 'iptc_flush_entries' from incompatible pointer type [-Wincompatible-pointer-types] return iptc_flush_entries(chain, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:110:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_flush_entries(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'zero_entries': iptables.c-v1.6.1:897:34: warning: passing argument 2 of 'iptc_zero_entries' from incompatible pointer type [-Wincompatible-pointer-types] return iptc_zero_entries(chain, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:114:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_zero_entries(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'delete_chain4': iptables.c-v1.6.1:909:34: warning: passing argument 2 of 'iptc_delete_chain' from incompatible pointer type [-Wincompatible-pointer-types] return iptc_delete_chain(chain, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:122:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_delete_chain(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'list_entries': iptables.c-v1.6.1:935:31: warning: passing argument 1 of 'iptc_first_chain' from incompatible pointer type [-Wincompatible-pointer-types] for (this = iptc_first_chain(handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:46:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_first_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:937:30: warning: passing argument 1 of 'iptc_next_chain' from incompatible pointer type [-Wincompatible-pointer-types] this = iptc_next_chain(handle)) { ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:47:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_next_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:948:29: warning: passing argument 2 of 'iptc_first_rule' from incompatible pointer type [-Wincompatible-pointer-types] i = iptc_first_rule(this, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:50:25: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const struct ipt_entry *iptc_first_rule(const char *chain, ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:955:32: warning: passing argument 2 of 'iptc_get_target' from incompatible pointer type [-Wincompatible-pointer-types] iptc_get_target(i, handle), ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:58:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_get_target(const struct ipt_entry *e, ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:959:26: warning: passing argument 2 of 'iptc_next_rule' from incompatible pointer type [-Wincompatible-pointer-types] i = iptc_next_rule(i, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:54:25: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const struct ipt_entry *iptc_next_rule(const struct ipt_entry *prev, ^~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'print_rule4': iptables.c-v1.6.1:1126:35: warning: passing argument 2 of 'iptc_get_target' from incompatible pointer type [-Wincompatible-pointer-types] target_name = iptc_get_target(e, h); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:58:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_get_target(const struct ipt_entry *e, ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'list_rules': iptables.c-v1.6.1:1177:45: warning: passing argument 1 of 'iptc_first_chain' from incompatible pointer type [-Wincompatible-pointer-types] if (!rulenum) for (this = iptc_first_chain(handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:46:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_first_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1179:30: warning: passing argument 1 of 'iptc_next_chain' from incompatible pointer type [-Wincompatible-pointer-types] this = iptc_next_chain(handle)) { ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:47:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_next_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1183:26: warning: passing argument 2 of 'iptc_builtin' from incompatible pointer type [-Wincompatible-pointer-types] if (iptc_builtin(this, handle)) { ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:62:5: note: expected 'struct iptc_handle * const' but argument is of type 'struct xtc_handle *' int iptc_builtin(const char *chain, struct iptc_handle *const handle); ^~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1185:59: warning: passing argument 3 of 'iptc_get_policy' from incompatible pointer type [-Wincompatible-pointer-types] printf("-P %s %s", this, iptc_get_policy(this, &count, handle)); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:65:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_get_policy(const char *chain, ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1194:31: warning: passing argument 1 of 'iptc_first_chain' from incompatible pointer type [-Wincompatible-pointer-types] for (this = iptc_first_chain(handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:46:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_first_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1196:30: warning: passing argument 1 of 'iptc_next_chain' from incompatible pointer type [-Wincompatible-pointer-types] this = iptc_next_chain(handle)) { ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:47:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_next_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1204:29: warning: passing argument 2 of 'iptc_first_rule' from incompatible pointer type [-Wincompatible-pointer-types] e = iptc_first_rule(this, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:50:25: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const struct ipt_entry *iptc_first_rule(const char *chain, ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1209:26: warning: passing argument 2 of 'iptc_next_rule' from incompatible pointer type [-Wincompatible-pointer-types] e = iptc_next_rule(e, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:54:25: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const struct ipt_entry *iptc_next_rule(const struct ipt_entry *prev, ^~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'print_header': iptables.c-v1.6.1:454:54: warning: passing argument 3 of 'iptc_get_policy' from incompatible pointer type [-Wincompatible-pointer-types] const char *pol = iptc_get_policy(chain, &counters, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:65:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_get_policy(const char *chain, ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:468:42: warning: passing argument 3 of 'iptc_get_references' from incompatible pointer type [-Wincompatible-pointer-types] if (!iptc_get_references(&refs, chain, handle)) ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:137:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_get_references(unsigned int *ref, ^~~~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'print_firewall': iptables.c-v1.6.1:536:31: warning: passing argument 2 of 'iptc_is_chain' from incompatible pointer type [-Wincompatible-pointer-types] if (!iptc_is_chain(targname, handle)) ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:37:5: note: expected 'struct iptc_handle * const' but argument is of type 'struct xtc_handle * const' int iptc_is_chain(const char *chain, struct iptc_handle *const handle); ^~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'append_entry': iptables.c-v1.6.1:684:40: warning: passing argument 3 of 'iptc_append_entry' from incompatible pointer type [-Wincompatible-pointer-types] ret &= iptc_append_entry(chain, fw, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:87:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_append_entry(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'replace_entry': iptables.c-v1.6.1:707:48: warning: passing argument 4 of 'iptc_replace_entry' from incompatible pointer type [-Wincompatible-pointer-types] return iptc_replace_entry(chain, fw, rulenum, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:80:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_replace_entry(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'insert_entry': iptables.c-v1.6.1:734:49: warning: passing argument 4 of 'iptc_insert_entry' from incompatible pointer type [-Wincompatible-pointer-types] ret &= iptc_insert_entry(chain, fw, rulenum, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:74:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_insert_entry(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ Please specify prototyping behavior for libiptc.xs (see perlxs manual) In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'delete_entry': iptables.c-v1.6.1:802:46: warning: passing argument 4 of 'iptc_delete_entry' from incompatible pointer type [-Wincompatible-pointer-types] ret &= iptc_delete_entry(chain, fw, mask, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:93:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_delete_entry(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ mv libiptc.xsc libiptc.c In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'check_entry': iptables.c-v1.6.1:832:11: warning: implicit declaration of function 'iptc_check_entry'; did you mean 'check_entry'? [-Wimplicit-function-declaration] ret &= iptc_check_entry(chain, fw, mask, handle); ^~~~~~~~~~~~~~~~ check_entry iptables.c-v1.6.1: In function 'for_each_chain4': iptables.c-v1.6.1:849:27: warning: passing argument 1 of 'iptc_first_chain' from incompatible pointer type [-Wincompatible-pointer-types] chain = iptc_first_chain(handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:46:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_first_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:852:27: warning: passing argument 1 of 'iptc_next_chain' from incompatible pointer type [-Wincompatible-pointer-types] chain = iptc_next_chain(handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:47:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_next_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:857:27: warning: passing argument 1 of 'iptc_first_chain' from incompatible pointer type [-Wincompatible-pointer-types] chain = iptc_first_chain(handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:46:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_first_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:861:27: warning: passing argument 1 of 'iptc_next_chain' from incompatible pointer type [-Wincompatible-pointer-types] chain = iptc_next_chain(handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:47:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_next_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:867:9: warning: passing argument 2 of 'iptc_builtin' from incompatible pointer type [-Wincompatible-pointer-types] handle) == 1) ^~~~~~ gcc -c -I/usr/local/include -I./include -I. -D_REENTRANT -D_GNU_SOURCE -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fwrapv -fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -DVERSION=\"0.52\" -DXS_VERSION=\"0.52\" -fPIC "-I/usr/lib64/perl5/CORE" -g -DIPTABLES_VERSION=\"1.4.4\" -DXTABLES_LIBDIR=\"\/usr/libexec/xtables\" -DIPTABLES_VERSION_CODE=\67073 libiptc.c In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:62:5: note: expected 'struct iptc_handle * const' but argument is of type 'struct xtc_handle *' int iptc_builtin(const char *chain, struct iptc_handle *const handle); ^~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'flush_entries4': iptables.c-v1.6.1:885:35: warning: passing argument 2 of 'iptc_flush_entries' from incompatible pointer type [-Wincompatible-pointer-types] return iptc_flush_entries(chain, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:110:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_flush_entries(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'do_command4': iptables.c-v1.6.1:1811:11: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] *handle = iptc_init(*table); ^ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'zero_entries': iptables.c-v1.6.1:897:34: warning: passing argument 2 of 'iptc_zero_entries' from incompatible pointer type [-Wincompatible-pointer-types] return iptc_zero_entries(chain, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:114:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_zero_entries(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ iptables.c-v1.6.1:1815:11: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] *handle = iptc_init(*table); ^ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'delete_chain4': iptables.c-v1.6.1:909:34: warning: passing argument 2 of 'iptc_delete_chain' from incompatible pointer type [-Wincompatible-pointer-types] return iptc_delete_chain(chain, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:122:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_delete_chain(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'list_entries': iptables.c-v1.6.1:1847:45: warning: passing argument 2 of 'iptc_is_chain' from incompatible pointer type [-Wincompatible-pointer-types] if (cs.target && iptc_is_chain(cs.jumpto, *handle)) { ^ iptables.c-v1.6.1:935:31: warning: passing argument 1 of 'iptc_first_chain' from incompatible pointer type [-Wincompatible-pointer-types] for (this = iptc_first_chain(handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:37:5: note: expected 'struct iptc_handle * const' but argument is of type 'struct xtc_handle *' int iptc_is_chain(const char *chain, struct iptc_handle *const handle); ^~~~~~~~~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:46:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_first_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:937:30: warning: passing argument 1 of 'iptc_next_chain' from incompatible pointer type [-Wincompatible-pointer-types] this = iptc_next_chain(handle)) { ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:47:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_next_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1862:32: warning: passing argument 2 of 'iptc_is_chain' from incompatible pointer type [-Wincompatible-pointer-types] || iptc_is_chain(cs.jumpto, *handle))) { ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:37:5: note: expected 'struct iptc_handle * const' but argument is of type 'struct xtc_handle *' int iptc_is_chain(const char *chain, struct iptc_handle *const handle); ^~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:948:29: warning: passing argument 2 of 'iptc_first_rule' from incompatible pointer type [-Wincompatible-pointer-types] i = iptc_first_rule(this, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:50:25: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const struct ipt_entry *iptc_first_rule(const char *chain, ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1873:34: warning: passing argument 2 of 'iptc_is_chain' from incompatible pointer type [-Wincompatible-pointer-types] if (!iptc_is_chain(cs.jumpto, *handle)) ^ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:955:32: warning: passing argument 2 of 'iptc_get_target' from incompatible pointer type [-Wincompatible-pointer-types] iptc_get_target(i, handle), ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:37:5: note: expected 'struct iptc_handle * const' but argument is of type 'struct xtc_handle *' int iptc_is_chain(const char *chain, struct iptc_handle *const handle); ^~~~~~~~~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:58:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_get_target(const struct ipt_entry *e, ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:959:26: warning: passing argument 2 of 'iptc_next_rule' from incompatible pointer type [-Wincompatible-pointer-types] i = iptc_next_rule(i, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:54:25: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const struct ipt_entry *iptc_next_rule(const struct ipt_entry *prev, ^~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1913:51: warning: passing argument 3 of 'iptc_delete_num_entry' from incompatible pointer type [-Wincompatible-pointer-types] ret = iptc_delete_num_entry(chain, rulenum - 1, *handle); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:99:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_delete_num_entry(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1941:43: warning: passing argument 3 of 'iptc_zero_counter' from incompatible pointer type [-Wincompatible-pointer-types] ret = iptc_zero_counter(chain, rulenum, *handle); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:147:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_zero_counter(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1957:44: warning: passing argument 3 of 'iptc_zero_counter' from incompatible pointer type [-Wincompatible-pointer-types] ret = iptc_zero_counter(chain, rulenum, *handle); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:147:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_zero_counter(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1970:44: warning: passing argument 3 of 'iptc_zero_counter' from incompatible pointer type [-Wincompatible-pointer-types] ret = iptc_zero_counter(chain, rulenum, *handle); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:147:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_zero_counter(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1973:34: warning: passing argument 2 of 'iptc_create_chain' from incompatible pointer type [-Wincompatible-pointer-types] ret = iptc_create_chain(chain, *handle); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:118:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_create_chain(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1979:43: warning: passing argument 3 of 'iptc_rename_chain' from incompatible pointer type [-Wincompatible-pointer-types] ret = iptc_rename_chain(chain, newname, *handle); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:126:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_rename_chain(const ipt_chainlabel oldname, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'print_rule4': In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1982:90: warning: passing argument 4 of 'iptc_set_policy' from incompatible pointer type [-Wincompatible-pointer-types] ret = iptc_set_policy(chain, policy, cs.options&OPT_COUNTERS ? &cs.fw.counters : NULL, *handle); ^ iptables.c-v1.6.1:1126:35: warning: passing argument 2 of 'iptc_get_target' from incompatible pointer type [-Wincompatible-pointer-types] target_name = iptc_get_target(e, h); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:131:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_set_policy(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:58:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_get_target(const struct ipt_entry *e, ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1990:16: warning: passing argument 1 of 'dump_entries' from incompatible pointer type [-Wincompatible-pointer-types] dump_entries(*handle); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:166:13: note: expected 'struct iptc_handle * const' but argument is of type 'struct xtc_handle *' extern void dump_entries(struct iptc_handle *const); ^~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'list_rules': iptables.c-v1.6.1:1177:45: warning: passing argument 1 of 'iptc_first_chain' from incompatible pointer type [-Wincompatible-pointer-types] if (!rulenum) for (this = iptc_first_chain(handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:46:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_first_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1179:30: warning: passing argument 1 of 'iptc_next_chain' from incompatible pointer type [-Wincompatible-pointer-types] this = iptc_next_chain(handle)) { ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:47:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_next_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1183:26: warning: passing argument 2 of 'iptc_builtin' from incompatible pointer type [-Wincompatible-pointer-types] if (iptc_builtin(this, handle)) { ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:62:5: note: expected 'struct iptc_handle * const' but argument is of type 'struct xtc_handle *' int iptc_builtin(const char *chain, struct iptc_handle *const handle); ^~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1185:59: warning: passing argument 3 of 'iptc_get_policy' from incompatible pointer type [-Wincompatible-pointer-types] printf("-P %s %s", this, iptc_get_policy(this, &count, handle)); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:65:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_get_policy(const char *chain, ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1194:31: warning: passing argument 1 of 'iptc_first_chain' from incompatible pointer type [-Wincompatible-pointer-types] for (this = iptc_first_chain(handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:46:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_first_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1196:30: warning: passing argument 1 of 'iptc_next_chain' from incompatible pointer type [-Wincompatible-pointer-types] this = iptc_next_chain(handle)) { ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:47:13: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const char *iptc_next_chain(struct iptc_handle *handle); ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1204:29: warning: passing argument 2 of 'iptc_first_rule' from incompatible pointer type [-Wincompatible-pointer-types] e = iptc_first_rule(this, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:50:25: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const struct ipt_entry *iptc_first_rule(const char *chain, ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1209:26: warning: passing argument 2 of 'iptc_next_rule' from incompatible pointer type [-Wincompatible-pointer-types] e = iptc_next_rule(e, handle); ^~~~~~ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:54:25: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' const struct ipt_entry *iptc_next_rule(const struct ipt_entry *prev, ^~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1: In function 'do_command4': iptables.c-v1.6.1:1811:11: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] *handle = iptc_init(*table); ^ iptables.c-v1.6.1:1815:11: warning: assignment from incompatible pointer type [-Wincompatible-pointer-types] *handle = iptc_init(*table); ^ iptables.c-v1.6.1:1847:45: warning: passing argument 2 of 'iptc_is_chain' from incompatible pointer type [-Wincompatible-pointer-types] if (cs.target && iptc_is_chain(cs.jumpto, *handle)) { ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:37:5: note: expected 'struct iptc_handle * const' but argument is of type 'struct xtc_handle *' int iptc_is_chain(const char *chain, struct iptc_handle *const handle); ^~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1862:32: warning: passing argument 2 of 'iptc_is_chain' from incompatible pointer type [-Wincompatible-pointer-types] || iptc_is_chain(cs.jumpto, *handle))) { ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:37:5: note: expected 'struct iptc_handle * const' but argument is of type 'struct xtc_handle *' int iptc_is_chain(const char *chain, struct iptc_handle *const handle); ^~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1873:34: warning: passing argument 2 of 'iptc_is_chain' from incompatible pointer type [-Wincompatible-pointer-types] if (!iptc_is_chain(cs.jumpto, *handle)) ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:37:5: note: expected 'struct iptc_handle * const' but argument is of type 'struct xtc_handle *' int iptc_is_chain(const char *chain, struct iptc_handle *const handle); ^~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1913:51: warning: passing argument 3 of 'iptc_delete_num_entry' from incompatible pointer type [-Wincompatible-pointer-types] ret = iptc_delete_num_entry(chain, rulenum - 1, *handle); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:99:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_delete_num_entry(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1941:43: warning: passing argument 3 of 'iptc_zero_counter' from incompatible pointer type [-Wincompatible-pointer-types] ret = iptc_zero_counter(chain, rulenum, *handle); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:147:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_zero_counter(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1957:44: warning: passing argument 3 of 'iptc_zero_counter' from incompatible pointer type [-Wincompatible-pointer-types] ret = iptc_zero_counter(chain, rulenum, *handle); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:147:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_zero_counter(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1970:44: warning: passing argument 3 of 'iptc_zero_counter' from incompatible pointer type [-Wincompatible-pointer-types] ret = iptc_zero_counter(chain, rulenum, *handle); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:147:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_zero_counter(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1973:34: warning: passing argument 2 of 'iptc_create_chain' from incompatible pointer type [-Wincompatible-pointer-types] ret = iptc_create_chain(chain, *handle); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:118:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_create_chain(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1979:43: warning: passing argument 3 of 'iptc_rename_chain' from incompatible pointer type [-Wincompatible-pointer-types] ret = iptc_rename_chain(chain, newname, *handle); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:126:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_rename_chain(const ipt_chainlabel oldname, ^~~~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1982:90: warning: passing argument 4 of 'iptc_set_policy' from incompatible pointer type [-Wincompatible-pointer-types] ret = iptc_set_policy(chain, policy, cs.options&OPT_COUNTERS ? &cs.fw.counters : NULL, *handle); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:131:5: note: expected 'struct iptc_handle *' but argument is of type 'struct xtc_handle *' int iptc_set_policy(const ipt_chainlabel chain, ^~~~~~~~~~~~~~~ In file included from iptables-detect-version.c:66:0: iptables.c-v1.6.1:1990:16: warning: passing argument 1 of 'dump_entries' from incompatible pointer type [-Wincompatible-pointer-types] dump_entries(*handle); ^ In file included from ../include/iptables.h:6:0, from iptables.c-v1.6.1:39, from iptables-detect-version.c:66: ../include/libiptc/libiptc.h:166:13: note: expected 'struct iptc_handle * const' but argument is of type 'struct xtc_handle *' extern void dump_entries(struct iptc_handle *const); ^~~~~~~~~~~~ In file included from libiptc.xs:5:0: ppport.h:231:0: warning: "PERL_UNUSED_DECL" redefined # define PERL_UNUSED_DECL In file included from libiptc.xs:2:0: /usr/lib64/perl5/CORE/perl.h:323:0: note: this is the location of the previous definition # define PERL_UNUSED_DECL __attribute__unused__ libiptc.xs: In function 'XS_IPTables__libiptc_get_references': libiptc.xs:217:27: warning: pointer targets in passing argument 1 of 'iptc_get_references' differ in signedness [-Wpointer-sign] if (!iptc_get_references(&RETVAL, chain, self)) { ^ In file included from libiptc.xs:7:0: ./include/libiptc/libiptc.h:137:5: note: expected 'unsigned int *' but argument is of type 'int *' int iptc_get_references(unsigned int *ref, ^~~~~~~~~~~~~~~~~~~ libiptc.c: In function 'XS_IPTables__libiptc_list_chains': libiptc.xs:276:12: warning: variable 'sv' set but not used [-Wunused-but-set-variable] SV * sv; ^~ libiptc.c: In function 'XS_IPTables__libiptc_get_policy': libiptc.xs:358:26: warning: variable 'sv' set but not used [-Wunused-but-set-variable] SV * sv; ^~ libiptc.xs: In function 'XS_IPTables__libiptc_iptables_delete_chain': libiptc.xs:441:22: warning: implicit declaration of function 'delete_chain4'; did you mean 'delete_chain'? [-Wimplicit-function-declaration] #define delete_chain delete_chain4 ^ libiptc.xs:443:11: note: in expansion of macro 'delete_chain' RETVAL = delete_chain(chain, 0, self); ^~~~~~~~~~~~ libiptc.xs: In function 'XS_IPTables__libiptc_iptables_do_command': libiptc.xs:497:13: warning: assignment discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] argv[0] = iptables_globals.program_name; ^ libiptc.xs:519:20: warning: implicit declaration of function 'do_command4'; did you mean 'do_command'? [-Wimplicit-function-declaration] */ ^ libiptc.xs:521:11: note: in expansion of macro 'do_command' #define do_command do_command4 ^~~~~~~~~~ libiptc.c: In function 'XS_IPTables__libiptc_set_policy': libiptc.xs:416:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp, "%llu", old_counters.pcnt); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libiptc.xs:419:3: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp, "%llu", old_counters.bcnt); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libiptc.c: In function 'XS_IPTables__libiptc_get_policy': libiptc.xs:367:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp, "%llu", counters.pcnt); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ libiptc.xs:370:6: warning: ignoring return value of 'asprintf', declared with attribute warn_unused_result [-Wunused-result] asprintf(&temp, "%llu", counters.bcnt); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -O2 -Wall -Wunused -I/include -I/usr/include -I../include/ -fPIC -DXTABLES_INTERNAL -g -DIPTABLES_VERSION=\"1.4.4\" -DXTABLES_LIBDIR=\"/usr/libexec/xtables\" -DIPTABLES_VERSION_CODE=\67073 -c -o xshared.o xshared.c cc -O2 -Wall -Wunused -I/include -I/usr/include -I../include/ -fPIC -DXTABLES_INTERNAL -g -DIPTABLES_VERSION=\"1.4.4\" -DXTABLES_LIBDIR=\"/usr/libexec/xtables\" -DIPTABLES_VERSION_CODE=\67073 -c -o xshared.o xshared.c make[1]: Leaving directory '/builddir/build/BUILD/IPTables-libiptc-0.52/iptables' make[1]: Leaving directory '/builddir/build/BUILD/IPTables-libiptc-0.52/iptables' rm -f blib/arch/auto/IPTables/libiptc/libiptc.so gcc -shared -L/usr/lib libiptc.o iptables/iptables.o iptables/xshared.o -o blib/arch/auto/IPTables/libiptc/libiptc.so \ -ldl -lnsl -liptc -lip4tc -lxtables -lperl \ /usr/bin/ld: cannot find -lnsl collect2: error: ld returned 1 exit status make: *** [Makefile:492: blib/arch/auto/IPTables/libiptc/libiptc.so] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.S1aDvC (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.S1aDvC (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff