Skip to contentSkip to conversation

package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB

PATCH Applied Bernd Kuhls 2 participants 14 messages Jan 3 – Jan 19

lore
Share & tools
lore
#0 lore raw

v4 cover package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB

Hi,

this series fixes build errors introduced by the bump of libtirpc to version 1.3.7 with buildroot commit 3f3d6e43de9b4aac7df8545fd811171256f878d3 which includes upstream commit
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193

These build errors, caused by the forementioned upstream commit, only occur with non-glibc toolchains:
https://patchwork.yoctoproject.org/comment/30091/
"but I believe it breaks the build with musl"

As shown by our autobuilders also uclibc is affected:

https://autobuild.buildroot.net/?reason=nfs-utils-2.8.4
https://autobuild.buildroot.net/?reason=quota-4.10
https://autobuild.buildroot.net/?reason=rpcbind-1.2.8

And indeed, building this glibc-based defconfig does not show any libtirpc-related build errors:
BR2_x86_64=y
BR2_x86_corei7=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PER_PACKAGE_DIRECTORIES=y
BR2_INIT_NONE=y
# BR2_PACKAGE_BUSYBOX is not set BR2_PACKAGE_NFS_UTILS=y
# BR2_PACKAGE_NFS_UTILS_RPC_NFSD is not set BR2_PACKAGE_RPCBIND=y
BR2_PACKAGE_SNORT3=y
BR2_PACKAGE_QUOTA=y
# BR2_TARGET_ROOTFS_TAR is not set

so we enable rpcdb support only for non-glibc toolchains following Yocto:
https://patchwork.yoctoproject.org/project/oe-core/patch/[email protected]/
"Add packageconfig for rpcdb

Enable it by default on musl, these functions are needed by packages e.g. quota, nfs-utils, snort3 on musl"

This patch series is based on v3 from Giulio:
https://patchwork.ozlabs.org/project/buildroot/list/?series=485299
with the following additions/changes:
- added quota and snort3 to the list of packages needing rpcdb support
- enable BR2_PACKAGE_LIBTIRPC_RPCDB only when needed, see individual patch comments for details
- libtirpc: move gss comment into if-block

Building this musl-based defconfig does not show any libtirpc-related build errors anymore with this patch series:

BR2_x86_64=y
BR2_x86_corei7=y
BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_64_MUSL_BLEEDING_EDGE=y BR2_PER_PACKAGE_DIRECTORIES=y
BR2_INIT_NONE=y
# BR2_PACKAGE_BUSYBOX is not set BR2_PACKAGE_NFS_UTILS=y
# BR2_PACKAGE_NFS_UTILS_RPC_NFSD is not set BR2_PACKAGE_RPCBIND=y
BR2_PACKAGE_SNORT3=y
BR2_PACKAGE_QUOTA=y
# BR2_TARGET_ROOTFS_TAR is not set

The snort3 patch included in this series only fixes the libtirpc-related configure error.

Regards, Bernd

Bernd Kuhls (2):
package/quota: fix build failure due to missing
BR2_PACKAGE_LIBTIRPC_RPCDB
package/snort3: fix build failure due to missing
BR2_PACKAGE_LIBTIRPC_RPCDB

Giulio Benetti (3):
package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB package/nfs-utils: fix build failure due to missing
BR2_PACKAGE_LIBTIRPC_RPCDB
package/rpcbind: fix build failure due to missing
BR2_PACKAGE_LIBTIRPC_RPCDB

 package/libtirpc/Config.in   | 17 ++++++++++++-----
 package/libtirpc/libtirpc.mk |  7 +++++++
 package/nfs-utils/Config.in  |  1 +
 package/quota/Config.in      |  1 +
 package/rpcbind/Config.in    |  1 +
 package/snort3/Config.in     |  1 +
 6 files changed, 23 insertions(+), 5 deletions(-)
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH v4 1/5 package/libtirpc: introduce BR2_PACKAGE_LIBTIRPC_RPCDB

