Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Sep 2001 21:28:13 +0200 (CEST)
From:      Dimitry Andric <dim@xs4all.nl>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   i386/30637: MAKEDEV 1.243.2.36 errors in i4bteld* node creation
Message-ID:  <20010917192813.1A7A73C1EF@tensor.xs4all.nl>

next in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010917192813.1A7A73C1EF>