All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/2] package/iproute2: fix musl/uclibc build failure with libtirpc
@ 2026-09-22 13:26 Yegor Yefremov via buildroot
  2026-09-22 13:26 ` [Buildroot] [PATCH 1/2] package/iproute2: add optional dependency on libtirpc Yegor Yefremov via buildroot
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Yegor Yefremov via buildroot @ 2026-09-22 13:26 UTC (permalink / raw)
  To: buildroot; +Cc: Petr Vorel

From: Yegor Yefremov <yegorslists@googlemail.com>

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(+)

-- 
2.34.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-10-10 17:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-22 13:26 [Buildroot] [PATCH 0/2] package/iproute2: fix musl/uclibc build failure with libtirpc Yegor Yefremov via buildroot
2026-09-22 13:26 ` [Buildroot] [PATCH 1/2] package/iproute2: add optional dependency on libtirpc Yegor Yefremov via buildroot
2026-09-22 13:26 ` [Buildroot] [PATCH 2/2] package/iproute2: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB Yegor Yefremov via buildroot
2026-10-10 17:24 ` [Buildroot] [PATCH 0/2] package/iproute2: fix musl/uclibc build failure with libtirpc Thomas Petazzoni via buildroot

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.