Build of xa with android toolchain

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

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

SLOCLanguage
6,381 ansic
552 asm
242 makefile
90 perl
53 sh
7,318 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: xa 2.3.7-1 (Tue Apr 4 20:41:24 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# rm -f xa
# (cd src && LD=gcc CC="gcc -O2" make)
# (cd misc && CC="gcc -O2" make)
# make[1]: Entering directory '/tmp/xa/src/xa-2.3.7/src'
# gcc -O2 -O2 -c -o xa.o xa.c
# gcc -O2 -O2 -c -o xaa.o xaa.c
# gcc -O2 -O2 -c -o xal.o xal.c
# make[1]: Entering directory '/tmp/xa/src/xa-2.3.7/misc'
# cp mkrom.sh ../mkrom.sh
# gcc -O2 -O2 uncpk.c -o ../uncpk
# cc1: error: no include path in which to search for stdc-predef.h
# xaa.c:22:19: error: no include path in which to search for stdio.h
# #include
# ^
# In file included from xaa.c:27:0:
# xar.h:33:14: error: unknown type name 'FILE'
# int rt_write(FILE *fp, int pc);
# ^
# xar.h:34:14: error: unknown type name 'FILE'
# int rd_write(FILE *fp, int pc);
# ^
# xar.h:40:13: error: unknown type name 'FILE'
# int h_write(FILE *fp, int mode, int tlen, int dlen, int blen, int zlen,
# ^
# xar.h:45:14: error: unknown type name 'FILE'
# void seg_end(FILE *);
# ^
# In file included from xaa.c:29:0:
# xal.h:22:34: error: no include path in which to search for stdio.h
# #include /* for FILE */
# ^
# xal.h:37:17: error: unknown type name 'FILE'
# void printllist(FILE *fp);
# ^
# xal.h:51:13: error: unknown type name 'FILE'
# int l_write(FILE *fp);
# ^
# make[1]: *** [: xaa.o] Error 1
# make[1]: *** Waiting for unfinished jobs....
# gcc -O2 -O2 printcbm.c -o ../printcbm
# cc1: error: no include path in which to search for stdc-predef.h
# xa.c:23:18: error: no include path in which to search for time.h
# #include
# ^
# xa.c:24:19: error: no include path in which to search for ctype.h
# #include
# ^
# xa.c:25:19: error: no include path in which to search for stdio.h
# #include
# ^
# xa.c:26:20: error: no include path in which to search for stdlib.h
# #include
# ^
# xa.c:27:20: error: no include path in which to search for string.h
# #include
# ^
# xa.c:29:20: error: no include path in which to search for unistd.h
# #include
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# uncpk.c:21:19: error: no include path in which to search for stdio.h
# #include
# ^
# uncpk.c:22:20: error: no include path in which to search for stdlib.h
# #include
# ^
# uncpk.c:23:20: error: no include path in which to search for string.h
# #include
# ^
# In file included from uncpk.c:25:0:
# version.h: In function 'version':
# cc1: error: no include path in which to search for stdc-predef.h
# version.h:25:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,
# ^
# version.h:25:10: error: 'stdout' undeclared (first use in this function)
# fprintf(stdout,
# ^
# version.h:25:10: note: each undeclared identifier is reported only once for each function it appears in
# uncpk.c: At top level:
# uncpk.c:35:1: error: unknown type name 'FILE'
# FILE *fp;
# ^
# In file included from xa.c:37:0:
# xah2.h:26:2: error: unknown type name 'FILE'
# FILE *filep;
# ^
# xal.c:22:19: error: no include path in which to search for stdio.h
# #include
# ^
# xal.c:23:20: error: no include path in which to search for stdlib.h
# #include
# ^
# uncpk.c:39:12: error: unknown type name 'FILE'
# void usage(FILE *fp)
# ^
# xal.c:24:20: error: no include path in which to search for string.h
# #include
# ^
# xal.c:25:19: error: no include path in which to search for ctype.h
# #include
# ^
# uncpk.c: In function 'main':
# uncpk.c:60:2: error: unknown type name 'size_t'
# size_t n,n2;
# ^
# In file included from xa.c:41:0:
# xal.h:22:34: error: no include path in which to search for stdio.h
# #include /* for FILE */
# ^
# uncpk.c:61:2: error: unknown type name 'FILE'
# FILE *fp,*fpo=NULL;
# ^
# uncpk.c:61:16: error: 'NULL' undeclared (first use in this function)
# FILE *fp,*fpo=NULL;
# ^
# xal.h:37:17: error: unknown type name 'FILE'
# void printllist(FILE *fp);
# ^
# uncpk.c:64:10: error: 'stderr' undeclared (first use in this function)
# usage(stderr);
# ^
# uncpk.c:65:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# uncpk.c:68:6: warning: incompatible implicit declaration of built-in function 'strstr' [enabled by default]
# if (strstr(argv[1], "--help")) {
# ^
# xal.h:51:13: error: unknown type name 'FILE'
# int l_write(FILE *fp);
# ^
# In file included from xa.c:42:0:
# xam.h:22:1: error: unknown type name 'FILE'
# FILE *xfopen(const char *fn, const char *mode);
# ^
# uncpk.c:69:17: error: 'stdout' undeclared (first use in this function)
# usage(stdout);
# ^
# uncpk.c:70:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# In file included from xa.c:43:0:
# xao.h:26:14: error: unknown type name 'FILE'
# void o_write(FILE *fp);
# ^
# xao.h:29:1: error: unknown type name 'size_t'
# size_t o_length(void);
# ^
# uncpk.c:75:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# uncpk.c:78:5: warning: incompatible implicit declaration of built-in function 'strchr' [enabled by default]
# if(strchr(argv[1],(int)'l')) {
# ^
# In file included from xal.c:31:0:
# xar.h:33:14: error: unknown type name 'FILE'
# int rt_write(FILE *fp, int pc);
# ^
# xar.h:34:14: error: unknown type name 'FILE'
# int rd_write(FILE *fp, int pc);
# ^
# In file included from xa.c:45:0:
# xar.h:33:14: error: unknown type name 'FILE'
# int rt_write(FILE *fp, int pc);
# ^
# uncpk.c:94:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# xar.h:34:14: error: unknown type name 'FILE'
# int rd_write(FILE *fp, int pc);
# ^
# xar.h:40:13: error: unknown type name 'FILE'
# int h_write(FILE *fp, int mode, int tlen, int dlen, int blen, int zlen,
# ^
# uncpk.c:97:8: warning: assignment makes pointer from integer without a cast [enabled by default]
# fpo=fopen(argv[2],"ab");
# ^
# xar.h:40:13: error: unknown type name 'FILE'
# int h_write(FILE *fp, int mode, int tlen, int dlen, int blen, int zlen,
# ^
# xar.h:45:14: error: unknown type name 'FILE'
# void seg_end(FILE *);
# ^
# xar.h:45:14: error: unknown type name 'FILE'
# void seg_end(FILE *);
# ^
# uncpk.c:100:8: warning: assignment makes pointer from integer without a cast [enabled by default]
# fpo=fopen(argv[2],"wb");
# ^
# In file included from xal.c:32:0:
# xah2.h:26:2: error: unknown type name 'FILE'
# FILE *filep;
# ^
# uncpk.c:105:19: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# if(verbose) printf("%s\n",argv[i]);
# ^
# uncpk.c:106:9: warning: assignment makes pointer from integer without a cast [enabled by default]
# fp=fopen(argv[i],"rb");
# ^
# In file included from xa.c:49:0:
# version.h: In function 'version':
# version.h:25:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,
# ^
# uncpk.c:109:9: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(fpo,"%s",argv[i]);
# ^
# version.h:25:10: error: 'stdout' undeclared (first use in this function)
# fprintf(stdout,
# ^
# version.h:25:10: note: each undeclared identifier is reported only once for each function it appears in
# uncpk.c:112:18: error: 'EOF' undeclared (first use in this function)
# while(c!=EOF) {
# ^
# In file included from xal.c:38:0:
# xam.h:22:1: error: unknown type name 'FILE'
# FILE *xfopen(const char *fn, const char *mode);
# ^
# In file included from xal.c:39:0:
# xal.h:22:34: error: no include path in which to search for stdio.h
# #include /* for FILE */
# ^
# xa.c: At top level:
# xa.c:75:1: error: unknown type name 'time_t'
# static time_t tim1, tim2;
# ^
# xa.c:76:1: error: unknown type name 'FILE'
# static FILE *fpout, *fperr, *fplab;
# ^
# xal.h:37:17: error: unknown type name 'FILE'
# void printllist(FILE *fp);
# ^
# uncpk.c:132:9: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Couldn't open file '%s' for reading!",argv[i]);
# ^
# xa.c:82:24: error: unknown type name 'FILE'
# static void usage(int, FILE *);
# ^
# xal.h:51:13: error: unknown type name 'FILE'
# int l_write(FILE *fp);
# ^
# uncpk.c:137:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Couldn't open file '%s' for writing!",argv[1]);
# ^
# uncpk.c:142:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# xa.c: In function 'main':
# uncpk.c:144:5: warning: assignment makes pointer from integer without a cast [enabled by default]
# fp=fopen(argv[2],"rb");
# ^
# xa.c:110:21: error: 'NULL' undeclared (first use in this function)
# signed char *s=NULL;
# ^
# xal.c: In function 'printllist':
# xal.c:114:1: error: unknown type name 'FILE'
# FILE *fp;
# ^
# uncpk.c:158:27: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# if(verbose+list) printf("%s\n",name);
# ^
# xal.c:118:20: error: 'NULL' undeclared (first use in this function)
# char *fname = NULL;
# ^
# xal.c:118:20: note: each undeclared identifier is reported only once for each function it appears in
# xa.c:138:17: warning: incompatible implicit declaration of built-in function 'strrchr' [enabled by default]
# if((tmpp = strrchr(argv[0],'/'))) {
# ^
# uncpk.c:161:8: warning: assignment makes pointer from integer without a cast [enabled by default]
# fpo=fopen(name,"wb");
# ^
# uncpk.c:163:8: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Couldn't open output file %s !\n",name);
# ^
# xal.c:123:10: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(fp,"%s, 0x%04x, %d, 0x%04x\n",ltp->n,ltp->val,ltp->blk,
# ^
# xa.c:154:15: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# ifiles = malloc(mifiles*sizeof(char*));
# ^
# uncpk.c:195:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Unexpected end of file!\n");
# ^
# xa.c:159:25: error: 'stderr' undeclared (first use in this function)
# usage(w65816, stderr);
# ^
# xal.c: In function 'lg_set':
# uncpk.c:200:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Wrong Version!\n");
# ^
# xa.c:160:11: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# xal.c:148:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Warning: global label doubly defined!\n");
# ^
# xal.c:148:12: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr,"Warning: global label doubly defined!\n");
# ^
# uncpk.c:203:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"File %s not found!\n",argv[1]);
# ^
# xa.c:163:10: warning: incompatible implicit declaration of built-in function 'strstr' [enabled by default]
# if (strstr(argv[1], "--help")) {
# ^
# xa.c:164:25: error: 'stdout' undeclared (first use in this function)
# usage(w65816, stdout);
# ^
# xa.c:165:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# xa.c:170:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# xa.c:199:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "-p requires a character argument\n");
# ^
# xa.c:200:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# xa.c:203:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,
# ^
# xal.c: In function 'l_addocc':
# xal.c:284:9: error: 'NULL' undeclared (first use in this function)
# pp=NULL;
# ^
# xal.c:291:10: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# p = malloc(sizeof(LabOcc));
# ^
# xal.c:293:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Oops, out of memory!\n");
# ^
# xal.c:293:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr,"Oops, out of memory!\n");
# ^
# xal.c:294:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# xal.c: In function 'll_def':
# xal.c:348:17: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# afile->la.lt = malloc(afile->la.ltm * sizeof(Labtab));
# ^
# xal.c:352:17: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
# afile->la.lt = realloc(afile->la.lt, afile->la.ltm * sizeof(Labtab));
# ^
# xa.c:335:13: warning: incompatible implicit declaration of built-in function 'realloc' [enabled by default]
# ifiles=realloc(ifiles, mifiles*sizeof(char*));
# ^
# xal.c:355:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Oops: no memory!\n");
# ^
# xa.c:337:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Oops: couldn't alloc enough mem for filelist table..!\n");
# ^
# xal.c:355:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "Oops: no memory!\n");
# ^
# xa.c:338:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# xal.c:356:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# xa.c:345:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "No input files given!\n");
# ^
# xa.c:346:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# xal.c:373:9: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# s2 = malloc(j+1);
# ^
# xa.c:350:2: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(old_e, ifiles[0]);
# ^
# xal.c:375:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr,"Oops: no memory!\n");
# ^
# xal.c:376:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# xa.c:358:18: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# if(verbose) fprintf(stderr, "%s\n",copyright);
# ^
# xal.c:378:4: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# strncpy(s2,s,j);
# ^
# xal.c:390:29: error: 'NULL' undeclared (first use in this function)
# ltp->occlist=NULL;
# ^
# xa.c:370:2: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# xa.c:384:9: warning: passing argument 1 of 'logout' makes pointer from integer without a cast [enabled by default]
# if(verbose) logout(ctime(&tim1));
# ^
# In file included from xa.c:40:0:
# xa.h:47:6: note: expected 'char *' but argument is of type 'int'
# void logout(char *s);
# ^
# xa.c:404:18: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(out,"xAss65: Pass 1: %s\n",ifile);
# ^
# xal.c: At top level:
# xa.c:424:4: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(out,"Still %d blocks open at end of file!\n",er);
# ^
# xal.c:463:13: error: unknown type name 'FILE'
# int l_write(FILE *fp)
# ^
# xa.c:429:6: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(out,"Warning: text segment ($%04x) start address doesn't align to %d!\n", tbase, align);
# ^
# make[1]: *** [Makefile:13: ../uncpk] Error 1
# make[1]: *** Waiting for unfinished jobs....
# xa.c:433:6: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(out,"Warning: data segment ($%04x) start address doesn't align to %d!\n", dbase, align);
# ^
# xa.c:437:6: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(out,"Warning: bss segment ($%04x) start address doesn't align to %d!\n", bbase, align);
# ^
# xa.c:441:6: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(out,"Warning: zero segment ($%04x) start address doesn't align to %d!\n", zbase, align);
# ^
# xa.c:509:6: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(ifiles);
# ^
# xa.c: In function 'printstat':
# xa.c:517:2: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(out," %8d of %8d label used\n",ga_lab(),gm_lab()); logout(out);
# ^
# xa.c: In function 'setfext':
# xa.c:559:19: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# int j,i=(int)strlen(s);
# ^
# xa.c:568:16: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(s+i,ext);
# ^
# xa.c:573:16: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(s+j,ext);
# ^
# xa.c:578:11: warning: incompatible implicit declaration of built-in function 'strcpy' [enabled by default]
# strcpy(s+i,ext);
# ^
# xa.c: In function 'pass2':
# xa.c:602:27: error: 'NULL' undeclared (first use in this function)
# signed char *dataseg=NULL;
# ^
# xa.c:607:18: warning: incompatible implicit declaration of built-in function 'malloc' [enabled by default]
# if((dataseg=malloc(dlen))) {
# ^
# xa.c:609:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Couldn't alloc dataseg memory...\n");
# ^
# xa.c:609:11: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "Couldn't alloc dataseg memory...\n");
# ^
# xa.c:610:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# cc1: error: no include path in which to search for stdc-predef.h
# xa.c:633:7: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(&datei.fname, afile->mn.tmp+afile->mn.tmpe+3, sizeof(datei.fname));
# ^
# printcbm.c:21:19: error: no include path in which to search for stdio.h
# #include
# ^
# printcbm.c:22:20: error: no include path in which to search for stdlib.h
# #include
# ^
# printcbm.c:23:20: error: no include path in which to search for string.h
# #include
# ^
# In file included from printcbm.c:25:0:
# version.h: In function 'version':
# version.h:25:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stdout,
# ^
# version.h:25:10: error: 'stdout' undeclared (first use in this function)
# fprintf(stdout,
# ^
# version.h:25:10: note: each undeclared identifier is reported only once for each function it appears in
# xa.c:659:7: warning: incompatible implicit declaration of built-in function 'memcpy' [enabled by default]
# memcpy(datap,afile->mn.tmp+afile->mn.tmpe,ll);
# ^
# printcbm.c: At top level:
# printcbm.c:44:12: error: unknown type name 'FILE'
# void usage(FILE *fp)
# ^
# xa.c:671:7: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(datap, c, ll);
# ^
# printcbm.c: In function 'main':
# printcbm.c:57:2: error: unknown type name 'FILE'
# FILE *fp;
# ^
# printcbm.c:61:9: error: 'stderr' undeclared (first use in this function)
# usage(stderr);
# ^
# printcbm.c:62:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(1);
# ^
# printcbm.c:65:6: warning: incompatible implicit declaration of built-in function 'strstr' [enabled by default]
# if (strstr(argv[1], "--help")) {
# ^
# xa.c:680:4: error: unknown type name 'FILE'
# FILE *foo;
# ^
# printcbm.c:66:9: error: 'stdout' undeclared (first use in this function)
# usage(stdout);
# ^
# printcbm.c:67:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# printcbm.c:72:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(0);
# ^
# printcbm.c:75:5: warning: assignment makes pointer from integer without a cast [enabled by default]
# fp = fopen(argv[1], "rb");
# ^
# printcbm.c:81:15: error: 'EOF' undeclared (first use in this function)
# while (b != EOF) {
# ^
# printcbm.c:88:5: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("%d ", a);
# ^
# xa.c:719:14: warning: assignment makes pointer from integer without a cast [enabled by default]
# if (!(foo = fopen(binfnam, "r"))) {
# ^
# printcbm.c:105:3: warning: incompatible implicit declaration of built-in function 'printf' [enabled by default]
# printf("File %s not found!\n", argv[1]);
# ^
# xa.c:723:24: error: 'SEEK_SET' undeclared (first use in this function)
# fseek(foo, offset, SEEK_SET);
# ^
# xa.c:731:7: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(datap++, i, 1);
# ^
# xa.c:743:15: warning: incompatible implicit declaration of built-in function 'fwrite' [enabled by default]
# if((ll=fwrite(dataseg, 1, dlen, fpout))
# ^
# xa.c:744:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Problems writing %d bytes, return gives %d\n",dlen,ll);
# ^
# xa.c: At top level:
# xa.c:819:35: error: unknown type name 'FILE'
# static void usage(int default816, FILE *fp)
# ^
# make[1]: *** [Makefile:16: ../printcbm] Error 1
# make[1]: Leaving directory '/tmp/xa/src/xa-2.3.7/misc'
# make[1]: *** [: xal.o] Error 1
# xa.c: In function 'errout':
# xa.c:1095:4: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(out,"%s:line %d: %04x: Warning - %s\n",
# ^
# xa.c:1099:11: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(out,"%s:line %d: %04x: Unknown error # %d\n",
# ^
# xa.c:1105:11: warning: incompatible implicit declaration of built-in function 'sprintf' [enabled by default]
# sprintf(out,"%s:line %d: %04x:Label '%s' not defined\n",
# ^
# xa.c: In function 'logout':
# xa.c:1125:6: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "%s",s);
# ^
# xa.c:1125:14: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "%s",s);
# ^
# make: *** [Makefile:41: uncpk] Error 2
# make: *** Waiting for unfinished jobs....
# make[1]: *** [: xa.o] Error 1
# make[1]: Leaving directory '/tmp/xa/src/xa-2.3.7/src'
# make: *** [Makefile:35: xa] Error 2
# ==> ERROR: A failure occurred in build().
# Aborting...