public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Stephen Hemminger <stephen@networkplumber.org>
To: Jiri Benc <jbenc@redhat.com>
Cc: netdev@vger.kernel.org,
	Steffen Klassert <steffen.klassert@secunet.com>,
	Herbert Xu <herbert@gondor.apana.org.au>,
	James Chapman <jchapman@katalix.com>,
	Paul Moore <paul@paul-moore.com>,
	Pravin Shelar <pshelar@nicira.com>,
	Johannes Berg <johannes@sipsolutions.net>,
	Pablo Neira Ayuso <pablo@netfilter.org>
Subject: Re: [PATCH net-next 2/4] xfrm: simplify xfrm_address_t use
Date: Tue, 7 Apr 2015 09:01:33 -0700	[thread overview]
Message-ID: <20150407090133.0cb6cf4b@urahara> (raw)
In-Reply-To: <e70181767cd48da03733b6817466085c4629ff9a.1427639592.git.jbenc@redhat.com>

On Sun, 29 Mar 2015 16:59:24 +0200
Jiri Benc <jbenc@redhat.com> wrote:

> In many places, the a6 field is typecasted to struct in6_addr. As the
> fields are in union anyway, just add in6_addr type to the union and
> get rid of the typecasting.
> 
> Modifying the uapi header is okay, the union has still the same size.
> 
> Signed-off-by: Jiri Benc <jbenc@redhat.com>

This change to the uapi header ends up breaking the iproute2 build
when the headers are used.

gcc -Wall -Wstrict-prototypes  -Wmissing-prototypes -Wmissing-declarations -Wold-style-definition -Wformat=2 -O2 -I../include -DRESOLVE_HOSTNAMES -DLIBDIR=\"/usr/lib\" -DCONFDIR=\"/etc/iproute2\" -D_GNU_SOURCE -DHAVE_SETNS   -c -o xfrm_monitor.o xfrm_monitor.c
In file included from ../include/linux/xfrm.h:4:0,
                 from xfrm_monitor.c:30:
../include/linux/in6.h:131:26: error: expected identifier before numeric constant
 #define IPPROTO_HOPOPTS  0 /* IPv6 hop-by-hop options */
                          ^
In file included from /usr/include/resolv.h:57:0,
                 from ../include/utils.h:6,
                 from xfrm_monitor.c:31:
/usr/include/netinet/in.h:209:8: error: redefinition of ‘struct in6_addr’
 struct in6_addr
        ^
In file included from ../include/linux/xfrm.h:4:0,
                 from xfrm_monitor.c:30:
../include/linux/in6.h:32:8: note: originally defined here
 struct in6_addr {
        ^
In file included from /usr/include/resolv.h:57:0,
                 from ../include/utils.h:6,
                 from xfrm_monitor.c:31:
/usr/include/netinet/in.h:252:8: error: redefinition of ‘struct sockaddr_in6’
 struct sockaddr_in6
        ^
In file included from ../include/linux/xfrm.h:4:0,
                 from xfrm_monitor.c:30:
../include/linux/in6.h:49:8: note: originally defined here
 struct sockaddr_in6 {
        ^
In file included from /usr/include/resolv.h:57:0,
                 from ../include/utils.h:6,
                 from xfrm_monitor.c:31:
/usr/include/netinet/in.h:288:8: error: redefinition of ‘struct ipv6_mreq’
 struct ipv6_mreq
        ^
In file included from ../include/linux/xfrm.h:4:0,
                 from xfrm_monitor.c:30:
../include/linux/in6.h:59:8: note: originally defined here
 struct ipv6_mreq {
        ^
<builtin>: recipe for target 'xfrm_monitor.o' failed
make[1]: *** [xfrm_monitor.o] Error 1
make[1]: Leaving directory '/var/src/iproute2/ip'
Makefile:48: recipe for target 'all' failed

  reply	other threads:[~2015-04-07 16:01 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-29 14:59 [PATCH net-next 0/4] netlink: access functions for IP address attributes Jiri Benc
2015-03-29 14:59 ` [PATCH net-next 1/4] tcp: simplify inetpeer_addr_base use Jiri Benc
2015-03-29 14:59 ` [PATCH net-next 2/4] xfrm: simplify xfrm_address_t use Jiri Benc
2015-04-07 16:01   ` Stephen Hemminger [this message]
2015-04-07 16:29     ` Jiri Benc
2015-04-07 16:35       ` Jiri Benc
2015-03-29 14:59 ` [PATCH net-next 3/4] netlink: implement nla_put_in_addr and nla_put_in6_addr Jiri Benc
2015-03-29 14:59 ` [PATCH net-next 4/4] netlink: implement nla_get_in_addr and nla_get_in6_addr Jiri Benc
2015-03-29 19:02 ` [PATCH net-next 0/4] netlink: access functions for IP address attributes Johannes Berg
2015-03-31 17:58 ` David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150407090133.0cb6cf4b@urahara \
    --to=stephen@networkplumber.org \
    --cc=herbert@gondor.apana.org.au \
    --cc=jbenc@redhat.com \
    --cc=jchapman@katalix.com \
    --cc=johannes@sipsolutions.net \
    --cc=netdev@vger.kernel.org \
    --cc=pablo@netfilter.org \
    --cc=paul@paul-moore.com \
    --cc=pshelar@nicira.com \
    --cc=steffen.klassert@secunet.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox