The build took 00h 00m 54s and was NOT successful.
The program in this build is written in the following languages, according to sloccount:
SLOC | Language |
---|---|
840 |
ansic |
122 |
makefile |
962 |
total |
The process tree of the build process is here.
Several sub-process invocations were improper; see the process tree for details. Summary:
To avoid scrolling, you may jump to the last line of the
invocation of makepkg
that was used to build this
package.
Removed vanilla repositories from pacman.conf and added:
Copied permanent toolchain into container-local sysroot
/toolchain_root/arm-linux-androideabi --> /sysroot/arm-linux-androideabi
/toolchain_root/COPYING3.LIB --> /sysroot/COPYING3.LIB
/toolchain_root/sysroot --> /sysroot/sysroot
/toolchain_root/COPYING.RUNTIME --> /sysroot/COPYING.RUNTIME
/toolchain_root/lib --> /sysroot/lib
/toolchain_root/SOURCES --> /sysroot/SOURCES
/toolchain_root/lib64 --> /sysroot/lib64
/toolchain_root/share --> /sysroot/share
/toolchain_root/bin --> /sysroot/bin
/toolchain_root/COPYING --> /sysroot/COPYING
/toolchain_root/COPYING3 --> /sysroot/COPYING3
/toolchain_root/COPYING.LIB --> /sysroot/COPYING.LIB
/toolchain_root/include --> /sysroot/include
/toolchain_root/libexec --> /sysroot/libexec
CMD: sudo -u tuscan PATH=/sysroot/bin:/sysroot/libexec/gcc/arm-linux-androideabi/4.8:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin CC=arm-linux-androideabi-gcc CXX=arm-linux-androideabi-g++ red makepkg --noextract --syncdeps --skipinteg --skippgpcheck --skipchecksums --noconfirm --nocolor --log --noprogressbar --nocheck
==> Making package: libacpi 0.2-4 (Tue Apr 4 19:37:25 UTC 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
patching file libacpi.h
patching file libacpi.c
patching file test-libacpi.c
patching file debian/control
patching file debian/libacpi-dev.install
patching file debian/compat
patching file debian/docs
patching file debian/changelog
patching file debian/libacpi0.install
patching file debian/copyright
patching file debian/rules
libacpi build options:
CC libacpi.c
CC list.c
CC test-libacpi.c
CFLAGS = -fPIC -g --pedantic -Wall -Wextra
CC = cc
SOFLAGS = -shared -Wl,-soname,libacpi.so.0
LD = cc
cc1: error: no include path in which to search for stdc-predef.h
cc1: error: no include path in which to search for stdc-predef.h
libacpi.c:6:19: error: no include path in which to search for stdio.h
#include
^
libacpi.c:7:20: error: no include path in which to search for stdlib.h
#include
^
libacpi.c:8:20: error: no include path in which to search for unistd.h
#include
^
libacpi.c:9:20: error: no include path in which to search for string.h
#include
^
cc1: error: no include path in which to search for stdc-predef.h
libacpi.c:10:20: error: no include path in which to search for dirent.h
#include
^
libacpi.c:11:19: error: no include path in which to search for ctype.h
#include
^
libacpi.c:12:20: error: no include path in which to search for stddef.h
#include
^
list.c:8:19: error: no include path in which to search for stdio.h
#include
^
list.c:9:20: error: no include path in which to search for string.h
#include
^
list.c:10:20: error: no include path in which to search for stdlib.h
#include
^
list.c:11:20: error: no include path in which to search for dirent.h
#include
^
list.c: In function 'new_list':
list.c:18:2: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
list_t *l = malloc(sizeof(list_t));
^
list.c:18:14: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
list_t *l = malloc(sizeof(list_t));
^
list.c:19:16: error: 'NULL' undeclared (first use in this function)
if(!l) return NULL;
^
list.c:19:16: note: each undeclared identifier is reported only once for each function it appears in
list.c: In function 'append_node':
list.c:29:10: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
if((n = malloc(sizeof(node_t))) == NULL) return;
^
list.c:29:37: error: 'NULL' undeclared (first use in this function)
if((n = malloc(sizeof(node_t))) == NULL) return;
^
test-libacpi.c:10:19: error: no include path in which to search for stdio.h
#include
^
test-libacpi.c:11:20: error: no include path in which to search for stdlib.h
#include
^
list.c:30:2: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration]
if((n->name = strdup(name)) == NULL) {
^
list.c:30:16: warning: incompatible implicit declaration of built-in function 'strdup' [enabled by default]
if((n->name = strdup(name)) == NULL) {
^
list.c:31:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
free(n);
^
list.c:31:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
test-libacpi.c: In function 'main':
test-libacpi.c:19:2: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
global_t *global = malloc (sizeof (global_t));
^
libacpi.c:25:2: error: unknown type name 'size_t'
size_t offset;
^
test-libacpi.c:19:21: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
global_t *global = malloc (sizeof (global_t));
^
list.c: In function 'delete_list':
libacpi.c:30:2: warning: implicit declaration of function 'offsetof' [-Wimplicit-function-declaration]
{ "last full capacity:", offsetof(battery_t, last_full_cap) },
^
list.c:49:15: error: 'NULL' undeclared (first use in this function)
while(tmp != NULL){
^
libacpi.c:30:36: error: expected expression before 'battery_t'
{ "last full capacity:", offsetof(battery_t, last_full_cap) },
^
test-libacpi.c:26:3: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
printf("No acpi support for your system?\n");
^
list.c:51:17: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
if(tmp->name) free(tmp->name);
^
libacpi.c:30:36: warning: missing initializer for field 'offset' of 'acpi_value_t' [-Wmissing-field-initializers]
test-libacpi.c:26:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
libacpi.c:25:9: note: 'offset' declared here
size_t offset;
^
list.c:56:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(lst);
^
libacpi.c:31:32: error: expected expression before 'battery_t'
{ "design voltage:", offsetof(battery_t, design_voltage) },
^
libacpi.c:31:32: warning: missing initializer for field 'offset' of 'acpi_value_t' [-Wmissing-field-initializers]
list.c: In function 'dir_list':
libacpi.c:25:9: note: 'offset' declared here
size_t offset;
^
list.c:63:2: error: unknown type name 'DIR'
DIR *rddir = NULL;
^
test-libacpi.c:37:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
printf("AC adapter: off-line\n");
^
list.c:63:15: error: 'NULL' undeclared (first use in this function)
DIR *rddir = NULL;
^
libacpi.c:32:41: error: expected expression before 'battery_t'
{ "design capacity warning:", offsetof(battery_t, design_warn) },
^
libacpi.c:32:41: warning: missing initializer for field 'offset' of 'acpi_value_t' [-Wmissing-field-initializers]
list.c:66:2: warning: implicit declaration of function 'opendir' [-Wimplicit-function-declaration]
if((rddir = opendir(dir)) == NULL)
^
libacpi.c:25:9: note: 'offset' declared here
size_t offset;
^
list.c:66:12: warning: assignment makes pointer from integer without a cast [enabled by default]
if((rddir = opendir(dir)) == NULL)
^
list.c:68:2: warning: implicit declaration of function 'readdir' [-Wimplicit-function-declaration]
while((rd = readdir(rddir))){
^
libacpi.c:33:37: error: expected expression before 'battery_t'
{ "design capacity low:", offsetof(battery_t, design_low) },
^
libacpi.c:33:37: warning: missing initializer for field 'offset' of 'acpi_value_t' [-Wmissing-field-initializers]
list.c:68:12: warning: assignment makes pointer from integer without a cast [enabled by default]
while((rd = readdir(rddir))){
^
libacpi.c:25:9: note: 'offset' declared here
size_t offset;
^
list.c:69:3: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
if(!strncmp(".", rd->d_name, 1) || !strncmp("..", rd->d_name, 2))
^
libacpi.c:34:40: error: expected expression before 'battery_t'
{ "capacity granularity 1:", offsetof(battery_t, design_level1) },
^
list.c:69:22: error: dereferencing pointer to incomplete type
if(!strncmp(".", rd->d_name, 1) || !strncmp("..", rd->d_name, 2))
^
libacpi.c:34:40: warning: missing initializer for field 'offset' of 'acpi_value_t' [-Wmissing-field-initializers]
libacpi.c:25:9: note: 'offset' declared here
size_t offset;
^
list.c:69:55: error: dereferencing pointer to incomplete type
if(!strncmp(".", rd->d_name, 1) || !strncmp("..", rd->d_name, 2))
^
libacpi.c:35:40: error: expected expression before 'battery_t'
{ "capacity granularity 2:", offsetof(battery_t, design_level2) },
^
list.c:72:23: error: dereferencing pointer to incomplete type
append_node(list, rd->d_name);
^
libacpi.c:35:40: warning: missing initializer for field 'offset' of 'acpi_value_t' [-Wmissing-field-initializers]
libacpi.c:25:9: note: 'offset' declared here
size_t offset;
^
list.c:74:2: warning: implicit declaration of function 'closedir' [-Wimplicit-function-declaration]
closedir(rddir);
^
libacpi.c:36:4: error: 'NULL' undeclared here (not in a function)
{ NULL, 0 }
^
libacpi.c:41:30: error: expected expression before 'battery_t'
{ "present rate:", offsetof(battery_t, present_rate) },
^
libacpi.c:41:30: error: initializer element is not constant
libacpi.c:41:30: error: (near initialization for 'battstate_values[0].offset')
libacpi.c:41:30: warning: missing initializer for field 'offset' of 'acpi_value_t' [-Wmissing-field-initializers]
libacpi.c:25:9: note: 'offset' declared here
size_t offset;
^
libacpi.c:42:36: error: expected expression before 'battery_t'
{ "remaining capacity:", offsetof(battery_t, remaining_cap) },
^
libacpi.c:42:36: error: initializer element is not constant
libacpi.c:42:36: error: (near initialization for 'battstate_values[1].offset')
libacpi.c:42:36: warning: missing initializer for field 'offset' of 'acpi_value_t' [-Wmissing-field-initializers]
libacpi.c:25:9: note: 'offset' declared here
size_t offset;
^
libacpi.c:43:33: error: expected expression before 'battery_t'
{ "present voltage:", offsetof(battery_t, present_voltage) },
^
test-libacpi.c:106:2: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
free(global);
^
test-libacpi.c:106:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
libacpi.c:43:33: error: initializer element is not constant
libacpi.c:43:33: error: (near initialization for 'battstate_values[2].offset')
libacpi.c:43:33: warning: missing initializer for field 'offset' of 'acpi_value_t' [-Wmissing-field-initializers]
libacpi.c:25:9: note: 'offset' declared here
size_t offset;
^
libacpi.c:44:2: error: initializer element is not constant
{ NULL, 0 }
^
libacpi.c:44:2: error: (near initialization for 'battstate_values[3].value')
libacpi.c: In function 'scan_acpi_value':
libacpi.c:51:14: warning: initialization from incompatible pointer type [enabled by default]
char *ptr = NULL;
^
libacpi.c:52:17: warning: initialization from incompatible pointer type [enabled by default]
char *tmpbuf = NULL;
^
libacpi.c:53:17: warning: initialization from incompatible pointer type [enabled by default]
char *tmpkey = NULL;
^
libacpi.c:54:17: warning: initialization from incompatible pointer type [enabled by default]
char *tmpval = NULL;
^
libacpi.c:56:2: warning: implicit declaration of function 'strdup' [-Wimplicit-function-declaration]
if((tmpbuf = strdup(buf)) == NULL)
^
libacpi.c:56:15: warning: incompatible implicit declaration of built-in function 'strdup' [enabled by default]
if((tmpbuf = strdup(buf)) == NULL)
^
libacpi.c:56:28: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((tmpbuf = strdup(buf)) == NULL)
^
libacpi.c:57:3: warning: return from incompatible pointer type [enabled by default]
return NULL;
^
libacpi.c:60:2: warning: implicit declaration of function 'strstr' [-Wimplicit-function-declaration]
if((tmpkey = strstr(tmpbuf, key))) {
^
libacpi.c:60:15: warning: incompatible implicit declaration of built-in function 'strstr' [enabled by default]
if((tmpkey = strstr(tmpbuf, key))) {
^
libacpi.c:62:3: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
for(tmpkey += strlen(key); *tmpkey && (*tmpkey == ' ' || *tmpkey == '\t'); tmpkey++);
^
libacpi.c:62:17: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
for(tmpkey += strlen(key); *tmpkey && (*tmpkey == ' ' || *tmpkey == '\t'); tmpkey++);
^
libacpi.c:69:29: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((ptr = strdup(tmpkey)) == NULL) {
^
libacpi.c:70:4: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
free(tmpbuf);
^
libacpi.c:70:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
libacpi.c:71:4: warning: return from incompatible pointer type [enabled by default]
return NULL;
^
libacpi.c:74:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(tmpbuf);
^
libacpi.c: In function 'get_acpi_content':
libacpi.c:81:2: error: unknown type name 'FILE'
FILE *input = NULL;
^
libacpi.c:81:16: warning: initialization from incompatible pointer type [enabled by default]
FILE *input = NULL;
^
libacpi.c:82:14: warning: initialization from incompatible pointer type [enabled by default]
char *buf = NULL;
^
libacpi.c:85:2: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration]
if((buf = malloc(MAX_BUF + 1)) == NULL)
^
libacpi.c:85:12: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
if((buf = malloc(MAX_BUF + 1)) == NULL)
^
libacpi.c:85:33: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = malloc(MAX_BUF + 1)) == NULL)
^
libacpi.c:86:3: warning: return from incompatible pointer type [enabled by default]
return NULL;
^
libacpi.c:87:2: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
if((input = fopen(file, "r")) == NULL)
^
make: *** [Makefile:22: list.o] Error 1
make: *** Waiting for unfinished jobs....
libacpi.c:87:12: warning: assignment makes pointer from integer without a cast [enabled by default]
if((input = fopen(file, "r")) == NULL)
^
libacpi.c:87:32: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((input = fopen(file, "r")) == NULL)
^
libacpi.c:88:3: warning: return from incompatible pointer type [enabled by default]
return NULL;
^
libacpi.c:90:2: warning: implicit declaration of function 'fread' [-Wimplicit-function-declaration]
read = fread(buf, 1, MAX_BUF, input);
^
libacpi.c:94:2: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
fclose(input);
^
libacpi.c: In function 'get_acpi_version':
libacpi.c:103:18: warning: initialization from incompatible pointer type [enabled by default]
char *version = NULL;
^
libacpi.c:108:4: warning: implicit declaration of function 'strtol' [-Wimplicit-function-declaration]
long ret = strtol(tmp, NULL, 10);
^
libacpi.c:109:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(tmp);
^
libacpi.c:115:50: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((version = scan_acpi_value(tmp, "version:")) == NULL){
^
libacpi.c:116:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(tmp);
^
libacpi.c:120:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(tmp);
^
libacpi.c: In function 'init_acpi_batt':
libacpi.c:143:16: warning: initialization from incompatible pointer type [enabled by default]
list_t *lst = NULL;
^
libacpi.c:144:17: warning: initialization from incompatible pointer type [enabled by default]
node_t *node = NULL;
^
libacpi.c:149:43: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((lst = dir_list(PROC_ACPI "battery")) == NULL || !lst->top)
^
libacpi.c:152:34: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((lst = dir_list(SYS_POWER)) == NULL || !lst->top)
^
libacpi.c:158:36: warning: incompatible implicit declaration of built-in function 'strdup' [enabled by default]
if((names[globals->batt_count] = strdup(node->name)) == NULL){
^
libacpi.c:158:56: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((names[globals->batt_count] = strdup(node->name)) == NULL){
^
make: *** [Makefile:22: test-libacpi.o] Error 1
libacpi.c:174:4: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
while ((y >= 0) && ((strcmp (tmp1, names[y])) < 0)) {
^
libacpi.c:184:3: warning: implicit declaration of function 'snprintf' [-Wimplicit-function-declaration]
snprintf(binfo->name, MAX_NAME, "%s", names[i]);
^
libacpi.c:184:3: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
libacpi.c:199:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(names[i]);
^
libacpi.c: In function 'read_acpi_acstate':
libacpi.c:209:14: warning: initialization from incompatible pointer type [enabled by default]
char *buf = NULL;
^
libacpi.c:210:14: warning: initialization from incompatible pointer type [enabled by default]
char *tmp = NULL;
^
libacpi.c:212:64: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if(ac->state_file && (buf = get_acpi_content(ac->state_file)) == NULL){
^
libacpi.c:226:3: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
if((tmp = scan_acpi_value(buf, "state:")) && !strncmp(tmp, "on-line", 7))
^
libacpi.c:232:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(buf);
^
libacpi.c: In function 'init_acpi_acadapt':
libacpi.c:240:16: warning: initialization from incompatible pointer type [enabled by default]
list_t *lst = NULL;
^
libacpi.c:244:46: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((lst = dir_list(PROC_ACPI "ac_adapter")) == NULL || !lst->top)
^
libacpi.c:246:40: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((lst = dir_list(SYS_POWER "/AC")) == NULL || !lst->top)
^
libacpi.c:251:38: warning: incompatible implicit declaration of built-in function 'strdup' [enabled by default]
if((!lst->top->name || ((ac->name = strdup(lst->top->name)) == NULL))){
^
libacpi.c:251:62: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((!lst->top->name || ((ac->name = strdup(lst->top->name)) == NULL))){
^
libacpi.c:256:3: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
snprintf(ac->state_file, MAX_NAME, SYS_POWER "/AC/online");
^
libacpi.c: In function 'read_acpi_fan':
libacpi.c:267:14: warning: initialization from incompatible pointer type [enabled by default]
char *buf = NULL;
^
libacpi.c:268:14: warning: initialization from incompatible pointer type [enabled by default]
char *tmp = NULL;
^
libacpi.c:274:48: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = get_acpi_content(info->state_file)) == NULL)
^
libacpi.c:277:53: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if(!buf || (tmp = scan_acpi_value(buf, "status:")) == NULL){
^
libacpi.c:284:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(buf);
^
libacpi.c: In function 'init_acpi_fan':
libacpi.c:302:16: warning: initialization from incompatible pointer type [enabled by default]
list_t *lst = NULL;
^
libacpi.c:303:17: warning: initialization from incompatible pointer type [enabled by default]
node_t *node = NULL;
^
libacpi.c:305:17: warning: initialization from incompatible pointer type [enabled by default]
fan_t *finfo = NULL;
^
libacpi.c:308:39: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((lst = dir_list(PROC_ACPI "fan")) == NULL || !lst->top)
^
libacpi.c:311:35: warning: incompatible implicit declaration of built-in function 'strdup' [enabled by default]
if((names[globals->fan_count] = strdup(node->name)) == NULL){
^
libacpi.c:311:55: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((names[globals->fan_count] = strdup(node->name)) == NULL){
^
libacpi.c:322:3: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
snprintf(finfo->name, MAX_NAME, "%s", names[i]);
^
libacpi.c:324:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(names[i]);
^
libacpi.c: In function 'init_acpi_thermal':
libacpi.c:336:16: warning: initialization from incompatible pointer type [enabled by default]
list_t *lst = NULL;
^
libacpi.c:337:17: warning: initialization from incompatible pointer type [enabled by default]
node_t *node = NULL;
^
libacpi.c:338:21: warning: initialization from incompatible pointer type [enabled by default]
thermal_t *tinfo = NULL;
^
libacpi.c:342:48: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((lst = dir_list(PROC_ACPI "thermal_zone")) == NULL)
^
libacpi.c:345:39: warning: incompatible implicit declaration of built-in function 'strdup' [enabled by default]
if((names[globals->thermal_count] = strdup(node->name)) == NULL){
^
libacpi.c:345:59: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((names[globals->thermal_count] = strdup(node->name)) == NULL){
^
libacpi.c:356:3: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
snprintf(tinfo->name, MAX_NAME, "%s", names[i]);
^
libacpi.c:362:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(names[i]);
^
libacpi.c: In function 'read_acpi_zone':
libacpi.c:396:14: warning: initialization from incompatible pointer type [enabled by default]
char *buf = NULL;
^
libacpi.c:397:14: warning: initialization from incompatible pointer type [enabled by default]
char *tmp = NULL;
^
libacpi.c:403:48: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = get_acpi_content(info->state_file)) == NULL)
^
libacpi.c:408:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(tmp);
^
libacpi.c:412:47: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = get_acpi_content(info->temp_file)) == NULL)
^
libacpi.c:425:50: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = get_acpi_content(info->cooling_file)) == NULL)
^
libacpi.c:434:47: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = get_acpi_content(info->freq_file)) == NULL)
^
libacpi.c: In function 'read_acpi_battalarm':
libacpi.c:490:14: warning: initialization from incompatible pointer type [enabled by default]
char *buf = NULL;
^
libacpi.c:491:14: warning: initialization from incompatible pointer type [enabled by default]
char *tmp = NULL;
^
libacpi.c:494:48: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = get_acpi_content(info->alarm_file)) == NULL)
^
libacpi.c:513:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(buf);
^
libacpi.c: In function 'read_acpi_battinfo':
libacpi.c:521:14: warning: initialization from incompatible pointer type [enabled by default]
char *buf = NULL;
^
libacpi.c:522:14: warning: initialization from incompatible pointer type [enabled by default]
char *tmp = NULL;
^
libacpi.c:529:3: warning: incompatible implicit declaration of built-in function 'snprintf' [enabled by default]
snprintf(sysfile, MAX_NAME, "%s/present", info->info_file);
^
libacpi.c:530:40: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = get_acpi_content(sysfile)) == NULL)
^
libacpi.c:540:40: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = get_acpi_content(sysfile)) == NULL)
^
libacpi.c:545:40: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = get_acpi_content(sysfile)) == NULL)
^
libacpi.c:550:40: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = get_acpi_content(sysfile)) == NULL)
^
libacpi.c:555:40: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = get_acpi_content(sysfile)) == NULL)
^
libacpi.c:560:40: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = get_acpi_content(sysfile)) == NULL)
^
libacpi.c:566:40: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = get_acpi_content(sysfile)) == NULL)
^
libacpi.c:573:47: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = get_acpi_content(info->info_file)) == NULL)
^
libacpi.c:579:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(tmp);
^
libacpi.c:583:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(buf);
^
libacpi.c:591:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(tmp);
^
libacpi.c:598:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(tmp);
^
libacpi.c:606:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(buf);
^
libacpi.c: In function 'read_acpi_battstate':
libacpi.c:614:14: warning: initialization from incompatible pointer type [enabled by default]
char *buf = NULL;
^
libacpi.c:615:14: warning: initialization from incompatible pointer type [enabled by default]
char *tmp = NULL;
^
libacpi.c:619:48: warning: comparison of distinct pointer types lacks a cast [enabled by default]
if((buf = get_acpi_content(info->state_file)) == NULL)
^
libacpi.c:624:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(tmp);
^
libacpi.c:627:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(buf);
^
libacpi.c:636:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(tmp);
^
libacpi.c:644:4: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(tmp);
^
libacpi.c:653:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
free(buf);
^
make: *** [Makefile:22: libacpi.o] Error 1
==> ERROR: A failure occurred in build().
Aborting...