Subject: Compile problems?
To: None <port-hpcmips@netbsd.org>
From: M. Warner Losh <imp@bsdimp.com>
List: port-hpcmips
Date: 03/23/2003 20:30:59
I have a completely fresh NetBSD tree as of Mar 24 01:25 UTC.  I just
tried to do a build with it and I get:

/paco/imp/N/sys/arch/hpcmips/vr/vrc4173bcu.c: In function `vrc4173bcu_print':
/paco/imp/N/sys/arch/hpcmips/vr/vrc4173bcu.c:432: `VRIPIFCF_ADDR_DEFAULT' undeclared (first use in this function)
/paco/imp/N/sys/arch/hpcmips/vr/vrc4173bcu.c:432: (Each undeclared identifier is reported only once
/paco/imp/N/sys/arch/hpcmips/vr/vrc4173bcu.c:432: for each function it appears in.)
/paco/imp/N/sys/arch/hpcmips/vr/vrc4173bcu.c:434: `VRIPIFCF_SIZE_DEFAULT' undeclared (first use in this function)
/paco/imp/N/sys/arch/hpcmips/vr/vrc4173bcu.c:437: `VRIPIFCF_ADDR2_DEFAULT' undeclared (first use in this function)
/paco/imp/N/sys/arch/hpcmips/vr/vrc4173bcu.c:439: `VRIPIFCF_SIZE2_DEFAULT' undeclared (first use in this function)
/paco/imp/N/sys/arch/hpcmips/vr/vrc4173bcu.c: In function `vrc4173bcu_search':
/paco/imp/N/sys/arch/hpcmips/vr/vrc4173bcu.c:456: `VRIPIFCF_UNIT' undeclared (first use in this function)
/paco/imp/N/sys/arch/hpcmips/vr/vrc4173bcu.c:457: `VRIPIFCF_ADDR' undeclared (first use in this function)
/paco/imp/N/sys/arch/hpcmips/vr/vrc4173bcu.c:458: `VRIPIFCF_SIZE' undeclared (first use in this function)
/paco/imp/N/sys/arch/hpcmips/vr/vrc4173bcu.c:459: `VRIPIFCF_ADDR2' undeclared (first use in this function)
/paco/imp/N/sys/arch/hpcmips/vr/vrc4173bcu.c:460: `VRIPIFCF_SIZE2' undeclared (first use in this function)

Looks like we need:
Index: vrc4173bcu.c
===================================================================
RCS file: /u/misc/imp/NetBSD-cvs/main/src/sys/arch/hpcmips/vr/vrc4173bcu.c,v
retrieving revision 1.12
diff -u -r1.12 vrc4173bcu.c
--- vrc4173bcu.c        1 Jan 2003 01:40:27 -0000       1.12
+++ vrc4173bcu.c        24 Mar 2003 03:19:39 -0000
@@ -45,6 +45,8 @@
 #include <hpcmips/vr/vrc4173icureg.h>
 #include <hpcmips/vr/vrc4173cmureg.h>
 
+#include "locators.h"
+
 #ifdef VRC4173BCU_DEBUG
 #define DPRINTF_ENABLE
 #define DPRINTF_DEBUG  vrc4173bcu_debug

To make this compile again.  Since this works on my build box, I've
gone ahead and committed it.  If this isn't right, please let me know.

Warner