[Buildroot] [PATCH 1/1] package/iwd: fix build with uclibc

Fabrice Fontaine fontaine.fabrice at gmail.com
Sat Jun 20 13:23:05 UTC 2020


Fixes:
 - http://autobuild.buildroot.org/results/8bbf7e1d0929d0883c0c2445990f62f5a1d54163

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
---
 ...0001-src-p2p.c-fix-build-with-uclibc.patch | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 package/iwd/0001-src-p2p.c-fix-build-with-uclibc.patch

diff --git a/package/iwd/0001-src-p2p.c-fix-build-with-uclibc.patch b/package/iwd/0001-src-p2p.c-fix-build-with-uclibc.patch
new file mode 100644
index 0000000000..34c525f907
--- /dev/null
+++ b/package/iwd/0001-src-p2p.c-fix-build-with-uclibc.patch
@@ -0,0 +1,38 @@
+From 7d29d294c7138460dc400df8d051d7f334d149cf Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice at gmail.com>
+Date: Sat, 20 Jun 2020 15:13:17 +0200
+Subject: [PATCH] src/p2p.c: fix build with uclibc
+
+explicit_bzero is used in src/p2p.c since commit
+1675c765a3d66f3c626a1581a7bf514e1859b064 but src/missing.h is not
+included, as a result build with uclibc fails on:
+
+/home/naourr/work/instance-0/output-1/per-package/iwd/host/opt/ext-toolchain/bin/../lib/gcc/mips64el-buildroot-linux-uclibc/5.5.0/../../../../mips64el-buildroot-linux-uclibc/bin/ld: src/p2p.o: in function `p2p_connection_reset':
+p2p.c:(.text+0x2cf4): undefined reference to `explicit_bzero'
+/home/naourr/work/instance-0/output-1/per-package/iwd/host/opt/ext-toolchain/bin/../lib/gcc/mips64el-buildroot-linux-uclibc/5.5.0/../../../../mips64el-buildroot-linux-uclibc/bin/ld: p2p.c:(.text+0x2cfc): undefined reference to `explicit_bzero'
+
+Fixes:
+ - http://autobuild.buildroot.org/results/8bbf7e1d0929d0883c0c2445990f62f5a1d54163
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
+[Upstream status:
+https://lists.01.org/hyperkitty/list/iwd@lists.01.org/thread/EXR3JZJXIVITX2ZSQRE6GEXGN6P3KUTC]
+---
+ src/p2p.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/p2p.c b/src/p2p.c
+index dc78b887..a759df5c 100644
+--- a/src/p2p.c
++++ b/src/p2p.c
+@@ -37,6 +37,7 @@
+ 
+ #include "linux/nl80211.h"
+ 
++#include "src/missing.h"
+ #include "src/iwd.h"
+ #include "src/wiphy.h"
+ #include "src/scan.h"
+-- 
+2.26.2
+
-- 
2.26.2




More information about the buildroot mailing list