From: Yegor Yefremov via buildroot <buildroot@buildroot.org>
To: buildroot@buildroot.org
Cc: Petr Vorel <petr.vorel@gmail.com>
Subject: [Buildroot] [PATCH 0/2] package/iproute2: fix musl/uclibc build failure with libtirpc
Date: Tue, 22 Sep 2026 15:26:46 +0200 [thread overview]
Message-ID: <20260922132648.3229462-1-yegorslists@gmail.com> (raw)
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
next reply other threads:[~2026-09-22 13:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-22 13:26 Yegor Yefremov via buildroot [this message]
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
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=20260922132648.3229462-1-yegorslists@gmail.com \
--to=buildroot@buildroot.org \
--cc=petr.vorel@gmail.com \
--cc=yegorslists@googlemail.com \
/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