public inbox for buildroot@busybox.net
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/iwd: fix build with gcc 4.8
@ 2020-04-11 21:33 Fabrice Fontaine
  2020-04-12  9:05 ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Fontaine @ 2020-04-11 21:33 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.org/results/63f983aa22ca5303a55bc55e004f05a94e5f7259

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...-frame-xchg.c-fix-build-with-gcc-4.8.patch | 41 +++++++++++++++++++
 1 file changed, 41 insertions(+)
 create mode 100644 package/iwd/0001-frame-xchg.c-fix-build-with-gcc-4.8.patch

diff --git a/package/iwd/0001-frame-xchg.c-fix-build-with-gcc-4.8.patch b/package/iwd/0001-frame-xchg.c-fix-build-with-gcc-4.8.patch
new file mode 100644
index 0000000000..360f00a913
--- /dev/null
+++ b/package/iwd/0001-frame-xchg.c-fix-build-with-gcc-4.8.patch
@@ -0,0 +1,41 @@
+From f0b875e652a5341c755480f3a3c93195ddcb7aba Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Sat, 11 Apr 2020 23:21:42 +0200
+Subject: [PATCH] frame-xchg.c: fix build with gcc 4.8
+
+SOL_NETLINK is used since commit
+87a198111af1ea67053895f7435fb99e3cdd2159 resulting in the following
+build failure with gcc 4.8:
+
+src/frame-xchg.c: In function 'frame_watch_group_io_read':
+src/frame-xchg.c:328:27: error: 'SOL_NETLINK' undeclared (first use in this function)
+   if (cmsg->cmsg_level != SOL_NETLINK)
+                           ^
+Fixes:
+ - http://autobuild.buildroot.org/results/3485088b84111c271bbcfaf025aa4103c6452072
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status:
+https://lists.01.org/hyperkitty/list/iwd at lists.01.org/thread/X72BFTKJWWKBXAKPEWUZ2XV53766VDID]
+---
+ src/frame-xchg.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/src/frame-xchg.c b/src/frame-xchg.c
+index 50351615..4c950fd3 100644
+--- a/src/frame-xchg.c
++++ b/src/frame-xchg.c
+@@ -42,6 +42,10 @@
+ #include "src/netdev.h"
+ #include "src/frame-xchg.h"
+ 
++#ifndef SOL_NETLINK
++#define SOL_NETLINK 270
++#endif
++
+ struct watch_group {
+ 	/*
+ 	 * Group IDs, except 0, are per wdev for user's convenience.
+-- 
+2.25.1
+
-- 
2.25.1

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

* [Buildroot] [PATCH 1/1] package/iwd: fix build with gcc 4.8
  2020-04-11 21:33 [Buildroot] [PATCH 1/1] package/iwd: fix build with gcc 4.8 Fabrice Fontaine
@ 2020-04-12  9:05 ` Thomas Petazzoni
  2020-04-12 10:51   ` Fabrice Fontaine
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2020-04-12  9:05 UTC (permalink / raw)
  To: buildroot

On Sat, 11 Apr 2020 23:33:18 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> +SOL_NETLINK is used since commit
> +87a198111af1ea67053895f7435fb99e3cdd2159 resulting in the following
> +build failure with gcc 4.8:
> +
> +src/frame-xchg.c: In function 'frame_watch_group_io_read':
> +src/frame-xchg.c:328:27: error: 'SOL_NETLINK' undeclared (first use in this function)
> +   if (cmsg->cmsg_level != SOL_NETLINK)

I don't understand a failure like this can be related to the compiler
version. Could you clarify?

Thanks,

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

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

* [Buildroot] [PATCH 1/1] package/iwd: fix build with gcc 4.8
  2020-04-12  9:05 ` Thomas Petazzoni
@ 2020-04-12 10:51   ` Fabrice Fontaine
  2020-04-21 20:40     ` Thomas Petazzoni
  0 siblings, 1 reply; 4+ messages in thread
From: Fabrice Fontaine @ 2020-04-12 10:51 UTC (permalink / raw)
  To: buildroot

Le dim. 12 avr. 2020 ? 11:05, Thomas Petazzoni
<thomas.petazzoni@bootlin.com> a ?crit :
>
> On Sat, 11 Apr 2020 23:33:18 +0200
> Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
>
> > +SOL_NETLINK is used since commit
> > +87a198111af1ea67053895f7435fb99e3cdd2159 resulting in the following
> > +build failure with gcc 4.8:
> > +
> > +src/frame-xchg.c: In function 'frame_watch_group_io_read':
> > +src/frame-xchg.c:328:27: error: 'SOL_NETLINK' undeclared (first use in this function)
> > +   if (cmsg->cmsg_level != SOL_NETLINK)
>
> I don't understand a failure like this can be related to the compiler
> version. Could you clarify?
My bad, you're right, the issue is due to glibc that doesn't support
SOL_NETLINK before version 2.24 and
https://github.com/bminor/glibc/commit/f9b437d5efce93800b51ad2a437c8b1c9616bf80#diff-9256189095e7df9c0688498779241729

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

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

* [Buildroot] [PATCH 1/1] package/iwd: fix build with gcc 4.8
  2020-04-12 10:51   ` Fabrice Fontaine
@ 2020-04-21 20:40     ` Thomas Petazzoni
  0 siblings, 0 replies; 4+ messages in thread
From: Thomas Petazzoni @ 2020-04-21 20:40 UTC (permalink / raw)
  To: buildroot

On Sun, 12 Apr 2020 12:51:43 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> > I don't understand a failure like this can be related to the compiler
> > version. Could you clarify?  
> My bad, you're right, the issue is due to glibc that doesn't support
> SOL_NETLINK before version 2.24 and
> https://github.com/bminor/glibc/commit/f9b437d5efce93800b51ad2a437c8b1c9616bf80#diff-9256189095e7df9c0688498779241729

Then, could you submit an updated version, both to upstream and to
Buildroot ?

Thanks a lot!

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

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

end of thread, other threads:[~2020-04-21 20:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-11 21:33 [Buildroot] [PATCH 1/1] package/iwd: fix build with gcc 4.8 Fabrice Fontaine
2020-04-12  9:05 ` Thomas Petazzoni
2020-04-12 10:51   ` Fabrice Fontaine
2020-04-21 20:40     ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox