This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Arago Linux: how to add rpcbind

I'm using the EVMK2H KeystoneII EVM with mcsdk_linux_3_01_04_07 and need to run an RPC server application under Linux (Arago 2015.05).  When I start the RPC server, it fails with this error message:

"Cannot register service: RPC: Unable to receive; errno = Connection refused"

I suspect the problem is that rpcbind is not running, but rpcbind does not appear to be present in Arago 2015.05.  I also don't see the rpcinfo tool that helps debugging this sort of problem.  How do I include those in Arago 2015.05 (or are they there and I'm overlooking them)?

Thanks,
John

  • You can get the source code and cross compile it with linaro toolchain (arm-linux-gnueabihf-)
  • Titus, I'm trying this.  The rpcbind package requires also the tirpc package so I need to cross-compile both of those.  It appears to succeed for libtirpc but then rpcbind configuration fails to recognize tirpc.  

    Here's what I did.

    Download rpcbind from here: http://www.linuxfromscratch.org/blfs/view/svn/basicnet/rpcbind.html

    Download libtirpc from here: http://www.linuxfromscratch.org/blfs/view/svn/basicnet/libtirpc.html

    Unpack, configure, build and install libtirpc:

    sudo tar xaf libtirpc-1.0.1.tar.bz2
    cd libtirpc-1.0.1/
    sudo ./configure --host=arm-linux-gnueabihf --build=x86-linux-gnu  -prefix=/usr/arm-linux-gnueabihf --disable-gssapi
    sudo make
    sudo make install

    All of that completes without errors.

    Unpack and patch rpcbind (per the instructions at linuxfromscratch.org):

    sudo tar xaf rpcbind-0.2.3.tar.bz2
    cd rpcbind-0.2.3/
    sudo sed -i "/servname/s:rpcbind:sunrpc:" src/rpcbind.c
    sudo patch -Np1 -i ../rpcbind-0.2.3-tirpc_fix-1.patch

    Configure rpcbind (fails):

    sudo ./configure --host=arm-linux-gnueabihf --build=x86-linux-gnu  -prefix=/usr/arm-linux-gnueabihf

    ...
    checking for TIRPC... no

    configure: error: Package requirements (libtirpc) were not met: No package 'libtirpc' found
    Consider adjusting the PKG_CONFIG_PATH environment variable if you installed software in a non-standard prefix.
    Alternatively, you may set the environment variables TIRPC_CFLAGS and TIRPC_LIBS to avoid the need to call pkg-config.

    I tried:

    export PKG_CONFIG_PATH=/usr/arm-linux-gnueabihf/lib/pkgconfig

    but configure fails with the same error.  

    This is my first attempt to cross-compile Linux packages.  Please advise.

    Thanks,

    John