netdev
[Top] [All Lists]

Re: 2.6.7-bk6 fails module compile -- iptable_raw.c

To: yoshfuji@xxxxxxxxxxxxxx (YOSHIFUJI Hideaki / [?iso-2022-jp?])
Subject: Re: 2.6.7-bk6 fails module compile -- iptable_raw.c
From: Pete Clements <clem@xxxxxxxxxxxxxxxxxxxxx>
Date: Wed, 23 Jun 2004 10:45:00 -0400 (EDT)
Cc: davem@xxxxxxxxxx, clem@xxxxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxx, netfilter-devel@xxxxxxxxxxxxxxxxxxx
In-reply-to: <20040623.224203.122414746.yoshfuji@xxxxxxxxxxxxxx> from "YOSHIFUJI Hideaki / [?iso-2022-jp?]" at "Jun 23, 2004 10:42: 3 pm"
Sender: netdev-bounce@xxxxxxxxxxx
Patches and compiles. Thanks.

--
Pete Clements

Quoting YOSHIFUJI Hideaki / [?iso-2022-jp?]
  > In article <200406231256.IAA28505@xxxxxxxxxxxxxxxxxxxxx> (at Wed, 23 Jun 
2004 08:56:08 -0400 (EDT)), Pete Clements <clem@xxxxxxxxxxxxxxxxxxxxx> says:
  > 
  > > FYI:  (gcc version 2.95.4)
  > > 
  > >   CC [M]  net/ipv4/netfilter/iptable_raw.o
  > > net/ipv4/netfilter/iptable_raw.c:57: unknown field `target_size' 
specified in initializer
  > > net/ipv4/netfilter/iptable_raw.c:57: warning: missing braces around 
initializer
  > > net/ipv4/netfilter/iptable_raw.c:57: warning: (near initialization for 
`initial_table.entries[0].target.target.u')
  > > net/ipv4/netfilter/iptable_raw.c:71: unknown field `target_size' 
specified in initializer
  > > net/ipv4/netfilter/iptable_raw.c:85: unknown field `user' specified in 
initializer
  > > net/ipv4/netfilter/iptable_raw.c:87: unknown field `name' specified in 
initializer
  > > net/ipv4/netfilter/iptable_raw.c:87: warning: excess elements in union 
initializer
  > > net/ipv4/netfilter/iptable_raw.c:87: warning: (near initialization for 
`initial_table.term.target.target.u')
  > > make[3]: *** [net/ipv4/netfilter/iptable_raw.o] Error 1
  > > make[2]: *** [net/ipv4/netfilter] Error 2
  > > make[1]: *** [net/ipv4] Error 2
  > > make: *** [net] Error 2
  > 
  > Please try this.
  > 
  > ===== net/ipv4/netfilter/iptable_raw.c 1.2 vs edited =====
  > --- 1.2/net/ipv4/netfilter/iptable_raw.c    2004-06-22 06:39:19 +09:00
  > +++ edited/net/ipv4/netfilter/iptable_raw.c 2004-06-23 22:35:44 +09:00
  > @@ -54,7 +54,9 @@
  >                  },
  >                  .target = { 
  >                       .target = { 
  > -                             .u.target_size = IPT_ALIGN(sizeof(struct 
ipt_standard_target)),
  > +                             .u = {
  > +                                     .target_size = 
IPT_ALIGN(sizeof(struct ipt_standard_target)),
  > +                             },
  >                       },
  >                       .verdict = -NF_ACCEPT - 1,
  >                  },
  > @@ -68,7 +70,9 @@
  >                  },
  >                  .target = {
  >                          .target = {
  > -                                .u.target_size = IPT_ALIGN(sizeof(struct 
ipt_standard_target)),
  > +                                .u = {
  > +                                        .target_size = 
IPT_ALIGN(sizeof(struct ipt_standard_target)),
  > +                                },
  >                          },
  >                          .verdict = -NF_ACCEPT - 1,
  >                  },
  > @@ -82,9 +86,11 @@
  >             },
  >             .target = {
  >                     .target = {
  > -                           .u.user = {
  > -                                   .target_size = IPT_ALIGN(sizeof(struct 
ipt_error_target)), 
  > -                                   .name = IPT_ERROR_TARGET,
  > +                           .u = {
  > +                                   .user = {
  > +                                           .target_size = 
IPT_ALIGN(sizeof(struct ipt_error_target)), 
  > +                                           .name = IPT_ERROR_TARGET,
  > +                                   },
  >                             },
  >                     },
  >                     .errorname = "ERROR",
  > 

<Prev in Thread] Current Thread [Next in Thread>