MII compile errors(RELENG_7)

Sean Bruno sbruno at miralink.com
Mon Jul 21 18:33:44 UTC 2008


Sean Bruno wrote:
> Anyone else getting this with GENERIC from this AM?
>
>
> ===> mii (all)
> cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99 
> -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include 
> /usr/home/sbruno/FreeBSD_RELENG_7_15APR08/src/sys/i386/compile/GENERIC/opt_global.h 
> -I. -I@ -I@/contrib/altq -finline-limit=8000 --param 
> inline-unit-growth=100 --param large-function-growth=1000 -fno-common 
> -g 
> -I/usr/home/sbruno/FreeBSD_RELENG_7_15APR08/src/sys/i386/compile/GENERIC 
> -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx 
> -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall 
> -Wredundant-decls -Wnested-externs -Wstrict-prototypes  
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
> -Wno-pointer-sign -fformat-extensions -c 
> /usr/home/sbruno/FreeBSD_RELENG_7_15APR08/src/sys/modules/mii/../../dev/mii/jmphy.c 
>
> cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99 
> -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include 
> /usr/home/sbruno/FreeBSD_RELENG_7_15APR08/src/sys/i386/compile/GENERIC/opt_global.h 
> -I. -I@ -I@/contrib/altq -finline-limit=8000 --param 
> inline-unit-growth=100 --param large-function-growth=1000 -fno-common 
> -g 
> -I/usr/home/sbruno/FreeBSD_RELENG_7_15APR08/src/sys/i386/compile/GENERIC 
> -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx 
> -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall 
> -Wredundant-decls -Wnested-externs -Wstrict-prototypes  
> -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
> -Wno-pointer-sign -fformat-extensions -c 
> /usr/home/sbruno/FreeBSD_RELENG_7_15APR08/src/sys/modules/mii/../../dev/mii/truephy.c 
>
> /usr/home/sbruno/FreeBSD_RELENG_7_15APR08/src/sys/modules/mii/../../dev/mii/truephy.c:78: 
> error: 'MII_OUI_AGERE' undeclared here (not in a function)
> /usr/home/sbruno/FreeBSD_RELENG_7_15APR08/src/sys/modules/mii/../../dev/mii/truephy.c:78: 
> error: 'MII_MODEL_AGERE_ET1011C' undeclared here (not in a function)
> /usr/home/sbruno/FreeBSD_RELENG_7_15APR08/src/sys/modules/mii/../../dev/mii/truephy.c:78: 
> error: 'MII_STR_AGERE_ET1011C' undeclared here (not in a function)
> *** Error code 1
> /usr/home/sbruno/FreeBSD_RELENG_7_15APR08/src/sys/modules/mii/../../dev/mii/jmphy.c:88: 
> error: 'MII_OUI_JMICRON' undeclared here (not in a function)
> /usr/home/sbruno/FreeBSD_RELENG_7_15APR08/src/sys/modules/mii/../../dev/mii/jmphy.c:88: 
> error: 'MII_MODEL_JMICRON_JMP202' undeclared here (not in a function)
> /usr/home/sbruno/FreeBSD_RELENG_7_15APR08/src/sys/modules/mii/../../dev/mii/jmphy.c:88: 
> error: 'MII_STR_JMICRON_JMP202' undeclared here (not in a function)
> /usr/home/sbruno/FreeBSD_RELENG_7_15APR08/src/sys/modules/mii/../../dev/mii/jmphy.c:89: 
> error: 'MII_MODEL_JMICRON_JMP211' undeclared here (not in a function)
> /usr/home/sbruno/FreeBSD_RELENG_7_15APR08/src/sys/modules/mii/../../dev/mii/jmphy.c:89: 
> error: 'MII_STR_JMICRON_JMP211' undeclared here (not in a function)
> *** Error code 1
> 2 errors
> *** Error code 2
> 1 error
> *** Error code 2
> 1 error
>
Hmmm....This looks like an artifact of compiling with -j flags.  e.g. 
make -j 2

Excluding that make option, compile fine.



-- 
Sean Bruno
MiraLink Corporation
6015 NE 80th Ave, Ste 100
Portland, OR 97218
Phone 503-621-5143
Fax 503-621-5199
MSN: sbruno at miralink.com
Google:  seanwbruno at gmail.com
Yahoo:  sean_bruno at yahoo.com



More information about the freebsd-drivers mailing list