[Buildroot] [PATCH 1/1] package/tar: fix build with uclibc-ng < 1.0.35
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sun Aug 8 19:56:22 UTC 2021
On Sat, 7 Aug 2021 23:09:09 +0200
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:
> Fix the folllowing build failure with uclibc-ng which is raised since
> bump to version 1.34 in commit 27fffea6db7358af20f5a3a8faa174d3b782d61f:
>
> In file included from ./sys/random.h:40,
> from getrandom.c:22:
> /tmp/instance-0/output-1/per-package/tar/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:27:35: error: unknown type name 'size_t'
> 27 | extern int getrandom(void *__buf, size_t count, unsigned int flags)
> | ^~~~~~
> /tmp/instance-0/output-1/per-package/tar/host/x86_64-buildroot-linux-uclibc/sysroot/usr/include/sys/random.h:8:1: note: 'size_t' is defined in header '<stddef.h>'; did you forget to '#include <stddef.h>'?
> 7 | #include <features.h>
> +++ |+#include <stddef.h>
> 8 |
>
> Fixes:
> - http://autobuild.buildroot.org/results/f40e09d621ab5ba66dd97138dec174acfb7fda2a
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
> ...andom.c-fix-build-with-uclibc-1.0.35.patch | 46 +++++++++++++++++++
> 1 file changed, 46 insertions(+)
> create mode 100644 package/tar/0001-lib-getrandom.c-fix-build-with-uclibc-1.0.35.patch
Applied to master, thanks. We will have to remove these work-arounds
when 1.0.35 will be considered reasonably old.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list