Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 43727 - net-firewall/iptables (1.2.9) fails to compile
Summary: net-firewall/iptables (1.2.9) fails to compile
Status: RESOLVED DUPLICATE of bug 32734
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-04 09:59 UTC by Chisel Wright
Modified: 2005-07-17 13:06 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chisel Wright 2004-03-04 09:59:05 UTC
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
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2004-03-04 11:57:34 UTC
-O2 -mcpu=i686 with
CHOST="i586-pc-linux-gnu"
 ?!?

please check your system configuration
Comment 2 Wayne Cornish 2004-03-04 15:42:27 UTC
Looks like a dupe of Bug 32778 to me.
Comment 3 Daniel Ahlberg (RETIRED) gentoo-dev 2004-03-09 07:53:41 UTC
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?
Comment 4 Andrew Sterling Hanenkamp 2004-03-13 07:03:12 UTC
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.
Comment 5 Daniel Ahlberg (RETIRED) gentoo-dev 2004-03-18 07:21:57 UTC

*** This bug has been marked as a duplicate of 32734 ***