lwfinger / rtl8723bu

Driver for RTL8723BU
286 stars 146 forks source link

incomplete type error during make #63

Open ljishen opened 7 years ago

ljishen commented 7 years ago

make ARCH=arm CROSS_COMPILE= -C /lib/modules/4.5.0-00185-g3bb556b/build M=/home/nano/Desktop/rtl8723bu modules make[1]: Entering directory '/root/de10_nano/linux-socfpga' Building modules, stage 2. MODPOST 1 modules WARNING: "register_netdevice" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "system_wq" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "kmalloc_caches" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "kmalloc" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "ktime_get_with_offset" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "msleep" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "complete_and_exit" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "wiphy_free" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_unlink_bss" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "vmalloc" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "single_open" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "param_ops_int" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "del_timer" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "strlen" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "ieee80211_frequency_to_channel" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "single_release" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "find_vpid" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "__tasklet_hi_schedule" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "netif_carrier_on" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "skb_clone" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "dev_get_by_name" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "simple_strtoul" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "skb_copy" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "down_interruptible" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "seq_printf" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "register_netdevice_notifier" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "netif_carrier_off" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cancel_work_sync" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "usb_kill_urb" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "remove_proc_entry" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_rx_mgmt" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "filp_close" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "dev_kfree_skb_any" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "init_timer_key" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "arm_copy_from_user" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "mutex_unlock" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "usb_autopm_get_interface" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "strsep" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "vfree" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "sprintf" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "ns_to_timespec" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "seq_read" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "kthread_create_on_node" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "jiffies" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "unregister_netdevice_notifier" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "arm_copy_to_user" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "skb_trim" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "strcmp" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_mgmt_tx_status" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "divsi3" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "netdev_alloc_skb" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "netif_rx" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "pskb_pull_tail" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "init_waitqueue_head" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "PDE_DATA" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "param_ops_charp" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "memzero" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "memset" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "ieee80211_get_channel" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "netif_tx_wake_queue" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "netif_tx_stop_all_queues" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_get_bss" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "usb_deregister" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "mutex_lock_interruptible" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "mutex_init" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "printk" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "sscanf" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "__local_bh_enable_ip" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "memcmp" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "free_netdev" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "wiphy_unregister" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "tasklet_schedule" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "strncpy" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "register_netdev" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_del_sta_sinfo" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "usb_control_msg" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "warn_slowpath_null" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "skb_push" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_connect_result" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "proc_mkdir_data" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_michael_mic_failure" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "wiphy_apply_custom_regulatory" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "tasklet_init" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "mod_timer" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "kill_pid" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "prandom_u32" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "arm_delay_ops" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "skb_pull" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "device_init_wakeup" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "usb_free_coherent" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_ibss_joined" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "init_net" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "umodsi3" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "do_div64" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "flush_signals" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "netif_device_attach" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "usb_submit_urb" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "kmem_cache_alloc" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_roamed" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_put_bss" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "usb_get_dev" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "wiphy_register" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "usb_reset_device" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "usb_put_dev" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "schedule_timeout" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "strncasecmp" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_ready_on_channel" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "dump_stack" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "wiphy_new_nm" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "eth_type_trans" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "proc_get_parent_data" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "wake_up_process" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_disconnected" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "unregister_netdevice_queue" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_new_sta" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "udivsi3" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "proc_create_data" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "seq_lseek" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "csum_ipv6_magic" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "kfree" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "memcpy" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "kernel_sigaction" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "dev_alloc_name" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "up" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "usb_register_driver" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "skb_dequeue" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_remain_on_channel_expired" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "unregister_netdev" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "netif_wake_subqueue" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "queue_work_on" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "complete" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "snprintf" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "memmove" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "csum_partial" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "usb_alloc_coherent" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "rtnl_is_locked" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "msecs_to_jiffies" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_scan_done" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "skb_put" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "wait_for_completion_timeout" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "param_ops_uint" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "skb_copy_bits" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "usb_free_urb" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "usb_autopm_put_interface" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "yield" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "usb_alloc_urb" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "filp_open" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "alloc_etherdev_mqs" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! WARNING: "cfg80211_inform_bss_frame_data" [/home/nano/Desktop/rtl8723bu/8723bu.ko] undefined! CC /home/nano/Desktop/rtl8723bu/8723bu.mod.o /home/nano/Desktop/rtl8723bu/8723bu.mod.c:8:1: error: variable '__this_module' has initializer but incomplete type attribute__((section(".gnu.linkonce.this_module"))) = { ^ /home/nano/Desktop/rtl8723bu/8723bu.mod.c:9:2: error: unknown field 'name' specified in initializer .name = KBUILD_MODNAME, ^ /home/nano/Desktop/rtl8723bu/8723bu.mod.c:9:10: warning: excess elements in struct initializer .name = KBUILD_MODNAME, ^

:0:16: note: in definition of macro 'KBUILD_STR' /home/nano/Desktop/rtl8723bu/8723bu.mod.c:9:10: note: in expansion of macro 'KBUILD_MODNAME' .name = KBUILD_MODNAME, ^ /home/nano/Desktop/rtl8723bu/8723bu.mod.c:9:10: note: (near initialization for '__this_module') .name = KBUILD_MODNAME, ^ :0:16: note: in definition of macro 'KBUILD_STR' /home/nano/Desktop/rtl8723bu/8723bu.mod.c:9:10: note: in expansion of macro 'KBUILD_MODNAME' .name = KBUILD_MODNAME, ^ /home/nano/Desktop/rtl8723bu/8723bu.mod.c:10:2: error: unknown field 'init' specified in initializer .init = init_module, ^ /home/nano/Desktop/rtl8723bu/8723bu.mod.c:10:10: warning: excess elements in struct initializer .init = init_module, ^ /home/nano/Desktop/rtl8723bu/8723bu.mod.c:10:10: note: (near initialization for '__this_module') /home/nano/Desktop/rtl8723bu/8723bu.mod.c:14:2: error: unknown field 'arch' specified in initializer .arch = MODULE_ARCH_INIT, ^ /home/nano/Desktop/rtl8723bu/8723bu.mod.c:14:10: error: 'MODULE_ARCH_INIT' undeclared here (not in a function) .arch = MODULE_ARCH_INIT, ^ /home/nano/Desktop/rtl8723bu/8723bu.mod.c:14:10: warning: excess elements in struct initializer /home/nano/Desktop/rtl8723bu/8723bu.mod.c:14:10: note: (near initialization for '__this_module') scripts/Makefile.modpost:114: recipe for target '/home/nano/Desktop/rtl8723bu/8723bu.mod.o' failed make[2]: *** [/home/nano/Desktop/rtl8723bu/8723bu.mod.o] Error 1 Makefile:1394: recipe for target 'modules' failed make[1]: *** [modules] Error 2 make[1]: Leaving directory '/root/de10_nano/linux-socfpga' Makefile:321: recipe for target 'modules' failed make: *** [modules] Error 2 Thanks in advance for any response!
lwfinger commented 7 years ago

I'm not sure if this explains all the problems, but it looks as if the system symbol table in "System.map" is missing, or not current/correct.

ljishen commented 7 years ago

Thanks. I solved this problem by installing some modules. Now the make process didn't complain any undefined WARNINGs.

However, when I run sudo modprobe -v 8723bu, it gives Exec format error.

The related message from dmesg is: cfg80211: exports duplicate symbol __cfg80211_alloc_event_skb (owned by kernel)

The lsmod shows empty current loaded module.

lwfinger commented 7 years ago

That message seems to indicate that cfg80211 is built in AND a module. Check your .config.

inklit commented 7 years ago

@ljishen Can you tell me what you did to solve the problem? What modules did you install? I am having the same issue but nobody has stated what fixes it.

ljishen commented 7 years ago

@inklit My solution was that I got the source tree of the running system and use cat /proc/config.gz | gunzip > .config to obtain a "correct" configuration file for the kernel compiling.