[ltp] building tp-smapi
~D
linux-thinkpad@linux-thinkpad.org
Tue, 30 Nov 2010 16:32:53 +0100
This is a multi-part message in MIME format.
--------------010608080204030403050602
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
On the default Debian testing kernel, installation of tp-smapi went well
by |# aptitude install tp-smapi-dkms
|||But on a custom realtime kernel, the module seems not be loaded, so I
tried to build it, without success
* |# aptitude install tp-smapi-source|
* |# m-a -t a-i tp-smapi|
dh_testdir
# Cleaning package
/usr/bin/make clean
make[1]: Entering directory `/usr/src/modules/tp-smapi'
rm -f tp_smapi.mod.* tp_smapi.o tp_smapi.ko .tp_smapi.*.cmd
rm -f thinkpad_ec.mod.* thinkpad_ec.o thinkpad_ec.ko .thinkpad_ec.*.cmd
rm -f hdaps.mod.* hdaps.o hdaps.ko .hdaps.*.cmd
rm -f *~ diff/*~ *.orig diff/*.orig *.rej diff/*.rej
rm -f tp_smapi-*-for-*.patch
rm -fr .tmp_versions Modules.symvers diff/hdaps.diff.tmp
make[1]: Leaving directory `/usr/src/modules/tp-smapi'
dh_clean
/usr/bin/make -f debian/rules clean
make[1]: Entering directory `/usr/src/modules/tp-smapi'
dh_testdir
# Cleaning package
/usr/bin/make clean
make[2]: Entering directory `/usr/src/modules/tp-smapi'
rm -f tp_smapi.mod.* tp_smapi.o tp_smapi.ko .tp_smapi.*.cmd
rm -f thinkpad_ec.mod.* thinkpad_ec.o thinkpad_ec.ko .thinkpad_ec.*.cmd
rm -f hdaps.mod.* hdaps.o hdaps.ko .hdaps.*.cmd
rm -f *~ diff/*~ *.orig diff/*.orig *.rej diff/*.rej
rm -f tp_smapi-*-for-*.patch
rm -fr .tmp_versions Modules.symvers diff/hdaps.diff.tmp
make[2]: Leaving directory `/usr/src/modules/tp-smapi'
dh_clean
make[1]: Leaving directory `/usr/src/modules/tp-smapi'
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules
make[1]: Entering directory `/usr/src/modules/tp-smapi'
dh_testdir
# Cleaning package
/usr/bin/make clean
make[2]: Entering directory `/usr/src/modules/tp-smapi'
rm -f tp_smapi.mod.* tp_smapi.o tp_smapi.ko .tp_smapi.*.cmd
rm -f thinkpad_ec.mod.* thinkpad_ec.o thinkpad_ec.ko .thinkpad_ec.*.cmd
rm -f hdaps.mod.* hdaps.o hdaps.ko .hdaps.*.cmd
rm -f *~ diff/*~ *.orig diff/*.orig *.rej diff/*.rej
rm -f tp_smapi-*-for-*.patch
rm -fr .tmp_versions Modules.symvers diff/hdaps.diff.tmp
make[2]: Leaving directory `/usr/src/modules/tp-smapi'
dh_clean
/usr/bin/make -w -f debian/rules clean
make[2]: Entering directory `/usr/src/modules/tp-smapi'
dh_testdir
# Cleaning package
/usr/bin/make clean
make[3]: Entering directory `/usr/src/modules/tp-smapi'
rm -f tp_smapi.mod.* tp_smapi.o tp_smapi.ko .tp_smapi.*.cmd
rm -f thinkpad_ec.mod.* thinkpad_ec.o thinkpad_ec.ko .thinkpad_ec.*.cmd
rm -f hdaps.mod.* hdaps.o hdaps.ko .hdaps.*.cmd
rm -f *~ diff/*~ *.orig diff/*.orig *.rej diff/*.rej
rm -f tp_smapi-*-for-*.patch
rm -fr .tmp_versions Modules.symvers diff/hdaps.diff.tmp
make[3]: Leaving directory `/usr/src/modules/tp-smapi'
dh_clean
make[2]: Leaving directory `/usr/src/modules/tp-smapi'
make[1]: Nothing to be done for `kdist_config'.
for templ in ; do \
cp $templ `echo $templ | sed -e
's/_KVERS_/2.6.33.7-rt29-1-amd64/g'` ; \
done
for templ in `ls debian/*.modules.in` ; do \
test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in}
${templ%.modules.in}.backup 2>/dev/null || true; \
sed -e 's/##KVERS##/2.6.33.7-rt29-1-amd64/g
;s/#KVERS#/2.6.33.7-rt29-1-amd64/g ; s/_KVERS_/2.6.33.7-rt29-1-amd64/g ;
s/##KDREV##/2.6.33.7-rt29-1/g ; s/#KDREV#/2.6.33.7-rt29-1/g ;
s/_KDREV_/2.6.33.7-rt29-1/g ' < $templ > ${templ%.modules.in}; \
done
dh_testroot
dh_clean -k
dh_clean: dh_clean -k is deprecated; use dh_prep instead
# Build the module
/usr/bin/make modules KSRC=/lib/modules/2.6.33.7-rt29-1-amd64/build
KVER=2.6.33.7-rt29-1-amd64 HDAPS=1
make[2]: Entering directory `/usr/src/modules/tp-smapi'
/usr/bin/make -C /lib/modules/2.6.33.7-rt29-1-amd64/build
M=/usr/src/modules/tp-smapi O=/lib/modules/2.6.33.7-rt29-1-amd64/build
modules
make[3]: Entering directory `/usr/src/linux-headers-2.6.33.7-rt29-1-amd64'
CC [M] /usr/src/modules/tp-smapi/thinkpad_ec.o
/usr/src/modules/tp-smapi/thinkpad_ec.c:91: warning: type defaults to
'int' in declaration of 'DECLARE_MUTEX'
/usr/src/modules/tp-smapi/thinkpad_ec.c:91: warning: parameter names
(without types) in function declaration
/usr/src/modules/tp-smapi/thinkpad_ec.c: In function 'thinkpad_ec_lock':
/usr/src/modules/tp-smapi/thinkpad_ec.c:108: error: 'thinkpad_ec_mutex'
undeclared (first use in this function)
/usr/src/modules/tp-smapi/thinkpad_ec.c:108: error: (Each undeclared
identifier is reported only once
/usr/src/modules/tp-smapi/thinkpad_ec.c:108: error: for each function it
appears in.)
/usr/src/modules/tp-smapi/thinkpad_ec.c: In function 'thinkpad_ec_try_lock':
/usr/src/modules/tp-smapi/thinkpad_ec.c:122: error: 'thinkpad_ec_mutex'
undeclared (first use in this function)
/usr/src/modules/tp-smapi/thinkpad_ec.c: In function 'thinkpad_ec_unlock':
/usr/src/modules/tp-smapi/thinkpad_ec.c:134: error: 'thinkpad_ec_mutex'
undeclared (first use in this function)
make[6]: *** [/usr/src/modules/tp-smapi/thinkpad_ec.o] Error 1
make[5]: *** [_module_/usr/src/modules/tp-smapi] Error 2
make[4]: *** [sub-make] Error 2
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/src/linux-headers-2.6.33.7-rt29-1-amd64'
make[2]: *** [modules] Error 2
make[2]: Leaving directory `/usr/src/modules/tp-smapi'
make[1]: *** [binary-modules] Error 2
make[1]: Leaving directory `/usr/src/modules/tp-smapi'
make: *** [kdist_build] Error 2
--------------010608080204030403050602
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi,<br>
<br>
On the default Debian testing kernel, installation of tp-smapi went
well by <code
style="white-space: nowrap; color: rgb(73, 89, 136); background-color: white;">#
aptitude install tp-smapi-dkms<br>
</code><code
style="white-space: nowrap; color: rgb(73, 89, 136); background-color: white;"></code>But
on a custom realtime kernel, the module seems not be loaded, so I tried
to build it, without success<br>
<br>
<ul>
<li> <code
style="white-space: nowrap; color: rgb(73, 89, 136); background-color: white;">#
aptitude install tp-smapi-source</code>
</li>
<li> <code
style="white-space: nowrap; color: rgb(73, 89, 136); background-color: white;">#
m-a -t a-i tp-smapi</code></li>
</ul>
dh_testdir<br>
# Cleaning package<br>
/usr/bin/make clean<br>
make[1]: Entering directory `/usr/src/modules/tp-smapi'<br>
rm -f tp_smapi.mod.* tp_smapi.o tp_smapi.ko .tp_smapi.*.cmd<br>
rm -f thinkpad_ec.mod.* thinkpad_ec.o thinkpad_ec.ko .thinkpad_ec.*.cmd<br>
rm -f hdaps.mod.* hdaps.o hdaps.ko .hdaps.*.cmd<br>
rm -f *~ diff/*~ *.orig diff/*.orig *.rej diff/*.rej<br>
rm -f tp_smapi-*-for-*.patch<br>
rm -fr .tmp_versions Modules.symvers diff/hdaps.diff.tmp<br>
make[1]: Leaving directory `/usr/src/modules/tp-smapi'<br>
dh_clean<br>
/usr/bin/make -f debian/rules clean<br>
make[1]: Entering directory `/usr/src/modules/tp-smapi'<br>
dh_testdir<br>
# Cleaning package<br>
/usr/bin/make clean<br>
make[2]: Entering directory `/usr/src/modules/tp-smapi'<br>
rm -f tp_smapi.mod.* tp_smapi.o tp_smapi.ko .tp_smapi.*.cmd<br>
rm -f thinkpad_ec.mod.* thinkpad_ec.o thinkpad_ec.ko .thinkpad_ec.*.cmd<br>
rm -f hdaps.mod.* hdaps.o hdaps.ko .hdaps.*.cmd<br>
rm -f *~ diff/*~ *.orig diff/*.orig *.rej diff/*.rej<br>
rm -f tp_smapi-*-for-*.patch<br>
rm -fr .tmp_versions Modules.symvers diff/hdaps.diff.tmp<br>
make[2]: Leaving directory `/usr/src/modules/tp-smapi'<br>
dh_clean<br>
make[1]: Leaving directory `/usr/src/modules/tp-smapi'<br>
/usr/bin/make -f debian/rules kdist_clean kdist_config binary-modules<br>
make[1]: Entering directory `/usr/src/modules/tp-smapi'<br>
dh_testdir<br>
# Cleaning package<br>
/usr/bin/make clean<br>
make[2]: Entering directory `/usr/src/modules/tp-smapi'<br>
rm -f tp_smapi.mod.* tp_smapi.o tp_smapi.ko .tp_smapi.*.cmd<br>
rm -f thinkpad_ec.mod.* thinkpad_ec.o thinkpad_ec.ko .thinkpad_ec.*.cmd<br>
rm -f hdaps.mod.* hdaps.o hdaps.ko .hdaps.*.cmd<br>
rm -f *~ diff/*~ *.orig diff/*.orig *.rej diff/*.rej<br>
rm -f tp_smapi-*-for-*.patch<br>
rm -fr .tmp_versions Modules.symvers diff/hdaps.diff.tmp<br>
make[2]: Leaving directory `/usr/src/modules/tp-smapi'<br>
dh_clean<br>
/usr/bin/make -w -f debian/rules clean<br>
make[2]: Entering directory `/usr/src/modules/tp-smapi'<br>
dh_testdir<br>
# Cleaning package<br>
/usr/bin/make clean<br>
make[3]: Entering directory `/usr/src/modules/tp-smapi'<br>
rm -f tp_smapi.mod.* tp_smapi.o tp_smapi.ko .tp_smapi.*.cmd<br>
rm -f thinkpad_ec.mod.* thinkpad_ec.o thinkpad_ec.ko .thinkpad_ec.*.cmd<br>
rm -f hdaps.mod.* hdaps.o hdaps.ko .hdaps.*.cmd<br>
rm -f *~ diff/*~ *.orig diff/*.orig *.rej diff/*.rej<br>
rm -f tp_smapi-*-for-*.patch<br>
rm -fr .tmp_versions Modules.symvers diff/hdaps.diff.tmp<br>
make[3]: Leaving directory `/usr/src/modules/tp-smapi'<br>
dh_clean<br>
make[2]: Leaving directory `/usr/src/modules/tp-smapi'<br>
make[1]: Nothing to be done for `kdist_config'.<br>
for templ in ; do \<br>
cp $templ `echo $templ | sed -e
's/_KVERS_/2.6.33.7-rt29-1-amd64/g'` ; \<br>
done<br>
for templ in `ls debian/*.modules.in` ; do \<br>
test -e ${templ%.modules.in}.backup || cp ${templ%.modules.in}
${templ%.modules.in}.backup 2>/dev/null || true; \<br>
sed -e 's/##KVERS##/2.6.33.7-rt29-1-amd64/g
;s/#KVERS#/2.6.33.7-rt29-1-amd64/g ; s/_KVERS_/2.6.33.7-rt29-1-amd64/g
; s/##KDREV##/2.6.33.7-rt29-1/g ; s/#KDREV#/2.6.33.7-rt29-1/g ;
s/_KDREV_/2.6.33.7-rt29-1/g ' < $templ > ${templ%.modules.in}; \<br>
done<br>
dh_testroot<br>
dh_clean -k<br>
dh_clean: dh_clean -k is deprecated; use dh_prep instead<br>
# Build the module<br>
/usr/bin/make modules KSRC=/lib/modules/2.6.33.7-rt29-1-amd64/build
KVER=2.6.33.7-rt29-1-amd64 HDAPS=1<br>
make[2]: Entering directory `/usr/src/modules/tp-smapi'<br>
/usr/bin/make -C /lib/modules/2.6.33.7-rt29-1-amd64/build
M=/usr/src/modules/tp-smapi O=/lib/modules/2.6.33.7-rt29-1-amd64/build
modules<br>
make[3]: Entering directory
`/usr/src/linux-headers-2.6.33.7-rt29-1-amd64'<br>
CC [M] /usr/src/modules/tp-smapi/thinkpad_ec.o<br>
/usr/src/modules/tp-smapi/thinkpad_ec.c:91: warning: type defaults to
‘int’ in declaration of ‘DECLARE_MUTEX’<br>
/usr/src/modules/tp-smapi/thinkpad_ec.c:91: warning: parameter names
(without types) in function declaration<br>
/usr/src/modules/tp-smapi/thinkpad_ec.c: In function ‘thinkpad_ec_lock’:<br>
/usr/src/modules/tp-smapi/thinkpad_ec.c:108: error: ‘thinkpad_ec_mutex’
undeclared (first use in this function)<br>
/usr/src/modules/tp-smapi/thinkpad_ec.c:108: error: (Each undeclared
identifier is reported only once<br>
/usr/src/modules/tp-smapi/thinkpad_ec.c:108: error: for each function
it appears in.)<br>
/usr/src/modules/tp-smapi/thinkpad_ec.c: In function
‘thinkpad_ec_try_lock’:<br>
/usr/src/modules/tp-smapi/thinkpad_ec.c:122: error: ‘thinkpad_ec_mutex’
undeclared (first use in this function)<br>
/usr/src/modules/tp-smapi/thinkpad_ec.c: In function
‘thinkpad_ec_unlock’:<br>
/usr/src/modules/tp-smapi/thinkpad_ec.c:134: error: ‘thinkpad_ec_mutex’
undeclared (first use in this function)<br>
make[6]: *** [/usr/src/modules/tp-smapi/thinkpad_ec.o] Error 1<br>
make[5]: *** [_module_/usr/src/modules/tp-smapi] Error 2<br>
make[4]: *** [sub-make] Error 2<br>
make[3]: *** [all] Error 2<br>
make[3]: Leaving directory
`/usr/src/linux-headers-2.6.33.7-rt29-1-amd64'<br>
make[2]: *** [modules] Error 2<br>
make[2]: Leaving directory `/usr/src/modules/tp-smapi'<br>
make[1]: *** [binary-modules] Error 2<br>
make[1]: Leaving directory `/usr/src/modules/tp-smapi'<br>
make: *** [kdist_build] Error 2<br>
<br>
</body>
</html>
--------------010608080204030403050602--