You are not logged in.

#1 2008-01-02 21:39:23

deepnote
Member
Registered: 2008-01-02
Posts: 21

acpi4asus - compile error

Hi,

I`m trying to compile and install acpi4asus, but i get these errors:

make
make -C driver
make[1]: Entering directory `/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver'
Kernel configuration :
CONFIG_BACKLIGHT_CLASS_DEVICE : [Y]
CONFIG_LEDS_CLASS : [M]
make -C /lib/modules/2.6.23-ARCH/build SUBDIRS=/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver modules
make[2]: Entering directory `/usr/src/linux-2.6.23-ARCH'
  CC [M]  /home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.o
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:210: warning: initialization from incompatible pointer type
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:226: error: unknown field 'owner' specified in initializer
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:226: warning: initialization makes integer from pointer without a cast
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:226: error: initializer element is not computable at load time
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:226: error: (near initialization for 'asusbl_data.brightness')
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:227: error: unknown field 'get_brightness' specified in initializer
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:227: warning: initialization makes integer from pointer without a cast
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:227: error: initializer element is not computable at load time
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:227: error: (near initialization for 'asusbl_data.max_brightness')
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:228: error: unknown field 'update_status' specified in initializer
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:228: warning: initialization makes integer from pointer without a cast
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:228: error: initializer element is not computable at load time
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:228: error: (near initialization for 'asusbl_data.power')
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c: In function 'lcd_blank':
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:396: error: 'struct backlight_device' has no member named 'sem'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:397: error: wrong type argument to unary exclamation mark
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:398: error: invalid type argument of '->'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:399: error: invalid type argument of '->'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:400: error: invalid type argument of '->'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:402: error: 'struct backlight_device' has no member named 'sem'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c: In function 'update_bl_status':
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:436: error: invalid type argument of '->'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:442: error: invalid type argument of '->'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c: In function 'asus_hotk_notify':
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:741: error: implicit declaration of function 'acpi_bus_generate_event'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c: In function 'asus_hotk_get_info':
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:867: error: 'ACPI_TABLE_ID_DSDT' undeclared (first use in this function)
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:867: error: (Each undeclared identifier is reported only once
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:867: error: for each function it appears in.)
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:867: warning: passing argument 3 of 'acpi_get_table' from incompatible pointer type
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c: In function 'asus_led_exit':
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1092: error: 'struct led_classdev' has no member named 'class_dev'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1092: error: 'struct led_classdev' has no member named 'class_dev'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1093: error: 'struct led_classdev' has no member named 'class_dev'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1093: error: 'struct led_classdev' has no member named 'class_dev'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1094: error: 'struct led_classdev' has no member named 'class_dev'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1094: error: 'struct led_classdev' has no member named 'class_dev'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1095: error: 'struct led_classdev' has no member named 'class_dev'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1095: error: 'struct led_classdev' has no member named 'class_dev'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1096: error: 'struct led_classdev' has no member named 'class_dev'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1096: error: 'struct led_classdev' has no member named 'class_dev'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c: In function 'asus_backlight_init':
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1120: warning: passing argument 4 of 'backlight_device_register' from incompatible pointer type
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1131: error: 'struct backlight_device' has no member named 'sem'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1132: error: wrong type argument to unary exclamation mark
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1133: error: invalid type argument of '->'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1134: error: invalid type argument of '->'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1135: error: invalid type argument of '->'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1136: error: invalid type argument of '->'
/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.c:1138: error: 'struct backlight_device' has no member named 'sem'
make[3]: *** [/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver/asus-laptop.o] Error 1
make[2]: *** [_module_/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.23-ARCH'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/ivo/Desktop/acpi4asus-0.41/acpi4asus-0.41/driver'
make: *** [build] Error 2

Asus A6M-Q050

Offline

#2 2008-01-03 00:40:46

filoktetes
Member
From: Skien, Norway
Registered: 2003-12-29
Posts: 287

Re: acpi4asus - compile error

It seems like the 0.41 version of acpi4asus only works for kernel version 2.6.20. For later kernels you have to download it from cvs.

Look here:

http://acpi4asus.sourceforge.net/

Offline

#3 2008-01-03 12:21:55

newgargamel
Member
From: PL, CZ
Registered: 2005-08-28
Posts: 156

Re: acpi4asus - compile error

Offline

#4 2008-01-03 16:14:17

deepnote
Member
Registered: 2008-01-02
Posts: 21

Re: acpi4asus - compile error

Tnx. I used that package from that topic and it worked. smile


Asus A6M-Q050

Offline

#5 2008-01-03 16:53:44

uastasi
Member
From: Salento - Italy
Registered: 2007-11-27
Posts: 247

Re: acpi4asus - compile error

you can also install acpi4asus-cvs from aur


Till the last battle, till the last bottle.
aur - twitter

Offline

Board footer

Powered by FluxBB