Bug 19616

Summary: current kernel build failes on miibus
Product: Base System Reporter: patrick <patrick>
Component: kernAssignee: freebsd-bugs (Nobody) <bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   

Description patrick 2000-07-01 04:40:01 UTC
After fixing the blowfish and bioscall.s prob in the current tree the next prob occurs when using MIIBUS in the current kernel (30-june-2000)

cc -O -pipe  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-pro
totypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat
-extensions -ansi -DKLD_MODULE -nostdinc -I-  -I. -I@ -I/usr/include  -mpref
erred-stack-boundary=2 -c
/usr/src/sys/modules/mii/../../dev/mii/ukphy_subr.c
cc -O -pipe  -D_KERNEL -Wall -Wredundant-decls -Wnested-externs -Wstrict-pro
totypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat
-extensions -ansi -DKLD_MODULE -nostdinc -I-  -I. -I@ -I/usr/include  -mpref
erred-stack-boundary=2 -c miibus_if.c
miibus_if.c: In function `MIIBUS_READREG':
miibus_if.c:27: warning: implicit declaration of function `DEVOPMETH'
miibus_if.c:27: `miibus_readreg' undeclared (first use in this function)
miibus_if.c:27: (Each undeclared identifier is reported only once
miibus_if.c:27: for each function it appears in.)
miibus_if.c: In function `MIIBUS_WRITEREG':
miibus_if.c:38: `miibus_writereg' undeclared (first use in this function)
miibus_if.c: In function `MIIBUS_STATCHG':
miibus_if.c:49: `miibus_statchg' undeclared (first use in this function)
miibus_if.c: In function `MIIBUS_MEDIAINIT':
miibus_if.c:60: `miibus_mediainit' undeclared (first use in this function)
*** Error code 1

Stop in /usr/src/sys/modules/mii.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

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

Fix: 

I haven't found a fix for this yet.
How-To-Repeat: get the current sources, put the crypto/blowfish dir into /usr/src/sys, copy /usr/src/sys/i386/i386/biocall.s from the original tree over the current one (otherwise the build will fail in an earlier stage)

put MIIBUS support in the kernel config file:

device          miibus

and try to compile the kernel.
Comment 1 k 2000-08-03 15:57:35 UTC
Probably out-of-sync src/sys
see PR 19615
http://www.FreeBSD.org/cgi/query-pr.cgi?pr=19615

/Johan K
Comment 2 Johan Karlsson freebsd_committer freebsd_triage 2000-08-24 09:56:16 UTC
State Changed
From-To: open->feedback

Has this problem been solved for you?
Comment 3 Johan Karlsson freebsd_committer freebsd_triage 2001-02-25 11:06:23 UTC
State Changed
From-To: feedback->closed

Feedback timed-out.