Build of procstatd with android toolchain

The build took 00h 00m 56s and was NOT successful.

The program in this build is written in the following languages, according to sloccount:

SLOCLanguage
2,711 ansic
27 makefile
2,738 total

The process tree of the build process is here.

Several sub-process invocations were improper; see the process tree for details. Summary:

List of Errors

Log

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:
# [tuscan]
# Server = file:///var/cache/pacman/pkg/

CMD: pacman -Syy --noconfirm
# :: Synchronizing package databases...
# downloading tuscan.db...

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: procstatd 1.4.2-9 (Tue Apr 4 20:24:04 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -c -O3 procstatd.c -o procstatd.o
# gcc -c -O3 parsecl.c -o parsecl.o
# gcc -c -O3 parse.c -o parse.o
# gcc -c -O3 statlist.c -o statlist.o
# cc1: error: no include path in which to search for stdc-predef.h
# In file included from procstatd.c:19:0:
# procstatd.h:23:19: error: no include path in which to search for stdio.h
# #include
# ^
# procstatd.h:24:20: error: no include path in which to search for stdlib.h
# #include
# ^
# procstatd.h:25:20: error: no include path in which to search for unistd.h
# #include
# ^
# procstatd.h:26:19: error: no include path in which to search for errno.h
# #include
# ^
# procstatd.h:27:19: error: no include path in which to search for fcntl.h
# #include
# ^
# procstatd.h:28:20: error: no include path in which to search for string.h
# #include
# ^
# procstatd.h:29:21: error: no include path in which to search for strings.h
# #include
# ^
# procstatd.h:30:20: error: no include path in which to search for signal.h
# #include
# ^
# procstatd.h:31:19: error: no include path in which to search for ctype.h
# #include
# ^
# procstatd.h:32:18: error: no include path in which to search for time.h
# #include
# ^
# procstatd.h:33:18: error: no include path in which to search for math.h
# #include
# ^
# procstatd.h:34:22: error: no include path in which to search for sys/file.h
# #include
# ^
# procstatd.h:35:21: error: no include path in which to search for sys/dir.h
# #include
# ^
# procstatd.h:36:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# procstatd.h:37:23: error: no include path in which to search for sys/types.h
# #include
# ^
# procstatd.h:38:24: error: no include path in which to search for sys/socket.h
# #include
# ^
# procstatd.h:39:20: error: no include path in which to search for sys/un.h
# #include
# ^
# procstatd.h:40:24: error: no include path in which to search for netinet/in.h
# #include
# ^
# procstatd.h:41:23: error: no include path in which to search for arpa/inet.h
# #include
# ^
# procstatd.h:42:18: error: no include path in which to search for utmp.h
# #include
# ^
# procstatd.h:43:19: error: no include path in which to search for netdb.h
# #include
# ^
# procstatd.h:73:21: error: unknown type name 'FILE'
# void print_statlist(FILE *);
# ^
# procstatd.h:224:2: error: unknown type name 'FILE'
# FILE *stat_fd[N_SOURCES];
# ^
# procstatd.h:225:2: error: unknown type name 'FILE'
# FILE *sendstat_fd;
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# procstatd.c: In function 'main':
# procstatd.c:28:21: error: storage size of 'serverINETaddress' isn't known
# struct sockaddr_in serverINETaddress;
# ^
# procstatd.c:29:21: error: storage size of 'clientINETaddress' isn't known
# struct sockaddr_in clientINETaddress;
# ^
# procstatd.c:32:16: error: storage size of 'linger' isn't known
# struct linger linger;
# ^
# procstatd.c:38:2: error: unknown type name 'fd_set'
# fd_set fdset; /* for the select statement */
# ^
# In file included from parsecl.c:19:0:
# procstatd.h:23:19: error: no include path in which to search for stdio.h
# #include
# ^
# procstatd.h:24:20: error: no include path in which to search for stdlib.h
# #include
# ^
# procstatd.c:51:21: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# fields = (char **) malloc((size_t) (MAXFIELDNUMBER*sizeof(char*)));
# ^
# procstatd.h:25:20: error: no include path in which to search for unistd.h
# #include
# ^
# procstatd.c:51:29: error: 'size_t' undeclared (first use in this function)
# fields = (char **) malloc((size_t) (MAXFIELDNUMBER*sizeof(char*)));
# ^
# procstatd.c:51:29: note: each undeclared identifier is reported only once for each function it appears in
# procstatd.h:26:19: error: no include path in which to search for errno.h
# #include
# ^
# procstatd.h:27:19: error: no include path in which to search for fcntl.h
# #include
# ^
# procstatd.h:28:20: error: no include path in which to search for string.h
# #include
# ^
# procstatd.h:29:21: error: no include path in which to search for strings.h
# #include
# ^
# procstatd.h:30:20: error: no include path in which to search for signal.h
# #include
# ^
# procstatd.h:31:19: error: no include path in which to search for ctype.h
# #include
# ^
# procstatd.h:32:18: error: no include path in which to search for time.h
# #include
# ^
# procstatd.h:33:18: error: no include path in which to search for math.h
# #include
# ^
# procstatd.h:34:22: error: no include path in which to search for sys/file.h
# #include
# ^
# procstatd.c:60:15: warning: assignment makes pointer from integer without a cast [enabled by default]
# hostidentptr = gethostbyname(hostname);
# ^
# procstatd.h:35:21: error: no include path in which to search for sys/dir.h
# #include
# ^
# procstatd.h:36:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# procstatd.c:61:43: error: dereferencing pointer to incomplete type
# hostaddr = (struct in_addr*) hostidentptr->h_addr_list[0];
# ^
# procstatd.h:37:23: error: no include path in which to search for sys/types.h
# #include
# ^
# procstatd.c:62:2: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(hostip,"%s",inet_ntoa(*hostaddr));
# ^
# procstatd.h:38:24: error: no include path in which to search for sys/socket.h
# #include
# ^
# procstatd.h:39:20: error: no include path in which to search for sys/un.h
# #include
# ^
# procstatd.c:62:32: error: dereferencing pointer to incomplete type
# sprintf(hostip,"%s",inet_ntoa(*hostaddr));
# ^
# procstatd.h:40:24: error: no include path in which to search for netinet/in.h
# #include
# ^
# procstatd.h:41:23: error: no include path in which to search for arpa/inet.h
# #include
# ^
# procstatd.h:42:18: error: no include path in which to search for utmp.h
# #include
# ^
# procstatd.c:63:14: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# if(verbose) printf("procstatd running on host = %s, hostip = %s\n",hostname,hostip);
# ^
# procstatd.h:43:19: error: no include path in which to search for netdb.h
# #include
# ^
# procstatd.c:80:23: error: 'stdin' undeclared (first use in this function)
# input_fd = (int) stdin;
# ^
# procstatd.c:81:24: error: 'stdout' undeclared (first use in this function)
# output_fd = (int) stdout;
# ^
# procstatd.h:73:21: error: unknown type name 'FILE'
# void print_statlist(FILE *);
# ^
# procstatd.c:82:23: error: 'stderr' undeclared (first use in this function)
# error_fd = (int) stderr;
# ^
# procstatd.c:88:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Multicast (or other) operation not yet supported. Try again.\n");
# ^
# procstatd.c:89:6: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# procstatd.c:96:9: error: 'SIGCHLD' undeclared (first use in this function)
# signal(SIGCHLD,SIG_IGN);
# ^
# procstatd.c:96:17: error: 'SIG_IGN' undeclared (first use in this function)
# signal(SIGCHLD,SIG_IGN);
# ^
# procstatd.c:103:21: error: 'AF_INET' undeclared (first use in this function)
# server_fd = socket(AF_INET,SOCK_STREAM,0);
# ^
# procstatd.c:103:29: error: 'SOCK_STREAM' undeclared (first use in this function)
# server_fd = socket(AF_INET,SOCK_STREAM,0);
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# procstatd.c:105:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"socket: %.100s", strerror(errno));
# ^
# procstatd.c:105:46: error: 'errno' undeclared (first use in this function)
# fprintf(stderr,"socket: %.100s", strerror(errno));
# ^
# procstatd.c:106:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# procstatd.c:113:24: error: 'SOL_SOCKET' undeclared (first use in this function)
# setsockopt(server_fd, SOL_SOCKET, SO_REUSEADDR, (void *)&on,
# ^
# procstatd.c:113:36: error: 'SO_REUSEADDR' undeclared (first use in this function)
# setsockopt(server_fd, SOL_SOCKET, SO_REUSEADDR, (void *)&on,
# ^
# procstatd.h:224:2: error: unknown type name 'FILE'
# FILE *stat_fd[N_SOURCES];
# ^
# procstatd.c:117:36: error: 'SO_LINGER' undeclared (first use in this function)
# setsockopt(server_fd, SOL_SOCKET, SO_LINGER, (void *)&linger,
# ^
# parse.c:19:19: error: no include path in which to search for stdio.h
# #include
# ^
# parse.c:20:20: error: no include path in which to search for stdlib.h
# #include
# ^
# parse.c:21:20: error: no include path in which to search for string.h
# #include
# ^
# procstatd.h:225:2: error: unknown type name 'FILE'
# FILE *sendstat_fd;
# ^
# procstatd.c:122:2: warning: incompatible implicit declaration of built-in function 'bzero' [enabled by default]
# bzero( (char*) &serverINETaddress,serverlen); /* clear structure */
# ^
# parse.c:22:21: error: no include path in which to search for strings.h
# #include
# ^
# procstatd.c:124:44: error: 'INADDR_ANY' undeclared (first use in this function)
# serverINETaddress.sin_addr.s_addr = htonl(INADDR_ANY); /* Accept all */
# ^
# procstatd.c:137:18: error: 'EADDRINUSE' undeclared (first use in this function)
# if(errno != EADDRINUSE){
# ^
# parse.c: In function 'parse':
# procstatd.c:139:8: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Bind: %.100s\n", strerror(errno));
# ^
# parse.c:50:20: error: 'NULL' undeclared (first use in this function)
# delim[6] = (char) NULL; /* terminator */
# ^
# parse.c:50:20: note: each undeclared identifier is reported only once for each function it appears in
# parsecl.c: In function 'parsecl':
# procstatd.c:141:8: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(255);
# ^
# parse.c:52:10: warning: assignment makes pointer from integer without a cast [enabled by default]
# nextval = strtok(inbuffer,delim);
# ^
# parsecl.c:60:46: error: 'EOF' undeclared (first use in this function)
# while ((c = getopt(argc,argv,"d:hi:mv")) != EOF){
# ^
# parsecl.c:60:46: note: each undeclared identifier is reported only once for each function it appears in
# parse.c:53:2: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(outfields[i++],nextval,maxfieldlength);
# ^
# procstatd.c:149:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Timeout (tried to bind six times five seconds apart)\n");
# ^
# procstatd.c:152:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Bind to port %d failed: %.100s\n",port,strerror(errno));
# ^
# parsecl.c:68:8: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# procstatd.c:153:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(255);
# ^
# procstatd.c:160:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"listen: %.100s", strerror(errno));
# ^
# procstatd.c:161:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(255);
# ^
# parsecl.c:88:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# parsecl.c: In function 'Usage':
# procstatd.c:186:40: error: 'NULL' undeclared (first use in this function)
# ret = select(server_fd + 1, &fdset, NULL, NULL, NULL);
# ^
# parsecl.c:109:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Usage:\n");
# ^
# parsecl.c:109:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr,"Usage:\n");
# ^
# procstatd.c:188:19: error: 'EINTR' undeclared (first use in this function)
# if (errno == EINTR)
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# procstatd.c:190:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"select: %.100s", strerror(errno));
# ^
# procstatd.c:201:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"accept: %.100s", strerror(errno));
# ^
# procstatd.c:228:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"fork: %.100s", strerror(errno));
# ^
# procstatd.c:235:18: error: 'SIG_DFL' undeclared (first use in this function)
# signal(SIGCHLD, SIG_DFL);
# ^
# In file included from statlist.c:19:0:
# procstatd.h:23:19: error: no include path in which to search for stdio.h
# #include
# ^
# procstatd.h:24:20: error: no include path in which to search for stdlib.h
# #include
# ^
# procstatd.h:25:20: error: no include path in which to search for unistd.h
# #include
# ^
# procstatd.c: In function 'handlemessages':
# procstatd.h:26:19: error: no include path in which to search for errno.h
# #include
# ^
# procstatd.h:27:19: error: no include path in which to search for fcntl.h
# #include
# ^
# procstatd.c:285:2: warning: incompatible implicit declaration of built-in function 'bzero' [enabled by default]
# bzero(inbuf,sizeof(inbuf));
# ^
# procstatd.h:28:20: error: no include path in which to search for string.h
# #include
# ^
# procstatd.h:29:21: error: no include path in which to search for strings.h
# #include
# ^
# procstatd.h:30:20: error: no include path in which to search for signal.h
# #include
# ^
# procstatd.c:287:2: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(commandname,"ready"); /* To start the loop */
# ^
# procstatd.h:31:19: error: no include path in which to search for ctype.h
# #include
# ^
# procstatd.h:32:18: error: no include path in which to search for time.h
# #include
# ^
# procstatd.h:33:18: error: no include path in which to search for math.h
# #include
# ^
# procstatd.c:288:14: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# if(verbose) printf("%s to read/write with socket.\n",commandname);
# ^
# procstatd.h:34:22: error: no include path in which to search for sys/file.h
# #include
# ^
# procstatd.h:35:21: error: no include path in which to search for sys/dir.h
# #include
# ^
# procstatd.h:36:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# procstatd.h:37:23: error: no include path in which to search for sys/types.h
# #include
# ^
# procstatd.h:38:24: error: no include path in which to search for sys/socket.h
# #include
# ^
# procstatd.h:39:20: error: no include path in which to search for sys/un.h
# #include
# ^
# procstatd.h:40:24: error: no include path in which to search for netinet/in.h
# #include
# ^
# procstatd.c:309:4: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(commandname, fields[0]);
# ^
# procstatd.h:41:23: error: no include path in which to search for arpa/inet.h
# #include
# ^
# procstatd.h:42:18: error: no include path in which to search for utmp.h
# #include
# ^
# procstatd.h:43:19: error: no include path in which to search for netdb.h
# #include
# ^
# procstatd.c:329:13: error: 'stdout' undeclared (first use in this function)
# fflush(stdout);
# ^
# procstatd.h:73:21: error: unknown type name 'FILE'
# void print_statlist(FILE *);
# ^
# procstatd.c:373:6: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# procstatd.h:224:2: error: unknown type name 'FILE'
# FILE *stat_fd[N_SOURCES];
# ^
# procstatd.h:225:2: error: unknown type name 'FILE'
# FILE *sendstat_fd;
# ^
# make: *** [Makefile:66: parse.o] Error 1
# make: *** Waiting for unfinished jobs....
# statlist.c: In function 'get_statlist':
# statlist.c:113:25: error: 'NULL' undeclared (first use in this function)
# cur_time = (long) time(NULL);
# ^
# statlist.c:113:25: note: each undeclared identifier is reported only once for each function it appears in
# make: *** [Makefile:66: parsecl.o] Error 1
# make: *** [Makefile:66: statlist.o] Error 1
# make: *** [Makefile:66: procstatd.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...