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:
make: Entering directory `/usr/src/linux-220.127.116.11-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: *** [/home/mark/scrap/acpi4asus-0.32/driver/asus_acpi.o] Error 1
make: *** [_module_/home/mark/scrap/acpi4asus-0.32/driver] Error 2
make: Leaving directory `/usr/src/linux-18.104.22.168-34'
make: *** [default] Error 2
make: 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:
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?