From: Florian Weimer <fweimer@redhat.com>
To: Andreas Roeseler <andreas.a.roeseler@gmail.com>
Cc: netdev@vger.kernel.org, davem@davemloft.net,
yoshfuji@linux-ipv6.org, dsahern@kernel.org, kuba@kernel.org
Subject: Re: [PATCH net-next V6 1/6] icmp: add support for RFC 8335 PROBE
Date: Wed, 02 Jun 2021 19:58:49 +0200 [thread overview]
Message-ID: <87im2wup0m.fsf@oldenburg.str.redhat.com> (raw)
In-Reply-To: <ba81dcf8097c4d3cc43f4e2ed5cc6f5a7a4c33b6.1617067968.git.andreas.a.roeseler@gmail.com> (Andreas Roeseler's message of "Mon, 29 Mar 2021 18:45:15 -0700")
* Andreas Roeseler:
> diff --git a/include/uapi/linux/icmp.h b/include/uapi/linux/icmp.h
> index fb169a50895e..222325d1d80e 100644
> --- a/include/uapi/linux/icmp.h
> +++ b/include/uapi/linux/icmp.h
> @@ -20,6 +20,9 @@
>
> #include <linux/types.h>
> #include <asm/byteorder.h>
> +#include <linux/in.h>
> +#include <linux/if.h>
> +#include <linux/in6.h>
We have received a report that this breaks compiliation of trinity
because it includes <netinet/in.h> and <linux/icmp.h> at the same time,
and there is no multiple-definition guard for struct in_addr and other
definitions:
In file included from include/net.h:5,
from net/proto-ip-raw.c:2:
/usr/include/netinet/in.h:31:8: error: redefinition of ‘struct in_addr’
31 | struct in_addr
| ^~~~~~~
In file included from /usr/include/linux/icmp.h:23,
from net/proto-ip-raw.c:1:
/usr/include/linux/in.h:89:8: note: originally defined here
89 | struct in_addr {
| ^~~~~~~
In file included from /usr/include/netinet/in.h:37,
from include/net.h:5,
from net/proto-ip-raw.c:2:
/usr/include/bits/in.h:150:8: error: redefinition of ‘struct ip_mreqn’
150 | struct ip_mreqn
| ^~~~~~~~
In file included from /usr/include/linux/icmp.h:23,
from net/proto-ip-raw.c:1:
/usr/include/linux/in.h:178:8: note: originally defined here
178 | struct ip_mreqn {
| ^~~~~~~~
(More conflicts appear to follow.)
I do not know what the correct way forward is. Adding the
multiple-definition guards is quite a bit of work and requires updates
in glibc and the kernel to work properly.
Thanks,
Florian
next prev parent reply other threads:[~2021-06-02 17:58 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-03-30 1:45 [PATCH net-next V6 0/6] add support for RFC 8335 PROBE Andreas Roeseler
2021-03-30 1:45 ` [PATCH net-next V6 1/6] icmp: " Andreas Roeseler
2021-06-02 17:58 ` Florian Weimer [this message]
2021-06-02 18:46 ` Andreas Roeseler
2021-06-02 18:51 ` Florian Weimer
2021-03-30 1:45 ` [PATCH net-next V6 2/6] ICMPV6: " Andreas Roeseler
2021-03-30 1:45 ` [PATCH net-next V6 3/6] net: add sysctl for enabling RFC 8335 PROBE messages Andreas Roeseler
2021-03-30 1:45 ` [PATCH net-next V6 4/6] net: add support for sending " Andreas Roeseler
2021-03-30 1:45 ` [PATCH net-next V6 5/6] ipv6: add ipv6_dev_find to stubs Andreas Roeseler
2021-03-30 1:45 ` [PATCH net-next V6 6/6] icmp: add response to RFC 8335 PROBE messages Andreas Roeseler
2021-03-30 20:50 ` [PATCH net-next V6 0/6] add support for RFC 8335 PROBE patchwork-bot+netdevbpf
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=87im2wup0m.fsf@oldenburg.str.redhat.com \
--to=fweimer@redhat.com \
--cc=andreas.a.roeseler@gmail.com \
--cc=davem@davemloft.net \
--cc=dsahern@kernel.org \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=yoshfuji@linux-ipv6.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.