Subject: compiling -current on amd64...
To: None <current-users@netbsd.org>
From: Kurt Schreiner <ks@ub.uni-mainz.de>
List: current-users
Date: 06/28/2006 19:18:56
failed in isa/clock.c when pcppi is not defined in ...config/<CONFIGFILE>.

cc1: warnings being treated as errors
/u/NetBSD/src/sys/arch/amd64/isa/clock.c:368: warning: function declaration isn't a prototype
--- clock.o ---
*** [clock.o] Error code 1


To solve this, the following patch is needed:

>-547: diff -u /u/NetBSD/{,l}src/sys/arch/amd64/isa/clock.c
--- /u/NetBSD/src/sys/arch/amd64/isa/clock.c    2006-06-08 12:54:36.000000000 +0200
+++ /u/NetBSD/lsrc/sys/arch/amd64/isa/clock.c   2006-06-28 19:02:49.000000000 +0200
@@ -363,6 +363,7 @@
 }
 
 
+#if (NPCPPI > 0)
 static void
 tickle_tc() 
 {
@@ -387,12 +388,14 @@
        }
 
 }
+#endif
 
 int
 clockintr(void *arg, struct intrframe frame)
 {
+#if (NPCPPI > 0)
        tickle_tc();
-
+#endif
        hardclock((struct clockframe *)&frame);
 
 #if NMCA > 0


Kurt