1. First of all, go to PATCH-nn directory and follow instructions.
  See you later 8)8)

2. make vvvbuild

3. Install librpc.so.1, libtli.so.1, tisock.so, dns.so and straddr.so to /lib.
  Install netconfig and tli_devices to /etc.

5. Get fresh libc-x.y.x tree, discard obsolete directories rpc and des.
  Find the place in elf/Makefile, where libc.so is linked and
  add -lrpc option to command line (it is temporary measure for
  transition period)
  Compile it.

6. Cross finger and replace libc with new one.
  DONT REPLACE OLD INCLUDE FILES AND libc.so THAT USED FOR LINKING.

7. Kill portmap. Start rpcbind.
  Kill old keyserv (if it is running), start new one.

8. That is all.

This library is binary compatible with RPC4.0
(I managed to make it, but broke compatibility with SVR4 iABI.
It's not great loss for Linux world)

Several broken programs will stop to work
(they forgot to set sa_family field in struct sockaddr)
it is very easy to repair them.

Just find all initializations of sockaddr_in's and add:
       memset(&sin, 0, sizeof(sin));
       sin->sin_family = AF_INET;

Compile, and link with RPC4.0 include files and library.

REMEMBER: old programs work with new library, but
programs compiled with new include files will not
work with old library!

Alexey Kuznetsov.
[email protected]