All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/ndisc6: fix build with musl
@ 2019-11-05 19:21 Fabrice Fontaine
  2019-11-07 20:59 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2019-11-05 19:21 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.org/results/356a6e2d00b1c5be411f48666c949c791810a5ad

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...ce-tcp.c-do-not-undefine-_GNU_SOURCE.patch | 36 +++++++++++++++++++
 1 file changed, 36 insertions(+)
 create mode 100644 package/ndisc6/0001-src-trace-tcp.c-do-not-undefine-_GNU_SOURCE.patch

diff --git a/package/ndisc6/0001-src-trace-tcp.c-do-not-undefine-_GNU_SOURCE.patch b/package/ndisc6/0001-src-trace-tcp.c-do-not-undefine-_GNU_SOURCE.patch
new file mode 100644
index 0000000000..2c0977a21b
--- /dev/null
+++ b/package/ndisc6/0001-src-trace-tcp.c-do-not-undefine-_GNU_SOURCE.patch
@@ -0,0 +1,36 @@
+From b2093549844452e674a44038bddc68e249ebebba Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Tue, 5 Nov 2019 20:14:21 +0100
+Subject: [PATCH] src/trace-tcp.c: do not undefine _GNU_SOURCE
+
+Don't undefine _GNU_SOURCE otherwise build with musl will fail on:
+
+src/trace-tcp.c: In function 'send_syn_probe':
+src/trace-tcp.c:52:21: error: invalid application of 'sizeof' to incomplete type 'struct tcphdr'
+  if (plen < sizeof (struct tcphdr))
+                     ^~~~~~
+
+Fixes:
+ - http://autobuild.buildroot.org/results/356a6e2d00b1c5be411f48666c949c791810a5ad
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: sent to remi at remlab.net]
+---
+ src/trace-tcp.c | 1 -
+ 1 file changed, 1 deletion(-)
+
+diff --git a/src/trace-tcp.c b/src/trace-tcp.c
+index 5aba9d4..1b367ae 100644
+--- a/src/trace-tcp.c
++++ b/src/trace-tcp.c
+@@ -21,7 +21,6 @@
+ # include <config.h>
+ #endif
+ 
+-#undef _GNU_SOURCE
+ #define _DEFAULT_SOURCE 1
+ 
+ #include <string.h>
+-- 
+2.23.0
+
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] package/ndisc6: fix build with musl
  2019-11-05 19:21 [Buildroot] [PATCH 1/1] package/ndisc6: fix build with musl Fabrice Fontaine
@ 2019-11-07 20:59 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-11-07 20:59 UTC (permalink / raw)
  To: buildroot

On Tue,  5 Nov 2019 20:21:20 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fixes:
>  - http://autobuild.buildroot.org/results/356a6e2d00b1c5be411f48666c949c791810a5ad
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Sorry, I saw your patch in patchwork after the same patch from Bernd
:-/ Sorry about that, as I should have applied yours, which was
submitted earlier.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-07 20:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-05 19:21 [Buildroot] [PATCH 1/1] package/ndisc6: fix build with musl Fabrice Fontaine
2019-11-07 20:59 ` Thomas Petazzoni

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.