From: Giulio Benetti <[email protected]>

Package libtirpc with commit[1] exposes --enable-rpcdb so make it selectable to allow packages that use rpcdb functions to enable it and build correctly.

[1]:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193

[Bernd: move gss comment into if-block]
---
 package/libtirpc/Config.in   | 17 ++++++++++++-----
 package/libtirpc/libtirpc.mk |  7 +++++++
 2 files changed, 19 insertions(+), 5 deletions(-)
package/libtirpc/Config.in +12 -5
index 31f1636ef5..371f7c46c1 100644
@@ -7,19 +7,26 @@ config BR2_PACKAGE_LIBTIRPC
 
 	  http://sourceforge.net/projects/libtirpc/
 
+if BR2_PACKAGE_LIBTIRPC
+
 config BR2_PACKAGE_LIBTIRPC_GSS
 	bool "gss"
 	depends on BR2_USE_MMU # libkrb5
 	depends on !BR2_STATIC_LIBS # libkrb5
-	depends on BR2_PACKAGE_LIBTIRPC
 	select BR2_PACKAGE_LIBKRB5
 	help
 	  Enable GSSAPI support
 
-comment "libtirpc needs a toolchain w/ threads"
-	depends on !BR2_TOOLCHAIN_HAS_THREADS
-
 comment "libtirpc gss support needs a toolchain w/ dynamic library"
 	depends on BR2_USE_MMU
 	depends on BR2_STATIC_LIBS
-	depends on BR2_PACKAGE_LIBTIRPC
+
+config BR2_PACKAGE_LIBTIRPC_RPCDB
+	bool "rpcdb"
+	help
+	  Enable RPCDB support
+
+endif
+
+comment "libtirpc needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
package/libtirpc/libtirpc.mk +7 -0
index ab15954561..eadacedfcf 100644
@@ -25,5 +25,12 @@ LIBTIRPC_CONF_OPTS += --disable-gssapi
 endif
 HOST_LIBTIRPC_CONF_OPTS = --disable-gssapi
 
+ifeq ($(BR2_PACKAGE_LIBTIRPC_RPCDB),y)
+LIBTIRPC_CONF_OPTS += --enable-rpcdb
+else
+LIBTIRPC_CONF_OPTS += --disable-rpcdb
+endif
+HOST_LIBTIRPC_CONF_OPTS += --disable-rpcdb
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw
Quoted 9 lines · On Sat, 3 Jan 2026 14:25:48 +0100 Bernd Kuhls <[email protected]> wrote:

From: Giulio Benetti <[email protected]>

Package libtirpc with commit[1] exposes --enable-rpcdb so make it selectable to allow packages that use rpcdb functions to enable it and build correctly.

[1]:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193

Quoted 8 lines
[Bernd: move gss comment into if-block]
---
 package/libtirpc/Config.in   | 17 ++++++++++++-----
 package/libtirpc/libtirpc.mk |  7 +++++++
 2 files changed, 19 insertions(+), 5 deletions(-)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Bernd Kuhls

In reply of:

Quoted 11 lines

Package libtirpc with commit[1] exposes --enable-rpcdb so make it selectable to allow packages that use rpcdb functions to enable it and build correctly.

[1]:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193

[Bernd: move gss comment into if-block]

Applied to 2025.02.x and 2025.11.x. Thanks

Quoted 65 lines
---
 package/libtirpc/Config.in   | 17 ++++++++++++-----
 package/libtirpc/libtirpc.mk |  7 +++++++
 2 files changed, 19 insertions(+), 5 deletions(-)
package/libtirpc/Config.in +12 -5
index 31f1636ef5..371f7c46c1 100644
@@ -7,19 +7,26 @@ config BR2_PACKAGE_LIBTIRPC
 
 	  http://sourceforge.net/projects/libtirpc/
 
