Subject: compilation problem of wskbd.c
To: None <current-users@netbsd.org>
From: Kazushi (Jam) Marukawa <jam@pobox.com>
List: current-users
Date: 06/14/1999 23:38:22
Hi,

Few days ago, after I checked out current codes by using
CVS, the compilation of the kernel has started stopping
while compiling wscons/wskbd.c with following error messages

cc  -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes  -Wpointer-arith -Wno-main -I. -I../../../../arch -I../../../.. -nostdinc -DCONSDEVNAME=\"com\" -DCONADDR="0x2f8" -DCONSPEED="0xe100" -DCONS_OVERRIDE -DNKMEMCLUSTERS="(2 * 6 * 1024 * 1024 / CLBYTES)" -DLKM -DDIAGNOSTIC -DNS -DMAXUSERS=32 -D_KERNEL -Di386  -c ../../../../dev/wscons/wskbd.c
../../../../dev/wscons/wskbd.c: In function `wskbd_displayioctl':
../../../../dev/wscons/wskbd.c:776: `wskbd_repeat' undeclared (first use in this function)
../../../../dev/wscons/wskbd.c:776: (Each undeclared identifier is reported only once
../../../../dev/wscons/wskbd.c:776: for each function it appears in.)
*** Error code 1


The problem seems to be at the line 766 of wskbd.c.  I guess
"#ifdef WSDISPLAY_COMPAT_RAWKBD" should be "#if NWSDISPLAY
> 0 && defined(WSDISPLAY_COMPAT_RAWKBD)".

However, I'm not sure what is the right configuration for
the serial console on the current-netbsd.  For example, the
configration file also has the definition of
WSDISPLAY_COMPAT_RAWKBD, so if I eliminate this definition,
the kernerl might be well configured.  I'm not sure which
correction is right.  Could anybody check this?

In addition, my configuration file is changed like
following in order to configure without keyboard and VGA.


@@ -235,18 +242,18 @@
 #options       NORWEGIAN_KBD

 # wscons
-pckbc0 at isa?                 # pc keyboard controller
-pckbd* at pckbc?               # PC keyboard
+#pckbc0        at isa?                 # pc keyboard controller
+#pckbd*        at pckbc?               # PC keyboard
 # "opms" should not be enabled together with "pms" or
 "pmsi"
 #pms*          at pckbc?               # PS/2 mouse for
 wsmouse
 #pmsi*         at pckbc?       # PS/2 "Intelli"mouse for
 wsmouse
-opms*          at pckbc?               # backwards compatible PS/2 mouse
-vga0           at isa?
-vga*           at pci?
-pcdisplay0     at isa?                 # CGA, MDA, EGA, HGA
-wsdisplay*     at vga? console ?
-wsdisplay*     at pcdisplay? console ?
-wskbd* at pckbd? console ?
+#opms*         at pckbc?               # backwards compatible PS/2 mouse
+#vga0          at isa?
+#vga*          at pci?
+#pcdisplay0    at isa?                 # CGA, MDA, EGA, HGA
+#wsdisplay*    at vga? console ?
+#wsdisplay*    at pcdisplay? console ?
+#wskbd*        at pckbd? console ?
 #wsmouse*      at pms?
 #wsmouse*      at pmsi?

Thanks,
-- Kazushi
On-line, adj.:
	The idea that a human being should always be accessible to a
computer.