[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

kernel/1014: Kernel config w/ inet needs at least one ethernet driver to build




>Number:         1014
>Category:       kernel
>Synopsis:       Kernel config w/ inet needs at least one ethernet driver to build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Dec 18 14:30:01 MST 1999
>Last-Modified:
>Originator:     Daniel Neri
>Organization:
Daniel Neri
dne@mayonnaise.net
>Release:        2.6
>Environment:
	System      : OpenBSD 2.6
	Architecture: OpenBSD.i386
	Machine     : i386
>Description:

	Build of kernel w/ "option INET" but not including any
	ethernet devices fails, complaining about undefined symbol
	"_myip_ifp". This symbol is referenced in if_detach (in
	net/if.c), and defined in netinet/if_ether.c. The latter is
	included in kernel only when NETHER > 0.

	The problem did not exist in 2.5.

>How-To-Repeat:

	Configure kernel with config file below. Build fails at link
	phase with error message:
	      
	      if.o: Undefined symbol `_myip_ifp' referenced from text segment


-------------------- kernel config follows -------------------------------
#	MAYONNAISE -- config for OpenBSD/2.6

machine		i386		# architecture, used by config; REQUIRED

option		I586_CPU

option		VM86		# Virtual 8086 emulation
option		USER_LDT	# user-settable LDT; used by WINE
option		XSERVER		# diddle with console driver
option		APERTURE	# in-kernel aperture driver for XFree86

# Some BIOSes don't get the size of extended memory right.  If you
# have a broken BIOS, uncomment the following and set the value
# properly for your system.
#option		EXTMEM_SIZE=...	# size of extended memory
#option		DUMMY_NOPS	# speed hack; recommended

#option		COMPAT_SVR4	# binary compatibility with SVR4
option		COMPAT_IBCS2	# binary compatibility with SCO and ISC
option		COMPAT_LINUX	# binary compatibility with Linux
option		COMPAT_FREEBSD	# binary compatibility with FreeBSD
option		COMPAT_BSDOS	# binary compatibility with BSD/OS

#option		INSECURE	# default to secure

option		TIMEZONE=0	# time zone to adjust RTC time by
option		DST=0		# daylight savings time used by RTC
option		NTP		# hooks supporting the Network Time Protocol

option		SWAPPAGER	# paging; REQUIRED
option		DEVPAGER	# mmap() of devices

option		DDB		# in-kernel debugger
#makeoptions	DEBUG="-g"	# compile full symbol table
#makeoptions	PROF="-pg"	# build profiled kernel
#option		GPROF		# kernel profiling, kgmon(8)
option		DIAGNOSTIC	# internal consistency checks
option		KTRACE		# system call tracing, a la ktrace(1)
#option		KMEMSTATS	# collect malloc(9) statistics

#option 	DEBUG_ISAPNP

option		SYSVMSG		# System V-like message queues
option		SYSVSEM		# System V-like semaphores
option		SYSVSHM		# System V-like memory sharing

#option		COMPAT_09	# Kernel compatibility with NetBSD 0.9,
#option		COMPAT_10	# NetBSD 1.0,
option		COMPAT_11	# NetBSD 1.1,
option		COMPAT_43	# and 4.3BSD
#option		TCP_COMPAT_42	# TCP bug compatibility with 4.2BSD

option		LKM		# loadable kernel modules

option		FFS		# UFS
#option		QUOTA		# UFS quotas
#option		LFS		# log-structured file system
#option		EXT2FS		# Second Extended Filesystem
option		MFS		# memory file system
#option		XFS		# xfs filesystem

option		TCP_SACK	# Selective Acknowledgements for TCP
option		TCP_FACK	# Forward Acknowledgements for TCP
#option		TCP_SIGNATURE	# TCP MD5 Signatures, for BGP routing sessions

#option		NFSCLIENT	# Network File System client
#option		NFSSERVER	# Network File System server

option		CD9660		# ISO 9660 + Rock Ridge file system
option		MSDOSFS		# MS-DOS file system
option		FDESC		# /dev/fd
option		FIFO		# FIFOs; RECOMMENDED
option		KERNFS		# /kern
#option		NULLFS		# loopback file system
#option		PORTAL		# dynamically created filesystem objects
option		PROCFS		# /proc
#option		UMAPFS		# NULLFS + uid and gid remapping
option		UNION		# union file system

#option		GATEWAY		# packet forwarding
option		INET		# IP + ICMP + TCP + UDP
option		IPSEC		# IPsec
#option		KEY		# PF_KEY (implied by IPSEC)
#option		NS		# XNS
#option		NSIP		# XNS tunneling over IP
#option		IPX		# IPX+SPX
#option		IPXIP		# IPX tunneling over IP
#option		ISO,TPIP	# OSI
#option		EON		# OSI tunneling over IP
#option		NETATALK	# AppleTalk
#option		CCITT,LLC,HDLC	# X.25
option		IPFILTER	# IP packet filter for security
option		IPFILTER_LOG	# use /dev/ipl to log IPF
option		PPP_BSDCOMP	# PPP BSD compression
option		PPP_DEFLATE

option		BOOT_CONFIG	# add support for boot -c

maxusers	16		# estimated number of users

config		bsd	swap generic

mainbus0 at root

bios0	at mainbus0
apm0	at bios0

isa0	at mainbus0
isa0	at pcib?
pci*	at mainbus0 bus ?

option		PCIVERBOSE
option		PCMCIAVERBOSE
option		USBVERBOSE

pchb*	at pci? dev ? function ?	# PCI-Host bridges
ppb*	at pci? dev ? function ?	# PCI-PCI bridges
pci*	at ppb? bus ?
pci*	at pchb? bus ?
pcib*	at pci? dev ? function ?	# PCI-ISA bridges (do nothing)

# ISA PCMCIA controllers
pcic0	at isa? port 0x3e0 iomem 0xd0000 iosiz 0x4000
pcic1	at isa? port 0x3e2 iomem 0xd4000 iosiz 0x4000

# PCMCIA bus support
pcmcia*	at pcic? controller ? socket ?

# PCI USB Controllers
uhci*	at pci?				# Universal Host Controller (Intel)
ohci*	at pci?				# Open Host Controller

# USB bus support
usb*	at uhci?
usb*	at ohci?

# USB Hubs
uhub*	at usb?
uhub*	at uhub? port ? configuration ? interface ?

# USB Generic HID devices
uhid*	at uhub? port ? configuration ? interface ?

# USB Generic driver
ugen*	at uhub? port ? configuration ? interface ?

npx0	at isa? port 0xf0 irq 13	# math coprocessor
isadma0	at isa?
isapnp0	at isa?

#pc0	at isa? port 0x60 irq 1		# generic PC console device
vt0	at isa? port 0x60 irq 1

pcppi0	at isa?
sysbeep0	at pcppi?

pccom0	at isa? port 0x3f8 irq 4	# standard PC serial ports
pccom1	at isa? port 0x2f8 irq 3
pccom2	at isa? port 0x3e8 irq 5
pccom*	at pcmcia? function ?		# PCMCIA modems/serial ports
pccom*	at isapnp?

lpt0	at isa? port 0x378 irq 7	# standard PC parallel ports
lpt1	at isa? port 0x278
lpt2	at isa? port 0x3bc

lms0	at isa? port 0x23c irq 5	# Logitech bus mouse
lms1	at isa? port 0x238 irq 5
mms0	at isa? port 0x23c irq 5	# Microsoft InPort mouse
mms1	at isa? port 0x238 irq 5
pms0	at pckbd? irq 12		# PS/2 auxiliary port mouse

ncr*	at pci? dev ? function ?	# NCR 538XX SCSI controllers
scsibus* at ncr?

sd*	at scsibus? target ? lun ?	# SCSI disk drives
st*	at scsibus? target ? lun ?	# SCSI tape drives
cd*	at scsibus? target ? lun ?	# SCSI CD-ROM drives
ch*	at scsibus? target ? lun ?	# SCSI autochangers
ss*	at scsibus? target ? lun ?	# SCSI scanners
uk*	at scsibus? target ? lun ?	# unknown SCSI

fdc0	at isa? port 0x3f0 irq 6 drq 2	# standard PC floppy controllers
#fdc1	at isa? port 0x370 irq ? drq ?
fd*	at fdc? drive ?

# IDE controllers
#pciide* at pci ? dev ? function ? flags 0x0000

#wdc0	at isa? port 0x1f0 irq 14 flags 0x00
#wdc1	at isa? port 0x170 irq 15 flags 0x00
#wdc*	at pcmcia? function ?
#wdc*	at isapnp?

# IDE hard drives
#wd*	at wdc? channel ? drive ? flags 0x0000
#wd*	at pciide? channel ? drive ? flags 0x0000

# ATAPI<->SCSI
#atapiscsi* at wdc? channel ?
#atapiscsi* at pciide? channel ?
#scsibus* at atapiscsi?


# Networking devices
#de*	at pci? dev ? function ?		# DC21X4X-based ethernet
#fxp*	at pci? dev ? function ?		# EtherExpress 10/100B ethernet
#ep0	at pci? dev ? function ?		# 3C59x ethernet
#ep*	at pci? dev ? function ?		# 3C59x ethernet
#xl*	at pci? dev ? function ?		# 3c9xx ethernet


# Media Independent Interface (mii) drivers
#exphy*	at mii? phy ?				# 3Com internal PHYs
#inphy*	at mii? phy ?				# Intel 82555 PHYs
#iophy*	at mii? phy ?				# Intel 82553 PHYs

#sb0	at isa? port 0x220 irq 5 drq 1		# SoundBlaster
#sb*	at isapnp?
ess*	at isapnp?				# ESS Tech ES188[78], ES888

# OPL[23] FM syntheziers
#opl*	at sb?
opl*	at ess?

# MIDI support
midi*	at pcppi?		# MIDI interface to the PC speaker
#midi*	at sb?			# SB MPU401 port
midi*	at opl?			# OPL FM synth

# The spkr driver provides a simple tone interface to the built in speaker.
spkr0	at pcppi?		# PC speaker

#Audio Support
#audio*  at sb?
audio*	at ess?

bktr0   at pci? dev ? function ?

# Joystick driver. Probe is a little strange; add only if you have one.
#joy0	at isa? port 0x201
#joy*	at isapnp?


pseudo-device	pctr		1
pseudo-device	sequencer	1
#pseudo-device	raid		4	# RAIDframe disk driver
pseudo-device	loop		2	# network loopback
pseudo-device	bpfilter	8	# packet filter
#pseudo-device	sl		2	# CSLIP
pseudo-device	ppp		2	# PPP
pseudo-device	sppp			# Sync PPP/HDLC
pseudo-device	tun		2	# network tunneling over tty
pseudo-device	enc		1	# IPSEC needs the encapsulation interface
#pseudo-device	strip		1	# Starmode Radio IP interface

pseudo-device	pty		64	# pseudo-terminals
#pseudo-device	tb		1	# tablet line discipline
pseudo-device	vnd		4	# paging to files
pseudo-device	ccd		4	# concatenated disk devices
pseudo-device	ksyms		1	# kernel symbols device
#pseudo-device	bridge		2	# network bridging support


>Fix:

	Unknown (other than including at least one ethernet device in
	kernel config).

>Audit-Trail:
>Unformatted:
Subject Kernel config w/ inet needs at least one ethernet driver to build
From: Daniel Neri <dne@mayonnaise.net>
X-sendbug-version: 3.97