+if BR2_PACKAGE_LIBTIRPC
+
 config BR2_PACKAGE_LIBTIRPC_GSS
 	bool "gss"
 	depends on BR2_USE_MMU # libkrb5
 	depends on !BR2_STATIC_LIBS # libkrb5
-	depends on BR2_PACKAGE_LIBTIRPC
 	select BR2_PACKAGE_LIBKRB5
 	help
 	  Enable GSSAPI support
 
-comment "libtirpc needs a toolchain w/ threads"
-	depends on !BR2_TOOLCHAIN_HAS_THREADS
-
 comment "libtirpc gss support needs a toolchain w/ dynamic library"
 	depends on BR2_USE_MMU
 	depends on BR2_STATIC_LIBS
-	depends on BR2_PACKAGE_LIBTIRPC
+
+config BR2_PACKAGE_LIBTIRPC_RPCDB
+	bool "rpcdb"
+	help
+	  Enable RPCDB support
+
+endif
+
+comment "libtirpc needs a toolchain w/ threads"
+	depends on !BR2_TOOLCHAIN_HAS_THREADS
package/libtirpc/libtirpc.mk +7 -0
index ab15954561..eadacedfcf 100644
@@ -25,5 +25,12 @@ LIBTIRPC_CONF_OPTS += --disable-gssapi
 endif
 HOST_LIBTIRPC_CONF_OPTS = --disable-gssapi
 
+ifeq ($(BR2_PACKAGE_LIBTIRPC_RPCDB),y)
+LIBTIRPC_CONF_OPTS += --enable-rpcdb
+else
+LIBTIRPC_CONF_OPTS += --disable-rpcdb
+endif
+HOST_LIBTIRPC_CONF_OPTS += --disable-rpcdb
+
 $(eval $(autotools-package))
 $(eval $(host-autotools-package))
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw

PATCH v4 2/5 package/nfs-utils: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB

In reply to Bernd Kuhls

From: Giulio Benetti <[email protected]>

Package nfs-utils requires libtirpc rpcdb option enabled. Package libtirpc with commit [1] disabled rpcdb functions by default so let's select it by default to enable rpcdb functions required.

[1]:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193

Fixes:
https://autobuild.buildroot.org/results/29adf2d04cf4c46e492af95edaa96983985d6b57/

[Bernd: enable BR2_PACKAGE_LIBTIRPC_RPCDB only for non-glibc toolchains]
---
 package/nfs-utils/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/nfs-utils/Config.in +1 -0
index 02cc7e78cc..89b8b5da42 100644
@@ -9,6 +9,7 @@ config BR2_PACKAGE_NFS_UTILS
 	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 # getrandom()
 	select BR2_PACKAGE_LIBEVENT
 	select BR2_PACKAGE_LIBTIRPC # IPv6 requires libtirpc
+	select BR2_PACKAGE_LIBTIRPC_RPCDB if !BR2_TOOLCHAIN_USES_GLIBC
 	select BR2_PACKAGE_SQLITE
 	select BR2_PACKAGE_UTIL_LINUX
 	select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#5 lore raw

Re: [Buildroot] [PATCH v4 2/5] package/nfs-utils: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB

Quoted 9 lines · On Sat, 3 Jan 2026 14:25:49 +0100 Bernd Kuhls <[email protected]> wrote:

From: Giulio Benetti <[email protected]>

Package nfs-utils requires libtirpc rpcdb option enabled. Package libtirpc with commit [1] disabled rpcdb functions by default so let's select it by default to enable rpcdb functions required.

[1]:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193

Quoted 6 lines

Fixes:
https://autobuild.buildroot.org/results/29adf2d04cf4c46e492af95edaa96983985d6b57/

[Bernd: enable BR2_PACKAGE_LIBTIRPC_RPCDB only for non-glibc toolchains]

This change was not correct. Building nfs-utils with musl, using a libtirpc that doesn't have rpcdb enabled, failed miserably.

