From owner-freebsd-bugs Mon Sep 17 12:30:10 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 19AAE37B40C for ; Mon, 17 Sep 2001 12:30:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8HJU2s27694; Mon, 17 Sep 2001 12:30:02 -0700 (PDT) (envelope-from gnats) Received: from tensor.xs4all.nl (tensor.xs4all.nl [213.84.53.200]) by hub.freebsd.org (Postfix) with ESMTP id D6A3637B40A for ; Mon, 17 Sep 2001 12:28:14 -0700 (PDT) Received: by tensor.xs4all.nl (Postfix, from userid 1000) id 1A7A73C1EF; Mon, 17 Sep 2001 21:28:13 +0200 (CEST) Message-Id: <20010917192813.1A7A73C1EF@tensor.xs4all.nl> Date: Mon, 17 Sep 2001 21:28:13 +0200 (CEST) From: Dimitry Andric Reply-To: Dimitry Andric To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: i386/30637: MAKEDEV 1.243.2.36 errors in i4bteld* node creation Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30637 >Category: i386 >Synopsis: MAKEDEV 1.243.2.36 errors in i4bteld* node creation >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 17 12:30:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Dimitry Andric >Release: FreeBSD 4.4-STABLE i386 >Organization: n/a >Environment: System: FreeBSD tensor.xs4all.nl 4.4-STABLE FreeBSD 4.4-STABLE #0: Mon Sep 17 15:32:29 CEST 2001 root@tensor.xs4all.nl:/usr/obj/usr/src/sys/TENSOR i386 >Description: The /dev/MAKEDEV script (revision 1.243.2.36) seems to contain an error in the part that creates the i4bteld* nodes. Not that I ever use those, but with a "MAKEDEV all" at the end of a mergemaster session, the problem is bound to surface. This leads to errors like: dim@tensor:/dev$ sudo ./MAKEDEV all Password: MAKEDEV: arith: syntax error: "à…†È…à…é…ë…î…†" bad node: mknod i4bteld1 I've also seen this problem reported many times on -stable. >How-To-Repeat: cd /dev sudo /bin/sh /dev/MAKEDEV all >Fix: I can't figure out what's precisely wrong with the MAKEDEV script, no matter how long I stare at it. Maybe it'll come to me later. I suspect a bug in /bin/sh or something... However, a fix seems quite easy. Just split the i4btel line in 2 parts, and the problem goes away, at least on my box. I'm not sure why, though. If I figure it out, I'll file another PR. --- MAKEDEV.orig Mon Sep 17 16:56:39 2001 +++ MAKEDEV Mon Sep 17 20:54:11 2001 @@ -330,7 +330,8 @@ sh MAKEDEV apm apmctl card0 card1 card2 card3 # cdev, laptop sh MAKEDEV pass4 xpt2 # cdev, CAM sh MAKEDEV i4b i4bctl i4btrc0 i4btrc1 # cdev, ISDN - sh MAKEDEV i4btel0 i4btel1 i4bteld0 i4bteld1 # cdev, ISDN + sh MAKEDEV i4btel0 i4btel1 # cdev, ISDN + sh MAKEDEV i4bteld0 i4bteld1 # cdev, ISDN sh MAKEDEV i4brbch0 i4brbch1 # cdev, ISDN sh MAKEDEV agpgart # cdev, AGP ;; >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message