The build took 00h 00m 40s and was NOT successful.
The program in this build is written in the following languages, according to sloccount:
| SLOC | Language |
|---|---|
526 |
ansic |
4 |
makefile |
530 |
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/libexecCMD: 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: cutter 1.04-1 (Tue Apr 4 19:51:01 UTC 2017)==> Checking runtime dependencies...==> Checking buildtime dependencies...==> WARNING: Using existing $srcdir/ tree==> Starting build()...cc cutter.c -o cuttercc1: error: no include path in which to search for stdc-predef.hcutter.c:35:20: error: no include path in which to search for string.h #include ^cutter.c:36:19: error: no include path in which to search for stdio.h #include ^cutter.c:37:20: error: no include path in which to search for unistd.h #include ^cutter.c:38:20: error: no include path in which to search for stdlib.h #include ^cutter.c:39:23: error: no include path in which to search for sys/types.h #include ^cutter.c:40:24: error: no include path in which to search for sys/socket.h #include ^cutter.c:41:24: error: no include path in which to search for netinet/in.h #include ^cutter.c:42:23: error: no include path in which to search for arpa/inet.h #include ^cutter.c:43:19: error: no include path in which to search for netdb.h #include ^cutter.c:44:26: error: no include path in which to search for linux/socket.h #include ^cutter.c:45:22: error: no include path in which to search for linux/ip.h #include ^cutter.c:46:23: error: no include path in which to search for linux/tcp.h #include ^cutter.c:47:28: error: no include path in which to search for linux/if_ether.h #include ^cutter.c:48:19: error: no include path in which to search for fcntl.h #include ^cutter.c:49:30: error: no include path in which to search for netpacket/packet.h #include ^cutter.c:50:53: error: no include path in which to search for net/ethernet.h #include /* the L2 protocols */ ^cutter.c:51:27: error: no include path in which to search for linux/sockios.h #include ^cutter.c:52:23: error: no include path in which to search for sys/ioctl.h #include ^cutter.c:53:24: error: no include path in which to search for netinet/in.h #include ^cutter.c:54:23: error: no include path in which to search for arpa/inet.h #include ^cutter.c:55:20: error: no include path in which to search for net/if.h #include ^cutter.c:56:19: error: no include path in which to search for errno.h #include ^cutter.c:74:15: error: field 'ip' has incomplete type struct iphdr ip; ^cutter.c:75:16: error: field 'tcp' has incomplete type struct tcphdr tcp; ^cutter.c:80:15: error: field 'ip' has incomplete type struct iphdr ip; ^cutter.c:81:16: error: field 'tcp' has incomplete type struct tcphdr tcp; ^cutter.c:90:16: error: field 'tcp' has incomplete type struct tcphdr tcp; ^cutter.c:93:14: error: array type has incomplete element type struct ifreq ifreq[32]; ^cutter.c:111:16: error: unknown type name 'in_addr_t' int getnexthop(in_addr_t ip, char *intf, in_addr_t *gateway) ^cutter.c:111:42: error: unknown type name 'in_addr_t' int getnexthop(in_addr_t ip, char *intf, in_addr_t *gateway) ^cutter.c:168:12: error: unknown type name 'in_addr_t' int getmac(in_addr_t ip, uchar *mac) ^cutter.c: In function 'in_cksum':cutter.c:205:2: error: unknown type name 'u_short' u_short oddbyte; ^cutter.c:206:2: error: unknown type name 'u_short' register u_short answer; // assumes u_short == 16 bits ^cutter.c:216:6: error: 'u_char' undeclared (first use in this function) *((u_char *) &oddbyte) = *(u_char *)ptr; // one byte only ^cutter.c:216:6: note: each undeclared identifier is reported only once for each function it appears incutter.c:216:14: error: expected expression before ')' token *((u_char *) &oddbyte) = *(u_char *)ptr; // one byte only ^cutter.c:216:38: error: expected expression before ')' token *((u_char *) &oddbyte) = *(u_char *)ptr; // one byte only ^cutter.c: In function 'getifconfig':cutter.c:231:25: error: 'PF_PACKET' undeclared (first use in this function) if ((raw_sock = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP))) == -1) { ^cutter.c:231:36: error: 'SOCK_DGRAM' undeclared (first use in this function) if ((raw_sock = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP))) == -1) { ^cutter.c:231:54: error: 'ETH_P_IP' undeclared (first use in this function) if ((raw_sock = socket(PF_PACKET, SOCK_DGRAM, htons(ETH_P_IP))) == -1) { ^cutter.c:235:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default] memset(ifreq, 0, sizeof(ifreq)); ^cutter.c:236:2: error: invalid use of undefined type 'struct ifconf' ifconf.ifc_len = sizeof(ifreq); ^cutter.c:237:2: error: invalid use of undefined type 'struct ifconf' ifconf.ifc_req = ifreq; ^cutter.c:239:24: error: 'SIOCGIFCONF' undeclared (first use in this function) rtn = ioctl(raw_sock, SIOCGIFCONF, &ifconf); ^cutter.c: At top level:cutter.c:245:13: error: unknown type name 'in_addr_t' int localip(in_addr_t ip) ^cutter.c:260:2: error: unknown type name 'u_short' u_short fromport, ^cutter.c:262:2: error: unknown type name 'u_short' u_short toport ^cutter.c:464:11: error: unknown type name 'in_addr_t' int match(in_addr_t match_ip, int match_port, in_addr_t found_ip, int found_port) ^cutter.c:464:47: error: unknown type name 'in_addr_t' int match(in_addr_t match_ip, int match_port, in_addr_t found_ip, int found_port) ^cutter.c: In function 'get_str_field':cutter.c:477:16: warning: incompatible implicit declaration of built-in function 'strstr' [enabled by default] char *found = strstr(*p, key); ^cutter.c:480:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default] memset(out, 0, outlen); ^cutter.c:481:15: error: 'NULL' undeclared (first use in this function) if (found == NULL) return FALSE; ^cutter.c:482:11: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default] found += strlen(key); ^cutter.c: At top level:cutter.c:508:36: error: 'NULL' undeclared here (not in a function) struct connection_s *connections = NULL; ^cutter.c: In function 'add_to_connection_list':cutter.c:519:8: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default] *cp = malloc(sizeof(struct connection_s)); ^cutter.c:521:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default] fprintf(stderr, "Out of memory\n"); ^cutter.c:521:11: error: 'stderr' undeclared (first use in this function) fprintf(stderr, "Out of memory\n"); ^cutter.c:522:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] exit(EXIT_FAILURE); ^cutter.c:525:14: warning: incompatible implicit declaration of built-in function 'strdup' [enabled by default] (*cp)->a1 = strdup(a1); ^cutter.c:532:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default] fprintf(stderr, "Out of memory\n"); ^cutter.c:533:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] exit(EXIT_FAILURE); ^cutter.c: At top level:cutter.c:560:20: error: unknown type name 'in_addr_t' int scan_conntrack(in_addr_t ip1, int port1, in_addr_t ip2, int port2) ^cutter.c:560:46: error: unknown type name 'in_addr_t' int scan_conntrack(in_addr_t ip1, int port1, in_addr_t ip2, int port2) ^cutter.c: In function 'main':cutter.c:659:2: error: unknown type name 'FILE' FILE *id = NULL; ^cutter.c:661:2: error: unknown type name 'in_addr_t' in_addr_t ip1 = argc > 1 ? inet_addr(argv[1]) : 0; ^cutter.c:663:2: error: unknown type name 'in_addr_t' in_addr_t ip2 = argc > 3 ? inet_addr(argv[3]) : 0; ^cutter.c:667:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default] fprintf(stderr, "\ncutter - TCP/IPv4 connection cutter for linux firewalls\n\n"); ^cutter.c:667:11: error: 'stderr' undeclared (first use in this function) fprintf(stderr, "\ncutter - TCP/IPv4 connection cutter for linux firewalls\n\n"); ^cutter.c:671:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] exit(EXIT_FAILURE); ^cutter.c:675:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default] fprintf(stderr, "Refused: cutter must be run by 'root'\n"); ^cutter.c:676:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] exit(EXIT_FAILURE); ^cutter.c:679:5: warning: assignment makes pointer from integer without a cast [enabled by default] id = fopen("/proc/sys/net/ipv4/ip_forward", "r"); ^cutter.c:682:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] exit(EXIT_FAILURE); ^cutter.c:684:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default] memset(buff, 0, sizeof(buff)); ^cutter.c:687:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default] fprintf(stderr, "This does not appear to be a firewall or router (ipv4 forwarding is disabled)\n"); ^cutter.c:688:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] exit(EXIT_FAILURE); ^cutter.c:693:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default] fprintf(stderr, "Invalid IP address\n"); ^cutter.c:694:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default] exit(EXIT_FAILURE); ^make: *** [Makefile:2: cutter] Error 1==> ERROR: A failure occurred in build(). Aborting...