sunrpc patch that fixes nfs-server initialization timeouts

George Prekas prekgeo@yahoo.com
Mon Nov 4 10:41:00 GMT 2013


This patch fixes the problem that is causing the following error message:

Cannot register service: RPC: Timed out
rpcmisc.c 99 : unable to register

The problem is described here:
http://cygwin.com/ml/cygwin/2004-08/msg00900.html
http://cygwin.com/ml/cygwin/2013-06/msg00304.html

Sunrpc uses an ioctl to get the local IP address of the machine. This is error prone and in case you have more than one network interfaces it will most probably not work. A better alternative would be to use the loopback address (127.0.0.1).

The procedure to apply the patch is the following:
* Download source packages nfs-server and sunrpc.
* Execute use_loopback.sh

--
George Prekas
Dipl. Electrical and Computer Engineer, National Technical University of Athens
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix_compile.patch
Type: text/x-diff
Size: 505 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20131104/e44b6a4e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use_loopback.patch
Type: text/x-diff
Size: 1209 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20131104/e44b6a4e/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: use_loopback.sh
Type: application/x-sh
Size: 221 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin-apps/attachments/20131104/e44b6a4e/attachment.sh>


More information about the Cygwin-apps mailing list