From: Thibaut Collet <thbt.cllt@gmail.com>
To: buildroot@buildroot.org
Cc: Thibaut Collet <thbt.cllt@gmail.com>
Subject: [Buildroot] [PATCH] package/lldpd: fix compilation issue with kernel 7.3 on aarch64
Date: Mon, 28 Sep 2026 17:22:18 +0200 [thread overview]
Message-ID: <20260928152218.94978-1-thbt.cllt@gmail.com> (raw)
lldpd bundles some uapi linux files for old distributions, especially
the types.h one.
Since kernel commit d4bf9e08d412 ("arm64: uapi: Use __u128 instead of
__uint128_t in UAPI headers"), the type __u128 is used by sigcontext.h.
This type is defined in types.h, but the old version bundled by lldpd
does not provide it. This lack leads to the following compilation error:
In file included from ../../../../host/aarch64-buildroot-linux-gnu/sysroot/usr/include/bits/sigcontext.h:30,
from ../../../../host/aarch64-buildroot-linux-gnu/sysroot/usr/include/signal.h:301,
from ../../../../host/aarch64-buildroot-linux-gnu/sysroot/usr/include/sys/param.h:28,
from privsep_io.c:5:
../../../../host/aarch64-buildroot-linux-gnu/sysroot/usr/include/asm/sigcontext.h:81:9: error: unknown type name '__u128'; did you mean '__u32'?
81 | __u128 vregs[32];
| ^~~~~~
| __u32
As Buildroot is not an old distribution and always provides the uapi
linux files, the lldpd ones are removed at the post patch step to have
a consistent set of uapi include files.
Signed-off-by: Thibaut Collet <thbt.cllt@gmail.com>
---
package/lldpd/lldpd.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/lldpd/lldpd.mk b/package/lldpd/lldpd.mk
index f0cbc7e436..b6811ce3a8 100644
--- a/package/lldpd/lldpd.mk
+++ b/package/lldpd/lldpd.mk
@@ -61,6 +61,11 @@ else
LLDPD_CONF_OPTS += --without-readline
endif
+define LLDPD_DROP_UAPI_FILES
+ rm -rf $(@D)/include/linux
+endef
+LLDPD_POST_PATCH_HOOKS += LLDPD_DROP_UAPI_FILES
+
define LLDPD_INSTALL_INIT_SYSV
$(INSTALL) -D -m 0755 package/lldpd/S60lldpd \
$(TARGET_DIR)/etc/init.d/S60lldpd
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next reply other threads:[~2026-09-28 15:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-28 15:22 Thibaut Collet [this message]
2026-09-28 17:41 ` [Buildroot] [PATCH] package/lldpd: fix compilation issue with kernel 7.3 on aarch64 Vincent Jardin via buildroot
2026-09-28 21:27 ` Thomas Petazzoni via buildroot
2026-09-29 8:02 ` Thibaut Collet
2026-09-29 17:05 ` Vincent Jardin via buildroot
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=20260928152218.94978-1-thbt.cllt@gmail.com \
--to=thbt.cllt@gmail.com \
--cc=buildroot@buildroot.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox