[ltp] Re: having troubles compiling tp_smapi (Roman Haefeli)
Viorel Ciucu
linux-thinkpad@linux-thinkpad.org
Mon, 09 Nov 2009 11:58:44 +0200
Hi!
I use the following to install tp_smapi (tested on Ubuntu 9.04 and
Ubuntu 9.10 running on my ThinkPad T61):
sudo cp /etc/modules /etc/modules_backup
sudo aptitude install tp-smapi-source
sudo module-assistant prepare tp-smapi
sudo module-assistant auto-install tp-smapi
sudo modprobe tp-smapi
sudo aptitude install hdapsd
echo 'tp-smapi' | sudo tee -a /etc/modules
More info:
http://cviorel.easyblog.ro/2009/10/20/karmic-koala-beta-on-thinkpad-t61-continued/
> Message: 4
> From: Roman Haefeli <reduzierer@yahoo.de>
> To: linux-thinkpad@linux-thinkpad.org
> Date: Mon, 09 Nov 2009 01:59:49 +0100
> Subject: [ltp] having troubles compiling tp_smapi
> Reply-To: linux-thinkpad@linux-thinkpad.org
>
> 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
>