From risner@akira.stdio.com  Sat Apr 19 21:53:01 1997
Received: from akira.stdio.com (akira.stdio.com [204.152.114.80])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA04227
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 19 Apr 1997 21:52:59 -0700 (PDT)
Received: (from root@localhost) by akira.stdio.com (8.8.5/8.7.3) id AAA00743; Sun, 20 Apr 1997 00:52:50 -0400 (EDT)
Message-Id: <199704200452.AAA00743@akira.stdio.com>
Date: Sun, 20 Apr 1997 00:52:50 -0400 (EDT)
From: risner@stdio.com
Reply-To: risner@stdio.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: ncrcontrol fails when -DFAILSAFE in kernel
X-Send-Pr-Version: 3.2

>Number:         3355
>Category:       bin
>Synopsis:       ncrcontrol fails when -DFAILSAFE in kernel
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    se
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 19 22:00:01 PDT 1997
>Closed-Date:    Fri Feb 19 16:20:11 PST 1999
>Last-Modified:  Fri Feb 19 16:23:27 PST 1999
>Originator:     James Risner
>Release:        FreeBSD 2.2-STABLE i386
>Organization:
me
>Environment:

	none

>Description:

	Any kernel with option FAILSAFE turn on will not work without
	ncrcontrol.c compiled with FAILSAFE (or for that matter ANY
	other options that change the size of the struct ?cb {} in pci/ncr.c
	or the version of the NCR driver.)

>How-To-Repeat:

	Compile a kernel with -DFAILSAFE.
	try to run ncrcontrol and fails with:
	"ncrcontrol: incompatible with kernel. Rebuild!"
	recompile ncrcontrol with -DFAILSAFE and it works.

>Fix:
	
	I don't know.
	Any way of Having ncrcontrol look at "INCLUDE_CONFIG" in the kernel?
	And regen itself?  (I doubt it)

	Maybe change the error message to be more like:
	"Size of ncr kernel structures differ from running kernel? Check
	 running kernel options to insure ncrcontrol is compiled with identical
	 settings?"

Risner
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->se 
Responsible-Changed-By: joerg 
Responsible-Changed-When: Sun Aug 24 11:18:51 MEST 1997 
Responsible-Changed-Why:  
ncr(4) is Stefan's area. 
State-Changed-From-To: open->closed 
State-Changed-By: se 
State-Changed-When: Fri Feb 19 16:20:11 PST 1999 
State-Changed-Why:  
A data structure used to change depending on FAILSAFE being defined. 
This was fixed in revision 1.113 of ncr.c a long time ago ... 
>Unformatted:
