From fenner@parc.xerox.com  Sat Feb  6 08:50:24 1999
Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93])
          by hub.freebsd.org (8.8.8/8.8.8) with SMTP id IAA26914
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 6 Feb 1999 08:50:24 -0800 (PST)
          (envelope-from fenner@parc.xerox.com)
Received: from louise.parc.xerox.com ([13.2.118.28]) by alpha.xerox.com with SMTP id <52068(4)>; Sat, 6 Feb 1999 08:50:16 PST
Received: from fenestro.parc.xerox.com ([13.0.208.199]) by louise.parc.xerox.com with SMTP id <358164>; Sat, 6 Feb 1999 08:50:13 PST
Received: (from fenner@localhost)
	by fenestro.parc.xerox.com (8.9.2/8.9.2) id IAA57910;
	Sat, 6 Feb 1999 08:50:39 -0800 (PST)
	(envelope-from fenner)
Message-Id: <199902061650.IAA57910@fenestro.parc.xerox.com>
Date: Sat, 6 Feb 1999 08:50:39 PST
From: Bill Fenner <fenner@parc.xerox.com>
Reply-To: fenner@parc.xerox.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: config gives misleading error when duplicated pseudo-device statement in config file
X-Send-Pr-Version: 3.2

>Number:         9931
>Category:       bin
>Synopsis:       config gives misleading error when duplicated pseudo-device statement in config file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb  6 09:00:00 PST 1999
>Closed-Date:    Sun Jun 4 13:35:54 PDT 2000
>Last-Modified:  Sun Jun 04 13:37:06 PDT 2000
>Originator:     Bill Fenner
>Release:        FreeBSD 3.0-STABLE i386
>Organization:
Xerox
>Environment:

config in 3.0-STABLE as of 2/6/99 7AM PST, although my guess is
that this problem exists starting from rev 1.7 of mkheaders.c .

>Description:

If you have a pseudo-device listed twice in a config file, config
claims that the device is not known.

>How-To-Repeat:

% grep splash FENESTRO
# splash screen/screen saver
pseudo-device   splash
% config FENESTRO
Don't forget to do a ``make depend''
Kernel build directory is ../../compile/FENESTRO
% echo "pseudo-device splash" >> FENESTRO
% config FENESTRO
Don't forget to do a ``make depend''
Warning: pseudo-device "splash" is unknown
Kernel build directory is ../../compile/FENESTRO

>Fix:
	
Unknown.  Perhaps the parser should emit an error when encountering
a second instance of a pseudo-device specification.  (e.g. newdev()
could search through the existing dtab before adding a pseudo-device)

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: nrahlstr 
State-Changed-When: Sun Jun 4 13:35:54 PDT 2000 
State-Changed-Why:  
I was unable to reproduce this problem. 
If it is still a problem we can re-open this PR. 

inferno# grep splash INFERNO 
# splash screen/screen saver 
pseudo-device   splash 
inferno# config INFERNO 
Don't forget to do a ``make depend'' 
Kernel build directory is ../../compile/INFERNO 
inferno# echo "pseudo-device splash" >> INFERNO 
inferno# config INFERNO 
Don't forget to do a ``make depend'' 
Kernel build directory is ../../compile/INFERNO 


http://www.freebsd.org/cgi/query-pr.cgi?pr=9931 
>Unformatted:
