Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 05 Nov 2008 15:41:49 +0800
From:      kevin <kevinxlinuz@163.com>
To:        Hans Petter Selasky <hselasky@c2i.net>
Cc:        Alfred Perlstein <bright@mu.org>, current@freebsd.org, freebsd-usb@freebsd.org, freebsd-current@freebsd.org
Subject:   Re: USB4BSD release candidate number 3 - request for review
Message-ID:  <49114E3D.9080201@163.com>
In-Reply-To: <200810261633.22020.hselasky@c2i.net>
References:  <200810251925.47273.hselasky@c2i.net>	<20081025181603.GD83037@elvis.mu.org> <200810261633.22020.hselasky@c2i.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Hans Petter Selasky wrote:
> Hi,
>
> A new USB release is available:
>
> http://www.selasky.org/hans_petter/usb4bsd/for_review/
>
> %md5 usb2_release_003.*
> MD5 (usb2_release_003.diff) = e31a032d0234bb7d72eb968c33118d84
> MD5 (usb2_release_003.tar.gz) = 0a0d9dd44e93ba2ceaa849c577f6fecf
> %sha256 usb2_release_003.*
> SHA256 (usb2_release_003.diff) = 
> 9b4359f76eeef43d9b6c0c524198e529f2debff14e6158ebac8f35d51efb211b
> SHA256 (usb2_release_003.tar.gz) = 
> 3040714546fc21bc2943c2e7aec1734150845271664aad44639ff5c553e3ed31
>
> Changes since 002 release:
>   
I try to compile kernel with usb2.
Link error:
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing -march=nocona 
-std=c99  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys 
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS 
-include opt_global.h -fno-common -finline-limit=8000 --param 
inline-unit-growth=100 --param large-function-growth=1000  
-fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 
-mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow  -msoft-float 
-fno-asynchronous-unwind-tables -ffreestanding -fstack-protector 
-Werror  vers.c
ctfconvert -L VERSION vers.o
linking kernel
ng_ubt2.o(.text+0x38): In function `ubt_detach':
: undefined reference to `ng_rmnode_self'
ng_ubt2.o(.text+0x488): In function `ubt_attach':
: undefined reference to `ng_make_node_common'
ng_ubt2.o(.text+0x4be): In function `ubt_attach':
: undefined reference to `ng_name_node'
ng_ubt2.o(.text+0x52b): In function `ubt_attach':
: undefined reference to `ng_unref_node'
ng_ubt2.o(.text+0xc02): In function `ubt_modevent':
: undefined reference to `ng_newtype'
ng_ubt2.o(.text+0xde0): In function `ubt_bulk_read_complete':
: undefined reference to `ng_package_data'
ng_ubt2.o(.text+0xdfb): In function `ubt_bulk_read_complete':
: undefined reference to `ng_address_hook'
ng_ubt2.o(.text+0xe39): In function `ubt_bulk_read_complete':
: undefined reference to `ng_snd_item'
ng_ubt2.o(.text+0xfce): In function `ubt_intr_read_complete':
: undefined reference to `ng_package_data'
ng_ubt2.o(.text+0xfe9): In function `ubt_intr_read_complete':
: undefined reference to `ng_address_hook'
ng_ubt2.o(.text+0x1027): In function `ubt_intr_read_complete':
: undefined reference to `ng_snd_item'
ng_ubt2.o(.text+0x105d): In function `ng_ubt_rcvdata':
: undefined reference to `ng_free_item'
ng_ubt2.o(.text+0x10a7): In function `ng_ubt_rcvdata':
: undefined reference to `ng_free_item'
ng_ubt2.o(.text+0x124e): In function `ng_ubt_rcvmsg':
: undefined reference to `ng_free_item'
ng_ubt2.o(.text+0x12b3): In function `ng_ubt_rcvmsg':
: undefined reference to `ng_free_item'
ng_ubt2.o(.text+0x12bf): In function `ng_ubt_rcvmsg':
: undefined reference to `M_NETGRAPH_MSG'
ng_ubt2.o(.text+0x1314): In function `ng_ubt_rcvmsg':
: undefined reference to `M_NETGRAPH_MSG'
ng_ubt2.o(.text+0x1413): In function `ng_ubt_rcvmsg':
: undefined reference to `ng_address_ID'
ng_ubt2.o(.text+0x142a): In function `ng_ubt_rcvmsg':
: undefined reference to `ng_snd_item'
ng_ubt2.o(.text+0x1480): In function `ng_ubt_rcvmsg':
: undefined reference to `M_NETGRAPH_MSG'
ng_ubt2.o(.text+0x1561): In function `ng_ubt_rcvmsg':
: undefined reference to `M_NETGRAPH_MSG'
ng_ubt2.o(.text+0x162e): In function `ng_ubt_rcvmsg':
: undefined reference to `M_NETGRAPH_MSG'
ng_ubt2.o(.text+0x1a7a): In function `ng_ubt_shutdown':
: undefined reference to `ng_unref_node'
ng_ubt2.o(.text+0x1ab5): In function `ng_ubt_shutdown':
: undefined reference to `ng_make_node_common'
ng_ubt2.o(.text+0x1acc): In function `ng_ubt_shutdown':
: undefined reference to `ng_name_node'
ng_ubt2.o(.text+0x1b6b): In function `ng_ubt_shutdown':
: undefined reference to `ng_unref_node'
ng_ubt2.o(.text+0x1c28): In function `ubt_isoc_read_complete':
: undefined reference to `ng_package_data'
ng_ubt2.o(.text+0x1c43): In function `ubt_isoc_read_complete':
: undefined reference to `ng_address_hook'
ng_ubt2.o(.text+0x1d01): In function `ubt_isoc_read_complete':
: undefined reference to `ng_snd_item'
ng_ubt2.o(.text+0x1eaf): In function `ubt_bulk_read_callback':
: undefined reference to `ng_send_fn'
ng_ubt2.o(.text+0x20cd): In function `ubt_intr_read_callback':
: undefined reference to `ng_send_fn'
ng_ubt2.o(.text+0x242c): In function `ubt_isoc_read_callback':
: undefined reference to `ng_send_fn'
ng_ubt2.o(.text+0xc36): In function `ubt_modevent':
: undefined reference to `ng_rmtype'
ng_ubt2.o(.rodata+0x5f0): undefined reference to `ng_parse_uint16_type'
ng_ubt2.o(.rodata+0x618): undefined reference to `ng_parse_uint16_type'
ng_ubt2.o(.rodata+0x6c0): undefined reference to `ng_parse_struct_type'
ng_ubt2.o(.rodata+0x700): undefined reference to `ng_parse_struct_type'
ng_ubt2.o(.rodata+0x748): undefined reference to `ng_parse_int32_type'
ng_ubt2.o(.rodata+0x760): undefined reference to `ng_parse_int32_type'
ng_ubt2.o(.rodata+0x7a8): undefined reference to `ng_parse_uint32_type'
ng_ubt2.o(.rodata+0x7c0): undefined reference to `ng_parse_uint32_type'
ng_ubt2.o(.rodata+0x7d8): undefined reference to `ng_parse_uint32_type'
ng_ubt2.o(.rodata+0x7f0): undefined reference to `ng_parse_uint32_type'
ng_ubt2.o(.rodata+0x808): undefined reference to `ng_parse_uint32_type'
ng_ubt2.o(.rodata+0x820): more undefined references to 
`ng_parse_uint32_type' follow
*** Error code 1

