Subject: compilation problem of wskbd.c
To: None <firstname.lastname@example.org>
From: Kazushi (Jam) Marukawa <email@example.com>
Date: 06/14/1999 23:38:22
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 @@
-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
#pms* at pckbc? # PS/2 mouse for
#pmsi* at pckbc? # PS/2 "Intelli"mouse for
-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?
The idea that a human being should always be accessible to a