当前位置: 技术问答>linux和unix
驱动导入出现unresolved symbol
来源: 互联网 发布时间:2015-10-19
本文导语: 编译千兆网卡成.o文件后,insmod导入后一连串的unresolved symbol,如下: e1000.o: unresolved symbol softnet_data_Rsmp_a0415d09 e1000.o: unresolved symbol __dev_get_by_name_Rsmp_369943ab e1000.o: unresolved symbol __netdev_watchdog_up_Rsmp_38780c3f e1000.o:...
编译千兆网卡成.o文件后,insmod导入后一连串的unresolved symbol,如下:
e1000.o: unresolved symbol softnet_data_Rsmp_a0415d09
e1000.o: unresolved symbol __dev_get_by_name_Rsmp_369943ab
e1000.o: unresolved symbol __netdev_watchdog_up_Rsmp_38780c3f
e1000.o: unresolved symbol pci_read_config_byte_Rsmp_3ccefab4
e1000.o: unresolved symbol mem_map_Rsmp_ded66aa0
e1000.o: unresolved symbol free_irq_Rsmp_f20dabd8
e1000.o: unresolved symbol pci_unregister_driver_Rsmp_e8061e13
e1000.o: unresolved symbol pci_find_device_Rsmp_c584f4e3
e1000.o: unresolved symbol pci_free_consistent_Rsmp_1bfc1908
e1000.o: unresolved symbol skb_over_panic_Rsmp_ab9e1440
e1000.o: unresolved symbol pci_disable_device_Rsmp_95846005
e1000.o: unresolved symbol mod_timer_Rsmp_1f13d309
e1000.o: unresolved symbol __out_of_line_bug_Rsmp_8b0fd3c5
e1000.o: unresolved symbol schedule_task_Rsmp_2d6c3d04
e1000.o: unresolved symbol pci_set_master_Rsmp_99cc7ae2
e1000.o: unresolved symbol irq_stat_Rsmp_7864c29f
e1000.o: unresolved symbol iounmap_Rsmp_5fb196d4
e1000.o: unresolved symbol pci_alloc_consistent_Rsmp_ca1c24c8
e1000.o: unresolved symbol pci_set_power_state_Rsmp_11eecaa6
e1000.o: unresolved symbol pci_request_regions_Rsmp_01186146
e1000.o: unresolved symbol pci_set_mwi_Rsmp_c280a6ec
e1000.o: unresolved symbol __generic_copy_to_user_Rsmp_d523fdd3
e1000.o: unresolved symbol pci_release_regions_Rsmp_32f6b833
e1000.o: unresolved symbol pci_write_config_byte_Rsmp_364fc2a2
e1000.o: unresolved symbol register_netdev_Rsmp_0ac6d484
e1000.o: unresolved symbol pci_enable_device_Rsmp_1bc741d2
e1000.o: unresolved symbol __vmalloc_Rsmp_79995c5b
e1000.o: unresolved symbol pci_read_config_dword_Rsmp_0bf170e2
e1000.o: unresolved symbol pci_register_driver_Rsmp_1e536d21
e1000.o: unresolved symbol pci_write_config_dword_Rsmp_77f7f940
e1000.o: unresolved symbol schedule_timeout_Rsmp_17d59d01
e1000.o: unresolved symbol __ioremap_Rsmp_9eac042a
e1000.o: unresolved symbol pci_write_config_word_Rsmp_f23d8795
e1000.o: unresolved symbol unregister_netdev_Rsmp_74922a21
e1000.o: unresolved symbol pci_clear_mwi_Rsmp_e311513e
e1000.o: unresolved symbol kfree_Rsmp_037a0cba
e1000.o: unresolved symbol printk_Rsmp_1b7d4074
e1000.o: unresolved symbol synchronize_irq_Rsmp_143bb217
e1000.o: unresolved symbol del_timer_sync_Rsmp_daff266a
e1000.o: unresolved symbol cpu_raise_softirq_Rsmp_d01f3ee8
e1000.o: unresolved symbol eth_type_trans_Rsmp_08d542dd
e1000.o: unresolved symbol vfree_Rsmp_2fd1d81c
e1000.o: unresolved symbol kmalloc_Rsmp_93d4cfe6
e1000.o: unresolved symbol __const_udelay_Rsmp_eae3dfd6
e1000.o: unresolved symbol __udelay_Rsmp_9e7d6bd0
e1000.o: unresolved symbol __free_pages_Rsmp_7f7dcc66
e1000.o: unresolved symbol _alloc_pages_Rsmp_3fd4c2a6
e1000.o: unresolved symbol pci_set_dma_mask_Rsmp_80a48ce9
e1000.o: unresolved symbol pci_dev_driver_Rsmp_58a96c85
e1000.o: unresolved symbol __generic_copy_from_user_Rsmp_116166aa
e1000.o: unresolved symbol jiffies_Rsmp_0da02d67
e1000.o: unresolved symbol unregister_reboot_notifier_Rsmp_3980aac1
e1000.o: unresolved symbol pci_read_config_word_Rsmp_923654cb
e1000.o: unresolved symbol alloc_skb_Rsmp_81712a5d
e1000.o: unresolved symbol request_irq_Rsmp_0c60f2e0
e1000.o: unresolved symbol pci_enable_wake_Rsmp_e4028ad7
e1000.o: unresolved symbol alloc_etherdev_Rsmp_0659e3cb
e1000.o: unresolved symbol register_reboot_notifier_Rsmp_1cc6719a
e1000.o: unresolved symbol __kfree_skb_Rsmp_94b844a0
e1000.o: unresolved symbol netif_rx_Rsmp_add78d4b
是由于系统内核少东西?
我编译用的系统和使用驱动的系统不是一个系统
e1000.o: unresolved symbol softnet_data_Rsmp_a0415d09
e1000.o: unresolved symbol __dev_get_by_name_Rsmp_369943ab
e1000.o: unresolved symbol __netdev_watchdog_up_Rsmp_38780c3f
e1000.o: unresolved symbol pci_read_config_byte_Rsmp_3ccefab4
e1000.o: unresolved symbol mem_map_Rsmp_ded66aa0
e1000.o: unresolved symbol free_irq_Rsmp_f20dabd8
e1000.o: unresolved symbol pci_unregister_driver_Rsmp_e8061e13
e1000.o: unresolved symbol pci_find_device_Rsmp_c584f4e3
e1000.o: unresolved symbol pci_free_consistent_Rsmp_1bfc1908
e1000.o: unresolved symbol skb_over_panic_Rsmp_ab9e1440
e1000.o: unresolved symbol pci_disable_device_Rsmp_95846005
e1000.o: unresolved symbol mod_timer_Rsmp_1f13d309
e1000.o: unresolved symbol __out_of_line_bug_Rsmp_8b0fd3c5
e1000.o: unresolved symbol schedule_task_Rsmp_2d6c3d04
e1000.o: unresolved symbol pci_set_master_Rsmp_99cc7ae2
e1000.o: unresolved symbol irq_stat_Rsmp_7864c29f
e1000.o: unresolved symbol iounmap_Rsmp_5fb196d4
e1000.o: unresolved symbol pci_alloc_consistent_Rsmp_ca1c24c8
e1000.o: unresolved symbol pci_set_power_state_Rsmp_11eecaa6
e1000.o: unresolved symbol pci_request_regions_Rsmp_01186146
e1000.o: unresolved symbol pci_set_mwi_Rsmp_c280a6ec
e1000.o: unresolved symbol __generic_copy_to_user_Rsmp_d523fdd3
e1000.o: unresolved symbol pci_release_regions_Rsmp_32f6b833
e1000.o: unresolved symbol pci_write_config_byte_Rsmp_364fc2a2
e1000.o: unresolved symbol register_netdev_Rsmp_0ac6d484
e1000.o: unresolved symbol pci_enable_device_Rsmp_1bc741d2
e1000.o: unresolved symbol __vmalloc_Rsmp_79995c5b
e1000.o: unresolved symbol pci_read_config_dword_Rsmp_0bf170e2
e1000.o: unresolved symbol pci_register_driver_Rsmp_1e536d21
e1000.o: unresolved symbol pci_write_config_dword_Rsmp_77f7f940
e1000.o: unresolved symbol schedule_timeout_Rsmp_17d59d01
e1000.o: unresolved symbol __ioremap_Rsmp_9eac042a
e1000.o: unresolved symbol pci_write_config_word_Rsmp_f23d8795
e1000.o: unresolved symbol unregister_netdev_Rsmp_74922a21
e1000.o: unresolved symbol pci_clear_mwi_Rsmp_e311513e
e1000.o: unresolved symbol kfree_Rsmp_037a0cba
e1000.o: unresolved symbol printk_Rsmp_1b7d4074
e1000.o: unresolved symbol synchronize_irq_Rsmp_143bb217
e1000.o: unresolved symbol del_timer_sync_Rsmp_daff266a
e1000.o: unresolved symbol cpu_raise_softirq_Rsmp_d01f3ee8
e1000.o: unresolved symbol eth_type_trans_Rsmp_08d542dd
e1000.o: unresolved symbol vfree_Rsmp_2fd1d81c
e1000.o: unresolved symbol kmalloc_Rsmp_93d4cfe6
e1000.o: unresolved symbol __const_udelay_Rsmp_eae3dfd6
e1000.o: unresolved symbol __udelay_Rsmp_9e7d6bd0
e1000.o: unresolved symbol __free_pages_Rsmp_7f7dcc66
e1000.o: unresolved symbol _alloc_pages_Rsmp_3fd4c2a6
e1000.o: unresolved symbol pci_set_dma_mask_Rsmp_80a48ce9
e1000.o: unresolved symbol pci_dev_driver_Rsmp_58a96c85
e1000.o: unresolved symbol __generic_copy_from_user_Rsmp_116166aa
e1000.o: unresolved symbol jiffies_Rsmp_0da02d67
e1000.o: unresolved symbol unregister_reboot_notifier_Rsmp_3980aac1
e1000.o: unresolved symbol pci_read_config_word_Rsmp_923654cb
e1000.o: unresolved symbol alloc_skb_Rsmp_81712a5d
e1000.o: unresolved symbol request_irq_Rsmp_0c60f2e0
e1000.o: unresolved symbol pci_enable_wake_Rsmp_e4028ad7
e1000.o: unresolved symbol alloc_etherdev_Rsmp_0659e3cb
e1000.o: unresolved symbol register_reboot_notifier_Rsmp_1cc6719a
e1000.o: unresolved symbol __kfree_skb_Rsmp_94b844a0
e1000.o: unresolved symbol netif_rx_Rsmp_add78d4b
是由于系统内核少东西?
我编译用的系统和使用驱动的系统不是一个系统
|
版本不对或者是少加载了在该驱动加载前需要加载的模块
|
你肯定是编译的kernel环境不一样了,比如在linux-2.4.18-3下编译,那么要是在linux-2.4.20下insmod就会出现这问题,这是kernel符号表不对,在相同的kernel下编译才能insmod的.
|
可能是其他的模块没有加载,也可能是你应用了内核当中没有输出的函数。
看你的错误提示,你的使用的内核是编译了版本号的(输出函数有版本信息),你的驱动程序是不是也包含了版本信息的头文件?
看你的错误提示,你的使用的内核是编译了版本号的(输出函数有版本信息),你的驱动程序是不是也包含了版本信息的头文件?