package/iproute2: fix musl/uclibc build failure with libtirpc
Status from this message: Applied to 2025.02.x, 2026.08.x. Thanks
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | package/iproute2: add optional dependency on libtirpcpackage/ | +4 | 1 reply | |
| 2/2 | package/iproute2: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDBpackage/ | +1 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [Buildroot] [PATCH 0/2] package/iproute2: fix musl/uclibc build failure with libtirpc
From: Yegor Yefremov <[email protected]>
iproute2's configure script enables HAVE_RPC as soon as pkg-config finds libtirpc, without link-testing anything. misc/ss.c then calls getrpcbynumber(), which since the libtirpc 1.3.7 bump (commit 3f3d6e43de9b4aac7df8545fd811171256f878d3) is only exported when libtirpc is configured with --enable-rpcdb. On non-glibc toolchains there is no libc fallback, so linking ss fails:
ld: ss.o: in function `init_service_resolver':
ss.c:(.text+0x2558): undefined reference to `getrpcbynumber'
This is the same problem lsof hit in commit e4d075975f, fixed the same way here.
While looking at this, it turned out libtirpc was never listed in IPROUTE2_DEPENDENCIES at all, even though configure probes for it, so patch 1 adds that missing optional dependency first.
Tested with an aarch64 musl toolchain and BR2_PACKAGE_LIBTIRPC=y: before the series ss fails to link, after it builds and ss correctly resolves getrpcbynumber@TIRPC_0.3.0 from libtirpc.
Fixes:
https://autobuild.buildroot.org/results/390b7ed00da20c2349fe069ade4a65404834a484/
Yegor Yefremov (2):
package/iproute2: add optional dependency on libtirpc package/iproute2: fix build failure due to missing
BR2_PACKAGE_LIBTIRPC_RPCDB
package/iproute2/Config.in | 1 + package/iproute2/iproute2.mk | 4 ++++ 2 files changed, 5 insertions(+)
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot