Bug 27491

Summary: buildworld failed due to kbdcontrol
Product: Base System Reporter: ask <ask>
Component: miscAssignee: ru <ru>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description ask 2001-05-21 10:30:01 UTC
I downloaed FreeBSD 4.3 and installed it. I downloaded sources of -CURRENT
version, and try to `make buildworld'. Aftera while I got an error message:
===================================
cc -O -pipe -march=pentiumpro -Wall -I/usr/src/usr.sbin/sysinstall/../../gnu/lib/libdialog -I.   -I/usr/obj/usr/src/i386/usr/include -c /usr/src/usr.sbin/sysinstall/keymap.c
In file included from /usr/src/usr.sbin/sysinstall/keymap.c:40:
keymap.h:3606: `keymap_ua_koi8_u_shift_alt' undeclared here (not in a function)
keymap.h:3606: initializer element is not constant
keymap.h:3606: (near initialization for `keymapInfos[21].map')
*** Error code 1
===================================
After some investigation I found the reason:
the file `src/usr.sbin/sysinstall/Makefile' has rule to make `keymap.h', 
and this rule uses `kbdcontrol' to generate parts of `keymap.h'. 
Among other maps it has `ua.koi8-u.shift.alt', but it is not installed 
on the base system, so `kbdcontrol' generate error message, which is 
ignored, and I receive the above message. As a workaround I just 
removed `ua.koi8-u.shift.alt' from the makefile, and the compilation 
smoothly succesed. (Strangely enought, during installation the removed 
keymap was installed to the system.) My guess is that the behaviour of 
the `kbdcontrol' was changed so it could handle `-L' option 
(I didn't find it in man for 4.3), so developers never saw the problem.

How-To-Repeat: Install 4.3 and buildworld -CURRENT
Comment 1 Peter Pentchev freebsd_committer freebsd_triage 2001-05-21 10:33:00 UTC
Responsible Changed
From-To: freebsd-bugs->ru

Actually, you're wrong - developers *are* aware of this problem. 
Ruslan Ermilov, who is currently working n kbdcontrol, has discussed 
it at length on the -current list (where this belongs), and on the cvs-all 
list (where all the commit messages and some followups go). 

As -current is a development branch of FreeBSD, problems with it do not 
really belong in PR's, but should rather be discussed on the appropriate 
lists. 

Still, thanks for taking the time to bring this problem to the developers' 
attention - although in this case it was already known, in other cases 
user feedback is important :)  In the future, keep on giving feedback, 
but -current problems really belong on the freebsd-current list :)
Comment 2 ru freebsd_committer freebsd_triage 2001-05-21 10:42:22 UTC
State Changed
From-To: open->closed

Already fixed in the following files/revisions: 
src/Makefile.inc1,v 1.201 
src/usr.sbin/kbdcontrol/kbdcontrol.c,v 1.36