* [Buildroot] [PATCH v2] package/lldpd: fix compilation issue with kernel 7.3 on aarch64
@ 2026-09-30 7:24 Thibaut Collet
2026-09-30 8:48 ` Vincent Jardin via buildroot
2026-10-11 21:08 ` Arnout Vandecappelle via buildroot
0 siblings, 2 replies; 3+ messages in thread
From: Thibaut Collet @ 2026-09-30 7:24 UTC (permalink / raw)
To: buildroot; +Cc: thomas.petazzoni, vjardin, Thibaut Collet
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
The uapi linux files bundled by lldpd are the ones of kernel 4.19
(https://github.com/lldpd/lldpd/commit/a192a2e91f81), and they are
prepended to the include path, so they shadow the sysroot ones.
Remove them so that lldpd uses the uapi files of the sysroot, but only
when the toolchain provides kernel headers 4.19 or later. With older
headers the bundled files are kept, so those configurations are left
unchanged.
Signed-off-by: Thibaut Collet <thbt.cllt@gmail.com>
---
Changes v1 -> v2:
- Only remove the bundled headers for kernel headers >= 4.19
package/lldpd/lldpd.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/lldpd/lldpd.mk b/package/lldpd/lldpd.mk
index f0cbc7e436..9ecf622b22 100644
--- a/package/lldpd/lldpd.mk
+++ b/package/lldpd/lldpd.mk
@@ -61,6 +61,13 @@ else
LLDPD_CONF_OPTS += --without-readline
endif
+ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19),y)
+define LLDPD_DROP_UAPI_FILES
+ rm -rf $(@D)/include/linux
+endef
+LLDPD_POST_PATCH_HOOKS += LLDPD_DROP_UAPI_FILES
+endif
+
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
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [Buildroot] [PATCH v2] package/lldpd: fix compilation issue with kernel 7.3 on aarch64
2026-09-30 7:24 [Buildroot] [PATCH v2] package/lldpd: fix compilation issue with kernel 7.3 on aarch64 Thibaut Collet
@ 2026-09-30 8:48 ` Vincent Jardin via buildroot
2026-10-11 21:08 ` Arnout Vandecappelle via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Vincent Jardin via buildroot @ 2026-09-30 8:48 UTC (permalink / raw)
To: Thibaut Collet; +Cc: buildroot, thomas.petazzoni
Hi Thibaut,
> Changes v1 -> v2:
> - Only remove the bundled headers for kernel headers >= 4.19
>
> package/lldpd/lldpd.mk | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/package/lldpd/lldpd.mk b/package/lldpd/lldpd.mk
> index f0cbc7e436..9ecf622b22 100644
> --- a/package/lldpd/lldpd.mk
> +++ b/package/lldpd/lldpd.mk
> @@ -61,6 +61,13 @@ else
> LLDPD_CONF_OPTS += --without-readline
> endif
>
> +ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19),y)
> +define LLDPD_DROP_UAPI_FILES
> + rm -rf $(@D)/include/linux
> +endef
> +LLDPD_POST_PATCH_HOOKS += LLDPD_DROP_UAPI_FILES
> +endif
> +
Reviewed-by: Vincent Jardin <vjardin@free.fr>
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH v2] package/lldpd: fix compilation issue with kernel 7.3 on aarch64
2026-09-30 7:24 [Buildroot] [PATCH v2] package/lldpd: fix compilation issue with kernel 7.3 on aarch64 Thibaut Collet
2026-09-30 8:48 ` Vincent Jardin via buildroot
@ 2026-10-11 21:08 ` Arnout Vandecappelle via buildroot
1 sibling, 0 replies; 3+ messages in thread
From: Arnout Vandecappelle via buildroot @ 2026-10-11 21:08 UTC (permalink / raw)
To: buildroot, Thibaut Collet; +Cc: thomas.petazzoni, vjardin
On Wed, 30 Sep 2026 09:24:41 +0200, Thibaut Collet wrote:
> 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
>
> The uapi linux files bundled by lldpd are the ones of kernel 4.19
> (https://github.com/lldpd/lldpd/commit/a192a2e91f81), and they are
> prepended to the include path, so they shadow the sysroot ones.
>
> Remove them so that lldpd uses the uapi files of the sysroot, but only
> when the toolchain provides kernel headers 4.19 or later. With older
> headers the bundled files are kept, so those configurations are left
> unchanged.
>
> Signed-off-by: Thibaut Collet <thbt.cllt@gmail.com>
Applied to master, thanks!
Regards,
Arnout
> ---
>
> Changes v1 -> v2:
> - Only remove the bundled headers for kernel headers >= 4.19
>
> package/lldpd/lldpd.mk | 7 +++++++
> 1 file changed, 7 insertions(+)
>
> diff --git a/package/lldpd/lldpd.mk b/package/lldpd/lldpd.mk
> index f0cbc7e436..9ecf622b22 100644
> --- a/package/lldpd/lldpd.mk
> +++ b/package/lldpd/lldpd.mk
> @@ -61,6 +61,13 @@ else
> LLDPD_CONF_OPTS += --without-readline
> endif
>
> +ifeq ($(BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19),y)
> +define LLDPD_DROP_UAPI_FILES
> + rm -rf $(@D)/include/linux
> +endef
> +LLDPD_POST_PATCH_HOOKS += LLDPD_DROP_UAPI_FILES
> +endif
> +
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-10-11 21:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-30 7:24 [Buildroot] [PATCH v2] package/lldpd: fix compilation issue with kernel 7.3 on aarch64 Thibaut Collet
2026-09-30 8:48 ` Vincent Jardin via buildroot
2026-10-11 21:08 ` Arnout Vandecappelle via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox