From owner-freebsd-questions@FreeBSD.ORG Fri Jan 6 22:29:00 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 9AC7B106564A for ; Fri, 6 Jan 2012 22:29:00 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 2ED9C8FC08 for ; Fri, 6 Jan 2012 22:29:00 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RjIHT-0004LO-FO for freebsd-questions@freebsd.org; Fri, 06 Jan 2012 23:28:59 +0100 Received: from pool-173-79-99-96.washdc.fios.verizon.net ([173.79.99.96]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Jan 2012 23:28:59 +0100 Received: from nightrecon by pool-173-79-99-96.washdc.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 06 Jan 2012 23:28:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Michael Powell Date: Fri, 06 Jan 2012 17:28:55 -0500 Lines: 42 Message-ID: References: <364237998.20120106233952@yandex.ru> Mime-Version: 1.0 Content-Type: text/plain; charset="WINDOWS-1251" Content-Transfer-Encoding: 8Bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: pool-173-79-99-96.washdc.fios.verizon.net Subject: Re: how to force 'device' sources to not compile? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: nightrecon@hotmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2012 22:29:00 -0000 Коньков Евгений wrote: > 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 > -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 no member named 'sc_rx_mini_tag' > /usr/src/sys/modules/et/../../dev/et/if_et.c:854: error: 'struct et_softc' > has no member named 'sc_rx_tag' > /usr/src/sys/modules/et/../../dev/et/if_et.c:864: error: 'struct et_softc' > has no member named 'sc_tx_tag' > > how to disable 'et' from compiling? Why? Since others do not seem to have this problem wouldn't it instead be a better idea to discover what you are doing wrong? Simply trying to 'not build et' will not reveal what is wrong - fixing what is wrong would be better. -Mike