From nobody@FreeBSD.org  Mon May 21 02:22:54 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id CB19A37B506
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 21 May 2001 02:22:46 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f4L9Mks76938;
	Mon, 21 May 2001 02:22:46 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200105210922.f4L9Mks76938@freefall.freebsd.org>
Date: Mon, 21 May 2001 02:22:46 -0700 (PDT)
From: ask@wisdom.weizmann.ac.il
To: freebsd-gnats-submit@FreeBSD.org
Subject: buildworld failed due to kbdcontrol
X-Send-Pr-Version: www-1.0

>Number:         27491
>Category:       misc
>Synopsis:       buildworld failed due to kbdcontrol
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    ru
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May 21 02:30:01 PDT 2001
>Closed-Date:    Mon May 21 02:42:22 PDT 2001
>Last-Modified:  Mon May 21 02:44:33 PDT 2001
>Originator:     Alexander Klimov
>Release:        5.0
>Organization:
WIS
>Environment:
It is changed after reinstall (4.3 -> 5.0)
>Description:
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
>Fix:

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->ru 
Responsible-Changed-By: roam 
Responsible-Changed-When: Mon May 21 02:33:00 PDT 2001 
Responsible-Changed-Why:  
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 :) 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27491 
State-Changed-From-To: open->closed 
State-Changed-By: ru 
State-Changed-When: Mon May 21 02:42:22 PDT 2001 
State-Changed-Why:  
Already fixed in the following files/revisions: 
src/Makefile.inc1,v 1.201 
src/usr.sbin/kbdcontrol/kbdcontrol.c,v 1.36 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27491 
>Unformatted:
