--- print.c
+++ print.c
@@ -161,6 +161,7 @@
 static void
 fill_portmap()
 {
+#if !defined(__UCLIBC__) || (defined(__UCLIBC__) && defined(__UCLIBC_HAS_RPC__))
 	char buf[128], *cp, *nm;
 	CLIENT *c;
 	int h, port, pr;
@@ -279,6 +280,7 @@
 	    Pth[pr][h] = pt;
 	}
 	clnt_destroy(c);
+#endif
 }
 #endif	/* !defined(HASNORPC_H) */
 
