Bug 30187

Summary: ed driver broken(?) in 4.3-stable
Product: Base System Reporter: Oleg Y. Ivanov <oleg_y_ivanov>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description Oleg Y. Ivanov 2001-08-29 11:50:00 UTC
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.

Fix: 

add 'device miibus' to kernel conf file

since when 'ed' driver requires MII ?!
DAMN IT !
How-To-Repeat: cd /usr/src/sys/i386/conf
/usr/sbin/config TEST
cd ../../compile/TEST
make depend 
make
Comment 1 greid freebsd_committer freebsd_triage 2001-08-29 11:55:54 UTC
State Changed
From-To: open->closed

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.
Comment 2 dima 2001-08-29 12:04:03 UTC
"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?