From owner-freebsd-questions@FreeBSD.ORG Fri Jan 6 22:39:48 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 A5F1D106564A for ; Fri, 6 Jan 2012 22:39:48 +0000 (UTC) (envelope-from kes-kes@yandex.ru) Received: from forward18.mail.yandex.net (forward18.mail.yandex.net [IPv6:2a02:6b8:0:1402::3]) by mx1.freebsd.org (Postfix) with ESMTP id BDB298FC1C for ; Fri, 6 Jan 2012 22:39:47 +0000 (UTC) Received: from smtp19.mail.yandex.net (smtp19.mail.yandex.net [95.108.252.19]) by forward18.mail.yandex.net (Yandex) with ESMTP id EF0A61781963; Sat, 7 Jan 2012 02:39:46 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1325889587; bh=9McTf8mpJLW93FehbvCDKOB7H5fHTBKB9frVyYXQvC0=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=RRWqrrUWCfladXlcy+k3U4ls2O/iTdkc8oXMEp7isG1Q5d6eJc9oMswmjugXaRrjh UzfjVyRHry9Bp9Uujxn3idO4n/BxS65DIP/BAnMkPb122oVCIydqBySvELp2AAosFo H6Kzs1JZxNmTgmeGZWZhETBELK2iq5RPigBT049U= Received: from smtp19.mail.yandex.net (localhost [127.0.0.1]) by smtp19.mail.yandex.net (Yandex) with ESMTP id CB171BE003E; Sat, 7 Jan 2012 02:39:46 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1325889586; bh=9McTf8mpJLW93FehbvCDKOB7H5fHTBKB9frVyYXQvC0=; h=Date:From:Reply-To:Message-ID:To:CC:Subject:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding; b=bRUuM5UZJc16y+rhjJGxAVMV+Vek9DKGTzXMw+q8+HWA6YMI3yfyYmB0NYDTII6xt ctu6WWn4Z5+CboiGXQKKsoYx7GF/9FQUOW8P9adU6ziD+uNMp4GwTKRUiadHyQmFS9 WMS6ZRfhSxV/XCqHKS3WAIke1fRN0MG8IIG1yCKg= Received: from unknown (unknown [77.93.52.22]) by smtp19.mail.yandex.net (nwsmtp/Yandex) with ESMTP id dkuKiZcO-dku8DBdf; Sat, 7 Jan 2012 02:39:46 +0400 X-Yandex-Spam: 1 Date: Sat, 7 Jan 2012 00:39:10 +0200 From: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= X-Mailer: The Bat! (v4.0.24) Professional Organization: =?windows-1251?B?188gyu7t/Oru4iwgRnJlZUxpbmU=?= X-Priority: 3 (Normal) Message-ID: <1522079618.20120107003910@yandex.ru> To: Michael Powell In-Reply-To: References: <364237998.20120106233952@yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit Cc: freebsd-questions@freebsd.org Subject: Re[2]: how to force 'device' sources to not compile? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: =?windows-1251?B?yu7t/Oru4iDF4uPl7ejp?= List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Jan 2012 22:39:48 -0000 Здравствуйте, Michael. Вы писали 7 января 2012 г., 0:28:55: MP> Коньков Евгений 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? MP> Why? Since others do not seem to have this problem wouldn't it instead be a MP> better idea to discover what you are doing wrong? Simply trying to 'not MP> build et' will not reveal what is wrong - fixing what is wrong would be MP> better. MFC r228333,228335-228336,228362,228368-228369,228381: from yongari already FIX that, kernel is builded, but see: http://www.freebsd.org/cgi/query-pr.cgi?pr=misc/163880 -- С уважением, Коньков mailto:kes-kes@yandex.ru