From nobody@www.freebsd.org  Fri Jun 14 13:05:16 2002
Return-Path: <nobody@www.freebsd.org>
Received: from nwww.freebsd.org (www.FreeBSD.org [216.136.204.117])
	by hub.freebsd.org (Postfix) with ESMTP id 4E62537B40D
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Jun 2002 13:05:06 -0700 (PDT)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by nwww.freebsd.org (8.12.2/8.12.2) with ESMTP id g5EK3shG082078
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 14 Jun 2002 13:03:54 -0700 (PDT)
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.2/8.12.2/Submit) id g5EK3swZ082077;
	Fri, 14 Jun 2002 13:03:54 -0700 (PDT)
Message-Id: <200206142003.g5EK3swZ082077@www.freebsd.org>
Date: Fri, 14 Jun 2002 13:03:54 -0700 (PDT)
From: Michael Hogsett <hogsett@csl.sri.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Alpha Kernel Build for Miata dies if no `device sio0'
X-Send-Pr-Version: www-1.0

>Number:         39305
>Category:       alpha
>Synopsis:       Alpha Kernel Build for Miata dies if no `device sio0'
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-alpha
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 14 13:10:01 PDT 2002
>Closed-Date:    Fri Jun 14 13:21:01 PDT 2002
>Last-Modified:  Fri Jun 14 13:21:01 PDT 2002
>Originator:     Michael Hogsett
>Release:        4.6-RELEASE
>Organization:
>Environment:
FreeBSD axp.csl.sri.com 4.6-RELEASE FreeBSD 4.6-RELEASE #0: Thu Jun 13 17:30:11 PDT 2002     root@axp.csl.sri.com:/usr/src/sys/compile/AXP  alpha

>Description:
With the following in a kernel config file :

options         DEC_ST550

#device         sio0 

The kernel build will fail with

cc -c -O -pipe -mcpu=ev4 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I../../../include -I../../contrib/ipfilter  -D_KERNEL -include opt_global.h -elf  -mno-fp-regs -Wa,-mev56  vers.c
linking kernel
dec_st550.o: In function `st550_cons_init':
dec_st550.o(.text+0x124): undefined reference to `comconsole'
dec_st550.o(.text+0x134): undefined reference to `siocnattach'
dec_st550.o(.text+0x138): undefined reference to `siocnattach'
*** Error code 1

>How-To-Repeat:
Comment out `device sio0' in the kernel config file.


>Fix:
I recommend a comment stating that the serial device(s) are required.


*** GENERIC.patched     Fri Jun 14 13:00:16 2002
--- GENERIC     Thu Jun 13 10:22:45 2002
*************** device          sc0     at isa?
*** 119,125 ****
  # real time clock
  device                mcclock0 at isa? port 0x70
  
! # Serial (COM) ports (required)
  device                sio0    at isa? port IO_COM1 irq 4
  device                sio1    at isa? port IO_COM2 irq 3 flags 0x50
  
--- 119,125 ----
  # real time clock
  device                mcclock0 at isa? port 0x70
  
! # Serial (COM) ports
  device                sio0    at isa? port IO_COM1 irq 4
  device                sio1    at isa? port IO_COM2 irq 3 flags 0x50
  

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: mjacob 
State-Changed-When: Fri Jun 14 13:20:32 PDT 2002 
State-Changed-Why:  
Applied suggested fix to GENERIC. Will MFC as soon as -stable opens up. Thanks. 

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