Build of unarj with android toolchain

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

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

SLOCLanguage
2,157 ansic
13 makefile
2,170 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: unarj 2.63a-4 (Tue Apr 4 20:48:16 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -O2 -Wall -ansi -pedantic -DUNIX -c -o unarj.o unarj.c
# gcc -O2 -Wall -ansi -pedantic -DUNIX -c -o decode.o decode.c
# gcc -O2 -Wall -ansi -pedantic -DUNIX -c -o environ.o environ.c
# cc1: error: no include path in which to search for stdc-predef.h
# In file included from environ.c:37:0:
# unarj.h:81:19: error: no include path in which to search for stdio.h
# #include
# ^
# unarj.h:83:22: error: no include path in which to search for limits.h
# # include
# ^
# unarj.h:364:1: error: unknown type name 'FILE'
# extern FILE *arcfile;
# ^
# unarj.h:365:1: error: unknown type name 'FILE'
# extern FILE *outfile;
# ^
# unarj.h:394:1: error: unknown type name 'FILE'
# FILE *file_open OF((char *name, char *mode));
# ^
# unarj.h:395:55: error: unknown type name 'FILE'
# int file_read OF((char *buf, int size, int nitems, FILE *stream));
# ^
# unarj.h:69:17: note: in definition of macro 'OF'
# # define OF(a) a
# ^
# unarj.h:396:22: error: unknown type name 'FILE'
# int file_seek OF((FILE *stream, long offset, int mode));
# ^
# unarj.h:69:17: note: in definition of macro 'OF'
# # define OF(a) a
# ^
# unarj.h:397:22: error: unknown type name 'FILE'
# long file_tell OF((FILE *stream));
# ^
# unarj.h:69:17: note: in definition of macro 'OF'
# # define OF(a) a
# ^
# unarj.h:398:56: error: unknown type name 'FILE'
# int file_write OF((char *buf, int size, int nitems, FILE *stream));
# ^
# unarj.h:69:17: note: in definition of macro 'OF'
# # define OF(a) a
# ^
# environ.c:433:18: error: no include path in which to search for time.h
# #include
# ^
# environ.c:444:1: error: unknown type name 'FILE'
# FILE *
# ^
# environ.c: In function 'file_open':
# environ.c:449:5: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# return fopen(name, mode);
# ^
# environ.c:449:5: warning: return makes pointer from integer without a cast [enabled by default]
# environ.c: In function 'file_read':
# environ.c:457:1: error: unknown type name 'FILE'
# FILE *stream;
# ^
# environ.c:459:5: warning: implicit declaration of function 'fread' [-Wimplicit-function-declaration]
# return fread(buf, (int) size, (int) nitems, stream);
# ^
# environ.c: In function 'file_seek':
# environ.c:464:1: error: unknown type name 'FILE'
# FILE *stream;
# ^
# environ.c:468:5: warning: implicit declaration of function 'fseek' [-Wimplicit-function-declaration]
# return fseek(stream, offset, mode);
# ^
# environ.c: In function 'file_tell':
# environ.c:473:1: error: unknown type name 'FILE'
# FILE *stream;
# ^
# environ.c:475:5: warning: implicit declaration of function 'ftell' [-Wimplicit-function-declaration]
# return ftell(stream);
# ^
# environ.c: In function 'file_write':
# environ.c:483:1: error: unknown type name 'FILE'
# FILE *stream;
# ^
# environ.c:485:5: warning: implicit declaration of function 'fwrite' [-Wimplicit-function-declaration]
# return fwrite(buf, (int) size, (int) nitems, stream);
# ^
# environ.c:485:12: warning: incompatible implicit declaration of built-in function 'fwrite' [enabled by default]
# return fwrite(buf, (int) size, (int) nitems, stream);
# ^
# environ.c: In function 'case_path':
# environ.c:499:5: warning: statement with no effect [-Wunused-value]
# (char *) name;
# ^
# environ.c: In function 'file_exists':
# environ.c:513:5: error: unknown type name 'FILE'
# FILE *fd;
# ^
# environ.c:515:13: warning: assignment makes pointer from integer without a cast [enabled by default]
# if ((fd = fopen(name, "rb")) == NULL)
# ^
# environ.c:515:37: error: 'NULL' undeclared (first use in this function)
# if ((fd = fopen(name, "rb")) == NULL)
# ^
# environ.c:515:37: note: each undeclared identifier is reported only once for each function it appears in
# environ.c:517:5: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# fclose(fd);
# ^
# environ.c: In function 'gettz':
# environ.c:553:44: error: dereferencing pointer to incomplete type
# retval = NOONOFFSET - 60 * (60 * noontm->tm_hour - noontm->tm_min);
# ^
# environ.c:553:62: error: dereferencing pointer to incomplete type
# retval = NOONOFFSET - 60 * (60 * noontm->tm_hour - noontm->tm_min);
# ^
# environ.c: In function 'set_ftime_mode':
# environ.c:608:5: warning: statement with no effect [-Wunused-value]
# (char *) name;
# ^
# environ.c:609:5: warning: statement with no effect [-Wunused-value]
# (uint) attribute;
# ^
# environ.c:610:5: warning: statement with no effect [-Wunused-value]
# (uint) host;
# ^
# environ.c:618:5: warning: implicit declaration of function 'utime' [-Wimplicit-function-declaration]
# return utime(name, &tb);
# ^
# make: *** [: environ.o] Error 1
# make: *** Waiting for unfinished jobs....
# cc1: error: no include path in which to search for stdc-predef.h
# In file included from unarj.c:51:0:
# unarj.h:81:19: error: no include path in which to search for stdio.h
# #include
# ^
# unarj.h:83:22: error: no include path in which to search for limits.h
# # include
# ^
# unarj.h:364:1: error: unknown type name 'FILE'
# extern FILE *arcfile;
# ^
# unarj.h:365:1: error: unknown type name 'FILE'
# extern FILE *outfile;
# ^
# unarj.h:394:1: error: unknown type name 'FILE'
# FILE *file_open OF((char *name, char *mode));
# ^
# unarj.h:395:55: error: unknown type name 'FILE'
# int file_read OF((char *buf, int size, int nitems, FILE *stream));
# ^
# unarj.h:69:17: note: in definition of macro 'OF'
# # define OF(a) a
# ^
# unarj.h:396:22: error: unknown type name 'FILE'
# int file_seek OF((FILE *stream, long offset, int mode));
# ^
# unarj.h:69:17: note: in definition of macro 'OF'
# # define OF(a) a
# ^
# unarj.h:397:22: error: unknown type name 'FILE'
# long file_tell OF((FILE *stream));
# ^
# unarj.h:69:17: note: in definition of macro 'OF'
# # define OF(a) a
# ^
# unarj.h:398:56: error: unknown type name 'FILE'
# int file_write OF((char *buf, int size, int nitems, FILE *stream));
# ^
# unarj.h:69:17: note: in definition of macro 'OF'
# # define OF(a) a
# ^
# unarj.c:54:20: error: no include path in which to search for stdlib.h
# #include
# ^
# unarj.c:55:20: error: no include path in which to search for string.h
# #include
# ^
# unarj.c:56:19: error: no include path in which to search for ctype.h
# #include
# ^
# unarj.c:57:22: error: no include path in which to search for sys/stat.h
# #include
# ^
# unarj.c:58:23: error: no include path in which to search for sys/types.h
# #include
# ^
# unarj.c:59:19: error: no include path in which to search for fcntl.h
# #include
# ^
# unarj.c:60:20: error: no include path in which to search for unistd.h
# #include
# ^
# unarj.c:90:1: error: unknown type name 'FILE'
# FILE *arcfile;
# ^
# unarj.c:91:1: error: unknown type name 'FILE'
# FILE *outfile;
# ^
# unarj.c:126:1: error: 'NULL' undeclared here (not in a function)
# NULL
# ^
# unarj.c:179:1: error: unknown type name 'FILE'
# static FILE *fopen_msg(char *name, char *mode);
# ^
# unarj.c:180:24: error: unknown type name 'FILE'
# static int fget_byte(FILE *f);
# ^
# unarj.c:181:24: error: unknown type name 'FILE'
# static uint fget_word(FILE *f);
# ^
# unarj.c:182:28: error: unknown type name 'FILE'
# static ulong fget_longword(FILE *f);
# ^
# unarj.c:183:41: error: unknown type name 'FILE'
# static void fread_crc(uchar *p, int n, FILE *f);
# ^
# unarj.c:190:26: error: unknown type name 'FILE'
# static long find_header(FILE *fd);
# ^
# unarj.c:191:37: error: unknown type name 'FILE'
# static int read_header(int first, FILE *fd, char *name);
# ^
# unarj.c:234:24: error: 'UCHAR_MAX' undeclared here (not in a function)
# static UCRC crctable[UCHAR_MAX + 1];
# ^
# unarj.c:234:15: error: size of array 'crctable' has non-integer type
# static UCRC crctable[UCHAR_MAX + 1];
# ^
# unarj.c:234:1: warning: variably modified 'crctable' at file scope [enabled by default]
# static UCRC crctable[UCHAR_MAX + 1];
# ^
# unarj.c:234:1: warning: ISO C90 forbids array 'crctable' whose size can't be evaluated [-Wvla]
# unarj.c: In function 'make_crctable':
# cc1: error: no include path in which to search for stdc-predef.h
# unarj.c:244:19: warning: comparison between pointer and integer [enabled by default]
# for (i = 0; i <= UCHAR_MAX; i++)
# ^
# unarj.c:247:18: error: 'CHAR_BIT' undeclared (first use in this function)
# for (j = CHAR_BIT; j > 0; j--)
# ^
# unarj.c:247:18: note: each undeclared identifier is reported only once for each function it appears in
# unarj.c:247:16: warning: assignment makes integer from pointer without a cast [enabled by default]
# for (j = CHAR_BIT; j > 0; j--)
# ^
# In file included from decode.c:30:0:
# unarj.h:81:19: error: no include path in which to search for stdio.h
# #include
# ^
# unarj.c: In function 'crc_buf':
# unarj.h:83:22: error: no include path in which to search for limits.h
# # include
# ^
# unarj.c:171:70: error: 'CHAR_BIT' undeclared (first use in this function)
# #define UPDATE_CRC(r,c) r=crctable[((uchar)(r)^(uchar)(c))&0xff]^(r>>CHAR_BIT)
# ^
# unarj.c:264:9: note: in expansion of macro 'UPDATE_CRC'
# UPDATE_CRC(crc, *str++);
# ^
# unarj.c:171:68: error: invalid operands to binary >> (have 'UCRC' and 'char **')
# #define UPDATE_CRC(r,c) r=crctable[((uchar)(r)^(uchar)(c))&0xff]^(r>>CHAR_BIT)
# ^
# unarj.c:264:9: note: in expansion of macro 'UPDATE_CRC'
# UPDATE_CRC(crc, *str++);
# ^
# unarj.c:171:65: error: invalid operands to binary ^ (have 'UCRC' and 'char **')
# #define UPDATE_CRC(r,c) r=crctable[((uchar)(r)^(uchar)(c))&0xff]^(r>>CHAR_BIT)
# ^
# unarj.c:264:9: note: in expansion of macro 'UPDATE_CRC'
# UPDATE_CRC(crc, *str++);
# ^
# unarj.c:171:26: warning: assignment makes integer from pointer without a cast [enabled by default]
# #define UPDATE_CRC(r,c) r=crctable[((uchar)(r)^(uchar)(c))&0xff]^(r>>CHAR_BIT)
# ^
# unarj.c:264:9: note: in expansion of macro 'UPDATE_CRC'
# UPDATE_CRC(crc, *str++);
# ^
# unarj.c: In function 'disp_clock':
# unarj.h:364:1: error: unknown type name 'FILE'
# extern FILE *arcfile;
# ^
# unarj.c:272:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
# printf("(%c)\b\b\b", clock_str[clock_inx]);
# ^
# unarj.c:272:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# unarj.h:365:1: error: unknown type name 'FILE'
# extern FILE *outfile;
# ^
# unarj.c: In function 'error':
# unarj.c:281:5: warning: implicit declaration of function 'putc' [-Wimplicit-function-declaration]
# putc('\n', stdout);
# ^
# unarj.c:281:16: error: 'stdout' undeclared (first use in this function)
# putc('\n', stdout);
# ^
# unarj.c:282:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(fmt, arg, error_count);
# ^
# unarj.c:284:5: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit(EXIT_FAILURE);
# ^
# unarj.c:284:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# unarj.c:284:10: error: 'EXIT_FAILURE' undeclared (first use in this function)
# exit(EXIT_FAILURE);
# ^
# unarj.h:394:1: error: unknown type name 'FILE'
# FILE *file_open OF((char *name, char *mode));
# ^
# unarj.c:284:5: warning: passing argument 1 of 'exit' makes integer from pointer without a cast [enabled by default]
# exit(EXIT_FAILURE);
# ^
# unarj.c:284:5: note: expected 'int' but argument is of type 'char **'
# unarj.h:395:55: error: unknown type name 'FILE'
# int file_read OF((char *buf, int size, int nitems, FILE *stream));
# ^
# unarj.h:69:17: note: in definition of macro 'OF'
# # define OF(a) a
# ^
# unarj.c: At top level:
# unarj.c:298:1: error: unknown type name 'FILE'
# static FILE *
# ^
# unarj.c: In function 'fopen_msg':
# unarj.h:396:22: error: unknown type name 'FILE'
# int file_seek OF((FILE *stream, long offset, int mode));
# ^
# unarj.h:69:17: note: in definition of macro 'OF'
# # define OF(a) a
# ^
# unarj.c:303:5: error: unknown type name 'FILE'
# FILE *fd;
# ^
# unarj.h:397:22: error: unknown type name 'FILE'
# long file_tell OF((FILE *stream));
# ^
# unarj.h:69:17: note: in definition of macro 'OF'
# # define OF(a) a
# ^
# unarj.c:306:12: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (fd == NULL)
# ^
# unarj.c: In function 'fget_byte':
# unarj.h:398:56: error: unknown type name 'FILE'
# int file_write OF((char *buf, int size, int nitems, FILE *stream));
# ^
# unarj.h:69:17: note: in definition of macro 'OF'
# # define OF(a) a
# ^
# unarj.c:313:1: error: unknown type name 'FILE'
# FILE *f;
# ^
# unarj.c:317:5: warning: implicit declaration of function 'getc' [-Wimplicit-function-declaration]
# if ((c = getc(f)) == EOF)
# ^
# unarj.c:317:26: error: 'EOF' undeclared (first use in this function)
# if ((c = getc(f)) == EOF)
# ^
# unarj.c:317:23: warning: comparison between pointer and integer [enabled by default]
# if ((c = getc(f)) == EOF)
# ^
# decode.c:33:20: error: no include path in which to search for stdlib.h
# #include
# ^
# unarj.c: In function 'fget_word':
# unarj.c:324:1: error: unknown type name 'FILE'
# FILE *f;
# ^
# unarj.c: In function 'fget_longword':
# decode.c:80:23: error: 'NULL' undeclared here (not in a function)
# static uchar *text = NULL;
# ^
# unarj.c:335:1: error: unknown type name 'FILE'
# FILE *f;
# ^
# decode.c:43:22: error: 'UCHAR_MAX' undeclared here (not in a function)
# #define NC (UCHAR_MAX + MAXMATCH + 2 - THRESHOLD)
# ^
# decode.c:85:24: note: in expansion of macro 'NC'
# static ushort left[2 * NC - 1];
# ^
# unarj.c: In function 'fread_crc':
# unarj.c:350:1: error: unknown type name 'FILE'
# FILE *f;
# ^
# unarj.c:352:5: warning: implicit declaration of function 'file_read' [-Wimplicit-function-declaration]
# n = file_read((char *)p, 1, n, f);
# ^
# unarj.c: In function 'fwrite_txt_crc':
# unarj.c:377:43: error: 'EOF' undeclared (first use in this function)
# if (putc((int) c, outfile) == EOF)
# ^
# unarj.c:377:40: warning: comparison between pointer and integer [enabled by default]
# if (putc((int) c, outfile) == EOF)
# ^
# unarj.c:383:9: warning: implicit declaration of function 'file_write' [-Wimplicit-function-declaration]
# if (file_write((char *)p, 1, n, outfile) != n)
# ^
# unarj.c: In function 'init_getbits':
# unarj.c:394:17: error: 'CHAR_BIT' undeclared (first use in this function)
# fillbuf(2 * CHAR_BIT);
# ^
# unarj.c:394:15: error: invalid operands to binary * (have 'int' and 'char **')
# fillbuf(2 * CHAR_BIT);
# ^
# unarj.c:394:5: warning: passing argument 1 of 'fillbuf' makes integer from pointer without a cast [enabled by default]
# fillbuf(2 * CHAR_BIT);
# ^
# In file included from unarj.c:51:0:
# unarj.h:387:8: note: expected 'int' but argument is of type 'char **'
# void fillbuf OF((int n));
# ^
# unarj.c: In function 'fillbuf':
# unarj.c:412:20: error: 'CHAR_BIT' undeclared (first use in this function)
# bitcount = CHAR_BIT;
# ^
# unarj.c:412:18: warning: assignment makes integer from pointer without a cast [enabled by default]
# bitcount = CHAR_BIT;
# ^
# unarj.c: In function 'getbits':
# unarj.c:423:24: error: 'CHAR_BIT' undeclared (first use in this function)
# x = bitbuf >> (2 * CHAR_BIT - n);
# ^
# unarj.c:423:22: error: invalid operands to binary * (have 'int' and 'char **')
# x = bitbuf >> (2 * CHAR_BIT - n);
# ^
# unarj.c:423:16: error: invalid operands to binary >> (have 'int' and 'char **')
# x = bitbuf >> (2 * CHAR_BIT - n);
# ^
# unarj.c:423:7: warning: assignment makes integer from pointer without a cast [enabled by default]
# x = bitbuf >> (2 * CHAR_BIT - n);
# ^
# unarj.c: In function 'get_date_str':
# unarj.c:444:5: warning: implicit declaration of function 'sprintf' [-Wimplicit-function-declaration]
# sprintf(str, "%04u-%02u-%02u %02u:%02u:%02u",
# ^
# unarj.c:444:5: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# unarj.c: In function 'parse_path':
# unarj.c:458:10: warning: assignment from incompatible pointer type [enabled by default]
# fptr = NULL;
# ^
# unarj.c:461:9: warning: implicit declaration of function 'strrchr' [-Wimplicit-function-declaration]
# if ((ptr = strrchr(pathname, *cptr)) != NULL &&
# ^
# unarj.c:461:20: warning: incompatible implicit declaration of built-in function 'strrchr' [enabled by default]
# if ((ptr = strrchr(pathname, *cptr)) != NULL &&
# ^
# decode.c: In function 'decode':
# unarj.c:461:46: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if ((ptr = strrchr(pathname, *cptr)) != NULL &&
# ^
# unarj.c:462:23: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# (fptr == NULL || ptr > fptr))
# ^
# decode.c:411:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free((char *)text);
# ^
# decode.c:411:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# unarj.c:465:14: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (fptr == NULL)
# ^
# unarj.c:469:14: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (path != NULL)
# ^
# unarj.c:471:8: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
# strncpy(path, pathname, pos);
# ^
# unarj.c:471:8: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# unarj.c:474:15: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (entry != NULL)
# ^
# unarj.c:475:8: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration]
# strcpy(entry, &pathname[pos]);
# ^
# unarj.c:475:8: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# unarj.c: In function 'strlower':
# decode.c: In function 'decode_f':
# unarj.c:498:9: warning: implicit declaration of function 'tolower' [-Wimplicit-function-declaration]
# *s = (char) tolower(*s);
# ^
# unarj.c: In function 'strupper':
# unarj.c:509:9: warning: implicit declaration of function 'toupper' [-Wimplicit-function-declaration]
# *s = (char) toupper(*s);
# ^
# decode.c:498:24: error: 'CHAR_BIT' undeclared (first use in this function)
# GETBITS(c, CHAR_BIT);
# ^
# decode.c:420:33: note: in definition of macro 'GETBITS'
# #define GETBITS(c,l) {if(getlen>(CODE_BIT-l);BPUL(l)}
# ^
# unarj.c: In function 'malloc_msg':
# decode.c:498:24: note: each undeclared identifier is reported only once for each function it appears in
# GETBITS(c, CHAR_BIT);
# ^
# decode.c:420:33: note: in definition of macro 'GETBITS'
# #define GETBITS(c,l) {if(getlen>(CODE_BIT-l);BPUL(l)}
# ^
# unarj.c:520:37: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if ((p = (char *)xmalloc(size)) == NULL)
# ^
# unarj.c: In function 'find_header':
# unarj.c:549:1: error: unknown type name 'FILE'
# FILE *fd;
# ^
# decode.c:533:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free((char *)text);
# ^
# unarj.c:554:5: warning: implicit declaration of function 'file_tell' [-Wimplicit-function-declaration]
# arcpos = file_tell(fd);
# ^
# unarj.c:555:5: warning: implicit declaration of function 'file_seek' [-Wimplicit-function-declaration]
# file_seek(fd, 0L, SEEK_END);
# ^
# decode.c: At top level:
# decode.c:85:15: warning: 'left' defined but not used [-Wunused-variable]
# static ushort left[2 * NC - 1];
# ^
# decode.c:86:15: warning: 'right' defined but not used [-Wunused-variable]
# static ushort right[2 * NC - 1];
# ^
# decode.c:87:15: warning: 'c_len' defined but not used [-Wunused-variable]
# static uchar c_len[NC];
# ^
# unarj.c: In function 'read_header':
# unarj.c:590:1: error: unknown type name 'FILE'
# FILE *fd;
# ^
# unarj.c:643:5: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# hdr_comment = (char *)&header[first_hdr_size + strlen(hdr_filename) + 1];
# ^
# unarj.c:643:52: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# hdr_comment = (char *)&header[first_hdr_size + strlen(hdr_filename) + 1];
# ^
# unarj.c: In function 'unstore':
# unarj.c:684:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(buffer);
# ^
# unarj.c:684:5: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# unarj.c: In function 'check_flags':
# unarj.c:692:9: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(M_UNKNVERS, arj_x_nbr);
# ^
# unarj.c:699:9: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(M_ENCRYPT);
# ^
# unarj.c:706:9: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(M_UNKNMETH, method);
# ^
# unarj.c:713:9: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(M_UNKNTYPE, file_type);
# ^
# unarj.c: In function 'extract':
# unarj.c:736:9: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(name, &filename[entry_pos]);
# ^
# unarj.c:740:9: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration]
# strcat(name, filename);
# ^
# unarj.c:740:9: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# unarj.c:751:5: warning: implicit declaration of function 'strchr' [-Wimplicit-function-declaration]
# pos = strchr(name, PATH_CHAR);
# ^
# unarj.c:751:11: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
# pos = strchr(name, PATH_CHAR);
# ^
# unarj.c:753:16: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# while (pos != NULL)
# ^
# unarj.c:755:9: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(dir, name, pos-name);
# ^
# unarj.c:757:9: warning: implicit declaration of function 'mkdir' [-Wimplicit-function-declaration]
# mkdir(dir, 0777);
# ^
# unarj.c:763:9: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(M_FEXISTS, name);
# ^
# unarj.c:770:17: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (outfile == NULL)
# ^
# make: *** [: decode.o] Error 1
# unarj.c:772:9: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(M_CANTOPEN, name);
# ^
# unarj.c:773:9: warning: implicit declaration of function 'putchar' [-Wimplicit-function-declaration]
# putchar('\n');
# ^
# unarj.c:778:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(M_EXTRACT, name);
# ^
# unarj.c:791:5: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# fclose(outfile);
# ^
# unarj.c: In function 'test':
# unarj.c:812:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(M_TESTING, filename);
# ^
# unarj.c: In function 'ratio':
# unarj.c:841:17: error: 'LONG_MAX' undeclared (first use in this function)
# if (a <= LONG_MAX / 10)
# ^
# unarj.c:841:26: error: invalid operands to binary / (have 'char **' and 'int')
# if (a <= LONG_MAX / 10)
# ^
# unarj.c:841:14: warning: comparison between pointer and integer [enabled by default]
# if (a <= LONG_MAX / 10)
# ^
# unarj.c: In function 'list_start':
# unarj.c:858:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("Filename Original Compressed Ratio DateTime modified CRC-32 AttrBTPMGVX\n");
# ^
# unarj.c: In function 'list_arc':
# unarj.c:892:5: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(fmode_str, " ");
# ^
# unarj.c:895:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if (strlen(&filename[entry_pos]) > 12)
# ^
# unarj.c:896:9: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%-12s\n ", &filename[entry_pos]);
# ^
# unarj.c: In function 'execute_cmd':
# unarj.c:918:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(M_PROCARC, arc_name);
# ^
# unarj.c: In function 'help':
# unarj.c:974:28: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# for (i = 0; M_USAGE[i] != NULL; i++)
# ^
# unarj.c:975:9: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(M_USAGE[i]);
# ^
# unarj.c: In function 'main':
# unarj.c:990:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf(M_VERSION);
# ^
# unarj.c:995:16: error: 'EXIT_SUCCESS' undeclared (first use in this function)
# return EXIT_SUCCESS;
# ^
# unarj.c:995:9: warning: return makes integer from pointer without a cast [enabled by default]
# return EXIT_SUCCESS;
# ^
# unarj.c:1004:13: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if (strlen(argv[1]) > 1)
# ^
# unarj.c:1007:13: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
# if (strchr("ELTX", command) == NULL)
# ^
# unarj.c:1007:37: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# if (strchr("ELTX", command) == NULL)
# ^
# unarj.c:1014:16: error: 'EXIT_FAILURE' undeclared (first use in this function)
# return EXIT_FAILURE;
# ^
# unarj.c:1014:9: warning: return makes integer from pointer without a cast [enabled by default]
# return EXIT_FAILURE;
# ^
# unarj.c:1019:9: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# i = strlen(arc_name);
# ^
# unarj.c:1024:14: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
# else if (strchr(&arc_name[j], ARJ_DOT) == NULL)
# ^
# unarj.c:1024:44: warning: comparison of distinct pointer types lacks a cast [enabled by default]
# else if (strchr(&arc_name[j], ARJ_DOT) == NULL)
# ^
# unarj.c:1025:9: warning: incompatible implicit declaration of built-in function 'strcat' [enabled by default]
# strcat(arc_name, M_SUFFIX);
# ^
# unarj.c:1031:13: warning: assignment from incompatible pointer type [enabled by default]
# arcfile = NULL;
# ^
# unarj.c:1032:13: warning: assignment from incompatible pointer type [enabled by default]
# outfile = NULL;
# ^
# unarj.c:1039:5: warning: return makes integer from pointer without a cast [enabled by default]
# return EXIT_SUCCESS;
# ^
# make: *** [: unarj.o] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...