I'm trying to compile version 0.32 of the asus_acpi module on openSUSE 10.2 (version 0.30 is installed at present, but says my laptop is unsupported).
As far as I know, i've got everything in place to make compilation and installation of the module work (I've got the kernel source configured for my machine in /usr/src/linux, and I have the module source in my home directory), but when I run "make" in the root of the module's source, I get the following error:
Code:
make[2]: Entering directory `/usr/src/linux-2.6.18.2-34'
CC [M] /home/mark/scrap/acpi4asus-0.32/driver/asus_acpi.o
/home/mark/scrap/acpi4asus-0.32/driver/asus_acpi.c:105: error: conflicting types for ‘unsupported’
include/linux/kernel.h:190: error: previous declaration of ‘unsupported’ was here
make[3]: *** [/home/mark/scrap/acpi4asus-0.32/driver/asus_acpi.o] Error 1
make[2]: *** [_module_/home/mark/scrap/acpi4asus-0.32/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.18.2-34'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/mark/scrap/acpi4asus-0.32/driver'
make: *** [build] Error 2
I had a poke around, and found that the problem referred to the file /usr/src/linux/include/linux/kernel.h which includes the following on line 190:
Code:
extern int unsupported;
I've not compiled modules before, so this was an unexpected problem for me. Does anyone know how I can compile and install the module correctly?
Many Thanks.