net-firewall/iptables-1.2.9-r1 and 1.2.9 won't compile.
Calculating dependencies ...done! >>> emerge (1 of 1) net-firewall/iptables-1.2.9-r1 to / >>> md5 src_uri ;-) iptables-1.2.9.tar.bz2 >>> Unpacking source... >>> Unpacking iptables-1.2.9.tar.bz2 to /var/tmp/portage/iptables-1.2.9-r1/work * Applying various patches (bugfixes/updates)... * 01_all_grsecurity.patch.bz2... [ ok ] * 02_all_imq.patch.bz2... [ ok ] * 04_all_install_ipv6_apps.patch.bz2... [ ok ] * 05_all_install_all_dev_files.patch.bz2... [ ok ] * 06_all_l7.patch.bz2... [ ok ] * Done with patching >>> Source unpacked. Making dependencies: please wait... Extensions found: IPv4:recent IPv6:ah IPv6:esp IPv6:frag IPv6:ipv6header IPv6:hbh IPv6:dst IPv6:rt gcc -march=athlon-xp -O2 -pipe -s -Iinclude -Wall -Wunused -I/usr/src/linux/include -DIPTABLES_VERS ION=\"1.2.9\" -fPIC -o extensions/libipt_stealth_sh.o -c extensions/libipt_stealth.c In file included from include/libiptc/libiptc.h:6, from include/iptables.h:5, from extensions/libipt_stealth.c:10: /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:255: warning: no semicolon at end of struct or union /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:255: error: syntax error before '*' token /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:259: error: syntax error before '}' token /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning: type defaults to `int' in declaration of `DECLARE_MUTEX' /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning: parameter names (without types) in function declaration /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning: `DECLARE_MUTEX' declared `static' but never defined make: *** [extensions/libipt_stealth_sh.o] B
Calculating dependencies ...done! >>> emerge (1 of 1) net-firewall/iptables-1.2.9-r1 to / >>> md5 src_uri ;-) iptables-1.2.9.tar.bz2 >>> Unpacking source... >>> Unpacking iptables-1.2.9.tar.bz2 to /var/tmp/portage/iptables-1.2.9-r1/work * Applying various patches (bugfixes/updates)... * 01_all_grsecurity.patch.bz2... [ ok ] * 02_all_imq.patch.bz2... [ ok ] * 04_all_install_ipv6_apps.patch.bz2... [ ok ] * 05_all_install_all_dev_files.patch.bz2... [ ok ] * 06_all_l7.patch.bz2... [ ok ] * Done with patching >>> Source unpacked. Making dependencies: please wait... Extensions found: IPv4:recent IPv6:ah IPv6:esp IPv6:frag IPv6:ipv6header IPv6:hbh IPv6:dst IPv6:rt gcc -march=athlon-xp -O2 -pipe -s -Iinclude -Wall -Wunused -I/usr/src/linux/include -DIPTABLES_VERS ION=\"1.2.9\" -fPIC -o extensions/libipt_stealth_sh.o -c extensions/libipt_stealth.c In file included from include/libiptc/libiptc.h:6, from include/iptables.h:5, from extensions/libipt_stealth.c:10: /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:255: warning: no semicolon at end of struct or union /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:255: error: syntax error before '*' token /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:259: error: syntax error before '}' token /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning: type defaults to `int' in declaration of `DECLARE_MUTEX' /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning: parameter names (without types) in function declaration /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:339: warning: `DECLARE_MUTEX' declared `static' but never defined make: *** [extensions/libipt_stealth_sh.o] B³±d 1 !!! ERROR: net-firewall/iptables-1.2.9-r1 failed. !!! Function src_compile, Line 64, Exitcode 2 !!! (no error message)
Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-rc3-mm1) ================================================================= System uname: 2.6.7-rc3-mm1 i686 AMD Duron(tm) Processor Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -O2 -pipe -s" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -O2 -pipe -s" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache cvs sandbox" GENTOO_MIRRORS="http://src.gentoo.pl/ http://gentoo.oregonstate.edu/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync2.pl.gentoo.org/gentoo-portage/" USE="3dnow X acpi alsa apache2 apm avi berkdb cdr crypt fbcon foomaticdb gdbm gif gpm gtk2 joystick jpeg libg++ libwww mad maildir mmx ncurses nls nptl oss pam pic png python readline scanner sse ssl tcltk tcpd truetype unicode vim-with-x x86 xml2 xv zlib"
Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.4.20040605-r1, 2.6.5) ================================================================= System uname: 2.6.5 i686 AMD Athlon(tm) XP 2400+ Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=athlon-xp -w -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/sha re/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=athlon-xp -w -pipe" DISTDIR="/portage/distfiles" FEATURES="autoaddcvs ccache digest sandbox" GENTOO_MIRRORS="http://gentoo.prz.rzeszow.pl/" MAKEOPTS="-j2" PKGDIR="/portage/packages" PORTAGE_TMPDIR="/portage/tmp" PORTDIR="/portage/portage" PORTDIR_OVERLAY="/portage/local/portage" SYNC="rsync://rsync3.pl.gentoo.org/gentoo-portage" USE="3dnow X alsa apache2 avi berkdb cdr crypt cups dga encode foomaticdb gdbm gif gpm gtk2 imlib ja va jpeg libg++ libwww linguas_pl mad maildir mikmod mmx mpeg ncurses nls nptl oggvorbis opengl oss p am pdflib perl pic png ppds python quicktime readline sdl slang spell sse ssl tcltk tcpd truetype us b x86 xml xml2 xv zlib"
Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7-gentoo-r5) ================================================================= System uname: 2.6.7-gentoo-r5 i686 Intel(R) Celeron(R) CPU 2.40GHz Gentoo Base System version 1.4.16 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -march=pentium4 -mfpmath=sse -msse2 -mmmx -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -mfpmath=sse -msse2 -mmmx -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://194.83.57.11/sites/www.ibiblio.org/gentoo/ http://212.219.56.131/sites/www.ibiblio.org/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X acpi alsa arts avi berkdb cdr crypt cups dvd encode esd foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png ppds python quicktime readline samba sdl slang spell ssl svga tcpd truetype usb x86 xml2 xmms xv zlib"
Compilation fails because of the __user and __kernel attributes for pointers in the 2.6.x tree. iptables doesn't appear to include linux/compiler.h Installing sys-kernel/linux-headers-2.6.7 does not solve the problem.
iptables-1.2.9-r1 doesn't work here either... root@peter-computer # emerge info Portage 2.0.50-r8 (default-x86-2004.0, gcc-3.3.3, glibc-2.3.3.20040420-r0, 2.6.7) ================================================================= System uname: 2.6.7 i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.3.13 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=athlon-tbird -fprefetch-loop-arrays -ftracer -fomit-frame-pointer -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -march=athlon-tbird -fprefetch-loop-arrays -ftracer -fomit-frame-pointer -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="3dnow X alsa apache2 apm arts avi berkdb bonobo cdr crypt cups directfb doc emacs encode erandom esd f77 fbcon flac foomaticdb gcj gdbm gif gnome gnutls gpm gtk gtk2 gtkhtml guile imlib ipv6 java jpeg kde libg++ libwww mad mikmod mmx motif mozilla mpeg mysql ncurses nls nptl objc oggvorbis opengl oss pcre pdflib perl pic pie png ppds python qt quicktime readline ruby sdl slang spell ssl svg svga tcltk tcpd tetex tiff truetype usb wxwindows x86 xml2 xmms xv zlib"
As it stated in https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=214, the patch 03_linux-2.6.5.patch applied to 2.6.7 kernel will fix this bug.
Fixed in 1.2.9-r2 soon unmasked in CVS.