Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Aug 2012 00:31:40 +0200
From:      antonin tessier <antonintessier@live.fr>
To:        <freebsd-questions@freebsd.org>
Subject:   Issue with kernel building
Message-ID:  <DUB109-W1405A43C7DAF2745B9971C4C4BA0@phx.gbl>

next in thread | raw e-mail | index | archive | help

Hi=2C

I have a problem when I try to build my own kernel. I had never got such a =
one=3B here is my kernel configuration file and the building errors that it=
 makes.

"#device         tun             # Packet tunnel.
device          pty             # BSD-style compatibility pseudo ttys
device          md              # Memory "disks"
device          gif             # IPv6 and IPv4 tunneling
device          faith           # IPv6-to-IPv4 relaying (translation)
#device         firmware        # firmware assist module

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device          bpf             # Berkeley packet filter

# USB support
options         USB_DEBUG       # enable debug msgs
device          uhci            # UHCI PCI->USB interface
device          ohci            # OHCI PCI->USB interface
device          ehci            # EHCI PCI->USB interface (USB 2.0)
#device         xhci            # XHCI PCI->USB interface (USB 3.0)
device          usb             # USB Bus (required)
#device         udbp            # USB Double Bulk Pipe devices (needs netgr=
aph)
device          uhid            # "Human Interface Devices"
#device         ukbd            # Keyboard
#device         ulpt            # Printer
device          umass           # Disks/Mass storage - Requires scbus and d=
a
device          ums             # Mouse
#device         urio            # Diamond Rio 500 MP3 player
# USB Serial devices
#device         u3g             # USB-based 3G modems (Option=2C Huawei=2C =
Sierra)
#device         uark            # Technologies ARK3116 based serial adapter=
s
#device         ubsa            # Belkin F5U103 and compatible serial adapt=
ers
#device         uftdi           # For FTDI usb serial adapters
#device         uipaq           # Some WinCE based devices
#device         uplcom          # Prolific PL-2303 serial adapters
#device         uslcom          # SI Labs CP2101/CP2102 serial adapters
#device         uvisor          # Visor and Palm devices
#device         uvscom          # USB serial support for DDI pocket's PHS
# USB Ethernet=2C requires miibus
#device         aue             # ADMtek USB Ethernet
#device         axe             # ASIX Electronics USB Ethernet
#device         cdce            # Generic USB over Ethernet
#device         cue             # CATC USB Ethernet
#device         kue             # Kawasaki LSI USB Ethernet
#device         rue             # RealTek RTL8150 USB Ethernet
#device         udav            # Davicom DM9601E USB
# USB Wireless
#device         rum             # Ralink Technology RT2501USB wireless NICs
#device         run             # Ralink Technology RT2700/RT2800/RT3000 NI=
Cs.
#device         uath            # Atheros AR5523 wireless NICs
#device         upgt            # Conexant/Intersil PrismGT wireless NICs.
#device         ural            # Ralink Technology RT2500USB wireless NICs
device          urtw            # Realtek RTL8187B/L wireless NICs
#device         zyd             # ZyDAS zd1211/zd1211b wireless NICs

# FireWire support
#device         firewire        # FireWire bus code
# sbp(4) works for some systems but causes boot failure on others
#device         sbp             # SCSI over FireWire (Requires scbus and da=
)
#device         fwe             # Ethernet over FireWire (non-standard!)
#device         fwip            # IP over FireWire (RFC 2734=2C3146)
#device         dcons           # Dumb console driver
#device         dcons_crom      # Configuration ROM for dcons

# Sound support
device          sound           # Generic sound driver (required)
#device         snd_cmi         # CMedia CMI8338/CMI8738
#device         snd_csa         # Crystal Semiconductor CS461x/428x
#device         snd_emu10kx     # Creative SoundBlaster Live! and Audigy
#device         snd_es137x      # Ensoniq AudioPCI ES137x
device          snd_hda         # Intel High Definition Audio
device          snd_ich         # Intel=2C NVidia and other ICH AC'97 Audio
#device         snd_uaudio      # USB Audio
device          snd_via8233     # VIA VT8233x Audio"

