[Buildroot] [PATCH v1] package/gdb: fix gdb-10.2 compile for uclibc < v1.0.35 (getrandom related)

Thomas Petazzoni thomas.petazzoni at bootlin.com
Sat Nov 6 10:50:27 UTC 2021


On Sat,  6 Nov 2021 10:15:08 +0100
Peter Seiderer <ps.report at gmx.net> wrote:

> - fix getrandom compile for uclibc < v1.0.35, add missing stddef.h
>   include (fixed in uclibc since v1.0.35, see [1])
> 
> Fixes:
> 
>   - http://autobuild.buildroot.net/results/6d4a62c703c85dd993ddb2d90ebe1f6cad24e0b0
> 
>   .../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)
>         |                                   ^~~~~~
> 
> [1] https://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng.git/commit/?id=00972c02c2b6e0a95d5def4a71bdfb188e091782t
> 
> Signed-off-by: Peter Seiderer <ps.report at gmx.net>
> ---
>  ...getrandom-compile-for-uclibc-v1.0.35.patch | 39 +++++++++++++++++++
>  1 file changed, 39 insertions(+)
>  create mode 100644 package/gdb/10.2/0006-Fix-getrandom-compile-for-uclibc-v1.0.35.patch

Applied to master, thanks. Did you verify that this was only applicable
to gdb 10.x, and none of the older or newer versions ?

Thanks!

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


More information about the buildroot mailing list