From owner-freebsd-questions@FreeBSD.ORG Fri Jan 6 22:05:01 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1667106566B for ; Fri, 6 Jan 2012 22:05:01 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id A877E8FC08 for ; Fri, 6 Jan 2012 22:05:01 +0000 (UTC) Received: from pps.filterd (ltcfislmsgpa05 [127.0.0.1]) by ltcfislmsgpa05.fnfis.com (8.14.4/8.14.4) with SMTP id q06Lh7Lk007571; Fri, 6 Jan 2012 16:05:01 -0600 Received: from smtp.fisglobal.com ([10.132.206.15]) by ltcfislmsgpa05.fnfis.com with ESMTP id 126942r227-22 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Fri, 06 Jan 2012 16:05:00 -0600 Received: from dtwin (10.14.152.15) by smtp.fisglobal.com (10.132.206.15) with Microsoft SMTP Server (TLS) id 14.1.323.3; Fri, 6 Jan 2012 16:04:59 -0600 From: Devin Teske To: =?koi8-r?B?J+vPztjLz9cg5dfHxc7Jyic=?= References: <364237998.20120106233952@yandex.ru> <06fc01ccccbc$264e10b0$72ea3210$@fisglobal.com> <219337455.20120106234609@yandex.ru> In-Reply-To: <219337455.20120106234609@yandex.ru> Date: Fri, 6 Jan 2012 14:05:12 -0800 Message-ID: <070301ccccbf$43f87d00$cbe97700$@fisglobal.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQDTtd1RMO06kjQRDi1cJZ94Ukn8GwNnAGaYAltldXiXw/2jEA== Content-Language: en-us X-Originating-IP: [10.14.152.15] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.5.7110, 1.0.211, 0.0.0000 definitions=2012-01-05_05:2012-01-05, 2012-01-05, 1970-01-01 signatures=0 Content-Type: text/plain; charset="koi8-r" Cc: freebsd-questions@freebsd.org Subject: RE: Re[2]: how to force 'device' sources to not compile? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2012 22:05:02 -0000 > -----Original Message----- > From: =EB=CF=CE=D8=CB=CF=D7 =E5=D7=C7=C5=CE=C9=CA [mailto:kes-kes@yandex.= ru] > Sent: Friday, January 06, 2012 1:46 PM > To: Devin Teske > Cc: freebsd-questions@freebsd.org > Subject: Re[2]: how to force 'device' sources to not compile? >=20 > =FA=C4=D2=C1=D7=D3=D4=D7=D5=CA=D4=C5, Devin. >=20 > =F7=D9 =D0=C9=D3=C1=CC=C9 6 =D1=CE=D7=C1=D2=D1 2012 =C7., 23:42:54: >=20 >=20 >=20 > >> -----Original Message----- > >> From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd- > >> questions@freebsd.org] On Behalf Of ??????? ??????? > >> Sent: Friday, January 06, 2012 1:40 PM > >> To: freebsd-questions@freebsd.org > >> Subject: how to force 'device' sources to not compile? > >> > >> I have errors while compile kernel > >> > >> =3D=3D=3D> et (all) > >> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nost= dinc > - > >> DHAVE_KERNEL_OPTION_HEADERS -include > >> /usr/obj/usr/src/sys/KES_KERN_v9/opt_global.h -I. -I@ > >> -I@/contrib/altq > DT> -finline- > >> limit=3D8000 --param inline-unit-growth=3D100 --param > >> large-function-growth=3D1000 - fno-common -g > >> -I/usr/obj/usr/src/sys/KES_KERN_v9 -mno-align-long-strings - > >> mpreferred-stack-boundary=3D2 -mno-sse -mno-mmx -msoft-float > >> -ffreestanding - fstack-protector -std=3Diso9899:1999 -fstack-protector > >> -Wall -Wredundant-decls - Wnested-externs -Wstrict-prototypes > >> -Wmissing-prototypes -Wpointer-arith - Winline -Wcast-qual -Wundef -W= no- > pointer-sign -fformat-extensions - > >> Wmissing-include-dirs -fdiagnostics-show-option -c > >> /usr/src/sys/modules/et/../../dev/et/if_et.c > >> /usr/src/sys/modules/et/../../dev/et/if_et.c: In function 'et_dma_allo= c': > >> /usr/src/sys/modules/et/../../dev/et/if_et.c:782: error: 'ET_RING_ALIG= N' > >> undeclared (first use in this function) > >> /usr/src/sys/modules/et/../../dev/et/if_et.c:782: error: (Each > >> undeclared identifier is reported only once > >> /usr/src/sys/modules/et/../../dev/et/if_et.c:782: error: for each > >> function it appears in.) > >> /usr/src/sys/modules/et/../../dev/et/if_et.c:790: error: 'ET_STATUS_AL= IGN' > >> undeclared (first use in this function) > >> /usr/src/sys/modules/et/../../dev/et/if_et.c:845: error: 'struct > >> et_softc' has > DT> no > >> member named 'sc_rx_mini_tag' > >> /usr/src/sys/modules/et/../../dev/et/if_et.c:854: error: 'struct > >> et_softc' has > DT> no > >> member named 'sc_rx_tag' > >> /usr/src/sys/modules/et/../../dev/et/if_et.c:864: error: 'struct > >> et_softc' has > DT> no > >> member named 'sc_tx_tag' > >> > >> how to disable 'et' from compiling? >=20 > DT> Try adding: >=20 > DT> nodevice et >=20 > DT> To a custom kernel config. >=20 > I have tryed to remove 'device et', 'nodevice et', 'device et' same resul= ts =3D( >=20 Apologies, let me clarify... I would create a custom kernel config by executing (assumptions: your kernel source is stored at /usr/src/sys): cd /usr/src/sys/i386/conf NOTE: Replace "i386" with another architecture (such as "amd64") depending = on your needs. touch MYGENERIC NOTE: Followint steps will overwrite "MYGENERIC" in the current working directory if it already exists. If this file exists already, move it aside before proceeding. echo "include GENERIC" > MYGENERIC echo "ident MYGENERIC" >> MYGENERIC echo "machine i386" >> MYGENERIC NOTE: Again, replace "i386" with your desired architecture if not "i386". echo "nodevice et" >> MYGENERIC Now, configure and compile your kernel by executing: config -g MYGENERIC cd ../compile/MYGENERIC make cleandepend && make depend && make Your new kernel is named "kernel" in the current working directory. --=20 Devin _____________ The information contained in this message is proprietary and/or confidentia= l. If you are not the intended recipient, please: (i) delete the message an= d all copies; (ii) do not disclose, distribute or use the message in any ma= nner; and (iii) notify the sender immediately. In addition, please be aware= that any message addressed to our domain is subject to archiving and revie= w by persons other than the intended recipient. Thank you.