Build of iptables-1.4.0-r1 fails here with the following error: cc -O2 -Wall -Wunused -I"/lib/modules/2.6.26-openvz.git-35f41f1/build"/include -I"/lib/modules/2.6.26-openvz.git-35f41f1/source"/include -Iinclude/ -DIPTABLES_VERSION=\"1.4.0\" -fPIC -o extensions/libxt_sctp_sh.o -c extensions/libxt_sctp.c In file included from extensions/libxt_sctp.c:23: /lib/modules/2.6.26-openvz.git-35f41f1/build/include/linux/netfilter/xt_sctp.h:68: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__sctp_chunkmap_is_clear' /lib/modules/2.6.26-openvz.git-35f41f1/build/include/linux/netfilter/xt_sctp.h:80: error: expected '=', ',', ';', 'asm' or '__attribute__' before '__sctp_chunkmap_is_all_set' extensions/libxt_sctp.c: In function 'print_chunks': extensions/libxt_sctp.c:416: warning: implicit declaration of function '__sctp_chunkmap_is_clear' extensions/libxt_sctp.c:421: warning: implicit declaration of function '__sctp_chunkmap_is_all_set' make: *** [extensions/libxt_sctp_sh.o] Error 1 I'm not sure why I failed to reproduce this bug with gcc-4.1.2 but it's perfectly reproducible with gcc-4.3.2.
Created attachment 171422 [details, diff] iptables-1.4.0-2.6.26-kernel.patch Since kernel 2.6.26 is in process of stabilization now I think it's worth to apply this trivial patch, which fixes this issue.
Fails for me too, with GCC 4.1.2.
My kernel: vanilla-sources-2.6.26.7 (which is stable)
The provided patch solves the problem, thanks.
Ok, I've commited patch. In any case it does no harm at all. FIXED.