Subject: make build failure on macppc
To: None <current-users@netbsd.org>
From: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
List: current-users
Date: 02/03/2001 22:43:47
Hi,

make build failed on macppc as below:

...
dependall ===> usr.sbin/rpc.bootparamd
rm -f bootparam_prot.x
ln -s /a/destdir/usr/include/rpcsvc/bootparam_prot.x bootparam_prot.x
rm -f bootparam_prot.h
ln -s /a/destdir/usr/include/rpcsvc/bootparam_prot.h bootparam_prot.h
rpcgen -C -L -m -o bootparam_prot_svc.c bootparam_prot.x
mkdep -a  -DYP -nostdinc -idirafter /a/destdir/usr/include /b/NetBSD-cvs/src/usr.sbin/rpc.bootparamd/bootparamd.c bootparam_prot_svc.c
cc -O  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized -Werror   -DYP -nostdinc -idirafter /a/destdir/usr/include -c /b/NetBSD-cvs/src/usr.sbin/rpc.bootparamd/bootparamd.c
cc1: warnings being treated as errors
/b/NetBSD-cvs/src/usr.sbin/rpc.bootparamd/bootparamd.c: In function `main':
/b/NetBSD-cvs/src/usr.sbin/rpc.bootparamd/bootparamd.c:145: warning: unsigned int format, long unsigned int arg (arg 3)
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.
*** Error code 1

Stop.



I modified bootparamd.c as below and it compiled well.
Please someone look at this?

Index: bootparamd.c
===================================================================
RCS file: /cvsroot/basesrc/usr.sbin/rpc.bootparamd/bootparamd.c,v
retrieving revision 1.37
diff -u -r1.37 bootparamd.c
--- bootparamd.c	2001/01/11 01:44:23	1.37
+++ bootparamd.c	2001/02/03 13:39:04
@@ -141,7 +141,7 @@
  * build fails update the "rpcgen" program and use "make cleandir" and
  * "make includes" in "src/lib/librpcsvc" afterwards.
  */
-		errx(1, "unable to register BOOTPARAMPROG version %u, udp",
+		errx(1, "unable to register BOOTPARAMPROG version %lu, udp",
 		    BOOTPARAMVERS);
 
 	svc_run();

--
SUNAGAWA Keiki <kei@NetBSD.org> <kei@jp.NetBSD.org>
http://www.NetBSD.org/ http://www.jp.NetBSD.org/