emerge -u net-firewall/iptables compiles a number of files then exits with a compile error Reproducible: Always Steps to Reproduce: 1. emerge -u net-firewall/iptables 2. 3. Actual Results: emerge -u net-firewall/iptables compiles a number of files then exits with: ld -shared -o extensions/libipt_NETLINK.so extensions/libipt_NETLINK_sh.o gcc -O2 -mcpu=i686 -pipe -Iinclude -Wall -Wunused -I/usr/src/linux/include -DIPTABLES_VERSION=\"1.2.9\" -fPIC -o extensions/libipt_ROUTE_sh.o -c extensions/libipt_ROUTE.c extensions/libipt_ROUTE.c: In function `init': extensions/libipt_ROUTE.c:51: error: structure has no member named `flags' extensions/libipt_ROUTE.c: In function `parse': extensions/libipt_ROUTE.c:138: error: structure has no member named `flags' extensions/libipt_ROUTE.c:138: error: `IPT_ROUTE_CONTINUE' undeclared (first use in this function) extensions/libipt_ROUTE.c:138: error: (Each undeclared identifier is reported only once extensions/libipt_ROUTE.c:138: error: for each function it appears in.) extensions/libipt_ROUTE.c: In function `print': extensions/libipt_ROUTE.c:186: error: structure has no member named `flags' extensions/libipt_ROUTE.c:186: error: `IPT_ROUTE_CONTINUE' undeclared (first use in this function) extensions/libipt_ROUTE.c: In function `save': extensions/libipt_ROUTE.c:209: error: structure has no member named `flags' extensions/libipt_ROUTE.c:209: error: `IPT_ROUTE_CONTINUE' undeclared (first use in this function) make: *** [extensions/libipt_ROUTE_sh.o] Error 1 !!! ERROR: net-firewall/iptables-1.2.9 failed. !!! Function src_compile, Line 53, Exitcode 2 !!! (no error message) CHOST="i586-pc-linux-gnu" #CFLAGS="-mcpu=athlon-xp -O3 -pipe" #CFLAGS="-march=pentium3 -O3 -pipe" # If you set a CFLAGS above, then this line will set your default C++ flags to CXXFLAGS="${CFLAGS}" Expected Results: compiled iptables and installed it
-O2 -mcpu=i686 with CHOST="i586-pc-linux-gnu" ?!? please check your system configuration
Looks like a dupe of Bug 32778 to me.
This is caused by patches in kernel that are incompatible with iptables. If kernel is patched then iptables needs to be patched too. What kernel are installed and is Bug 32778 relevant?
I also have the same problem using standard gentoo-sources: gcc -O3 -march=athlon-xp -pipe -Iinclude -Wall -Wunused -I/usr/src/linux/include -DIPTABLES_VERSION=\"1.2.9\" -fPIC -o extensions/libipt_ROUTE_sh.o -c extensions/libipt_ROUTE.c extensions/libipt_ROUTE.c: In function `init': extensions/libipt_ROUTE.c:51: error: structure has no member named `flags' extensions/libipt_ROUTE.c: In function `parse': extensions/libipt_ROUTE.c:138: error: structure has no member named `flags' extensions/libipt_ROUTE.c:138: error: `IPT_ROUTE_CONTINUE' undeclared (first use in this function) extensions/libipt_ROUTE.c:138: error: (Each undeclared identifier is reported only once extensions/libipt_ROUTE.c:138: error: for each function it appears in.) extensions/libipt_ROUTE.c: In function `print': extensions/libipt_ROUTE.c:186: error: structure has no member named `flags' extensions/libipt_ROUTE.c:186: error: `IPT_ROUTE_CONTINUE' undeclared (first use in this function) extensions/libipt_ROUTE.c: In function `save': extensions/libipt_ROUTE.c:209: error: structure has no member named `flags' extensions/libipt_ROUTE.c:209: error: `IPT_ROUTE_CONTINUE' undeclared (first use in this function) make: *** [extensions/libipt_ROUTE_sh.o] Error 1 !!! ERROR: net-firewall/iptables-1.2.9 failed. !!! Function src_compile, Line 53, Exitcode 2 !!! (no error message) Linux lucius 2.4.20-gentoo-r7 #3 Thu Mar 4 19:23:22 CST 2004 i686 AMD Athlon(tm) XP 2800+ AuthenticAMD GNU/Linux CHOST="i686-pc-linux-gnu" # For optimal performance, enable a CFLAGS setting appropriate for your CPU #CFLAGS="-mcpu=athlon-xp -O3 -pipe" CFLAGS="-O3 -march=athlon-xp -pipe" # If you set a CFLAGS above, then this line will set your default C++ flags to # the same settings. If you don't set CFLAGS above, then comment this line out. CXXFLAGS="${CFLAGS}" I'm not using the latest kernel in the 2.4 series due to some problems with my NForce2 drivers. This one works, so I'm sticking to it for now.
*** This bug has been marked as a duplicate of 32734 ***