From owner-freebsd-questions@FreeBSD.ORG Mon Jan 9 10:23:53 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 2C6821065673 for ; Mon, 9 Jan 2012 10:23:53 +0000 (UTC) (envelope-from ml@my.gd) Received: from mail-lpp01m010-f54.google.com (mail-lpp01m010-f54.google.com [209.85.215.54]) by mx1.freebsd.org (Postfix) with ESMTP id A80948FC0A for ; Mon, 9 Jan 2012 10:23:51 +0000 (UTC) Received: by lahl5 with SMTP id l5so1781603lah.13 for ; Mon, 09 Jan 2012 02:23:51 -0800 (PST) Received: by 10.152.103.71 with SMTP id fu7mr6521006lab.31.1326104630997; Mon, 09 Jan 2012 02:23:50 -0800 (PST) Received: from dfleuriot-at-hi-media.com ([83.167.62.196]) by mx.google.com with ESMTPS id jn4sm71996144lab.16.2012.01.09.02.23.48 (version=SSLv3 cipher=OTHER); Mon, 09 Jan 2012 02:23:49 -0800 (PST) Message-ID: <4F0AC033.4090306@my.gd> Date: Mon, 09 Jan 2012 11:23:47 +0100 From: Damien Fleuriot User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <364237998.20120106233952@yandex.ru> <06fc01ccccbc$264e10b0$72ea3210$@fisglobal.com> <219337455.20120106234609@yandex.ru> In-Reply-To: <219337455.20120106234609@yandex.ru> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Subject: Re: 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: Mon, 09 Jan 2012 10:23:53 -0000 On 1/6/12 10:46 PM, Коньков Евгений wrote: > Здравствуйте, 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 =( > You've removed the device just fine. What problem you get is while compiling the kernel *module* for said device. Disable it by adding in /etc/make.conf: WITHOUT_MODULES=et