Linux 4.2 build error in net/netfilter/ipset/ip_set_hash_netnet.c

4 messages, 4 authors, 2015-07-13 · open the first message on its own page

Linux 4.2 build error in net/netfilter/ipset/ip_set_hash_netnet.c

From: Vinson Lee <hidden>
Date: 2015-07-05 09:07:02

Hi.

With the latest Linux 4.2-rc1, I am hitting this build error with GCC
4.4.7 on CentOS 6.

  CC      net/netfilter/ipset/ip_set_hash_netnet.o
net/netfilter/ipset/ip_set_hash_netnet.c: In function ‘hash_netnet4_uadt’:
net/netfilter/ipset/ip_set_hash_netnet.c:163: error: unknown field
‘cidr’ specified in initializer
net/netfilter/ipset/ip_set_hash_netnet.c:163: warning: missing braces
around initializer
net/netfilter/ipset/ip_set_hash_netnet.c:163: warning: (near
initialization for ‘e.<anonymous>.ip’)
net/netfilter/ipset/ip_set_hash_netnet.c: In function ‘hash_netnet6_uadt’:
net/netfilter/ipset/ip_set_hash_netnet.c:388: error: unknown field
‘cidr’ specified in initializer
net/netfilter/ipset/ip_set_hash_netnet.c:388: warning: missing braces
around initializer
net/netfilter/ipset/ip_set_hash_netnet.c:388: warning: (near
initialization for ‘e.ip[0]’)

Cheers,
Vinson

Re: Linux 4.2 build error in net/netfilter/ipset/ip_set_hash_netnet.c

From: Guenter Roeck <linux@roeck-us.net>
Date: 2015-07-05 15:35:33

On Sat, Jul 04, 2015 at 12:44:36AM -0700, Vinson Lee wrote:
Hi.

With the latest Linux 4.2-rc1, I am hitting this build error with GCC
4.4.7 on CentOS 6.

  CC      net/netfilter/ipset/ip_set_hash_netnet.o
net/netfilter/ipset/ip_set_hash_netnet.c: In function ‘hash_netnet4_uadt’:
net/netfilter/ipset/ip_set_hash_netnet.c:163: error: unknown field
‘cidr’ specified in initializer
net/netfilter/ipset/ip_set_hash_netnet.c:163: warning: missing braces
around initializer
net/netfilter/ipset/ip_set_hash_netnet.c:163: warning: (near
initialization for ‘e.<anonymous>.ip’)
net/netfilter/ipset/ip_set_hash_netnet.c: In function ‘hash_netnet6_uadt’:
net/netfilter/ipset/ip_set_hash_netnet.c:388: error: unknown field
‘cidr’ specified in initializer
net/netfilter/ipset/ip_set_hash_netnet.c:388: warning: missing braces
around initializer
net/netfilter/ipset/ip_set_hash_netnet.c:388: warning: (near
initialization for ‘e.ip[0]’)
Previously fixed with commit 1a869205c75cb ("netfilter: ipset: The unnamed union
initialization may lead to compilation error"), reintroduced with commit
aff227581ed1a ("netfilter: ipset: Check CIDR value only when attribute is given").

Guenter
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Re: Linux 4.2 build error in net/netfilter/ipset/ip_set_hash_netnet.c

From: Akemi Yagi <hidden>
Date: 2015-07-13 16:13:47

On Sun, 05 Jul 2015 08:35:20 -0700, Guenter Roeck wrote:
On Sat, Jul 04, 2015 at 12:44:36AM -0700, Vinson Lee wrote:
quoted
Hi.

With the latest Linux 4.2-rc1, I am hitting this build error with GCC
4.4.7 on CentOS 6.

  CC      net/netfilter/ipset/ip_set_hash_netnet.o
net/netfilter/ipset/ip_set_hash_netnet.c: In function
‘hash_netnet4_uadt’:
net/netfilter/ipset/ip_set_hash_netnet.c:163: error: unknown field
‘cidr’ specified in initializer
net/netfilter/ipset/ip_set_hash_netnet.c:163: warning: missing braces
around initializer net/netfilter/ipset/ip_set_hash_netnet.c:163:
warning: (near initialization for ‘e.<anonymous>.ip’)
net/netfilter/ipset/ip_set_hash_netnet.c: In function
‘hash_netnet6_uadt’:
net/netfilter/ipset/ip_set_hash_netnet.c:388: error: unknown field
‘cidr’ specified in initializer
net/netfilter/ipset/ip_set_hash_netnet.c:388: warning: missing braces
around initializer net/netfilter/ipset/ip_set_hash_netnet.c:388:
warning: (near initialization for ‘e.ip[0]’)
Previously fixed with commit 1a869205c75cb ("netfilter: ipset: The
unnamed union initialization may lead to compilation error"),
reintroduced with commit aff227581ed1a ("netfilter: ipset: Check CIDR
value only when attribute is given").

Guenter
I wonder what can be done to get this issue fixed. This problem was seen 
in 4.2-rc1 and now in 4.2-rc2 on RHEL-6.6.

$ gcc --version
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-11)

Please advise.

Akemi

Re: Linux 4.2 build error in net/netfilter/ipset/ip_set_hash_netnet.c

From: Cong Wang <hidden>
Date: 2015-07-13 18:18:03

On Mon, Jul 13, 2015 at 9:13 AM, Akemi Yagi [off-list ref] wrote:
On Sun, 05 Jul 2015 08:35:20 -0700, Guenter Roeck wrote:
quoted
On Sat, Jul 04, 2015 at 12:44:36AM -0700, Vinson Lee wrote:
quoted
Hi.

With the latest Linux 4.2-rc1, I am hitting this build error with GCC
4.4.7 on CentOS 6.

  CC      net/netfilter/ipset/ip_set_hash_netnet.o
net/netfilter/ipset/ip_set_hash_netnet.c: In function
‘hash_netnet4_uadt’:
net/netfilter/ipset/ip_set_hash_netnet.c:163: error: unknown field
‘cidr’ specified in initializer
net/netfilter/ipset/ip_set_hash_netnet.c:163: warning: missing braces
around initializer net/netfilter/ipset/ip_set_hash_netnet.c:163:
warning: (near initialization for ‘e.<anonymous>.ip’)
net/netfilter/ipset/ip_set_hash_netnet.c: In function
‘hash_netnet6_uadt’:
net/netfilter/ipset/ip_set_hash_netnet.c:388: error: unknown field
‘cidr’ specified in initializer
net/netfilter/ipset/ip_set_hash_netnet.c:388: warning: missing braces
around initializer net/netfilter/ipset/ip_set_hash_netnet.c:388:
warning: (near initialization for ‘e.ip[0]’)
Previously fixed with commit 1a869205c75cb ("netfilter: ipset: The
unnamed union initialization may lead to compilation error"),
reintroduced with commit aff227581ed1a ("netfilter: ipset: Check CIDR
value only when attribute is given").

Guenter
I wonder what can be done to get this issue fixed. This problem was seen
in 4.2-rc1 and now in 4.2-rc2 on RHEL-6.6.
Just revert the initializer piece.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help