I removed all old usb config. any other depends for usb2_bluetooth_ng?
# USB core support
device          usb2_core

# USB controller support
device          usb2_controller
device          usb2_controller_ehci
device          usb2_controller_ohci
device          usb2_controller_uhci

# USB mass storage support
device          usb2_storage
device          usb2_storage_mass

# USB ethernet support, requires miibus
#device         usb2_ethernet
#device         usb2_ethernet_aue
#device         usb2_ethernet_axe
#device         usb2_ethernet_cdce
#device         usb2_ethernet_cue
#device         usb2_ethernet_kue
#device         usb2_ethernet_rue
#device         usb2_ethernet_dav

# USB wireless LAN support
#device         usb2_wlan
#device         usb2_wlan_rum
#device         usb2_wlan_ral
#device         usb2_wlan_zyd

# USB serial device support
#device         usb2_serial
#device         usb2_serial_ark
#device         usb2_serial_bsa
#device         usb2_serial_bser
#device         usb2_serial_chcom
#device         usb2_serial_cycom
#device         usb2_serial_foma
#device         usb2_serial_ftdi
#device         usb2_serial_gensa
#device         usb2_serial_ipaq
#device         usb2_serial_lpt
#device         usb2_serial_mct
#device         usb2_serial_modem
#device         usb2_serial_moscom
#device         usb2_serial_plcom
#device         usb2_serial_visor
#device         usb2_serial_vscom

# USB bluetooth support
device          usb2_bluetooth
device          usb2_bluetooth_ng

# USB input device support
device          usb2_input
device          usb2_input_hid
device          usb2_input_kbd
device          usb2_input_ms

# USB sound and MIDI device support
#device         usb2_sound

Thanks,
kevin




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