From owner-freebsd-questions@FreeBSD.ORG Fri Jan 6 22:20:12 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 8768C1065677 for ; Fri, 6 Jan 2012 22:20:12 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward19.mail.yandex.net (forward19.mail.yandex.net [IPv6:2a02:6b8:0:1402::4]) by mx1.freebsd.org (Postfix) with ESMTP id B8A038FC14 for ; Fri, 6 Jan 2012 22:20:11 +0000 (UTC) Received: from smtp17.mail.yandex.net (smtp17.mail.yandex.net [95.108.252.17]) by forward19.mail.yandex.net (Yandex) with ESMTP id B3B811121058; Sat, 7 Jan 2012 02:20:10 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1325888410; bh=FACSh7p7EgYa6cF7+r3JSWgJ1S2hAYoaBogqDzHnuxk=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=iVXZ92zwslckgyiMOT6uooRDUllfNC1bcFtqQHE+RqoJS3iB1YgEnSX/yB6q9gCkP AnXMHA7UjnuJgfKyDq1UiHOUUn2rAh4U1sRkTPMJJhjirw68JVcN09r5Yu5X8Eqh/u fBGDm78DeEZ4URixZ2TAcx/G4gZOf33ktUFfb6WY= Received: from smtp17.mail.yandex.net (localhost [127.0.0.1]) by smtp17.mail.yandex.net (Yandex) with ESMTP id 8EB721900198; Sat, 7 Jan 2012 02:20:10 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1325888410; bh=FACSh7p7EgYa6cF7+r3JSWgJ1S2hAYoaBogqDzHnuxk=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=iVXZ92zwslckgyiMOT6uooRDUllfNC1bcFtqQHE+RqoJS3iB1YgEnSX/yB6q9gCkP AnXMHA7UjnuJgfKyDq1UiHOUUn2rAh4U1sRkTPMJJhjirw68JVcN09r5Yu5X8Eqh/u fBGDm78DeEZ4URixZ2TAcx/G4gZOf33ktUFfb6WY= Received: from unknown (unknown [77.93.52.22]) by smtp17.mail.yandex.net (nwsmtp/Yandex) with ESMTP id K9OCt6aN-KAOme35m; Sat, 7 Jan 2012 02:20:10 +0400 X-Yandex-Spam: 1 Date: Sat, 7 Jan 2012 00:19:34 +0200 From: =?koi8-r?B?68/O2MvP1yDl18fFzsnK?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?koi8-r?B?/vAg68/O2MvP1ywgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <893947021.20120107001934@yandex.ru> To: Devin Teske In-Reply-To: <070301ccccbf$43f87d00$cbe97700$@fisglobal.com> References: <364237998.20120106233952@yandex.ru> <06fc01ccccbc$264e10b0$72ea3210$@fisglobal.com> <219337455.20120106234609@yandex.ru> <070301ccccbf$43f87d00$cbe97700$@fisglobal.com> MIME-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re[4]: how to force 'device' sources to not compile? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?koi8-r?B?68/O2MvP1yDl18fFzsnK?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2012 22:20:12 -0000 Здравствуйте, Devin. Вы писали 7 января 2012 г., 0:05:12: >> -----Original Message----- >> From: Коньков Евгений [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? >> >> Здравствуйте, Devin. >> >> Вы писали 6 января 2012 г., 23:42:54: >> >> >> >> >> -----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 >> >> >> >> ===> et (all) >> >> cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc >> - >> >> DHAVE_KERNEL_OPTION_HEADERS -include >> >> /usr/obj/usr/src/sys/KES_KERN_v9/opt_global.h -I. -I@ >> >> -I@/contrib/altq >> DT> -finline- >> >> limit=8000 --param inline-unit-growth=100 --param >> >> large-function-growth=1000 - fno-common -g >> >> -I/usr/obj/usr/src/sys/KES_KERN_v9 -mno-align-long-strings - >> >> mpreferred-stack-boundary=2 -mno-sse -mno-mmx -msoft-float >> >> -ffreestanding - fstack-protector -std=iso9899:1999 -fstack-protector >> >> -Wall -Wredundant-decls - Wnested-externs -Wstrict-prototypes >> >> -Wmissing-prototypes -Wpointer-arith - Winline -Wcast-qual -Wundef -Wno- >> 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_alloc': >> >> /usr/src/sys/modules/et/../../dev/et/if_et.c:782: error: 'ET_RING_ALIGN' >> >> 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_ALIGN' >> >> 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? >> >> DT> Try adding: >> >> DT> nodevice et >> >> DT> To a custom kernel config. >> >> I have tryed to remove 'device et', 'nodevice et', 'device et' same results =( >> DT> Apologies, let me clarify... DT> I would create a custom kernel config by executing (assumptions: your kernel DT> source is stored at /usr/src/sys): DT> cd /usr/src/sys/i386/conf DT> NOTE: Replace "i386" with another architecture (such as "amd64") depending on DT> your needs. DT> touch MYGENERIC DT> NOTE: Followint steps will overwrite "MYGENERIC" in the current working DT> directory if it already exists. If this file exists already, move it aside DT> before proceeding. DT> echo "include GENERIC" > MYGENERIC DT> echo "ident MYGENERIC" >> MYGENERIC DT> echo "machine i386" >> MYGENERIC DT> NOTE: Again, replace "i386" with your desired architecture if not "i386". DT> echo "nodevice et" >> MYGENERIC DT> Now, configure and compile your kernel by executing: DT> config -g MYGENERIC DT> cd ../compile/MYGENERIC DT> make cleandepend && make depend && make DT> Your new kernel is named "kernel" in the current working directory. cd /usr/src/sys/i386/conf cp GENERIC MYKERN open MYKERN in editor, find 'device et' and change it with 'nodevice et' or, Ithink, this must work also: echo 'nodevice et' >> /usr/src/sys/i386/conf/MYKERN cd /usr/src echo "bla-bla-bla" > /usr/src/sys/dev/et/if_et.c make buildkernel KERNCONF=MYKERN despite on there is 'nodevice et' system tryes to build 'et' and fail -- С уважением, Коньков mailto:kes-kes@yandex.ru