From owner-freebsd-drivers@FreeBSD.ORG Mon Jul 21 18:33:44 2008 Return-Path: Delivered-To: freebsd-drivers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12ACC1065674 for ; Mon, 21 Jul 2008 18:33:44 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id C8F558FC0C for ; Mon, 21 Jul 2008 18:33:43 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id 3C8C91A9195 for ; Mon, 21 Jul 2008 11:32:15 -0700 (PDT) X-Virus-Scanned: amavisd-new at X-Spam-Flag: NO X-Spam-Score: -4.399 X-Spam-Level: X-Spam-Status: No, score=-4.399 tagged_above=-10 required=6.6 tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599] Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id nOGd5KqXk8tN for ; Mon, 21 Jul 2008 11:32:14 -0700 (PDT) Received: from iago.office.miralink.com (iago.office.miralink.com [10.0.0.40]) by plato.miralink.com (Postfix) with ESMTP id C73161A9192 for ; Mon, 21 Jul 2008 11:32:14 -0700 (PDT) Message-ID: <4884D686.2040706@miralink.com> Date: Mon, 21 Jul 2008 11:33:42 -0700 From: Sean Bruno User-Agent: Thunderbird 2.0.0.14 (X11/20080501) MIME-Version: 1.0 To: freebsd-drivers@freebsd.org References: <4884D1ED.5060205@miralink.com> In-Reply-To: <4884D1ED.5060205@miralink.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: MII compile errors(RELENG_7) X-BeenThere: freebsd-drivers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Writing device drivers for FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Jul 2008 18:33:44 -0000 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@miralink.com Google: seanwbruno@gmail.com Yahoo: sean_bruno@yahoo.com