package/nfs-utils/Config.in config BR2_PACKAGE_NFS_UTILS · line 12

Quoted 2 lines
package/nfs-utils/Config.in +1 -0
 	select BR2_PACKAGE_LIBTIRPC # IPv6 requires libtirpc
+	select BR2_PACKAGE_LIBTIRPC_RPCDB if !BR2_TOOLCHAIN_USES_GLIBC

So I changed to:

select BR2_PACKAGE_LIBTIRPC_RPCDB

Thanks!

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#6 lore raw

Re: [Buildroot] [PATCH v4 2/5] package/nfs-utils: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB

In reply to Bernd Kuhls

In reply of:

Quoted 7 lines

Package nfs-utils requires libtirpc rpcdb option enabled. Package libtirpc with commit [1] disabled rpcdb functions by default so let's select it by default to enable rpcdb functions required.

[1]:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193

Quoted 7 lines

Fixes:
https://autobuild.buildroot.org/results/29adf2d04cf4c46e492af95edaa96983985d6b57/

[Bernd: enable BR2_PACKAGE_LIBTIRPC_RPCDB only for non-glibc toolchains]

Applied to 2025.02.x and 2025.11.x. Thanks

Quoted 23 lines
---
 package/nfs-utils/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/nfs-utils/Config.in +1 -0
index 02cc7e78cc..89b8b5da42 100644
@@ -9,6 +9,7 @@ config BR2_PACKAGE_NFS_UTILS
 	depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17 # getrandom()
 	select BR2_PACKAGE_LIBEVENT
 	select BR2_PACKAGE_LIBTIRPC # IPv6 requires libtirpc
+	select BR2_PACKAGE_LIBTIRPC_RPCDB if !BR2_TOOLCHAIN_USES_GLIBC
 	select BR2_PACKAGE_SQLITE
 	select BR2_PACKAGE_UTIL_LINUX
 	select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#7 lore raw

PATCH v4 3/5 package/rpcbind: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB

In reply to Bernd Kuhls

From: Giulio Benetti <[email protected]>

Package rpcbind requires libtirpc rpcdb option enabled. Package libtirpc with commit [1] disabled rpcdb functions by default so let's select it by default to enable rpcdb functions required.

[1]:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193

Fixes:
https://autobuild.buildroot.org/results/f461212605d9d5f1c38a1ffe00a83912522bf482/

[Bernd: enable BR2_PACKAGE_LIBTIRPC_RPCDB only for non-glibc toolchains]
---
 package/rpcbind/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/rpcbind/Config.in +1 -0
index 9cde7bba39..0b2c207580 100644
@@ -5,6 +5,7 @@ config BR2_PACKAGE_RPCBIND
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libtirpc
 	depends on BR2_USE_MMU 	# fork()
 	select BR2_PACKAGE_LIBTIRPC
+	select BR2_PACKAGE_LIBTIRPC_RPCDB if !BR2_TOOLCHAIN_USES_GLIBC
 	help
 	  The rpcbind utility is a server that converts RPC program
 	  numbers into universal addresses.
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#8 lore raw

Re: [Buildroot] [PATCH v4 3/5] package/rpcbind: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB

package/rpcbind/Config.in config BR2_PACKAGE_RPCBIND · line 8

Quoted 9 lines · On Sat, 3 Jan 2026 14:25:50 +0100 Bernd Kuhls <[email protected]> wrote:
package/rpcbind/Config.in +1 -0
index 9cde7bba39..0b2c207580 100644
@@ -5,6 +5,7 @@ config BR2_PACKAGE_RPCBIND
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libtirpc
 	depends on BR2_USE_MMU 	# fork()
 	select BR2_PACKAGE_LIBTIRPC
+	select BR2_PACKAGE_LIBTIRPC_RPCDB if !BR2_TOOLCHAIN_USES_GLIBC

