rpcbind-1.2.7

Introduction to rpcbind

The rpcbind program is a replacement for portmap. It is required for import or export of Network File System (NFS) shared directories.

[Note]

Note

Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.

Package Information

Additional Downloads

rpcbind Dependencies

Required

libtirpc-1.3.6

Installation of rpcbind

In order to get rpcbind to work properly, first fix the package to use correct service name:

sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c

Install rpcbind by running the following commands:

patch -Np1 -i ../rpcbind-1.2.7-vulnerability_fixes-1.patch &&

./configure --prefix=/usr                                  \
            --bindir=/usr/sbin                             \
            --with-rpcuser=root                            \
            --enable-warmstarts                            \
            --without-systemdsystemunitdir                 &&
make

This package does not come with a test suite.

Now, as the root user:

make install

Command Explanations

--with-rpcuser=root: This works around an error in the configure script.

--without-systemdsystemunitdir: This version of BLFS does not support systemd.

Configuring rpcbind

Boot Script

Install the /etc/rc.d/init.d/rpcbind init script included in the blfs-bootscripts-20241209 package.

make install-rpcbind

Contents

Installed Program: rpcbind and rpcinfo
Installed Libraries: None
Installed Directories: None

Short Descriptions

rpcbind

is a server that converts RPC program numbers into universal addresses. It must be running on the host to be able to make RPC calls on a server on that machine

rpcinfo

makes an RPC call to an RPC server and reports data according to the requested options