Re: how to force 'device' sources to not compile?

2012-01-08 Thread CyberLeo Kitsana
On 01/06/2012 03:39 PM, Коньков Евгений 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?

This error is from the kernel build process attempting to build the code
for a kernel module.

Define either MODULES_OVERRIDE or WITHOUT_MODULES as detailed in
make.conf(5) to avoid building the if_et module.

Note that the syntax of the MODULES_OVERRIDE and WITHOUT_MODULES
variables consists of a space-delimited list of directory names found
under sys/modules/ and not the canonical module names as found in
/boot/kernel/, so some footwork is necessary.

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
cyber...@cyberleo.net

Furry Peace! - http://.fur.com/peace/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: how to force 'device' sources to not compile?

2012-01-06 Thread Devin Teske


 -Original Message-
 From: owner-freebsd-questi...@freebsd.org [mailto:owner-freebsd-
 questi...@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
-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?

Try adding:

nodevice et

To a custom kernel config.
-- 
Devin



_
The information contained in this message is proprietary and/or confidential. 
If you are not the intended recipient, please: (i) delete the message and all 
copies; (ii) do not disclose, distribute or use the message in any manner; and 
(iii) notify the sender immediately. In addition, please be aware that any 
message addressed to our domain is subject to archiving and review by persons 
other than the intended recipient. Thank you.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: how to force 'device' sources to not compile?

2012-01-06 Thread Michael Powell
Коньков Евгений 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


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org