[ltp] tp_smapi compilation error.

Audrius Kažukauskas linux-thinkpad@linux-thinkpad.org
Wed, 31 Dec 2008 21:54:03 +0200


--DocE+STaALJfprDB
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hello,

Happy New Year to all!

On Tue, 2008-12-23 at 11:20:43 +0800, Ricardson Williams wrote:
> Hi All!
>=20
>  I tried to compile tp_smapi-040, but failed.... I have Slackware 12.2 +
> Kernel 2.6.27.7 and kernel sources.
>=20
>=20
> root@wolverine:/home/ricardson/Desktop/tp_smapi-0.40# make install
> make -C /lib/modules/2.6.27.7-smp/build
> M=3D/home/ricardson/Desktop/tp_smapi-0.40 O=3D/lib/modules/2.6.27.7-smp/b=
uild
> 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

Not sure, what the problem is (since I'm building kernel which I've
already patched), but you could try creating package using newly added
tp_smapi SlackBuild from slackbuilds.org:

http://slackbuilds.org/repository/12.2/system/tp_smapi/

--=20
Audrius Ka=C5=BEukauskas

--DocE+STaALJfprDB
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAklbzdsACgkQcfeqt//h9KvB+ACdG/rGBANaZNqA0eY+sEIlcsHg
gvwAn2HtOeWF2ls0KQ6XQnwNb4ScxxEP
=P/bN
-----END PGP SIGNATURE-----

--DocE+STaALJfprDB--