From root@odie.hrz.uni-bielefeld.de  Thu Oct 19 22:45:04 2000
Return-Path: <root@odie.hrz.uni-bielefeld.de>
Received: from odie.hrz.uni-bielefeld.de (odie.hrz.uni-bielefeld.de [129.70.5.87])
	by hub.freebsd.org (Postfix) with ESMTP id 3FAA037B479
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 19 Oct 2000 22:45:03 -0700 (PDT)
Received: (from root@localhost)
	by odie.hrz.uni-bielefeld.de (8.9.3/8.9.3) id HAA52543;
	Fri, 20 Oct 2000 07:45:01 +0200 (CEST)
	(envelope-from root)
Message-Id: <200010200545.HAA52543@odie.hrz.uni-bielefeld.de>
Date: Fri, 20 Oct 2000 07:45:01 +0200 (CEST)
From: lars.koeller@uni-bielefeld.de
Sender: root@odie.hrz.uni-bielefeld.de
Reply-To: lars.koeller@uni-bielefeld.de
To: FreeBSD-gnats-submit@freebsd.org
Cc: lars.koeller@uni-bielefeld.de
Subject: Missing include file in if_tx.c
X-Send-Pr-Version: 3.2

>Number:         22141
>Category:       kern
>Synopsis:       Missing include file in if_tx.c
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Oct 19 22:50:00 PDT 2000
>Closed-Date:    Thu Nov 30 12:34:26 PST 2000
>Last-Modified:  Thu Nov 30 12:35:17 PST 2000
>Originator:     Charlie &
>Release:        FreeBSD 4.1-RELEASE i386
>Organization:
Computing Center, University of Bielefeld, Germany
>Environment:

	FreeBSD 4.1-RELEASE with an upgraded (cvsup 19.10.00) source tree

>Description:

	When doing an "make depend" for an customized kernel with the 
	tx network card driver, one gets an

	../../pci/if_tx.c:80: miibus_if.h: No such file or directory


	If I comment the following line in if_tx.c

	#include "miibus_if.h"   

	I get a compile error:

cc -c -O -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../.. -I../../../include  -D_KERNEL -include opt_global.h -elf  -mpreferred-stack-boundary=2  ../../pci/if_tx.c
../../pci/if_tx.c:346: `miibus_readreg_desc' undeclared here (not in a function)
../../pci/if_tx.c:346: initializer element is not constant
../../pci/if_tx.c:346: (near initialization for `epic_methods[6].desc')
../../pci/if_tx.c:347: `miibus_writereg_desc' undeclared here (not in a function)
../../pci/if_tx.c:347: initializer element is not constant
../../pci/if_tx.c:347: (near initialization for `epic_methods[7].desc')
../../pci/if_tx.c:348: `miibus_statchg_desc' undeclared here (not in a function)
../../pci/if_tx.c:348: initializer element is not constant
../../pci/if_tx.c:348: (near initialization for `epic_methods[8].desc')
../../pci/if_tx.c:349: `miibus_mediainit_desc' undeclared here (not in a function)
../../pci/if_tx.c:349: initializer element is not constant
../../pci/if_tx.c:349: (near initialization for `epic_methods[9].desc')
*** Error code 1

>How-To-Repeat:

	Compile an kernel with the tx network device and 4.1-STABLE

>Fix:

	Reinstall the 

	miibus_if.h

	out of cvs!

>Release-Note:
>Audit-Trail:

From: Gregory Bond <gnb@itga.com.au>
To: lars.koeller@uni-bielefeld.de
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: kern/22141: Missing include file in if_tx.c 
Date: Fri, 20 Oct 2000 18:14:54 +1100

 If you use "device tx", you also need "device miibus" as is documented in LINT.
 
 
 

From: Lars =?ISO-8859-1?Q?K=F6ller?= <lars.koeller@uni-bielefeld.de>
To: Gregory Bond <gnb@itga.com.au>
Cc: lars.koeller@uni-bielefeld.de, FreeBSD-gnats-submit@FreeBSD.ORG,
	lars.koeller@uni-bielefeld.de
Subject: Re: kern/22141: Missing include file in if_tx.c
Date: Fri, 20 Oct 2000 13:45:15 +0200

 ----------
 
 Hi!
 
 In reply to Gregory Bond who wrote:
  =
 
  > If you use "device tx", you also need "device miibus" as is documented=
  in LI
      NT.
 
 Thanks, I found it, too, but the documentation didn't state =
 
 clearly for what cards I need it.
 
 Is it very complicate to check this during the config phase?
 
 Best regards
 
 Lars
 
 -- =
 
 E-Mail:                                 \  Lars K=F6ller (Unix Sysadmin)
   Lars.Koeller@Uni-Bielefeld.DE           \  Computing Center
   lkoeller@cc.FH-Lippe.DE                   \  University of Bielefeld
 PGP-key:                                      \  Germany
   http://www.pgp.net/pgpnet/www-key.html        \  Tel: +49 521 106 4964
 ----------- FreeBSD, what else? ---- http://www.freebsd.org -------------=
 
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: alfred 
State-Changed-When: Thu Nov 30 12:34:26 PST 2000 
State-Changed-Why:  
user should have included "device miibus" in kernel config file. 
kernel compile errors are not "critical" ! 

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