Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246395 - net-firewall/iptables-1.4.0-r1: build fails with 2.6.26 and gcc-4.3 (?)
Summary: net-firewall/iptables-1.4.0-r1: build fails with 2.6.26 and gcc-4.3 (?)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-11 13:37 UTC by Peter Volkov (RETIRED)
Modified: 2008-12-06 14:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
iptables-1.4.0-2.6.26-kernel.patch (iptables-1.4.0-2.6.26-kernel.patch,280 bytes, patch)
2008-11-11 13:38 UTC, Peter Volkov (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Volkov (RETIRED) gentoo-dev 2008-11-11 13:37:06 UTC
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.
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2008-11-11 13:38:24 UTC
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.
Comment 2 Albert Zeyer 2008-12-05 19:12:11 UTC
Fails for me too, with GCC 4.1.2.
Comment 3 Albert Zeyer 2008-12-05 19:14:51 UTC
My kernel: vanilla-sources-2.6.26.7 (which is stable)
Comment 4 Albert Zeyer 2008-12-05 19:15:14 UTC
The provided patch solves the problem, thanks.
Comment 5 Peter Volkov (RETIRED) gentoo-dev 2008-12-06 14:43:34 UTC
Ok, I've commited patch. In any case it does no harm at all. FIXED.