[ACPI-sppt] Error compiling with acpi-20030619-2.4.21 patch; need help.

"Luigi R. Viggiano" <[email protected]>
Newsgroups gmane.linux.acpi.support
Organization NewInstance
Message-ID <1062095404.2154.42.camel@SAL9000>
Hello 

I expose here my problem:

1. I downloaded kernel 2.4.21 from kernel.org

2. I applied acpi-20030619-2.4.21.diff patch, and patched it

3. I am having problems on "make modules":
   I execute this command:

   nohup make modules 1> modules.out 2> modules.err &

   Here follows modules.err:

In file included from /usr/src/linux-2.4.21/include/asm/fixmap.h:18,
                 from /usr/src/linux-2.4.21/include/asm/pgtable.h:17,
                 from /usr/src/linux-2.4.21/include/linux/mm.h:26,
                 from /usr/src/linux-2.4.21/include/linux/slab.h:14,
                 from ipmi_kcs_intf.c:47:
/usr/src/linux-2.4.21/include/asm/acpi.h:32:1: warning: this is the
location of the previous definition
ipmi_kcs_intf.c:1036:42: ../drivers/acpi/include/acpi.h: No such file or
directory
ipmi_kcs_intf.c:1037:45: ../drivers/acpi/include/actypes.h: No such file
or directory
ipmi_kcs_intf.c: In function `acpi_find_bmc':
ipmi_kcs_intf.c:1062: `acpi_table_header' undeclared (first use in this
function)
ipmi_kcs_intf.c:1062: (Each undeclared identifier is reported only once
ipmi_kcs_intf.c:1062: for each function it appears in.)
ipmi_kcs_intf.c:1062: `spmi' undeclared (first use in this function)
make[3]: *** [ipmi_kcs_intf.o] Error 1
make[2]: *** [_modsubdir_ipmi] Error 2
make[1]: *** [_modsubdir_char] Error 2
make: *** [_mod_drivers] Error 2

   and the make stops. Here follows the modules.out :

gcc -D__KERNEL__ -I/usr/src/linux-2.4.21/include -Wall
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common
-fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon
-DMODULE -DMODVERSIONS -include
/usr/src/linux-2.4.21/include/linux/modversions.h  -nostdinc
-iwithprefix include -DKBUILD_BASENAME=ipmi_kcs_intf  -c -o
ipmi_kcs_intf.o ipmi_kcs_intf.c
make[3]: Leaving directory `/usr/src/linux-2.4.21/drivers/char/ipmi'
make[2]: Leaving directory `/usr/src/linux-2.4.21/drivers/char'
make[1]: Leaving directory `/usr/src/linux-2.4.21/drivers'

[1]+  Exit 2                  nohup make modules >modules.out
2>modules.err

So the make fails.

What did I wrong?

I have a Compaq Presario 714EA, now running RH 9.A with RH Kernel

[root@SAL9000 linux]# uname -a
Linux SAL9000 2.4.20-18.9-alien #1 Thu Aug 28 00:25:24 CEST 2003 i686
athlon i386 GNU/Linux

I succesfully recompiled RH kernel enabling PM, disabling APM and 
enabling ACPI (in kernel, not modules: so KLAPTOP is saying that "Your
computer seems to have a partial ACPI installation. ACPI was probably
enabled, but some of the sub-options were not - you need to enable at
least 'AC Adaptor' and 'Control Method Battery' and then rebuild your
kernel).

I did it, something went better, but still the KLaptop does not work
(reporting no battery).

When running with the ACPI modules liked as KLM, those are ACPI modules
currently installed in my system:

[root@SAL9000 ospm]# pwd
/lib/modules/2.4.20-18.9-bravo/kernel/drivers/acpi/ospm
[root@SAL9000 ospm]# find
.
./ac_adapter
./ac_adapter/ospm_ac_adapter.o
./battery
./battery/ospm_battery.o
./busmgr
./busmgr/ospm_busmgr.o
./button
./button/ospm_button.o
./ec
./ec/ospm_ec.o
./processor
./processor/ospm_processor.o
./system
./system/ospm_system.o
./thermal
./thermal/ospm_thermal.o

But, I read somewhere that ospm is deprecated.

I made a page under the wiki (hope this is "politically correct") to
make place for a page explaining to dummies (like me) what to do to
apply and run ACPI:
http://acpi.sourceforge.net/wiki/index.php/WhichFilesDownload

I just seen it has been removed from the home page.

It's not so easy to manage with ACPI patch to the kernel. I'm quite new
to linux, but I managed to recompile the kernel lot of times. Even if I
am not a C developer (I'm just a Java boy :-))

What should I do to avoid my ugly laptop to burn? 

Hope in your kind support

TIA
~Luigi.



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.