LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1168|回复: 2

thinkpad X61 slk 13.37 编译 tp_smapi 不过。

[复制链接]
发表于 2011-5-15 21:45:45 | 显示全部楼层 |阅读模式
make -C /lib/modules/2.6.37.6-smp/build M=/tmp/tp_smapi-0.40 O=/lib/modules/2.6.37.6-smp/build modules
make[1]: Entering directory `/usr/src/linux-2.6.37.6'
  CC [M]  /tmp/tp_smapi-0.40/thinkpad_ec.o
/tmp/tp_smapi-0.40/thinkpad_ec.c:91:8: warning: type defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’
/tmp/tp_smapi-0.40/thinkpad_ec.c:91:1: warning: parameter names (without types) in function declaration
/tmp/tp_smapi-0.40/thinkpad_ec.c: In function ‘thinkpad_ec_lock’:
/tmp/tp_smapi-0.40/thinkpad_ec.c:108:28: error: ‘thinkpad_ec_mutex’ undeclared (first use in this function)
/tmp/tp_smapi-0.40/thinkpad_ec.c:108:28: note: each undeclared identifier is reported only once for each function it appears in
/tmp/tp_smapi-0.40/thinkpad_ec.c: In function ‘thinkpad_ec_try_lock’:
/tmp/tp_smapi-0.40/thinkpad_ec.c:122:23: error: ‘thinkpad_ec_mutex’ undeclared (first use in this function)
/tmp/tp_smapi-0.40/thinkpad_ec.c: In function ‘thinkpad_ec_unlock’:
/tmp/tp_smapi-0.40/thinkpad_ec.c:134:6: error: ‘thinkpad_ec_mutex’ undeclared (first use in this function)
/tmp/tp_smapi-0.40/thinkpad_ec.c: At top level:
/tmp/tp_smapi-0.40/thinkpad_ec.c:91:8: warning: ‘DECLARE_MUTEX’ declared ‘static’ but never defined
/tmp/tp_smapi-0.40/thinkpad_ec.c: In function ‘thinkpad_ec_try_lock’:
/tmp/tp_smapi-0.40/thinkpad_ec.c:123:1: warning: control reaches end of non-void function
make[3]: *** [/tmp/tp_smapi-0.40/thinkpad_ec.o] Error 1
make[2]: *** [_module_/tmp/tp_smapi-0.40] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.37.6'
make: *** [modules] Error 2

要不要重编內核?
发表于 2011-5-16 01:58:33 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-5-16 08:51:50 | 显示全部楼层
Post by Blahster;2139269
你需要下面这个 patch
http://sources.gentoo.org/cgi-bi ... i-0.40-2.6.37.patch


成功编译,非常感谢。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表