"# make kernel KERNCONF=3DGOLLUM

 MAKE=3Dmake sh /usr/src/sys/conf/newvers.sh GOLLUM
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -march=3Dnative -st=
d=3Dc99 -g -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -W=
missing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-point=
er-sign -fformat-extensions  -Wmissing-include-dirs -fdiagnostics-show-opti=
on   -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -D=
HAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=
=3D8000 --param inline-unit-growth=3D100 --param large-function-growth=3D10=
00  -fno-omit-frame-pointer -mcmodel=3Dkernel -mno-red-zone -mno-mmx -mno-s=
se -msoft-float  -fno-asynchronous-unwind-tables -ffreestanding -fstack-pro=
tector -Werror  vers.c
linking kernel.debug
rt2560.o: In function `rt2560_ioctl':
/usr/src/sys/dev/ral/rt2560.c:2011: undefined reference to `ether_ioctl'
rt2661.o: In function `rt2661_load_microcode':
/usr/src/sys/dev/ral/rt2661.c:2564: undefined reference to `firmware_put'
/usr/src/sys/dev/ral/rt2661.c:2524: undefined reference to `firmware_get'
/usr/src/sys/dev/ral/rt2661.c:2564: undefined reference to `firmware_put'
rt2661.o: In function `rt2661_ioctl':
/usr/src/sys/dev/ral/rt2661.c:1749: undefined reference to `ether_ioctl'
rt2860.o: In function `rt2860_load_microcode':
/usr/src/sys/dev/ral/rt2860.c:3897: undefined reference to `firmware_get'
/usr/src/sys/dev/ral/rt2860.c:3931: undefined reference to `firmware_put'
/usr/src/sys/dev/ral/rt2860.c:3931: undefined reference to `firmware_put'
rt2860.o: In function `rt2860_newassoc':
/usr/src/sys/dev/ral/rt2860.c:859: undefined reference to `ether_sprintf'
rt2860.o: In function `rt2860_ioctl':
/usr/src/sys/dev/ral/rt2860.c:2057: undefined reference to `ether_ioctl'
if_urtw.o: In function `urtw_ioctl':
/usr/src/sys/dev/usb/wlan/if_urtw.c:1402: undefined reference to `ether_ioc=
tl'
if.o: In function `if_setlladdr':
/usr/src/sys/net/if.c:3313: undefined reference to `arp_ifinit'
if_gif.o: In function `gif_input':
/usr/src/sys/net/if_gif.c:587: undefined reference to `bridge_input_p'
/usr/src/sys/net/if_gif.c:594: undefined reference to `ether_demux'
if_llatbl.o: In function `lla_rt_output':
/usr/src/sys/net/if_llatbl.c:384: undefined reference to `arprequest'
if_vlan.o: In function `vlan_modevent':
/usr/src/sys/net/if_vlan.c:711: undefined reference to `vlan_input_p'
/usr/src/sys/net/if_vlan.c:738: undefined reference to `vlan_input_p'
if_vlan.o: In function `vlan_clone_destroy':
/usr/src/sys/net/if_vlan.c:988: undefined reference to `ether_ifdetach'
if_vlan.o: In function `vlan_clone_create':
/usr/src/sys/net/if_vlan.c:949: undefined reference to `ether_ifattach'
/usr/src/sys/net/if_vlan.c:966: undefined reference to `ether_ifdetach'
if_vlan.o: In function `vlan_transmit':
/usr/src/sys/net/if_vlan.c:1072: undefined reference to `ether_vlanencap'
ieee80211.o: In function `ieee80211_vap_detach':
/usr/src/sys/net80211/ieee80211.c:586: undefined reference to `ether_ifdeta=
ch'
ieee80211.o: In function `ieee80211_vap_attach':
/usr/src/sys/net80211/ieee80211.c:540: undefined reference to `ether_ifatta=
ch'
ieee80211_adhoc.o: In function `adhoc_newstate':
/usr/src/sys/net80211/ieee80211_adhoc.c:216: undefined reference to `ether_=
sprintf'
ieee80211_adhoc.o: In function `adhoc_input':
/usr/src/sys/net80211/ieee80211_adhoc.c:624: undefined reference to `ether_=
sprintf'
ieee80211_crypto.o: In function `ieee80211_crypto_setkey':
/usr/src/sys/net80211/ieee80211_crypto.c:494: undefined reference to `ether=
_sprintf'
ieee80211_crypto_wep.o: In function `wep_encrypt':
/usr/src/sys/net80211/ieee80211_crypto_wep.c:359: undefined reference to `e=
ther_sprintf'
ieee80211_hostap.o: In function `hostap_newstate':
/usr/src/sys/net80211/ieee80211_hostap.c:305: undefined reference to `ether=
_sprintf'
ieee80211_hostap.o:/usr/src/sys/net80211/ieee80211_hostap.c:847: more undef=
ined references to `ether_sprintf' follow
ieee80211_ioctl.o: In function `ieee80211_ioctl':
/usr/src/sys/net80211/ieee80211_ioctl.c:3353: undefined reference to `arp_i=
finit'
/usr/src/sys/net80211/ieee80211_ioctl.c:3391: undefined reference to `ether=
_ioctl'
ieee80211_mesh.o: In function `mesh_newstate':
/usr/src/sys/net80211/ieee80211_mesh.c:675: undefined reference to `ether_s=
printf'
ieee80211_mesh.o: In function `mesh_input':
/usr/src/sys/net80211/ieee80211_mesh.c:1266: undefined reference to `ether_=
sprintf'
ieee80211_mesh.o: In function `mesh_send_action_meshlink_reply':
/usr/src/sys/net80211/ieee80211_mesh.c:2145: undefined reference to `ether_=
sprintf'
ieee80211_mesh.o: In function `mesh_send_action_meshlink_request':
/usr/src/sys/net80211/ieee80211_mesh.c:2106: undefined reference to `ether_=
sprintf'
ieee80211_mesh.o: In function `mesh_send_action_meshpeering_close':
/usr/src/sys/net80211/ieee80211_mesh.c:2057: undefined reference to `ether_=
sprintf'
ieee80211_mesh.o:/usr/src/sys/net80211/ieee80211_mesh.c:1990: more undefine=
d references to `ether_sprintf' follow
in.o: In function `in_scrubprefix':
/usr/src/sys/netinet/in.c:1131: undefined reference to `arp_ifscrub'
in.o: In function `in_ifinit':
/usr/src/sys/netinet/in.c:936: undefined reference to `useloopback'
in.o: In function `in_lltable_prefix_free':
/usr/src/sys/netinet/in.c:1394: undefined reference to `arpstat'
vesa.o: In function `vesa_configure':
/usr/src/sys/dev/fb/vesa.c:1164: undefined reference to `vesa_load_ioctl'
vesa.o: In function `vesa_unload':
/usr/src/sys/dev/fb/vesa.c:1931: undefined reference to `vesa_unload_ioctl'
*** [kernel.debug] Error code 1

Stop in /usr/obj/usr/src/sys/GOLLUM. "

Thank you=2C Gollum.
 =20
 		 	   		  =



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DUB109-W1405A43C7DAF2745B9971C4C4BA0>