Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 10424 - iptable 1.2.7a failed to build when not using optimization
Summary: iptable 1.2.7a failed to build when not using optimization
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Highest normal (vote)
Assignee: Daniel Ahlberg (RETIRED)
URL:
Whiteboard:
Keywords:
: 2817 13102 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-11-08 03:27 UTC by Bertrand Baudet
Modified: 2016-01-28 05:58 UTC (History)
3 users (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 Bertrand Baudet 2002-11-08 03:27:57 UTC
iptable 1.2.7a failed to build on my system because I didn't specify any      
compiler optimizations in my CFLAGS ( CFLAGS="-march=pentium3" )  
    
The following piece of code in iptables.c redefine the function and make the   
compilation fail.   
     
#ifndef __OPTIMIZE__    
struct ipt_entry_target *    
ipt_get_target(struct ipt_entry *e)    
{    
        return (void *)e + e->target_offset;    
}    
#endif    
  
Error: 
 iptables.c:147: redefinition of `ipt_get_target' 
/usr/src/linux/include/linux/netfilter_ipv4/ip_tables.h:294: `ipt_get_target' 
previously defined here
Comment 1 SpanKY gentoo-dev 2002-11-08 17:27:59 UTC
*** Bug 2817 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2003-01-02 21:15:21 UTC
*** Bug 13102 has been marked as a duplicate of this bug. ***
Comment 3 Daniel Ahlberg (RETIRED) gentoo-dev 2003-01-07 07:16:18 UTC
Fixed in -r2. Thanks for finding this!