Subject: kernel/i386 w/ opms build fails
To: None <current-users@NetBSD.ORG>
From: NAKAJIMA Yoshihiro <nakayosh@kcn.ne.jp>
List: current-users
Date: 08/19/1999 23:44:37
Hello folks,
Kernel (NetBSD/i386 w/ opms and wscons) compilation fails:
cc -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes
-Wpointer-arith -Wno-main -I. -I../../../../arch -I../../../..
-nostdinc -DDIAGNOSTIC -DMAXUSERS=32 -D_KERNEL -Di386
-c ../../../../arch/i386/isa/pms.c
cc1: warnings being treated as errors
../../../../arch/i386/isa/pms.c: In function `opmsinput':
../../../../arch/i386/isa/pms.c:607: warning: implicit declaration of
function `pms_dev_cmd'
*** Error code 1
Stop.
My opms.h is:
% cat opms.h
#define NOPMS 1
#define NOPMS_HACK 0
#define NOPMS_PCKBC 1
But ``pms_dev_cmd'' is defined inside ``#if (NOPMS_HACK > 0)''.
Cheers,
--
Yoshihiro