From nobody@FreeBSD.org  Wed Aug 29 03:42:33 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 4894837B401
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 29 Aug 2001 03:42:33 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.4/8.11.4) id f7TAgXv76125;
	Wed, 29 Aug 2001 03:42:33 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200108291042.f7TAgXv76125@freefall.freebsd.org>
Date: Wed, 29 Aug 2001 03:42:33 -0700 (PDT)
From: "Oleg Y. Ivanov" <oleg_y_ivanov@mailru.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: ed driver broken(?) in 4.3-stable
X-Send-Pr-Version: www-1.0

>Number:         30187
>Category:       kern
>Synopsis:       ed driver broken(?) in 4.3-stable
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 29 03:50:00 PDT 2001
>Closed-Date:    Wed Aug 29 03:55:54 PDT 2001
>Last-Modified:  Wed Aug 29 04:10:01 PDT 2001
>Originator:     Oleg Y. Ivanov
>Release:        4.3-20010828-STABLE
>Organization:
>Environment:
FreeBSD TEST.dwec.ru 4.3-20010828-STABLE FreeBSD 4.3-20010828-STABLE #0: Tue Aug 28 15:29:35 GMT 2001     root@usw3.freebsd.org:/usr/src/sys/compile/GENERIC  i386
>Description:
make fails to link custom kernel with 'device ed' included since 4.3-20010822-STABLE snapshot.

Fresh install using snapshot via FTP.

[snip]
linking kernel
if_ed.o: In function `ed_tick':
if_ed.o(.text+0x26dd): undefined reference to `mii_tick'
if_ed.o: In function `ed_init':
if_ed.o(.text+0x2ace): undefined reference to `mii_mediachg'
if_ed.o: In function `ed_ifmedia_upd':
if_ed.o(.text+0x4c15): undefined reference to `mii_mediachg'
if_ed.o: In function `ed_ifmedia_sts':
if_ed.o(.text+0x4c4a): undefined reference to `mii_pollstat'
*** Error code 1

Stop in /usr/src/sys/compile/TEST.

>How-To-Repeat:
cd /usr/src/sys/i386/conf
/usr/sbin/config TEST
cd ../../compile/TEST
make depend 
make



>Fix:
add 'device miibus' to kernel conf file

since when 'ed' driver requires MII ?!
DAMN IT !
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: greid 
State-Changed-When: Wed Aug 29 03:55:54 PDT 2001 
State-Changed-Why:  
From UPDATING: 

20010725: 
The ed driver has been updated.  It now allows mii attachments, 
which means that you must include the miibus in your kernel if 
you use the ed driver. 

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

From: Dima Dorfman <dima@unixfreak.org>
To: "Oleg Y. Ivanov" <oleg_y_ivanov@mailru.com>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/30187: ed driver broken(?) in 4.3-stable 
Date: Wed, 29 Aug 2001 04:04:03 -0700

 "Oleg Y. Ivanov" <oleg_y_ivanov@mailru.com> wrote:
 > >Description:
 > make fails to link custom kernel with 'device ed' included since 4.3-20010822
 > -STABLE snapshot.
 ...
 > >Fix:
 > add 'device miibus' to kernel conf file
 > 
 > since when 'ed' driver requires MII ?!
 > DAMN IT !
 
 Why did you file a PR if it was your fault to begin with, and you
 already know the fix?
>Unformatted:
