openwrt-6.x/package/network/utils
Jonas Gorski d015a39dd3 iproute2: point KERNEL_INCLUDE to toolchain headers
Glibc since 2.41 tries to include linux/sched/types.h from sched.h, and
pointing KERNEL_INCLUDE to the kernel headers makes it use
linux/sched/types.h from the kernel headers instead of the installed
one.

This then breaks the configure (test) compile for setns() and the test:

mips-openwrt-linux-gnu-gcc -I/fork.openwrt/build_dir/target-mips_24kc_glibc/linux-ath79_generic/linux-6.6.93/include/uapi -o config.HaAJYe/setnstest config.HaAJYe/setnstest.c
In file included from /fork.openwrt/build_dir/target-mips_24kc_glibc/linux-ath79_generic/linux-6.6.93/include/uapi/linux/sched/types.h:5,
                 from /fork.openwrt/staging_dir/toolchain-mips_24kc_gcc-14.3.0_glibc/include/bits/sched.h:63,
                 from /fork.openwrt/staging_dir/toolchain-mips_24kc_gcc-14.3.0_glibc/include/sched.h:43,
                 from config.HaAJYe/setnstest.c:2:
/fork.openwrt/build_dir/target-mips_24kc_glibc/linux-ath79_generic/linux-6.6.93/include/uapi/linux/types.h:10:2: warning: #warning "Attempt to use kernel headers from user space, see https://kernelnewbies.org/KernelHeaders" [-Wcpp]
   10 | #warning "Attempt to use kernel headers from user space, see https://kernelnewbies.org/KernelHeaders"
      |  ^~~~~~~
In file included from /fork.openwrt/build_dir/target-mips_24kc_glibc/linux-ath79_generic/linux-6.6.93/include/uapi/linux/posix_types.h:5,
                 from /fork.openwrt/build_dir/target-mips_24kc_glibc/linux-ath79_generic/linux-6.6.93/include/uapi/linux/types.h:14:
/fork.openwrt/build_dir/target-mips_24kc_glibc/linux-ath79_generic/linux-6.6.93/include/uapi/linux/stddef.h:5:10: fatal error: linux/compiler_types.h: No such file or directory
    5 | #include <linux/compiler_types.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.

Fix this by pointing KERNEL_INCLUDE to the toolchain headers, which
include the installed kernel headers.

Tested with musl, glibc, and SDK.

Fixes: 60738feded ("iproute2: Fix KERNEL_INCLUDE in SDK")
Reported-by: Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
Signed-off-by: Jonas Gorski <jonas.gorski@gmail.com>
2025-06-18 10:46:35 +02:00
..
adb-enablemodem
arptables
bpftool bpftool: Update to v7.5.0 2024-12-28 15:41:44 +01:00
comgt comgt-ncm: fix modem manufacturer detection 2025-04-18 01:37:48 +02:00
ebtables
ethtool ethtool: update to 6.14 2025-05-15 21:57:52 +02:00
iproute2 iproute2: point KERNEL_INCLUDE to toolchain headers 2025-06-18 10:46:35 +02:00
ipset
iptables
iw iw: backport WiFi 7 (EHT) scan support 2025-05-11 13:09:31 +02:00
iwcap
iwinfo libiwinfo: update to Git HEAD (2025-02-06) 2025-02-06 14:51:11 +01:00
layerscape/restool
linux-atm linux-atm: fix building with GCC 15.1 2025-06-08 12:20:15 +02:00
ltq-dsl-base
nftables
resolveip
rssileds treewide: strip trailing whitespace 2025-05-20 00:47:37 +02:00
tcpdump
umbim umbim: add support for wwan device class 2025-05-27 11:31:07 +02:00
uqmi qmi: increase SIM power-cycle timeouts 2025-05-30 00:16:48 +02:00
wireguard-tools wireguard-tools: update to v1.0.20250521 2025-06-04 20:14:19 +02:00
wireless-tools
wpan-tools
wwan
xdp-tools