From siigron@sii.unixsweden.net  Tue Mar  5 20:13:36 2002
Return-Path: <siigron@sii.unixsweden.net>
Received: from sii.unixsweden.net (h51n2fls32o867.telia.com [217.208.37.51])
	by hub.freebsd.org (Postfix) with ESMTP id 332F937B400
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  5 Mar 2002 20:13:36 -0800 (PST)
Received: by sii.unixsweden.net (Postfix, from userid 1001)
	id EAB0114BAE; Wed,  6 Mar 2002 05:14:46 +0100 (CET)
Message-Id: <20020306041446.EAB0114BAE@sii.unixsweden.net>
Date: Wed,  6 Mar 2002 05:14:46 +0100 (CET)
From: Joel Wilsson <siigron@sii.unixsweden.net>
Reply-To: Joel Wilsson <siigron@sii.unixsweden.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: vt driver doesn't compile
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         35577
>Category:       kern
>Synopsis:       vt driver doesn't compile
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    hm
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 05 20:20:01 PST 2002
>Closed-Date:    Fri Mar 8 11:07:21 PST 2002
>Last-Modified:  Fri Mar 08 11:11:21 PST 2002
>Originator:     Joel Wilsson
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
none
>Environment:
FreeBSD-CURRENT as of today (Wed Mar 6 2002)

>Description:
1) pcvt_ext.c doesn't compile without options XSERVER
2) sc and vt are, afaict, mutually exclusive. i think this should
   be mentioned in NOTES.
>How-To-Repeat:
use a kernel config with:
device		sc	1  
device		vt
and without options XSERVER. try to compile it, watch the
compilation fail, fix the problem by removing the bogus proto-
type, compile, boot.
both sc and pcvt try to create /dev/ttyv0, so pcvt will cause
a panic when it tries to create an already existing device node.

>Fix:
*** sys/i386/isa/pcvt/pcvt_ext.c	Wed Feb 27 19:32:10 2002
--- /root/pcvt_ext.c	Wed Mar  6 04:56:48 2002
***************
*** 59,65 ****
  static int  v7_1024i_col( int );
  static int  s3_928_col( int );
  static int  cl_gd542x_col( int );
- static void fallback_to_auto(struct video_state *vsx);
  
  /* storage to save video timing values of 80 columns text mode */
  static union {
--- 59,64 ----


*** sys/i386/conf/NOTES	Mon Mar  4 22:35:02 2002
--- /root/NOTES	Wed Mar  6 05:10:26 2002
***************
*** 1262,1267 ****
--- 1262,1270 ----
  device		star_saver
  device		warp_saver
  
+ # Note that you can only have one console driver.
+ # Do not compile a kernel with support for both "vt" and "sc".
+ 
  # The pcvt console driver (vt220 compatible).
  device		vt
  hint.vt.0.at="isa"
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->hm 
Responsible-Changed-By: hm 
Responsible-Changed-When: Wed Mar 6 02:17:36 PST 2002 
Responsible-Changed-Why:  
will look at it as soon as possible. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35577 

From: Bruce Evans <bde@zeta.org.au>
To: Joel Wilsson <siigron@sii.unixsweden.net>
Cc: <FreeBSD-gnats-submit@FreeBSD.ORG>
Subject: Re: kern/35577: vt driver doesn't compile
Date: Thu, 7 Mar 2002 03:55:20 +1100 (EST)

 On Wed, 6 Mar 2002, Joel Wilsson wrote:
 
 > 1) pcvt_ext.c doesn't compile without options XSERVER
 > 2) sc and vt are, afaict, mutually exclusive. i think this should
 >    be mentioned in NOTES.
 
 (2) is a bug.  It used to be possible to configure both and switch
 between then at boot time in userconfig.  Newbus should have made the
 resource tracking for keeping them away from each others resources
 work even better.  If I believed in modules, then I would ask for the
 equivalent in the module framework: loading both and switching between
 them ater boot time :-).
 
 Bruce
 
State-Changed-From-To: open->closed 
State-Changed-By: hm 
State-Changed-When: Fri Mar 8 11:07:21 PST 2002 
State-Changed-Why:  
Item (1) "vt driver doesn't compile", is fixedby a recent commit to -current. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=35577 
>Unformatted:
