[ltp] [T40]Can't compile ibm-acpi on Slackware
Konstantin Filtschew
linux-thinkpad@linux-thinkpad.org
Tue, 11 Oct 2005 15:50:34 +0200
--=-DmiKAZXwuciWCJ6/o1Uq
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable
hi,
congratulation for your first own kernel.
IBM-ACPI needs a patch to work on 2.6.13, you can find it here:
http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6=
.13/broken-out/ibm-acpi-0.11.patch
the author of ibm-acpi seems to work on 0.12, till this is done, take
this patch
go to your linux kernel
#cd /usr/src/linux
download the patch:
wget
http://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/patches/release/2.6=
.13/broken-out/ibm-acpi-0.11.patch
and do patch -p1 <ibm-acpi-0.11.patch
after this, you can use the build in ibm-acpi of your kernel(2.6.13) and
don't have to create an extra modul ;)
But compile this as module, because only this way you can activate the
experimental feature and control the fan for example(dangerous, if you
do it the wrong way!).
you load the module this way from shell:
#modprobe ibm-acpi experimental=3D1
but for starter, try this first:
#modprobe ibm-acpi
You have to take the scripts from the ibm-acpi.0.11 package and use
them as described on ibm-acpi.sourceforge.net or in the README.
Greetz
Konstantin Filtschew
On Tue, 2005-10-11 at 20:55 +0800, Rainarrow wrote:
> Hi,
> I've managed to install the kernel 2.6.13 from the Slackware CD#2, as
> Konstantin Filtschew <konstantin.filtschew@gmail.com> suggested. I
> also installed all packages included in the CD-ROM, including new
> ALSA, Linux 2.6 header and 2.6 modules. This kernel boots well, and X
> seems working well, too. Then, I retried compiling the IBM-ACPI 0.11,
> and I got the following error-message:
> =20
> ---------------------------------------- Start of ErrorMsg
> --------------------------------------------
> =20
> =20
> root@Raw's_Slack:~/ibm-acpi-0.11# make
> make -C /lib/modules/2.6.13/build SUBDIRS=3D/root/ibm-acpi-0.11 modules
> make[1]: Entering directory `/usr/src/linux- 2.6.13'
>=20
> WARNING: Symbol version dump /usr/src/linux-2.6.13/Module.symvers
> is missing; modules will have no dependencies and
> modversions.
>=20
> CC [M] /root/ibm-acpi-0.11/ibm_acpi.o
> /root/ibm-acpi-0.11/ibm_acpi.c:1756: error: conflicting types for
> `device_add'
> include/linux/device.h:326: error: previous declaration of
> `device_add'
> make[2]: *** [/root/ibm- acpi-0.11/ibm_acpi.o] Error 1
> make[1]: *** [_module_/root/ibm-acpi-0.11] Error 2
> make[1]: Leaving directory `/usr/src/linux-2.6.13'
> make: *** [default] Error 2
> root@Raw's_Slack:~/ibm-acpi-0.11#
>=20
> ---------------------------------- Here ends the ErrorMsg
> ---------------------------------
>=20
> Now could anyone offer some clue to me? As a Linux newbie, I am still
> rather clueless about these errors.
>=20
> Thanks in advance.
>=20
>=20
>=20
--=20
Building an operation system without source code,
is like buying a self assemble space shuttle without
instructions.
--=-DmiKAZXwuciWCJ6/o1Uq
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
iD8DBQBDS8MqxHXMYglFk4ARAheFAJ48mBumrUmxc7DCYp49ybSFNqOdswCguZob
zyvRitaRQLyDMi8J7Aousi0=
=89FT
-----END PGP SIGNATURE-----
--=-DmiKAZXwuciWCJ6/o1Uq--