Subject: kern/14274: Building network free kernel fails.
To: None <gnats-bugs@gnats.netbsd.org>
From: Lennart Augustsson <augustss@augustsson.net>
List: netbsd-bugs
Date: 10/17/2001 21:48:13
>Number: 14274
>Category: kern
>Synopsis: Building network free kernel fails.
>Confidential: yes
>Severity: non-critical
>Priority: medium
>Responsible: kern-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Oct 17 12:49:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Lennart Augustsson
>Release: NetBSD-current 2001-10-13
>Organization:
>Environment:
System: NetBSD hobbes 1.5Y NetBSD 1.5Y (HOBBES) #78: Sat Oct 13 21:49:24 MEST 2001 augustss@hobbes:/usr/src/sys/arch/i386/compile/HOBBES i386
Architecture: i386
Machine: i386
>Description:
I tried building a minimal kernel with no network support, but
compilation of net/if.c fails in that case.
>How-To-Repeat:
Use the following config file. Error message below.
include "arch/i386/conf/std.i386"
maxusers 32 # estimated number of users
options I686_CPU
options DUMMY_NOPS
options UCONSOLE # users can use TIOCCONS (for xconsole)
#options DIAGNOSTIC # expensive kernel consistency checks
#options DEBUG # expensive debugging checks/support
# File systems
file-system FFS # UFS
# immutable) behave as system flags.
#
# wscons options
#
# builtin terminal emulations
#options WSEMUL_SUN # sun terminal emulation
options WSEMUL_VT100 # VT100 / VT220 emulation
# different kernel output - see dev/wscons/wsdisplayvar.h
options WS_KERNEL_FG=WSCOL_GREEN
#options WS_KERNEL_BG=WSCOL_BLACK
# compatibility to other console drivers
options WSDISPLAY_COMPAT_PCVT # emulate some ioctls
options WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls
options WSDISPLAY_COMPAT_USL # VT handling
options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
# see dev/pckbc/wskbdmap_mfii.c for implemented layouts
#options PCKBD_LAYOUT="(KB_DE | KB_NODEAD)"
# allocate a number of virtual screens at autoconfiguration time
#options WSDISPLAY_DEFAULTSCREENS=4
# use a large software cursor that doesn't blink
options PCDISPLAY_SOFTCURSOR
# modify the screen type of the console; defaults to "80x25"
#options VGA_CONSOLE_SCREENTYPE="\"80x24\""
# Kernel root file system and dump configuration.
config netbsd root on ? type ?
mainbus0 at root
# ISA bus support
isa0 at mainbus?
# Console Devices
# wscons
pckbc0 at isa? # pc keyboard controller
pckbd* at pckbc? # PC keyboard
# "opms" should not be enabled together with "pms" or "pmsi"
pms* at pckbc? # PS/2 mouse for wsmouse
pmsi* at pckbc? # PS/2 "Intelli"mouse for wsmouse
#opms* at pckbc? # backwards compatible PS/2 mouse
vga0 at isa?
wsdisplay* at vga? console ?
wskbd* at pckbd? console ?
wsmouse* at pms? mux 0
wsmouse* at pmsi? mux 0
# ISA floppy
fdc0 at isa? port 0x3f0 irq 6 drq 2 # standard PC floppy controllers
#fdc1 at isa? port 0x370 irq ? drq ?
fd* at fdc? drive ? # the drives themselves
# some machines need you to do this instead of fd*
#fd0 at fdc0 drive 0
# mouse & keyboard multiplexor pseudo-devices
pseudo-device wsmux
/usr/obj/tools/bin/i386--netbsdelf-gcc -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Wno-uninitialized -Wno-main -I. -I../../../../arch -I../../../.. -nostdinc -DCRYPTO_MD_DES_ENC -DCRYPTO_MD_BF_ENC -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -Di386 -c ../../../../net/if.c
cc1: warnings being treated as errors
../../../../net/if.c:611: warning: `if_detach_queues' defined but not used
>Fix:
Hack: Remove static from if_detach_queues.
Real: Don't compile if.c when there's no network.
>Release-Note:
>Audit-Trail:
>Unformatted: