[ltp] [T40]Can't compile ibm-acpi on Slackware

Rainarrow linux-thinkpad@linux-thinkpad.org
Tue, 11 Oct 2005 20:55:14 +0800


------=_Part_27170_11678759.1129035314878
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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.6header 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:
 ---------------------------------------- Start of ErrorMsg
--------------------------------------------


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'

WARNING: Symbol version dump /usr/src/linux-2.6.13/Module.symvers
is missing; modules will have no dependencies and modversions.

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#

---------------------------------- Here ends the ErrorMsg
---------------------------------

Now could anyone offer some clue to me? As a Linux newbie, I am still rathe=
r
clueless about these errors.

Thanks in advance.

------=_Part_27170_11678759.1129035314878
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

<div>Hi,</div>
<div>I've managed to install the kernel 2.6.13 from the Slackware CD#2, as =
Konstantin Filtschew &lt;<a href=3D"mailto:konstantin.filtschew@gmail.com">=
konstantin.filtschew@gmail.com</a>&gt;&nbsp;suggested.&nbsp;I also installe=
d all packages included in the CD-ROM, including new ALSA, Linux=20
2.6 header and 2.6 modules. This kernel boots well, and X seems working wel=
l, too. Then, I retried compiling the IBM-ACPI 0.11, and I got the followin=
g error-message:</div>
<div>&nbsp;</div>
<div>----------------------------------------&nbsp;&nbsp;&nbsp;&nbsp; &nbsp=
;Start of ErrorMsg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; --------------=
------------------------------</div>
<div>&nbsp;</div>
<div>
<p>&nbsp;<br><a href=3D"mailto:root@Raw's_Slack:~/ibm-acpi-0.11">root@Raw's=
_Slack:~/ibm-acpi-0.11</a># make<br>make -C /lib/modules/2.6.13/build SUBDI=
RS=3D/root/ibm-acpi-0.11 modules<br>make[1]: Entering directory `/usr/src/l=
inux-
2.6.13'</p>
<p>&nbsp; WARNING: Symbol version dump /usr/src/linux-2.6.13/Module.symvers=
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; is missing=
; modules will have no dependencies and modversions.</p>
<p>&nbsp; CC [M]&nbsp; /root/ibm-acpi-0.11/ibm_acpi.o<br>/root/ibm-acpi-0.1=
1/ibm_acpi.c:1756: error: conflicting types for `device_add'<br>include/lin=
ux/device.h:326: error: previous declaration of `device_add'<br>make[2]: **=
* [/root/ibm-
acpi-0.11/ibm_acpi.o] Error 1<br>make[1]: *** [_module_/root/ibm-acpi-0.11]=
 Error 2<br>make[1]: Leaving directory `/usr/src/linux-2.6.13'<br>make: ***=
 [default] Error 2<br><a href=3D"mailto:root@Raw's_Slack:~/ibm-acpi-0.11">
root@Raw's_Slack:~/ibm-acpi-0.11</a>#</p>
<p>----------------------------------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;Here ends the ErrorMsg&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp; ---------------------------------</p>
<p>Now could anyone offer some clue to me? As a Linux newbie, I am still ra=
ther clueless about these errors.</p>
<p>Thanks in advance.<br></p></div>

------=_Part_27170_11678759.1129035314878--