All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Cc: Marcus Folkesson <marcus.folkesson@gmail.com>,
	Antoine Tenart <atenart@kernel.org>,
	buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/libselinux: fix uclibc build
Date: Sat, 11 May 2024 08:58:20 +0200	[thread overview]
Message-ID: <20240511085820.0ba23225@windsurf> (raw)
In-Reply-To: <20240511061931.143405-1-fontaine.fabrice@gmail.com>

On Sat, 11 May 2024 08:19:31 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fix the following uclibc build failure raised since bump to version 3.6
> in commit 5f7275787ab1520c3d3f7eb9d2bd1b9f5ff41443 and
> https://github.com/SELinuxProject/selinux/commit/cb8289c2b237e5f66e4a7608ecc6c68abeaeaf55:
> 
> selinux_internal.c: In function 'reallocarray':
> selinux_internal.c:25:29: error: 'SIZE_MAX' undeclared (first use in this function)
>    25 |         if (size && nmemb > SIZE_MAX / size) {
>       |                             ^~~~~~~~
> selinux_internal.c:6:1: note: 'SIZE_MAX' is defined in header '<stdint.h>'; did you forget to '#include <stdint.h>'?
>     5 | #include <string.h>
>   +++ |+#include <stdint.h>
>     6 |
> selinux_internal.c:25:29: note: each undeclared identifier is reported only once for each function it appears in
>    25 |         if (size && nmemb > SIZE_MAX / size) {
>       |                             ^~~~~~~~
> 
> Fixes: 5f7275787ab1520c3d3f7eb9d2bd1b9f5ff41443
>  - http://autobuild.buildroot.org/results/7e627744beaa4f7fdfd488dfacbaafc074a999f7
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...se_linux_internal.c-include-stdint.h.patch | 45 +++++++++++++++++++
>  1 file changed, 45 insertions(+)
>  create mode 100644 package/libselinux/0002-libselinux-src-se_linux_internal.c-include-stdint.h.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      reply	other threads:[~2024-05-11  6:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-11  6:19 [Buildroot] [PATCH 1/1] package/libselinux: fix uclibc build Fabrice Fontaine
2024-05-11  6:58 ` Thomas Petazzoni via buildroot [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240511085820.0ba23225@windsurf \
    --to=buildroot@buildroot.org \
    --cc=atenart@kernel.org \
    --cc=fontaine.fabrice@gmail.com \
    --cc=marcus.folkesson@gmail.com \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.