Same as nfs-utils, dropped " if !BR2_TOOLCHAIN_USES_GLIBC", and applied.

Thomas

Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#9 lore raw

Re: [Buildroot] [PATCH v4 3/5] package/rpcbind: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB

In reply to Bernd Kuhls

In reply of:

Quoted 7 lines

Package rpcbind requires libtirpc rpcdb option enabled. Package libtirpc with commit [1] disabled rpcdb functions by default so let's select it by default to enable rpcdb functions required.

[1]:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193

Quoted 7 lines

Fixes:
https://autobuild.buildroot.org/results/f461212605d9d5f1c38a1ffe00a83912522bf482/

[Bernd: enable BR2_PACKAGE_LIBTIRPC_RPCDB only for non-glibc toolchains]

Applied to 2025.02.x and 2025.11.x. Thanks

Quoted 23 lines
---
 package/rpcbind/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/rpcbind/Config.in +1 -0
index 9cde7bba39..0b2c207580 100644
@@ -5,6 +5,7 @@ config BR2_PACKAGE_RPCBIND
 	depends on BR2_TOOLCHAIN_HAS_THREADS # libtirpc
 	depends on BR2_USE_MMU 	# fork()
 	select BR2_PACKAGE_LIBTIRPC
+	select BR2_PACKAGE_LIBTIRPC_RPCDB if !BR2_TOOLCHAIN_USES_GLIBC
 	help
 	  The rpcbind utility is a server that converts RPC program
 	  numbers into universal addresses.
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#10 lore raw

PATCH v4 4/5 package/quota: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB

In reply to Bernd Kuhls

Package quota requires libtirpc rpcdb option enabled with non-glibc toolchains since the bump of libtirpc to version 1.3.7 with buildroot commit 3f3d6e43de9b4aac7df8545fd811171256f878d3 which includes upstream commit:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193

These build errors, caused by the forementioned upstream commit, only occur with non-glibc toolchains:
https://patchwork.yoctoproject.org/comment/30091/
"but I believe it breaks the build with musl"
as shown by our autobuilders:

https://autobuild.buildroot.net/?reason=quota-4.10

Fixes:
https://autobuild.buildroot.net/results/fb0/fb0adbb7687d8db4228e2fc1ce7a7272486fd3ef/
"svc_socket.c:(.text+0x2c): undefined reference to `getrpcbynumber'"

---
 package/quota/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/quota/Config.in +1 -0
index 051a765570..0b7b5b8946 100644
@@ -4,6 +4,7 @@ config BR2_PACKAGE_QUOTA
 	depends on BR2_USE_MMU # fork()
 	depends on BR2_TOOLCHAIN_HAS_NATIVE_RPC || BR2_TOOLCHAIN_HAS_THREADS # libtirpc
 	select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
+	select BR2_PACKAGE_LIBTIRPC_RPCDB if BR2_PACKAGE_LIBTIRPC
 	help
 	  Implementation of the disk quota system.
 
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#11 lore raw

Re: [Buildroot] [PATCH v4 4/5] package/quota: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB

Quoted 14 lines · On Sat, 3 Jan 2026 14:25:51 +0100 Bernd Kuhls <[email protected]> wrote:

Package quota requires libtirpc rpcdb option enabled with non-glibc toolchains since the bump of libtirpc to version 1.3.7 with buildroot commit 3f3d6e43de9b4aac7df8545fd811171256f878d3 which includes upstream commit:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193

These build errors, caused by the forementioned upstream commit, only occur with non-glibc toolchains:
https://patchwork.yoctoproject.org/comment/30091/
"but I believe it breaks the build with musl"
as shown by our autobuilders:

https://autobuild.buildroot.net/?reason=quota-4.10

Quoted 8 lines

Fixes:
https://autobuild.buildroot.net/results/fb0/fb0adbb7687d8db4228e2fc1ce7a7272486fd3ef/
"svc_socket.c:(.text+0x2c): undefined reference to `getrpcbynumber'"

