[ltp] having troubles compiling tp_smapi
Roman Haefeli
linux-thinkpad@linux-thinkpad.org
Mon, 09 Nov 2009 01:59:49 +0100
hi all
this is on ubuntu 9.10 with uname -r:
2.6.31-9-rt
am i missing something? iirc, i compiled it without problems on the same
machine with an older kernel/ubuntu version.
------------------------------------------------
roman@yoyo2:~/sources/tp_smapi-0.40$ make
make -C /lib/modules/2.6.31-9-rt/build
M=/home/roman/sources/tp_smapi-0.40 O=/lib/modules/2.6.31-9-rt/build
modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.31-9-rt'
CC [M] /home/roman/sources/tp_smapi-0.40/thinkpad_ec.o
/home/roman/sources/tp_smapi-0.40/thinkpad_ec.c:91: warning: type
defaults to ‘int’ in declaration of ‘DECLARE_MUTEX’
/home/roman/sources/tp_smapi-0.40/thinkpad_ec.c:91: warning: parameter
names (without types) in function declaration
/home/roman/sources/tp_smapi-0.40/thinkpad_ec.c: In function
‘thinkpad_ec_lock’:
/home/roman/sources/tp_smapi-0.40/thinkpad_ec.c:108: error: (first use
in this function)
/home/roman/sources/tp_smapi-0.40/thinkpad_ec.c:108: error: (Each
undeclared identifier is reported only once
/home/roman/sources/tp_smapi-0.40/thinkpad_ec.c:108: error: for each
function it appears in.)
/home/roman/sources/tp_smapi-0.40/thinkpad_ec.c: In function
‘thinkpad_ec_try_lock’:
/home/roman/sources/tp_smapi-0.40/thinkpad_ec.c:122: error:
‘thinkpad_ec_mutex’ undeclared (first use in this function)
/home/roman/sources/tp_smapi-0.40/thinkpad_ec.c: In function
‘thinkpad_ec_unlock’:
/home/roman/sources/tp_smapi-0.40/thinkpad_ec.c:134: error:
‘thinkpad_ec_mutex’ undeclared (first use in this function)
make[3]: *** [/home/roman/sources/tp_smapi-0.40/thinkpad_ec.o] Error 1
make[2]: *** [_module_/home/roman/sources/tp_smapi-0.40] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.31-9-rt'
make: *** [modules] Error 2