From ernie!bert.kts.org!hm@ppp.net Wed May 7 01:02:08 1997 Received: from casparc.ppp.net (mail.ppp.net [194.64.12.35]) by hub.freebsd.org (8.8.5/8.8.5) with SMTP id BAA09626 for ; Wed, 7 May 1997 01:02:06 -0700 (PDT) Received: from ernie by casparc.ppp.net with uucp (Smail3.1.28.1 #1) id m0wP1fn-000IdcC; Wed, 7 May 97 10:02 MET DST Received: from bert.kts.org(really [194.55.156.2]) by ernie.kts.org via sendmail with smtp id for ; Wed, 7 May 1997 08:47:53 +0200 (MET DST) (Smail-3.2.0.91 1997-Jan-14 #2 built 1997-Feb-8) Received: by bert.kts.org via sendmail with stdio id for FreeBSD-gnats-submit@freebsd.org; Wed, 7 May 1997 08:43:53 +0200 (CEST) (Smail-3.2.0.94 1997-Apr-22 #2 built 1997-May-3) Message-Id: Date: Wed, 7 May 1997 08:43:53 +0200 (CEST) From: hm@kts.org Reply-To: hm@kts.org To: FreeBSD-gnats-submit@freebsd.org Subject: Bug in config(8) mechanism X-Send-Pr-Version: 3.2 >Number: 3526 >Category: conf >Synopsis: Bug in config(8) mechanism >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed May 7 01:10:00 PDT 1997 >Closed-Date: Sun May 31 08:23:16 PDT 1998 >Last-Modified: Sun May 31 08:24:26 PDT 1998 >Originator: Hellmuth Michaelis >Release: FreeBSD 2.2.1-RELEASE i386 >Organization: >Environment: See below. >Description: config(8) fails to properly configure drivers which name ends in digits: A line in the kernel config file: pseudo-device bisdnq921 together with the line: bisdn/bisdn_rxframe.c optional bisdnq921 device-driver results in in a file bisdnq921.h in the compile directory which has the contents: #define NBISDNQ921 0 Replacing the trailing digits "921" in the driver name(s) with charcters results in the correct contents: #define NBISDN 1 >How-To-Repeat: See above. >Fix: Unknown. >Release-Note: >Audit-Trail: From: Bruce Evans To: FreeBSD-gnats-submit@FreeBSD.ORG, hm@kts.org Cc: Subject: Re: conf/3526: Bug in config(8) mechanism Date: Thu, 8 May 1997 11:34:15 +1000 > config(8) fails to properly configure drivers which name ends > in digits: > > A line in the kernel config file: > > pseudo-device bisdnq921 This is a bug in your config line. In config syntax, `bisdnq921' consists of 2 tokens, `bisdnq' and `921'. It specifies 921 units for the pseudo-device bisdnq. When there is no bisdnq device listed in /sys/conf/files or /sys/i386/conf/files.i386, this line is completely ignored. (This is probably a bug. It also causes problems for misspelled driver names, e.g., `snoop' instead of `snp'.) Since you have a bisdnq921 device in the file lists but no driver for this device is configured, you bisdnq921.h with NBSDNQ921 = 0 in it. The problem is more obvious for pseudo-device bisdnq921 1 This specifies the number of devices twice, which is a syntax error. "bisdn921" should work. Bruce From: Bruce Evans To: FreeBSD-gnats-submit@FreeBSD.ORG, hm@kts.org Cc: Subject: Re: conf/3526: Bug in config(8) mechanism Date: Thu, 8 May 1997 11:34:15 +1000 > config(8) fails to properly configure drivers which name ends > in digits: > > A line in the kernel config file: > > pseudo-device bisdnq921 This is a bug in your config line. In config syntax, `bisdnq921' consists of 2 tokens, `bisdnq' and `921'. It specifies 921 units for the pseudo-device bisdnq. When there is no bisdnq device listed in /sys/conf/files or /sys/i386/conf/files.i386, this line is completely ignored. (This is probably a bug. It also causes problems for misspelled driver names, e.g., `snoop' instead of `snp'.) Since you have a bisdnq921 device in the file lists but no driver for this device is configured, you bisdnq921.h with NBSDNQ921 = 0 in it. The problem is more obvious for pseudo-device bisdnq921 1 This specifies the number of devices twice, which is a syntax error. "bisdn921" should work. Bruce State-Changed-From-To: open->closed State-Changed-By: steve State-Changed-When: Sun May 31 08:23:16 PDT 1998 State-Changed-Why: The originator said that in lieu of changing the parser in config(8), he has learned to accept the quotation marks. :) >Unformatted: