Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23645 - "-p icmp" breaks if iptables compiled with -fstack-protector
Summary: "-p icmp" breaks if iptables compiled with -fstack-protector
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Matthew Rickard
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-28 08:47 UTC by Jörg Lübbert
Modified: 2004-06-30 10:18 UTC (History)
1 user (show)

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 Jörg Lübbert 2003-06-28 08:47:51 UTC
If you compile iptales-1.2.8-r1 with -fstack-protector, then any action
including -p icmp will not work. For instance "iptables -A INPUT -p icmp
--icmp-type echo-reply -j ACCEPT" will result in the information that
"--icmp-type" is an unknown argument. If you also use -m icmp in the command
above, the output will tell you about some references missing to "__guard".
Compiling iptables without -fstack-protector works as expected

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Matthew Rickard 2003-08-05 10:48:23 UTC
I'm able to replicate this problem with iptables, but I haven't really been able to come up with a good solution to it.  Do you have any ideas on how this can be fixed?  

If a better solution doesn't appear I'll just have the iptables ebuilds strip the -fstack-protector flag.
Comment 2 Matthew Rickard 2003-09-21 19:09:45 UTC
iptables-1.2.8-r1 now strips the "-fstack-protector" flag.  This will resolve this for the time being.  This will probably be more appropriately fixed by moving ProPolice to a shared library.
Comment 3 Anders Hellgren gentoo-dev 2004-06-30 10:18:15 UTC
Is this still an issue? I compiled iptables-1.2.9-r3 with CFLAGS="-march=athlon-xp -O2 -pipe -fstack-protector" and I don't experience these problems.