大神?帮忙看看这是为什么呀?12.04不行啦,我手贱升级了。
laolaohu@laolaohu-desktop:~$ cd compat-drivers-2013-03-04-u
laolaohu@laolaohu-desktop:~/compat-drivers-2013-03-04-u$ ls
code-metrics.txt COPYING include Makefile.bk README.md
compat drivers MAINTAINERS net scripts
config.mk enable-older-kernels Makefile patches udev
laolaohu@laolaohu-desktop:~/compat-drivers-2013-03-04-u$ ./scripts/driver-select alx
Processing new driver-select request...
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backup exists: drivers/net/ethernet/broadcom/Makefile.bk
Backup exists: drivers/net/ethernet/atheros/Makefile.bk
Backup exists: Makefile.bk
Backup exists: Makefile.bk
Backup exists: drivers/net/ethernet/broadcom/Makefile.bk
laolaohu@laolaohu-desktop:~/compat-drivers-2013-03-04-u$ sudo make
make -C /lib/modules/3.2.0-58-generic-pae/build M=/home/laolaohu/compat-drivers-2013-03-04-u modules
make[1]: 正在进入目录 `/usr/src/linux-headers-3.2.0-58-generic-pae'
CC [M] /home/laolaohu/compat-drivers-2013-03-04-u/compat/main.o
In file included from /home/laolaohu/compat-drivers-2013-03-04-u/include/linux/compat-2.6.h:67:0,
from <命令行>:0:
/home/laolaohu/compat-drivers-2013-03-04-u/include/linux/compat-3.4.h:43:21: 错误: ‘kmalloc_array’重定义
include/linux/slab.h:243:21: 附注: ‘kmalloc_array’的上一个定义在此
In file included from /home/laolaohu/compat-drivers-2013-03-04-u/include/linux/compat-2.6.h:71:0,
from <命令行>:0:
/home/laolaohu/compat-drivers-2013-03-04-u/include/linux/compat-3.8.h:49:32: 错误: ‘kref_get_unless_zero’重定义
include/linux/kref.h:47:32: 附注: ‘kref_get_unless_zero’的上一个定义在此
make[3]: *** [/home/laolaohu/compat-drivers-2013-03-04-u/compat/main.o] 错误 1
make[2]: *** [/home/laolaohu/compat-drivers-2013-03-04-u/compat] 错误 2
make[1]: *** [_module_/home/laolaohu/compat-drivers-2013-03-04-u] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.2.0-58-generic-pae'
make: *** [modules] 错误 2
laolaohu@laolaohu-desktop:~/compat-drivers-2013-03-04-u$ sudo make install
Warning:
You may or may not need to update your initramfs, you should if
any of the modules installed are part of your initramfs. To add
support for your distribution to do this automatically send a
patch against ./scripts/update-initramfs. If your distribution does not require this
send a patch against the '/usr/bin/lsb_release -i -s': "Ubuntu"
tag for your distribution to avoid this warning.
make -C /lib/modules/3.2.0-58-generic-pae/build M=/home/laolaohu/compat-drivers-2013-03-04-u modules
make[1]: 正在进入目录 `/usr/src/linux-headers-3.2.0-58-generic-pae'
CC [M] /home/laolaohu/compat-drivers-2013-03-04-u/compat/main.o
In file included from /home/laolaohu/compat-drivers-2013-03-04-u/include/linux/compat-2.6.h:67:0,
from <命令行>:0:
/home/laolaohu/compat-drivers-2013-03-04-u/include/linux/compat-3.4.h:43:21: 错误: ‘kmalloc_array’重定义
include/linux/slab.h:243:21: 附注: ‘kmalloc_array’的上一个定义在此
In file included from /home/laolaohu/compat-drivers-2013-03-04-u/include/linux/compat-2.6.h:71:0,
from <命令行>:0:
/home/laolaohu/compat-drivers-2013-03-04-u/include/linux/compat-3.8.h:49:32: 错误: ‘kref_get_unless_zero’重定义
include/linux/kref.h:47:32: 附注: ‘kref_get_unless_zero’的上一个定义在此
make[3]: *** [/home/laolaohu/compat-drivers-2013-03-04-u/compat/main.o] 错误 1
make[2]: *** [/home/laolaohu/compat-drivers-2013-03-04-u/compat] 错误 2
make[1]: *** [_module_/home/laolaohu/compat-drivers-2013-03-04-u] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.2.0-58-generic-pae'
make: *** [modules] 错误 2
我刚开始编译了一个错误的驱动,再编译正确的驱动出现这样的情况,求指导。。。
root@zhaowenzheng-Lenovo-G500:/home/zhaowenzheng/compat-drivers-2013-03-04-u# sudo make
make -C /lib/modules/3.2.0-60-generic/build M=/home/zhaowenzheng/compat-drivers-2013-03-04-u modules
make[1]: 正在进入目录 `/usr/src/linux-headers-3.2.0-60-generic'
CC [M] /home/zhaowenzheng/compat-drivers-2013-03-04-u/compat/main.o
In file included from /home/zhaowenzheng/compat-drivers-2013-03-04-u/include/linux/compat-2.6.h:67:0,
from <命令行>:0:
/home/zhaowenzheng/compat-drivers-2013-03-04-u/include/linux/compat-3.4.h:43:21: 错误: ‘kmalloc_array’重定义
include/linux/slab.h:243:21: 附注: ‘kmalloc_array’的上一个定义在此
In file included from /home/zhaowenzheng/compat-drivers-2013-03-04-u/include/linux/compat-2.6.h:71:0,
from <命令行>:0:
/home/zhaowenzheng/compat-drivers-2013-03-04-u/include/linux/compat-3.8.h:49:32: 错误: ‘kref_get_unless_zero’重定义
include/linux/kref.h:47:32: 附注: ‘kref_get_unless_zero’的上一个定义在此
make[3]: *** [/home/zhaowenzheng/compat-drivers-2013-03-04-u/compat/main.o] 错误 1
make[2]: *** [/home/zhaowenzheng/compat-drivers-2013-03-04-u/compat] 错误 2
make[1]: *** [_module_/home/zhaowenzheng/compat-drivers-2013-03-04-u] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.2.0-60-generic'
make: *** [modules] 错误 2
root@zhaowenzheng-Lenovo-G500:/home/zhaowenzheng/compat-drivers-2013-03-04-u# sudo make install
Warning:
You may or may not need to update your initramfs, you should if
any of the modules installed are part of your initramfs. To add
support for your distribution to do this automatically send a
patch against ./scripts/update-initramfs. If your distribution does not require this
send a patch against the '/usr/bin/lsb_release -i -s': "Ubuntu"
tag for your distribution to avoid this warning.
make -C /lib/modules/3.2.0-60-generic/build M=/home/zhaowenzheng/compat-drivers-2013-03-04-u modules
make[1]: 正在进入目录 `/usr/src/linux-headers-3.2.0-60-generic'
CC [M] /home/zhaowenzheng/compat-drivers-2013-03-04-u/compat/main.o
In file included from /home/zhaowenzheng/compat-drivers-2013-03-04-u/include/linux/compat-2.6.h:67:0,
from <命令行>:0:
/home/zhaowenzheng/compat-drivers-2013-03-04-u/include/linux/compat-3.4.h:43:21: 错误: ‘kmalloc_array’重定义
include/linux/slab.h:243:21: 附注: ‘kmalloc_array’的上一个定义在此
In file included from /home/zhaowenzheng/compat-drivers-2013-03-04-u/include/linux/compat-2.6.h:71:0,
from <命令行>:0:
/home/zhaowenzheng/compat-drivers-2013-03-04-u/include/linux/compat-3.8.h:49:32: 错误: ‘kref_get_unless_zero’重定义
include/linux/kref.h:47:32: 附注: ‘kref_get_unless_zero’的上一个定义在此
make[3]: *** [/home/zhaowenzheng/compat-drivers-2013-03-04-u/compat/main.o] 错误 1
make[2]: *** [/home/zhaowenzheng/compat-drivers-2013-03-04-u/compat] 错误 2
make[1]: *** [_module_/home/zhaowenzheng/compat-drivers-2013-03-04-u] 错误 2
make[1]:正在离开目录 `/usr/src/linux-headers-3.2.0-60-generic'
make: *** [modules] 错误 2