If you have problems compiling these sources please make sure that you use
the rusers.h and rusers.x from the libc (/usr/include/rpcsvc/rusers.*).
You probably also have to patch rpcgen to always include

#include <rpc/types.h>
#include <rpc/xdr.h>

in *_xdr.c files. The following patch should work for the (ANSI) rpcgen
sources:

--- rpc_main.c.orig	Tue Mar 12 23:11:17 1991
+++ rpc_main.c	Sat Jun  1 11:20:14 1996
@@ -261,6 +261,13 @@
 	f_print(fout, " */\n\n");
 }
 
+static
+add_stdheaders()
+{
+	f_print(fout, "#include <rpc/types.h>\n");
+	f_print(fout, "#include <rpc/xdr.h>\n\n");
+}
+
 /* clear list of arguments */
 static void clear_args()
 {
@@ -386,6 +393,7 @@
 	outfilename = extend ? extendfile(infile, outfile) : outfile;
 	open_output(infile, outfilename);
 	add_warning();
+	add_stdheaders();
 	if (infile && (include = extendfile(infile, ".h"))) {
 		f_print(fout, "#include \"%s\"\n", include);
 		free(include);



--
 Peter Tobias                                EMail:
 Fachhochschule Ostfriesland                 tobias@et-inf.fho-emden.de
 Fachbereich Elektrotechnik und Informatik   tobias@debian.org
 Constantiaplatz 4, 26723 Emden, Germany     tobias@linux.de