---
 package/quota/Config.in | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#12 lore raw

PATCH v4 5/5 package/snort3: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB

In reply to Bernd Kuhls

Package snort3 requires libtirpc rpcdb option enabled with non-glibc toolchains since the bump of libtirpc to version 1.3.7 with buildroot commit 3f3d6e43de9b4aac7df8545fd811171256f878d3 which includes upstream commit:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193

These build errors, caused by the forementioned upstream commit, only occur with non-glibc toolchains:
https://patchwork.yoctoproject.org/comment/30091/
"but I believe it breaks the build with musl".

The build error during configure stage:

-- Looking for getrpcent - not found
CMake Error at cmake/sanity_checks.cmake:51 (message):
Couldn't find an RPC program number database implementation!
Call Stack (most recent call first):
CMakeLists.txt:31 (include)

was not yet found by the autobuilders but can be reproduced by this defconfig:

BR2_x86_64=y
BR2_x86_corei7=y
BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_64_MUSL_BLEEDING_EDGE=y BR2_PER_PACKAGE_DIRECTORIES=y
BR2_INIT_NONE=y
# BR2_PACKAGE_BUSYBOX is not set BR2_PACKAGE_SNORT3=y
# BR2_TARGET_ROOTFS_TAR is not set

---
 package/snort3/Config.in | 1 +
 1 file changed, 1 insertion(+)
package/snort3/Config.in +1 -0
index 9b96e7cb58..7171603aa3 100644
@@ -17,6 +17,7 @@ config BR2_PACKAGE_SNORT3
 	select BR2_PACKAGE_LUAJIT
 	select BR2_PACKAGE_PCRE
 	select BR2_PACKAGE_LIBTIRPC if !BR2_TOOLCHAIN_HAS_NATIVE_RPC
+	select BR2_PACKAGE_LIBTIRPC_RPCDB if BR2_PACKAGE_LIBTIRPC
 	select BR2_PACKAGE_OPENSSL
 	select BR2_PACKAGE_ZLIB
 	help
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#13 lore raw

Re: [Buildroot] [PATCH v4 5/5] package/snort3: fix build failure due to missing BR2_PACKAGE_LIBTIRPC_RPCDB

Quoted 32 lines · On Sat, 3 Jan 2026 14:25:52 +0100 Bernd Kuhls <[email protected]> wrote:

Package snort3 requires libtirpc rpcdb option enabled with non-glibc toolchains since the bump of libtirpc to version 1.3.7 with buildroot commit 3f3d6e43de9b4aac7df8545fd811171256f878d3 which includes upstream commit:
https://git.linux-nfs.org/?p=steved/libtirpc.git;a=commit;h=7cea8ad66aecc21e6caae330b5d31075af399193

These build errors, caused by the forementioned upstream commit, only occur with non-glibc toolchains:
https://patchwork.yoctoproject.org/comment/30091/
"but I believe it breaks the build with musl".

The build error during configure stage:

-- Looking for getrpcent - not found
CMake Error at cmake/sanity_checks.cmake:51 (message):
Couldn't find an RPC program number database implementation!
Call Stack (most recent call first):
CMakeLists.txt:31 (include)

was not yet found by the autobuilders but can be reproduced by this defconfig:

BR2_x86_64=y
BR2_x86_corei7=y
BR2_TOOLCHAIN_EXTERNAL=y BR2_TOOLCHAIN_EXTERNAL_BOOTLIN_X86_64_MUSL_BLEEDING_EDGE=y BR2_PER_PACKAGE_DIRECTORIES=y
BR2_INIT_NONE=y
# BR2_PACKAGE_BUSYBOX is not set BR2_PACKAGE_SNORT3=y
# BR2_TARGET_ROOTFS_TAR is not set

Quoted 4 lines
---
 package/snort3/Config.in | 1 +
 1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot