Linux-NFS Archive on
 help / color / Atom feed
* [nfs-utils PATCH 1/1] Let the configure script find getrpcbynumber in libtirpc
@ 2019-11-22 23:24 Petr Vorel
  0 siblings, 0 replies; only message in thread
From: Petr Vorel @ 2019-11-22 23:24 UTC (permalink / raw)
  To: linux-nfs; +Cc: Thomas Petazzoni, Petr Vorel

From: Thomas Petazzoni <>

The getrpcbynumber() function may not be available in the C library,
but only in the libtirpc library. Take this into account when checking
for the existence of getrpcbynumber() and getrpcbynumber_r().

Reviewed-by: Petr Vorel <>
[ pvorel: patch taken from Buildroot distribution ]
Signed-off-by: Petr Vorel <>
Signed-off-by: Thomas Petazzoni <>
--- | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/ b/
index 949ff9fc..e9699752 100644
--- a/
+++ b/
@@ -534,11 +534,23 @@ AC_FUNC_STAT
 AC_CHECK_FUNCS([alarm atexit dup2 fdatasync ftruncate getcwd \
                gethostbyaddr gethostbyname gethostname getmntent \
-               getnameinfo getrpcbyname getrpcbynumber getrpcbynumber_r getifaddrs \
+               getnameinfo getrpcbyname getifaddrs \
                gettimeofday hasmntopt inet_ntoa innetgr memset mkdir pathconf \
                ppoll realpath rmdir select socket strcasecmp strchr strdup \
                strerror strrchr strtol strtoul sigprocmask name_to_handle_at])
+AC_CHECK_FUNCS([getrpcbynumber getrpcbynumber_r])
+if test "$ac_cv_func_getrpcbynumber_r" != "yes" -a "$ac_cv_func_getrpcbynumber" != "yes"; then
+   AC_MSG_ERROR([Neither getrpcbynumber_r nor getrpcbynumber are available])
 dnl *************************************************************
 dnl Check for data sizes
 dnl *************************************************************

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, back to index

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-22 23:24 [nfs-utils PATCH 1/1] Let the configure script find getrpcbynumber in libtirpc Petr Vorel

Linux-NFS Archive on

Archives are clonable:
	git clone --mirror linux-nfs/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-nfs linux-nfs/ \
	public-inbox-index linux-nfs

Example config snippet for mirrors

Newsgroup available over NNTP:

AGPL code for this site: git clone