[ltp] tp_smapi compilation error.

Ricardson Williams linux-thinkpad@linux-thinkpad.org
Tue, 23 Dec 2008 11:20:43 +0800


------=_Part_69852_1348541.1230002443295
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi All!

 I tried to compile tp_smapi-040, but failed.... I have Slackware 12.2 +
Kernel 2.6.27.7 and kernel sources.


root@wolverine:/home/ricardson/Desktop/tp_smapi-0.40# make install
make -C /lib/modules/2.6.27.7-smp/build
M=/home/ricardson/Desktop/tp_smapi-0.40 O=/lib/modules/2.6.27.7-smp/build
modules
make[1]: Entering directory `/usr/src/linux-2.6.27.7'
  CC [M]  /home/ricardson/Desktop/tp_smapi-0.40/thinkpad_ec.o
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from
/home/ricardson/Desktop/tp_smapi-0.40/thinkpad_ec.c:33:
include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or
directory
include/linux/mmzone.h:197:5: warning: "MAX_NR_ZONES" is not defined
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from
/home/ricardson/Desktop/tp_smapi-0.40/thinkpad_ec.c:33:
include/linux/mmzone.h:218: error: 'MAX_NR_ZONES' undeclared here (not in a
function)
make[3]: *** [/home/ricardson/Desktop/tp_smapi-0.40/thinkpad_ec.o] Error 1
make[2]: *** [_module_/home/ricardson/Desktop/tp_smapi-0.40] Error 2
make[1]: *** [sub-make] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.27.7'
make: *** [modules] Error 2




Best Regards,
-- 
[],
Ricardson Williams

------=_Part_69852_1348541.1230002443295
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi All!<br><div class="gmail_quote"><br>&nbsp;I tried to compile tp_smapi-040, but failed.... I have Slackware 12.2 + Kernel 2.6.27.7 and kernel sources.<br><br><br>root@wolverine:/home/ricardson/Desktop/tp_smapi-0.40# make install<br>
make -C /lib/modules/2.6.27.7-smp/build M=/home/ricardson/Desktop/tp_smapi-0.40 O=/lib/modules/2.6.27.7-smp/build modules<br>
make[1]: Entering directory `/usr/src/linux-2.6.27.7&#39;<br>&nbsp; CC [M]&nbsp; /home/ricardson/Desktop/tp_smapi-0.40/thinkpad_ec.o<br>In file included from include/linux/gfp.h:4,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from include/linux/kmod.h:22,<br>

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from include/linux/module.h:13,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /home/ricardson/Desktop/tp_smapi-0.40/thinkpad_ec.c:33:<br>include/linux/mmzone.h:18:26: error: linux/bounds.h: No such file or directory<br>include/linux/mmzone.h:197:5: warning: &quot;MAX_NR_ZONES&quot; is not defined<br>

In file included from include/linux/gfp.h:4,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from include/linux/kmod.h:22,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from include/linux/module.h:13,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from /home/ricardson/Desktop/tp_smapi-0.40/thinkpad_ec.c:33:<br>

include/linux/mmzone.h:218: error: &#39;MAX_NR_ZONES&#39; undeclared here (not in a function)<br>make[3]: *** [/home/ricardson/Desktop/tp_smapi-0.40/thinkpad_ec.o] Error 1<br>make[2]: *** [_module_/home/ricardson/Desktop/tp_smapi-0.40] Error 2<br>

make[1]: *** [sub-make] Error 2<br>make[1]: Leaving directory `/usr/src/linux-2.6.27.7&#39;<br>make: *** [modules] Error 2<br><br><br><br><br>Best Regards,<br>-- <br>[],<br><font color="#888888">Ricardson Williams<br><br>
<br>
</font></div><br><br clear="all">

------=_Part_69852_1348541.1230002443295--