From: Pablo Neira Ayuso <pablo@netfilter.org>
To: Josh Boyer <jwboyer@fedoraproject.org>
Cc: Mikko Rapeli <mikko.rapeli@iki.fi>,
"David S. Miller" <davem@davemloft.net>,
Zhang Shengju <zhangshengju@cmss.chinamobile.com>,
Stephen Hemminger <stephen@networkplumber.org>,
"Linux-Kernel@Vger. Kernel. Org" <linux-kernel@vger.kernel.org>,
Jan Engelhardt <jengelh@inai.de>,
Waldemar Brodkorb <mail@waldemar-brodkorb.de>,
Gabriel Laskar <gabriel@lse.epita.fr>,
netfilter-devel@vger.kernel.org,
libc-alpha <libc-alpha@sourceware.org>
Subject: Re: [PATCH v2] uapi glibc compat: fix compile errors when glibc net/if.h included before linux/if.h
Date: Mon, 9 May 2016 23:35:35 +0200 [thread overview]
Message-ID: <20160509213535.GA23623@salvia> (raw)
In-Reply-To: <CA+5PVA7eQLc1UGbaJg9B2BY-6L35Vx3Enpc6Ez9ySucGsY+o6A@mail.gmail.com>
On Mon, May 09, 2016 at 09:59:22AM -0400, Josh Boyer wrote:
> On Sun, Apr 24, 2016 at 11:45 AM, Mikko Rapeli <mikko.rapeli@iki.fi> wrote:
> > glibc's net/if.h contains copies of definitions from linux/if.h and these
> > conflict and cause build failures if both files are included by application
> > source code. Changes in uapi headers, which fixed header file dependencies to
> > include linux/if.h when it was needed, e.g. commit 1ffad83d, made the
> > net/if.h and linux/if.h incompatibilities visible as build failures for
> > userspace applications like iproute2 and xtables-addons.
> >
> > This patch fixes compile errors when glibc net/if.h is included before
> > linux/if.h:
> >
> > ./linux/if.h:99:21: error: redeclaration of enumerator ‘IFF_NOARP’
[...]
> >
> > The cases where linux/if.h is included before net/if.h need a similar fix in
> > the glibc side, or the order of include files can be changed userspace
> > code as a workaround.
> >
> > This change was tested in x86 userspace on Debian unstable with
> > scripts/headers_compile_test.sh:
> >
> > $ make headers_install && \
> > cd usr/include && ../../scripts/headers_compile_test.sh -l -k
> > ...
> > cc -Wall -c -nostdinc -I /usr/lib/gcc/i586-linux-gnu/5/include -I /usr/lib/gcc/i586-linux-gnu/5/include-fixed -I . -I /home/mcfrisk/src/linux-2.6/usr/headers_compile_test_include.2uX2zH -I /home/mcfrisk/src/linux-2.6/usr/headers_compile_test_include.2uX2zH/i586-linux-gnu -o /dev/null ./linux/if.h_libc_before_kernel.h
> > PASSED libc before kernel test: ./linux/if.h
> >
> > Reported-by: Jan Engelhardt <jengelh@inai.de>
> > Reported-by: Josh Boyer <jwboyer@fedoraproject.org>
> > Reported-by: Stephen Hemminger <shemming@brocade.com>
> > Reported-by: Waldemar Brodkorb <mail@waldemar-brodkorb.de>
> > Cc: Gabriel Laskar <gabriel@lse.epita.fr>
> > Signed-off-by: Mikko Rapeli <mikko.rapeli@iki.fi>
>
> Bump. Did this get lost in a queue somewhere?
It seems linux-netdev was not Cc'ed. I cannot find this in David's
patchwork [1].
@Mikko: Could you resubmit including netdev@vger.kernel.org? Thanks.
[1] http://patchwork.ozlabs.org/project/netdev/list/.
next prev parent reply other threads:[~2016-05-09 21:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-24 15:45 [PATCH v2] uapi glibc compat: fix compile errors when glibc net/if.h included before linux/if.h Mikko Rapeli
2016-04-25 11:26 ` Szabolcs Nagy
2016-04-25 12:13 ` Mikko Rapeli
2016-05-09 13:59 ` Josh Boyer
2016-05-09 21:35 ` Pablo Neira Ayuso [this message]
2016-05-09 22:15 ` Mikko Rapeli
2016-05-10 1:29 ` 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=20160509213535.GA23623@salvia \
--to=pablo@netfilter.org \
--cc=davem@davemloft.net \
--cc=gabriel@lse.epita.fr \
--cc=jengelh@inai.de \
--cc=jwboyer@fedoraproject.org \
--cc=libc-alpha@sourceware.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mail@waldemar-brodkorb.de \
--cc=mikko.rapeli@iki.fi \
--cc=netfilter-devel@vger.kernel.org \
--cc=stephen@networkplumber.org \
--cc=zhangshengju@cmss.chinamobile.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;
as well as URLs for NNTP newsgroup(s).