[ltp] Compiling ibm-acpi 0.6 on Debian Sarge fails

Maarten den Braber linux-thinkpad@linux-thinkpad.org
Fri, 22 Oct 2004 11:26:19 +0200


Hi,

When trying to compile ibm-acpi 0.6 on Debian Sarge it fails with the
following errors:

| vortex:/usr/src/ibm-acpi-0.6# make
| make -C /lib/modules/2.6.9/build SUBDIRS=/usr/src/ibm-acpi-0.6 modules
| make[1]: Entering directory `/usr/src/linux-2.6.9'
|   CC [M]  /usr/src/ibm-acpi-0.6/ibm_acpi.o
| /usr/src/ibm-acpi-0.6/ibm_acpi.c: In function `hotkey_notify':
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:394: warning: implicit declaration of function `acpi_bus_generate_event'
| /usr/src/ibm-acpi-0.6/ibm_acpi.c: In function `setup_notify':
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1006: warning: implicit declaration of function `acpi_bus_get_device'
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1012: warning: implicit declaration of function `acpi_driver_data'
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1012: error: invalid lvalue in assignment
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1013: warning: implicit declaration of function `acpi_device_class'
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1013: warning: passing arg 1 of `sprintf' makes pointer from integer without a cast
| /usr/src/ibm-acpi-0.6/ibm_acpi.c: In function `register_driver':
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1037: error: invalid application of `sizeof' to an incomplete type
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1043: error: invalid application of `sizeof' to an incomplete type
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1043: error: invalid application of `sizeof' to an incomplete type
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1043: error: invalid application of `sizeof' to an incomplete type
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1043: error: invalid application of `sizeof' to an incomplete type
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1043: error: invalid application of `sizeof' to an incomplete type
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1043: error: invalid application of `sizeof' to an incomplete type
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1044: error: dereferencing pointer to incomplete type
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1045: error: dereferencing pointer to incomplete type
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1046: error: dereferencing pointer to incomplete type
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1048: warning: implicit declaration of function `acpi_bus_register_driver'
| /usr/src/ibm-acpi-0.6/ibm_acpi.c: In function `ibm_exit':
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1117: warning: implicit declaration of function `acpi_bus_unregister_driver'
| /usr/src/ibm-acpi-0.6/ibm_acpi.c: In function `acpi_ibm_exit':
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1179: error: `acpi_root_dir' undeclared (first use in this function)
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1179: error: (Each undeclared identifier is reported only once
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1179: error: for each function it appears in.)
| /usr/src/ibm-acpi-0.6/ibm_acpi.c: In function `acpi_ibm_init':
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1186: error: `acpi_disabled' undeclared (first use in this function)
| /usr/src/ibm-acpi-0.6/ibm_acpi.c:1189: error: `acpi_root_dir' undeclared (first use in this function)
| make[2]: *** [/usr/src/ibm-acpi-0.6/ibm_acpi.o] Error 1
| make[1]: *** [_module_/usr/src/ibm-acpi-0.6] Error 2
| make[1]: Leaving directory `/usr/src/linux-2.6.9'
| make: *** [default] Error 2

I mailed Boris about this, but he couldn't find a solution. He suspected
it to be missing kernel headers or another missing package. Could it be
some cutting-edge gcc or so that is breaking the compile process? I'm
running kernel 2.6.9, gcc 3.3.5 and make 3.80.

thanks,
mdb
-- 
Als er niet is gelachen,
was het niet serieus genoeg