linuxtest:~/iptables-1.3.6.0debian1# patch -p1 < iptables-layer7-2.9.patch
patching file extensions/.layer7-test
patching file extensions/libipt_layer7.c
patching file extensions/libipt_layer7.man
linuxtest:~/iptables-1.3.6.0debian1# dpkg-buildpackage > ~/result
ip6tables.c:1197: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:1198: error: âstruct ip6tables_matchâ has no member named âmflagsâ
ip6tables.c: In function âregister_target6â:
ip6tables.c:1205: warning: incompatible implicit declaration of built-in function âfprintfâ
ip6tables.c:1205: error: âstderrâ undeclared (first use in this function)
ip6tables.c:1207: warning: incompatible implicit declaration of built-in function âexitâ
ip6tables.c:1211: warning: incompatible implicit declaration of built-in function âfprintfâ
ip6tables.c:1213: warning: incompatible implicit declaration of built-in function âexitâ
ip6tables.c:1216: error: âstruct ip6tables_targetâ has no member named âsizeâ
ip6tables.c:1216: error: âstruct ip6tables_targetâ has no member named âsizeâ
ip6tables.c:1217: warning: incompatible implicit declaration of built-in function âfprintfâ
ip6tables.c:1218: error: âstruct ip6tables_targetâ has no member named âsizeâ
ip6tables.c:1219: warning: incompatible implicit declaration of built-in function âexitâ
ip6tables.c:1225: error: âstruct ip6tables_targetâ has no member named âtâ
ip6tables.c:1226: error: âstruct ip6tables_targetâ has no member named âtflagsâ
ip6tables.c: At top level:
ip6tables.c:1230: error: expected â)â before ânumberâ
ip6tables.c: In function âprint_headerâ:
ip6tables.c:1260: warning: incompatible implicit declaration of built-in function âprintfâ
ip6tables.c:1264: warning: implicit declaration of function âfputcâ
ip6tables.c:1264: error: âstdoutâ undeclared (first use in this function)
ip6tables.c:1265: warning: implicit declaration of function âprint_numâ
ip6tables.c:1265: error: âstruct xt_countersâ has no member named âpcntâ
ip6tables.c:1266: warning: implicit declaration of function âfputsâ
ip6tables.c:1267: error: âstruct xt_countersâ has no member named âbcntâ
ip6tables.c: In function âprint_matchâ:
ip6tables.c:1310: error: âconst struct <anonymous>â has no member named ânameâ
ip6tables.c:1313: error: âstruct ip6tables_matchâ has no member named âprintâ
ip6tables.c:1314: error: âstruct ip6tables_matchâ has no member named âprintâ
ip6tables.c:1316: warning: incompatible implicit declaration of built-in function âprintfâ
ip6tables.c:1318: error: âconst struct <anonymous>â has no member named ânameâ
ip6tables.c:1319: warning: incompatible implicit declaration of built-in function âprintfâ
ip6tables.c:1319: error: âconst struct <anonymous>â has no member named ânameâ
ip6tables.c: In function âprint_firewallâ:
ip6tables.c:1335: error: âu_int8_tâ undeclared (first use in this function)
ip6tables.c:1335: error: expected â;â before âflagsâ
ip6tables.c:1336: error: âBUFSIZâ undeclared (first use in this function)
ip6tables.c:1344: error: âflagsâ undeclared (first use in this function)
ip6tables.c:1344: error: âconst struct ip6t_ip6â has no member named âflagsâ
ip6tables.c:1347: warning: incompatible implicit declaration of built-in function âprintfâ
ip6tables.c:1350: error: âconst struct ip6t_entryâ has no member named âcountersâ
ip6tables.c:1351: error: âconst struct ip6t_entryâ has no member named âcountersâ
ip6tables.c:1357: error: âconst struct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:1357: error: âstdoutâ undeclared (first use in this function)
ip6tables.c:1359: error: âconst struct ip6t_ip6â has no member named âprotoâ
ip6tables.c:1359: warning: initialization makes pointer from integer without a cast
ip6tables.c:1363: error: âconst struct ip6t_ip6â has no member named âprotoâ
ip6tables.c:1377: error: âconst struct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:1384: warning: incompatible implicit declaration of built-in function âstrcatâ
ip6tables.c:1386: warning: incompatible implicit declaration of built-in function âstrcatâ
ip6tables.c:1390: error: âconst struct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:1375: warning: unused variable âifaceâ
ip6tables.c:1404: error: âconst struct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:1405: error: âin6addr_anyâ undeclared (first use in this function)
ip6tables.c:1410: warning: incompatible implicit declaration of built-in function âsprintfâ
ip6tables.c:1413: warning: incompatible implicit declaration of built-in function âstrcatâ
ip6tables.c:1417: error: âconst struct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:1423: warning: incompatible implicit declaration of built-in function âsprintfâ
ip6tables.c:1426: warning: incompatible implicit declaration of built-in function âstrcatâ
ip6tables.c:1433: error: âconst struct ip6t_entryâ has no member named âtarget_offsetâ
ip6tables.c:1433: error: âunion <anonymous>â has no member named âmatch_sizeâ
ip6tables.c:1436: error: âstruct ip6tables_targetâ has no member named âprintâ
ip6tables.c:1438: error: âstruct ip6tables_targetâ has no member named âprintâ
ip6tables.c:1439: error: âconst union <anonymous>â has no member named âtarget_sizeâ
ip6tables.c:1441: error: âconst union <anonymous>â has no member named âtarget_sizeâ
ip6tables.c:1336: warning: unused variable âbufâ
ip6tables.c: In function âprint_firewall_lineâ:
ip6tables.c:1454: error: âstruct <anonymous>â has no member named ânameâ
ip6tables.c: In function âmake_delete_maskâ:
ip6tables.c:1537: error: âstruct ip6tables_matchâ has no member named âsizeâ
ip6tables.c:1541: error: âstruct ip6tables_targetâ has no member named âsizeâ
ip6tables.c:1541: warning: assignment makes pointer from integer without a cast
ip6tables.c:1543: warning: incompatible implicit declaration of built-in function âmemsetâ
ip6tables.c:1549: error: âstruct ip6tables_matchâ has no member named âuserspacesizeâ
ip6tables.c:1550: error: âstruct ip6tables_matchâ has no member named âsizeâ
ip6tables.c:1555: error: âstruct ip6tables_targetâ has no member named âuserspacesizeâ
ip6tables.c: In function âfor_each_chainâ:
ip6tables.c:1605: warning: assignment makes pointer from integer without a cast
ip6tables.c:1609: warning: incompatible implicit declaration of built-in function âstrcpyâ
ip6tables.c: In function âflush_entriesâ:
ip6tables.c:1634: warning: incompatible implicit declaration of built-in function âfprintfâ
ip6tables.c:1634: error: âstdoutâ undeclared (first use in this function)
ip6tables.c: In function âzero_entriesâ:
ip6tables.c:1646: warning: incompatible implicit declaration of built-in function âfprintfâ
ip6tables.c:1646: error: âstdoutâ undeclared (first use in this function)
ip6tables.c: In function âdelete_chainâ:
ip6tables.c:1658: warning: incompatible implicit declaration of built-in function âfprintfâ
ip6tables.c:1658: error: âstdoutâ undeclared (first use in this function)
ip6tables.c: In function âlist_entriesâ:
ip6tables.c:1694: warning: incompatible implicit declaration of built-in function âprintfâ
ip6tables.c:1711: error: âerrnoâ undeclared (first use in this function)
ip6tables.c:1711: error: âENOENTâ undeclared (first use in this function)
ip6tables.c: In function âget_modprobeâ:
ip6tables.c:1721: warning: implicit declaration of function âopenâ
ip6tables.c:1721: error: âO_RDONLYâ undeclared (first use in this function)
ip6tables.c:1725: warning: incompatible implicit declaration of built-in function âmallocâ
ip6tables.c:1727: warning: incompatible implicit declaration of built-in function âmemsetâ
ip6tables.c:1728: warning: implicit declaration of function âreadâ
ip6tables.c:1732: warning: incompatible implicit declaration of built-in function âstrlenâ
ip6tables.c: In function âip6tables_insmodâ:
ip6tables.c:1757: warning: implicit declaration of function âforkâ
ip6tables.c:1762: warning: implicit declaration of function âexecvâ
ip6tables.c:1765: warning: incompatible implicit declaration of built-in function âexitâ
ip6tables.c:1770: warning: implicit declaration of function âwaitâ
ip6tables.c:1774: warning: implicit declaration of function âWIFEXITEDâ
ip6tables.c:1774: warning: implicit declaration of function âWEXITSTATUSâ
ip6tables.c: In function âgenerate_entryâ:
ip6tables.c:1790: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:1792: error: âunion <anonymous>â has no member named âtarget_sizeâ
ip6tables.c:1792: warning: assignment makes pointer from integer without a cast
ip6tables.c:1794: error: âstruct ip6t_entryâ has no member named âtarget_offsetâ
ip6tables.c:1795: error: âstruct ip6t_entryâ has no member named ânext_offsetâ
ip6tables.c:1795: error: âunion <anonymous>â has no member named âtarget_sizeâ
ip6tables.c:1799: warning: incompatible implicit declaration of built-in function âmemcpyâ
ip6tables.c:1799: error: âstruct ip6t_entryâ has no member named âelemsâ
ip6tables.c:1799: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:1799: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:1800: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:1802: warning: incompatible implicit declaration of built-in function âmemcpyâ
ip6tables.c:1802: error: âstruct ip6t_entryâ has no member named âelemsâ
ip6tables.c:1802: error: âunion <anonymous>â has no member named âtarget_sizeâ
ip6tables.c: In function âclear_rule_matchesâ:
ip6tables.c:1813: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:1814: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:1815: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c: At top level:
ip6tables.c:1828: error: expected declaration specifiers or â...â before âu_int8_tâ
ip6tables.c: In function âset_revisionâ:
ip6tables.c:1833: error: ârevisionâ undeclared (first use in this function)
ip6tables.c: In function âdo_command6â:
ip6tables.c:1860: warning: incompatible implicit declaration of built-in function âmemsetâ
ip6tables.c:1864: error: âoptindâ undeclared (first use in this function)
ip6tables.c:1869: error: âstruct ip6tables_matchâ has no member named âmflagsâ
ip6tables.c:1872: error: âstruct ip6tables_targetâ has no member named âtflagsâ
ip6tables.c:1873: error: âstruct ip6tables_targetâ has no member named âusedâ
ip6tables.c:1878: error: âopterrâ undeclared (first use in this function)
ip6tables.c:1880: warning: implicit declaration of function âgetopt_longâ
ip6tables.c:1890: error: âoptargâ undeclared (first use in this function)
ip6tables.c:2019: error: âstruct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:2020: error: too many arguments to function âset_optionâ
ip6tables.c:2024: warning: implicit declaration of function âtolowerâ
ip6tables.c:2027: error: âstruct ip6t_ip6â has no member named âprotoâ
ip6tables.c:2027: warning: implicit declaration of function âparse_protocolâ
ip6tables.c:2028: error: âstruct ip6t_ip6â has no member named âflagsâ
ip6tables.c:2030: error: âstruct ip6t_ip6â has no member named âprotoâ
ip6tables.c:2031: error: âstruct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:2035: error: âstruct ip6t_ip6â has no member named âprotoâ
ip6tables.c:2036: warning: implicit declaration of function âis_exthdrâ
ip6tables.c:2036: error: âstruct ip6t_ip6â has no member named âprotoâ
ip6tables.c:2037: warning: incompatible implicit declaration of built-in function âprintfâ
ip6tables.c:2043: error: âstruct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:2044: error: too many arguments to function âset_optionâ
ip6tables.c:2050: error: âstruct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:2051: error: too many arguments to function âset_optionâ
ip6tables.c:2056: error: âstruct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:2057: error: too many arguments to function âset_optionâ
ip6tables.c:2063: error: âsize_tâ undeclared (first use in this function)
ip6tables.c:2063: error: expected â;â before âsizeâ
ip6tables.c:2065: error: âsizeâ undeclared (first use in this function)
ip6tables.c:2066: error: âstruct ip6tables_targetâ has no member named âsizeâ
ip6tables.c:2068: error: âstruct ip6tables_targetâ has no member named âtâ
ip6tables.c:2069: error: âstruct ip6tables_targetâ has no member named âtâ
ip6tables.c:2070: warning: incompatible implicit declaration of built-in function âstrcpyâ
ip6tables.c:2070: error: âstruct ip6tables_targetâ has no member named âtâ
ip6tables.c:2071: error: âstruct ip6tables_targetâ has no member named âinitâ
ip6tables.c:2072: error: âstruct ip6tables_targetâ has no member named âinitâ
ip6tables.c:2072: error: âstruct ip6tables_targetâ has no member named âtâ
ip6tables.c:2073: error: âstruct ip6tables_targetâ has no member named âextra_optsâ
ip6tables.c:2073: error: âstruct ip6tables_targetâ has no member named âoption_offsetâ
ip6tables.c:2080: error: âstruct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:2081: error: too many arguments to function âset_optionâ
ip6tables.c:2089: error: âstruct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:2090: error: too many arguments to function âset_optionâ
ip6tables.c:2099: error: âstruct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:2099: error: too many arguments to function âset_optionâ
ip6tables.c:2104: error: expected â;â before âsizeâ
ip6tables.c:2112: error: âstruct ip6tables_matchâ has no member named âsizeâ
ip6tables.c:2113: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:2114: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:2115: warning: incompatible implicit declaration of built-in function âstrcpyâ
ip6tables.c:2115: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:2116: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:2116: error: âstruct ip6tables_matchâ has no member named ârevisionâ
ip6tables.c:2116: error: too many arguments to function âset_revisionâ
ip6tables.c:2117: error: âstruct ip6tables_matchâ has no member named âinitâ
ip6tables.c:2118: error: âstruct ip6tables_matchâ has no member named âinitâ
ip6tables.c:2118: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:2121: error: âstruct ip6tables_matchâ has no member named âextra_optsâ
ip6tables.c:2121: error: âstruct ip6tables_matchâ has no member named âoption_offsetâ
ip6tables.c:2126: error: âstruct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:2127: error: too many arguments to function âset_optionâ
ip6tables.c:2138: error: âstruct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:2139: error: too many arguments to function âset_optionâ
ip6tables.c:2148: warning: incompatible implicit declaration of built-in function âexitâ
ip6tables.c:2151: error: âstruct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:2152: error: too many arguments to function âset_optionâ
ip6tables.c:2161: error: âstruct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:2162: error: too many arguments to function âset_optionâ
ip6tables.c:2172: warning: implicit declaration of function âsscanfâ
ip6tables.c:2172: warning: incompatible implicit declaration of built-in function âsscanfâ
ip6tables.c:2172: error: âstruct ip6t_entryâ has no member named âcountersâ
ip6tables.c:2177: error: âstruct ip6t_entryâ has no member named âcountersâ
ip6tables.c:2200: error: âstruct ip6tables_targetâ has no member named âparseâ
ip6tables.c:2200: error: âstruct ip6tables_targetâ has no member named âoption_offsetâ
ip6tables.c:2202: error: âstruct ip6tables_targetâ has no member named âtflagsâ
ip6tables.c:2203: error: âstruct ip6tables_targetâ has no member named âtâ
ip6tables.c:2207: error: âstruct ip6tables_matchâ has no member named âparseâ
ip6tables.c:2207: error: âstruct ip6tables_matchâ has no member named âoption_offsetâ
ip6tables.c:2209: error: âstruct ip6tables_matchâ has no member named âmflagsâ
ip6tables.c:2212: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:2251: error: expected â;â before âsizeâ
ip6tables.c:2256: error: âstruct ip6tables_matchâ has no member named âsizeâ
ip6tables.c:2258: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:2259: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:2260: warning: incompatible implicit declaration of built-in function âstrcpyâ
ip6tables.c:2260: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:2261: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:2262: error: âstruct ip6tables_matchâ has no member named ârevisionâ
ip6tables.c:2262: error: too many arguments to function âset_revisionâ
ip6tables.c:2263: error: âstruct ip6tables_matchâ has no member named âinitâ
ip6tables.c:2264: error: âstruct ip6tables_matchâ has no member named âinitâ
ip6tables.c:2264: error: âstruct ip6tables_matchâ has no member named âmâ
ip6tables.c:2267: error: âstruct ip6tables_matchâ has no member named âextra_optsâ
ip6tables.c:2267: error: âstruct ip6tables_matchâ has no member named âoption_offsetâ
ip6tables.c:2283: error: âstruct ip6tables_matchâ has no member named âfinal_checkâ
ip6tables.c:2283: error: âstruct ip6tables_matchâ has no member named âmflagsâ
ip6tables.c:2286: error: âstruct ip6tables_targetâ has no member named âfinal_checkâ
ip6tables.c:2286: error: âstruct ip6tables_targetâ has no member named âtflagsâ
ip6tables.c:2315: error: âstruct ip6t_ip6â has no member named âinvflagsâ
ip6tables.c:2325: warning: incompatible implicit declaration of built-in function âstrlenâ
ip6tables.c:2341: error: âerrnoâ undeclared (first use in this function)
ip6tables.c:2368: warning: incompatible implicit declaration of built-in function âprintfâ
ip6tables.c:2371: error: âstruct ip6tables_targetâ has no member named âtâ
ip6tables.c:2372: error: âstruct ip6tables_targetâ has no member named âtâ
ip6tables.c:2382: error: expected â;â before âsizeâ
ip6tables.c:2388: error: âstruct ip6tables_targetâ has no member named âsizeâ
ip6tables.c:2389: error: âstruct ip6tables_targetâ has no member named âtâ
ip6tables.c:2390: error: âstruct ip6tables_targetâ has no member named âtâ
ip6tables.c:2391: warning: incompatible implicit declaration of built-in function âstrcpyâ
ip6tables.c:2391: error: âstruct ip6tables_targetâ has no member named âtâ
ip6tables.c:2392: error: âstruct ip6tables_targetâ has no member named âinitâ
ip6tables.c:2393: error: âstruct ip6tables_targetâ has no member named âinitâ
ip6tables.c:2393: error: âstruct ip6tables_targetâ has no member named âtâ
ip6tables.c:2403: error: âstruct ip6tables_targetâ has no member named âtâ
ip6tables.c:2404: error: âstruct ip6tables_targetâ has no member named âtâ
make[1]: *** [ip6tables.o] Error 1
make: *** [build] Error 2
Fichier result:
dpkg-buildpackage: source package is iptables
dpkg-buildpackage: source version is 1.3.6.0debian1-5
dpkg-buildpackage: source changed by Laurence J. Lane <ljlane@debian.org>
dpkg-buildpackage: host architecture i386
dpkg-buildpackage: source version without epoch 1.3.6.0debian1-5
dh_testdir
rm -rf /root/iptables-1.3.6.0debian1/debian/build
dh_clean
dpkg-source: building iptables using existing iptables_1.3.6.0debian1.orig.tar.gz
dpkg-source: building iptables in iptables_1.3.6.0debian1-5.diff.gz
dpkg-source: building iptables in iptables_1.3.6.0debian1-5.dsc
install -d /root/iptables-1.3.6.0debian1/debian/build/stamp
cp -a iptables /root/iptables-1.3.6.0debian1/debian/build/iptables_profectio
cp -a linux /root/iptables-1.3.6.0debian1/debian/build/kernel_profectio
touch /root/iptables-1.3.6.0debian1/debian/build/stamp/prep
install -d /root/iptables-1.3.6.0debian1/debian/build/docs
cd /root/iptables-1.3.6.0debian1/debian/build/docs; sgml2html /root/iptables-1.3.6.0debian1/howtos/NAT-HOWTO.sgml; sgml2html /root/iptables-1.3.6.0debian1/howtos/netfilter-extensions-HOWTO.sgml; sgml2html /root/iptables-1.3.6.0debian1/howtos/netfilter-hacking-HOWTO.sgml; sgml2html /root/iptables-1.3.6.0debian1/howtos/packet-filtering-HOWTO.sgml;
Processing file /root/iptables-1.3.6.0debian1/howtos/NAT-HOWTO.sgml
Processing file /root/iptables-1.3.6.0debian1/howtos/netfilter-extensions-HOWTO.sgml
Processing file /root/iptables-1.3.6.0debian1/howtos/netfilter-hacking-HOWTO.sgml
Processing file /root/iptables-1.3.6.0debian1/howtos/packet-filtering-HOWTO.sgml
touch /root/iptables-1.3.6.0debian1/debian/build/stamp/howtos
dh_testdir
/usr/bin/make -C /root/iptables-1.3.6.0debian1/debian/build/iptables_profectio all ip6tables-save ip6tables-restore iptables.8 ip6tables.8 LIBDIR=/lib KERNEL_DIR=/root/iptables-1.3.6.0debian1/debian/build/kernel_profectio
make[1]: Entering directory `/root/iptables-1.3.6.0debian1/debian/build/iptables_profectio'
Making dependencies: please wait...
make[1]: Leaving directory `/root/iptables-1.3.6.0debian1/debian/build/iptables_profectio'
make[1]: Entering directory `/root/iptables-1.3.6.0debian1/debian/build/iptables_profectio'
Unable to resolve dependency on assert.h. Try 'make clean'.
Unable to resolve dependency on getopt.h. Try 'make clean'.
Unable to resolve dependency on stdio.h. Try 'make clean'.
cc -O2 -Wall -Wunused -I/root/iptables-1.3.6.0debian1/debian/build/kernel_profectio/include -Iinclude/ -DIPTABLES_VERSION=\"1.3.6\" -D_UNKNOWN_KERNEL_POINTER_SIZE -DIP6T_LIB_DIR=\"/lib/iptables\" -c -o ip6tables.o ip6tables.c
make[1]: Leaving directory `/root/iptables-1.3.6.0debian1/debian/build/iptables_profectio'