iptables-1.2.9 fails to build with an optimization level lower than -O1. CFLAGS="-O0 -g pipe" fails, but "-O1 -g -pipe" and "-O2 -g -pipe" work fine. --- Portage 2.0.49-r15 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.0-test9) ================================================================= System uname: 2.6.0-test9 i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.3.12 distcc 2.11.2 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disable d] ccache version 2.3 [enabled] ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O0 -g -pipe" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share /config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/ge neric/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/xdvi/ /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-O0 -g -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs sandbox ccache strict nostrip cvs" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linu x/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="x86 oss avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mpeg nc urses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb gtkhtml gdbm berkdb slang readline arts svga java guile X sdl gpm tcpd pam libwww ssl p ython imlib oggvorbis gnome gtk qt kde motif opengl cdr 3dnow aalib acpi alsa -a pm artswrappersuid bonobo dga dvd esd faad flac gstreamer gtk2 hbci ldap mmx moz illa nas nptl ofx perl pic samba slp tcltk tetex tiff v4l wmf wxwindows xinerama xml xvid" --- --- gcc -O0 -g -pipe -Iinclude -Wall -Wunused -I/usr/src/linux/include -DIPTABLES_VERSION=\"1.2.9\" -DIPT_LIB_DIR=\"/lib/iptables\" -c -o iptables.o iptables.c iptables.c:153: error: redefinition of `ipt_get_target' /usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:294: error: `ipt_get_target' previously defined here make: *** [iptables.o] Error 1 !!! ERROR: net-firewall/iptables-1.2.9 failed. !!! Function src_compile, Line 58, Exitcode 2 !!! (no error message) ---
This it same problem as the missing -O flag, I've modified the ebuild to replace -O0 with -O2.