安装的
代码: 全选
root@zc-ThinkPad-X220:/home/zc# apt-get install tp-smapi-dkms
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:
libdouble-conversion1v5 libqt5qml5 libqt5quick5 libqt5quickwidgets5
使用'apt autoremove'来卸载它(它们)。
下列【新】软件包将被安装:
tp-smapi-dkms
升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
需要下载 0 B/35.8 kB 的归档。
解压缩后会消耗 193 kB 的额外空间。
正在选中未选择的软件包 tp-smapi-dkms。
(正在读取数据库 ... 系统当前共安装有 199982 个文件和目录。)
正准备解包 .../tp-smapi-dkms_0.41-1_all.deb ...
正在解包 tp-smapi-dkms (0.41-1) ...
正在设置 tp-smapi-dkms (0.41-1) ...
Creating symlink /var/lib/dkms/tp-smapi/0.41/source ->
/usr/src/tp-smapi-0.41
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area....
make KERNELRELEASE=4.8.0-51-generic -C /lib/modules/4.8.0-51-generic/build M=/var/lib/dkms/tp-smapi/0.41/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.8.0-51-generic (x86_64)
Consult /var/lib/dkms/tp-smapi/0.41/build/make.log for more information.
root@zc-ThinkPad-X220:/home/zc#
代码: 全选
DKMS make.log for tp-smapi-0.41 for kernel 4.8.0-51-generic (x86_64)
2017年 05月 14日 星期日 01:27:49 CST
make: Entering directory '/usr/src/linux-headers-4.8.0-51-generic'
LD /var/lib/dkms/tp-smapi/0.41/build/built-in.o
CC [M] /var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o
In file included from ./include/linux/module.h:18:0,
from /var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.c:33:
/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.c: In function ‘__check_force_io’:
./include/linux/moduleparam.h:344:67: error: return from incompatible pointer type [-Werror=incompatible-pointer-types]
static inline type __always_unused *__check_##name(void) { return(p); }
^
./include/linux/moduleparam.h:396:35: note: in expansion of macro ‘__param_check’
#define param_check_bool(name, p) __param_check(name, p, bool)
^
./include/linux/moduleparam.h:146:2: note: in expansion of macro ‘param_check_bool’
param_check_##type(name, &(value)); \
^
/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.c:100:1: note: in expansion of macro ‘module_param_named’
module_param_named(force_io, force_io, bool, 0600);
^
/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.c: In function ‘check_dmi_for_ec’:
/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.c:469:1: warning: the frame size of 1728 bytes is larger than 1024 bytes [-Wframe-larger-than=]
}
^
cc1: some warnings being treated as errors
scripts/Makefile.build:295: recipe for target '/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o' failed
make[1]: *** [/var/lib/dkms/tp-smapi/0.41/build/thinkpad_ec.o] Error 1
Makefile:1491: recipe for target '_module_/var/lib/dkms/tp-smapi/0.41/build' failed
make: *** [_module_/var/lib/dkms/tp-smapi/0.41/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.8.0-51-generic'