y480安装网卡驱动 网上的教程已经试的差不多了 make环节出问题

系统安装、升级讨论
回复
ghw8699536
帖子: 1
注册时间: 2013-05-03 23:42
系统: win7
送出感谢: 0
接收感谢: 0

y480安装网卡驱动 网上的教程已经试的差不多了 make环节出问题

#1

帖子 ghw8699536 » 2013-05-06 22:13

求助
ghw@ghw-Lenovo-IdeaPad-Y480:~/compat-wireless-2012-07-03-pc$ make
./scripts/gen-compat-autoconf.sh /home/ghw/compat-wireless-2012-07-03-pc/.config /home/ghw/compat-wireless-2012-07-03-pc/config.mk > include/linux/compat_autoconf.h
make -C /lib/modules/3.8.0-19-generic/build M=/home/ghw/compat-wireless-2012-07-03-pc modules
make[1]: 正在进入目录 `/usr/src/linux-headers-3.8.0-19-generic'
CC [M] /home/ghw/compat-wireless-2012-07-03-pc/compat/main.o
CC [M] /home/ghw/compat-wireless-2012-07-03-pc/compat/compat_atomic.o
LD [M] /home/ghw/compat-wireless-2012-07-03-pc/compat/compat.o
CC [M] /home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.o
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c: 在函数‘alx_hw_printk’中:
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:124:3: 错误: 隐式声明函数‘__netdev_printk’ [-Werror=implicit-function-declaration]
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c: 在文件作用域:
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1955:22: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘alx_init_adapter_special’
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:2010:22: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘alx_init_adapter’
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3472:22: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘alx_init’
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3780:23: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘alx_remove’
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3903:17: 错误: ‘alx_init’未声明(不在函数内)
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3904:2: 错误: 隐式声明函数‘__devexit_p’ [-Werror=implicit-function-declaration]
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3904:29: 错误: ‘alx_remove’未声明(不在函数内)
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:135:12: 警告: ‘alx_validate_mac_addr’定义后未使用 [-Wunused-function]
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:210:12: 警告: ‘alx_init_hw_callbacks’定义后未使用 [-Wunused-function]
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1698:12: 警告: ‘alx_alloc_all_rtx_queue’定义后未使用 [-Wunused-function]
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1757:13: 警告: ‘alx_free_all_rtx_queue’定义后未使用 [-Wunused-function]
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1773:12: 警告: ‘alx_set_interrupt_param’定义后未使用 [-Wunused-function]
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1824:13: 警告: ‘alx_reset_interrupt_param’定义后未使用 [-Wunused-function]
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1914:12: 警告: ‘alx_set_interrupt_mode’定义后未使用 [-Wunused-function]
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:1941:13: 警告: ‘alx_reset_interrupt_mode’定义后未使用 [-Wunused-function]
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:2125:12: 警告: ‘alx_set_register_info_special’定义后未使用 [-Wunused-function]
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3043:13: 警告: ‘alx_timer_routine’定义后未使用 [-Wunused-function]
/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.c:3064:13: 警告: ‘alx_task_routine’定义后未使用 [-Wunused-function]
cc1: some warnings being treated as errors
make[4]: *** [/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx/alx_main.o] 错误 1
make[3]: *** [/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros/alx] 错误 2
make[2]: *** [/home/ghw/compat-wireless-2012-07-03-pc/drivers/net/ethernet/atheros] 错误 2
make[1]: *** [_module_/home/ghw/compat-wireless-2012-07-03-pc] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.8.0-19-generic'
make: *** [modules] 错误 2

实在不懂 第一次玩这个 球代码 或指示
满楼红袖招啊招
帖子: 12
注册时间: 2012-07-27 19:39
系统: ubuntu 13.04
送出感谢: 2 次
接收感谢: 0

Re: y480安装网卡驱动 网上的教程已经试的差不多了 make环节出问题

#2

帖子 满楼红袖招啊招 » 2013-06-12 23:04

我也碰到了跟楼主一样的问题,楼主现在这个问题解决没?
回复

回到 “系统安装和升级”