Build of yamdi with android toolchain

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

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

SLOCLanguage
1,638 ansic
8 makefile
1,646 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: yamdi 1.9-2 (Tue Apr 4 20:14:47 UTC 2017)
# ==> Checking runtime dependencies...
# ==> Checking buildtime dependencies...
# ==> WARNING: Using existing $srcdir/ tree
# ==> Starting build()...
# gcc -O2 -Wall yamdi.c -o yamdi
# cc1: error: no include path in which to search for stdc-predef.h
# yamdi.c:39:23: error: no include path in which to search for sys/types.h
# #include
# ^
# yamdi.c:40:19: error: no include path in which to search for stdio.h
# #include
# ^
# yamdi.c:41:20: error: no include path in which to search for stdlib.h
# #include
# ^
# yamdi.c:42:20: error: no include path in which to search for string.h
# #include
# ^
# yamdi.c:43:20: error: no include path in which to search for unistd.h
# #include
# ^
# yamdi.c:44:22: error: no include path in which to search for inttypes.h
# #include
# ^
# yamdi.c:45:19: error: no include path in which to search for errno.h
# #include
# ^
# yamdi.c:91:2: error: unknown type name 'size_t'
# size_t size;
# ^
# yamdi.c:92:2: error: unknown type name 'size_t'
# size_t used;
# ^
# yamdi.c:96:2: error: unknown type name 'off_t'
# off_t offset; // Offset from the beginning of the file
# ^
# yamdi.c:100:2: error: unknown type name 'size_t'
# size_t datasize; // Size of the data contained in this tag
# ^
# yamdi.c:104:2: error: unknown type name 'size_t'
# size_t tagsize; // Size of the whole tag including header and data
# ^
# yamdi.c:108:2: error: unknown type name 'size_t'
# size_t nflvtags;
# ^
# yamdi.c:130:3: error: unknown type name 'size_t'
# size_t ntags; // # of audio tags
# ^
# yamdi.c:132:3: error: unknown type name 'uint64_t'
# uint64_t datasize; // Size of the audio data
# ^
# yamdi.c:133:3: error: unknown type name 'uint64_t'
# uint64_t size; // Size of the audio tags (header + data)
# ^
# yamdi.c:138:3: error: unknown type name 'size_t'
# size_t lastframeindex;
# ^
# yamdi.c:151:3: error: unknown type name 'size_t'
# size_t ntags; // # of video tags
# ^
# yamdi.c:154:3: error: unknown type name 'uint64_t'
# uint64_t datasize; // Size of the video data
# ^
# yamdi.c:155:3: error: unknown type name 'uint64_t'
# uint64_t size; // Size of the video tags (header + data)
# ^
# yamdi.c:158:3: error: unknown type name 'size_t'
# size_t lastframeindex;
# ^
# yamdi.c:163:3: error: unknown type name 'size_t'
# size_t lastkeyframeindex;
# ^
# yamdi.c:165:3: error: unknown type name 'off_t'
# off_t lastkeyframelocation;
# ^
# yamdi.c:167:3: error: unknown type name 'size_t'
# size_t nkeyframes; // # of key frames
# ^
# yamdi.c:168:3: error: unknown type name 'off_t'
# off_t *keyframelocations; // Array of the filepositions of the keyframes (in the target file!)
# ^
# yamdi.c:172:2: error: unknown type name 'uint64_t'
# uint64_t datasize; // Size of all audio and video tags (header + data + FLV_SIZE_PREVIOUSTAGSIZE)
# ^
# yamdi.c:173:2: error: unknown type name 'uint64_t'
# uint64_t filesize; // [sic!]
# ^
# yamdi.c:178:2: error: unknown type name 'size_t'
# size_t lastsecondindex;
# ^
# yamdi.c:203:2: error: unknown type name 'size_t'
# size_t length;
# ^
# yamdi.c:204:2: error: unknown type name 'size_t'
# size_t byte;
# ^
# yamdi.c:214:17: error: unknown type name 'FILE'
# int validateFLV(FILE *fp);
# ^
# yamdi.c:216:26: error: unknown type name 'FILE'
# int indexFLV(FLV_t *flv, FILE *fp);
# ^
# yamdi.c:217:29: error: unknown type name 'FILE'
# int finalizeFLV(FLV_t *flv, FILE *fp);
# ^
# yamdi.c:218:14: error: unknown type name 'FILE'
# int writeFLV(FILE *out, FLV_t *flv, FILE *fp);
# ^
# yamdi.c:218:37: error: unknown type name 'FILE'
# int writeFLV(FILE *out, FLV_t *flv, FILE *fp);
# ^
# yamdi.c:221:24: error: unknown type name 'FILE'
# void storeFLVFromStdin(FILE *fp);
# ^
# yamdi.c:222:34: error: unknown type name 'off_t'
# int readFLVTag(FLVTag_t *flvtag, off_t offset, FILE *fp);
# ^
# yamdi.c:222:48: error: unknown type name 'FILE'
# int readFLVTag(FLVTag_t *flvtag, off_t offset, FILE *fp);
# ^
# yamdi.c:223:40: error: unknown type name 'size_t'
# int readFLVTagData(unsigned char *ptr, size_t size, FLVTag_t *flvtag, FILE *stream);
# ^
# yamdi.c:223:71: error: unknown type name 'FILE'
# int readFLVTagData(unsigned char *ptr, size_t size, FLVTag_t *flvtag, FILE *stream);
# ^
# yamdi.c:225:28: error: unknown type name 'FILE'
# int analyzeFLV(FLV_t *flv, FILE *fp);
# ^
# yamdi.c:226:61: error: unknown type name 'FILE'
# int analyzeFLVH263VideoPacket(FLV_t *flv, FLVTag_t *flvtag, FILE *fp);
# ^
# yamdi.c:227:61: error: unknown type name 'FILE'
# int analyzeFLVH264VideoPacket(FLV_t *flv, FLVTag_t *flvtag, FILE *fp);
# ^
# yamdi.c:228:63: error: unknown type name 'FILE'
# int analyzeFLVScreenVideoPacket(FLV_t *flv, FLVTag_t *flvtag, FILE *fp);
# ^
# yamdi.c:229:60: error: unknown type name 'FILE'
# int analyzeFLVVP6VideoPacket(FLV_t *flv, FLVTag_t *flvtag, FILE *fp);
# ^
# yamdi.c:230:65: error: unknown type name 'FILE'
# int analyzeFLVVP6AlphaVideoPacket(FLV_t *flv, FLVTag_t *flvtag, FILE *fp);
# ^
# yamdi.c:237:66: error: unknown type name 'size_t'
# int writeBufferFLVScriptDataTag(buffer_t *buffer, int timestamp, size_t datasize);
# ^
# yamdi.c:238:53: error: unknown type name 'size_t'
# int writeBufferFLVPreviousTagSize(buffer_t *buffer, size_t tagsize);
# ^
# yamdi.c:239:76: error: unknown type name 'size_t'
# int writeBufferFLVScriptDataValueArray(buffer_t *buffer, const char *name, size_t len);
# ^
# yamdi.c:240:75: error: unknown type name 'size_t'
# int writeBufferFLVScriptDataECMAArray(buffer_t *buffer, const char *name, size_t len);
# ^
# yamdi.c:252:20: error: unknown type name 'FILE'
# int writeFLVHeader(FILE *fp, int hasaudio, int hasvideo);
# ^
# yamdi.c:253:21: error: unknown type name 'FILE'
# int writeFLVDataTag(FILE *fp, int type, int timestamp, size_t datasize);
# ^
# yamdi.c:253:56: error: unknown type name 'size_t'
# int writeFLVDataTag(FILE *fp, int type, int timestamp, size_t datasize);
# ^
# yamdi.c:254:29: error: unknown type name 'FILE'
# int writeFLVPreviousTagSize(FILE *fp, size_t tagsize);
# ^
# yamdi.c:254:39: error: unknown type name 'size_t'
# int writeFLVPreviousTagSize(FILE *fp, size_t tagsize);
# ^
# yamdi.c:256:23: error: unknown type name 'FILE'
# void writeXMLMetadata(FILE *fp, const char *infile, const char *outfile, FLV_t *flv);
# ^
# yamdi.c:258:35: error: unknown type name 'size_t'
# int readBytes(unsigned char *ptr, size_t size, FILE *stream);
# ^
# yamdi.c:258:48: error: unknown type name 'FILE'
# int readBytes(unsigned char *ptr, size_t size, FILE *stream);
# ^
# yamdi.c:275:66: error: unknown type name 'size_t'
# int bufferAppendBytes(buffer_t *dst, const unsigned char *bytes, size_t nbytes);
# ^
# yamdi.c: In function 'main':
# yamdi.c:282:2: error: unknown type name 'FILE'
# FILE *fp_infile = NULL, *fp_outfile = NULL, *fp_xmloutfile = NULL;
# ^
# yamdi.c:282:20: error: 'NULL' undeclared (first use in this function)
# FILE *fp_infile = NULL, *fp_outfile = NULL, *fp_xmloutfile = NULL;
# ^
# yamdi.c:282:20: note: each undeclared identifier is reported only once for each function it appears in
# yamdi.c:295:2: error: 'opterr' undeclared (first use in this function)
# opterr = 0;
# ^
# yamdi.c:305:2: warning: implicit declaration of function 'getopt' [-Wimplicit-function-declaration]
# while((c = getopt(argc, argv, ":i:o:x:t:c:a:lskMXwh")) != -1) {
# ^
# yamdi.c:308:14: error: 'optarg' undeclared (first use in this function)
# infile = optarg;
# ^
# yamdi.c:320:5: warning: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
# strncpy(flv.options.creator, optarg, sizeof(flv.options.creator));
# ^
# yamdi.c:320:5: warning: incompatible implicit declaration of built-in function 'strncpy' [enabled by default]
# yamdi.c:331:5: warning: implicit declaration of function 'strtol' [-Wimplicit-function-declaration]
# flv.audio.keyframedistance = (int)strtol(optarg, (char **)NULL, 10);
# ^
# yamdi.c:353:5: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:353:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# yamdi.c:356:5: warning: implicit declaration of function 'fprintf' [-Wimplicit-function-declaration]
# fprintf(stderr, "The option -%c expects a parameter. -h for help.\n", optopt);
# ^
# yamdi.c:356:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# yamdi.c:356:13: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "The option -%c expects a parameter. -h for help.\n", optopt);
# ^
# yamdi.c:356:75: error: 'optopt' undeclared (first use in this function)
# fprintf(stderr, "The option -%c expects a parameter. -h for help.\n", optopt);
# ^
# yamdi.c:371:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Please use -i to provide an input file. -h for help.\n");
# ^
# yamdi.c:372:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:376:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Please use -o or -x to provide at least one output file. -h for help.\n");
# ^
# yamdi.c:377:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:380:2: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration]
# if(tempfile == NULL && !strcmp(infile, "-")) {
# ^
# yamdi.c:381:3: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Please use -t to specify a temporary file. -h for help.\n");
# ^
# yamdi.c:382:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:391:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "The temporary file and the output file must not be the same.\n");
# ^
# yamdi.c:392:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:398:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "The temporary file and the XML output file must not be the same.\n");
# ^
# yamdi.c:399:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:408:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "The input file and the output file must not be the same.\n");
# ^
# yamdi.c:409:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:415:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "The input file and the XML output file must not be the same.\n");
# ^
# yamdi.c:416:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:425:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "The output file and the XML output file must not be the same.\n");
# ^
# yamdi.c:426:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:436:3: warning: implicit declaration of function 'fopen' [-Wimplicit-function-declaration]
# fp_infile = fopen(tempfile, "wb");
# ^
# yamdi.c:436:13: warning: assignment makes pointer from integer without a cast [enabled by default]
# fp_infile = fopen(tempfile, "wb");
# ^
# yamdi.c:438:4: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Couldn't open the tempfile %s.\n", tempfile);
# ^
# yamdi.c:439:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:443:3: warning: implicit declaration of function 'storeFLVFromStdin' [-Wimplicit-function-declaration]
# storeFLVFromStdin(fp_infile);
# ^
# yamdi.c:446:3: warning: implicit declaration of function 'fclose' [-Wimplicit-function-declaration]
# fclose(fp_infile);
# ^
# yamdi.c:453:12: warning: assignment makes pointer from integer without a cast [enabled by default]
# fp_infile = fopen(infile, "rb");
# ^
# yamdi.c:456:4: warning: implicit declaration of function 'unlink' [-Wimplicit-function-declaration]
# unlink(infile);
# ^
# yamdi.c:458:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:462:2: warning: implicit declaration of function 'validateFLV' [-Wimplicit-function-declaration]
# if(validateFLV(fp_infile) != YAMDI_OK) {
# ^
# yamdi.c:468:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:475:15: warning: assignment makes pointer from integer without a cast [enabled by default]
# fp_outfile = fopen(outfile, "wb");
# ^
# yamdi.c:477:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Couldn't open %s.\n", outfile);
# ^
# yamdi.c:482:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:486:17: error: 'stdout' undeclared (first use in this function)
# fp_outfile = stdout;
# ^
# yamdi.c:493:18: warning: assignment makes pointer from integer without a cast [enabled by default]
# fp_xmloutfile = fopen(xmloutfile, "wb");
# ^
# yamdi.c:495:5: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "Couldn't open %s.\n", xmloutfile);
# ^
# yamdi.c:500:5: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:517:2: warning: implicit declaration of function 'indexFLV' [-Wimplicit-function-declaration]
# if(indexFLV(&flv, fp_infile) != YAMDI_OK) {
# ^
# yamdi.c:523:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:526:2: warning: implicit declaration of function 'analyzeFLV' [-Wimplicit-function-declaration]
# if(analyzeFLV(&flv, fp_infile) != YAMDI_OK) {
# ^
# yamdi.c:532:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:535:2: warning: implicit declaration of function 'finalizeFLV' [-Wimplicit-function-declaration]
# if(finalizeFLV(&flv, fp_infile) != YAMDI_OK) {
# ^
# yamdi.c:541:3: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_ERROR);
# ^
# yamdi.c:551:3: warning: implicit declaration of function 'writeFLV' [-Wimplicit-function-declaration]
# writeFLV(fp_outfile, &flv, fp_infile);
# ^
# yamdi.c:554:3: warning: implicit declaration of function 'writeXMLMetadata' [-Wimplicit-function-declaration]
# writeXMLMetadata(fp_xmloutfile, infile, outfile, &flv);
# ^
# yamdi.c:569:3: warning: implicit declaration of function 'rename' [-Wimplicit-function-declaration]
# if(rename(outfile, infile) != 0)
# ^
# yamdi.c:570:4: warning: incompatible implicit declaration of built-in function 'exit' [enabled by default]
# exit(YAMDI_RENAME_OUTPUT);
# ^
# yamdi.c:284:51: warning: variable 'creator' set but not used [-Wunused-but-set-variable]
# char *infile, *outfile, *xmloutfile, *tempfile, *creator;
# ^
# yamdi.c: At top level:
# yamdi.c:578:17: error: unknown type name 'FILE'
# int validateFLV(FILE *fp) {
# ^
# yamdi.c: In function 'initFLV':
# yamdi.c:614:12: error: 'NULL' undeclared (first use in this function)
# if(flv == NULL)
# ^
# yamdi.c:617:2: warning: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
# memset(flv, 0, sizeof(FLV_t));
# ^
# yamdi.c:617:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# yamdi.c: At top level:
# yamdi.c:622:26: error: unknown type name 'FILE'
# int indexFLV(FLV_t *flv, FILE *fp) {
# ^
# yamdi.c:680:24: error: unknown type name 'FILE'
# void storeFLVFromStdin(FILE *fp) {
# ^
# yamdi.c: In function 'freeFLV':
# yamdi.c:692:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration]
# free(flv->index.flvtag);
# ^
# yamdi.c:692:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# yamdi.c:694:41: error: 'NULL' undeclared (first use in this function)
# if(flv->keyframes.keyframelocations != NULL)
# ^
# yamdi.c:704:2: warning: incompatible implicit declaration of built-in function 'memset' [enabled by default]
# memset(flv, 0, sizeof(FLV_t));
# ^
# yamdi.c: At top level:
# yamdi.c:709:28: error: unknown type name 'FILE'
# int analyzeFLV(FLV_t *flv, FILE *fp) {
# ^
# yamdi.c:954:29: error: unknown type name 'FILE'
# int finalizeFLV(FLV_t *flv, FILE *fp) {
# ^
# yamdi.c:1036:14: error: unknown type name 'FILE'
# int writeFLV(FILE *out, FLV_t *flv, FILE *fp) {
# ^
# yamdi.c:1036:37: error: unknown type name 'FILE'
# int writeFLV(FILE *out, FLV_t *flv, FILE *fp) {
# ^
# yamdi.c:1096:20: error: unknown type name 'FILE'
# int writeFLVHeader(FILE *fp, int hasaudio, int hasvideo) {
# ^
# yamdi.c: In function 'createFLVEventOnMetaData':
# yamdi.c:1142:2: error: unknown type name 'size_t'
# size_t i, length = 0;
# ^
# yamdi.c:1153:2: warning: implicit declaration of function 'writeBufferFLVScriptDataECMAArray' [-Wimplicit-function-declaration]
# writeBufferFLVScriptDataECMAArray(&b, "onMetaData", length);
# ^
# yamdi.c:1157:2: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration]
# if(strlen(flv->options.creator) != 0) {
# ^
# yamdi.c:1157:5: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# if(strlen(flv->options.creator) != 0) {
# ^
# yamdi.c:1204:4: warning: implicit declaration of function 'writeBufferFLVScriptDataValueArray' [-Wimplicit-function-declaration]
# writeBufferFLVScriptDataValueArray(&b, "filepositions", flv->keyframes.nkeyframes);
# ^
# yamdi.c:1207:45: error: 'NULL' undeclared (first use in this function)
# writeBufferFLVScriptDataValueDouble(&b, NULL, (double)flv->keyframes.keyframelocations[i]);
# ^
# yamdi.c:1227:2: warning: implicit declaration of function 'writeBufferFLVScriptDataTag' [-Wimplicit-function-declaration]
# writeBufferFLVScriptDataTag(&flv->onmetadata, 0, b.used);
# ^
# yamdi.c:1229:2: warning: implicit declaration of function 'writeBufferFLVPreviousTagSize' [-Wimplicit-function-declaration]
# writeBufferFLVPreviousTagSize(&flv->onmetadata, flv->onmetadata.used);
# ^
# yamdi.c: At top level:
# yamdi.c:1282:66: error: unknown type name 'size_t'
# int writeBufferFLVScriptDataTag(buffer_t *buffer, int timestamp, size_t datasize) {
# ^
# yamdi.c:1310:21: error: unknown type name 'FILE'
# int writeFLVDataTag(FILE *fp, int type, int timestamp, size_t datasize) {
# ^
# yamdi.c:1310:56: error: unknown type name 'size_t'
# int writeFLVDataTag(FILE *fp, int type, int timestamp, size_t datasize) {
# ^
# yamdi.c:1338:53: error: unknown type name 'size_t'
# int writeBufferFLVPreviousTagSize(buffer_t *buffer, size_t tagsize) {
# ^
# yamdi.c:1351:29: error: unknown type name 'FILE'
# int writeFLVPreviousTagSize(FILE *fp, size_t tagsize) {
# ^
# yamdi.c:1351:39: error: unknown type name 'size_t'
# int writeFLVPreviousTagSize(FILE *fp, size_t tagsize) {
# ^
# yamdi.c:1364:61: error: unknown type name 'FILE'
# int analyzeFLVH263VideoPacket(FLV_t *flv, FLVTag_t *flvtag, FILE *fp) {
# ^
# yamdi.c:1417:63: error: unknown type name 'FILE'
# int analyzeFLVScreenVideoPacket(FLV_t *flv, FLVTag_t *flvtag, FILE *fp) {
# ^
# yamdi.c:1432:60: error: unknown type name 'FILE'
# int analyzeFLVVP6VideoPacket(FLV_t *flv, FLVTag_t *flvtag, FILE *fp) {
# ^
# yamdi.c:1495:65: error: unknown type name 'FILE'
# int analyzeFLVVP6AlphaVideoPacket(FLV_t *flv, FLVTag_t *flvtag, FILE *fp) {
# ^
# yamdi.c:1508:61: error: unknown type name 'FILE'
# int analyzeFLVH264VideoPacket(FLV_t *flv, FLVTag_t *flvtag, FILE *fp) {
# ^
# yamdi.c: In function 'writeBufferFLVScriptDataObject':
# yamdi.c:1584:2: warning: implicit declaration of function 'bufferAppendBytes' [-Wimplicit-function-declaration]
# bufferAppendBytes(buffer, &type, 1);
# ^
# yamdi.c: At top level:
# yamdi.c:1589:75: error: unknown type name 'size_t'
# int writeBufferFLVScriptDataECMAArray(buffer_t *buffer, const char *name, size_t len) {
# ^
# yamdi.c:1607:76: error: unknown type name 'size_t'
# int writeBufferFLVScriptDataValueArray(buffer_t *buffer, const char *name, size_t len) {
# ^
# yamdi.c: In function 'writeBufferFLVScriptDataValueString':
# yamdi.c:1651:13: error: 'NULL' undeclared (first use in this function)
# if(name != NULL)
# ^
# yamdi.c: In function 'writeBufferFLVScriptDataValueBool':
# yamdi.c:1665:13: error: 'NULL' undeclared (first use in this function)
# if(name != NULL)
# ^
# yamdi.c: In function 'writeBufferFLVScriptDataValueDouble':
# yamdi.c:1679:13: error: 'NULL' undeclared (first use in this function)
# if(name != NULL)
# ^
# yamdi.c: In function 'writeBufferFLVScriptDataString':
# yamdi.c:1691:2: error: unknown type name 'size_t'
# size_t len;
# ^
# yamdi.c:1694:8: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# len = strlen(s);
# ^
# yamdi.c: In function 'writeBufferFLVScriptDataLongString':
# yamdi.c:1711:2: error: unknown type name 'size_t'
# size_t len;
# ^
# yamdi.c:1714:8: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# len = strlen(s);
# ^
# yamdi.c: At top level:
# yamdi.c:1775:34: error: unknown type name 'off_t'
# int readFLVTag(FLVTag_t *flvtag, off_t offset, FILE *fp) {
# ^
# yamdi.c:1775:48: error: unknown type name 'FILE'
# int readFLVTag(FLVTag_t *flvtag, off_t offset, FILE *fp) {
# ^
# yamdi.c:1830:40: error: unknown type name 'size_t'
# int readFLVTagData(unsigned char *ptr, size_t size, FLVTag_t *flvtag, FILE *stream) {
# ^
# yamdi.c:1830:71: error: unknown type name 'FILE'
# int readFLVTagData(unsigned char *ptr, size_t size, FLVTag_t *flvtag, FILE *stream) {
# ^
# yamdi.c:1838:35: error: unknown type name 'size_t'
# int readBytes(unsigned char *ptr, size_t size, FILE *stream) {
# ^
# yamdi.c:1838:48: error: unknown type name 'FILE'
# int readBytes(unsigned char *ptr, size_t size, FILE *stream) {
# ^
# yamdi.c: In function 'readH264NALUnit':
# yamdi.c:1876:2: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
# bitstream.bytes = (unsigned char *)calloc(1, length - 1);
# ^
# yamdi.c:1876:37: warning: incompatible implicit declaration of built-in function 'calloc' [enabled by default]
# bitstream.bytes = (unsigned char *)calloc(1, length - 1);
# ^
# yamdi.c:1903:2: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(bitstream.bytes);
# ^
# yamdi.c: In function 'readCodedSE':
# yamdi.c:2131:35: error: 'NULL' undeclared (first use in this function)
# codeNum = readCodedUE(bitstream, NULL);
# ^
# yamdi.c: In function 'bufferInit':
# yamdi.c:2177:15: error: 'NULL' undeclared (first use in this function)
# if(buffer == NULL)
# ^
# yamdi.c: In function 'bufferFree':
# yamdi.c:2188:15: error: 'NULL' undeclared (first use in this function)
# if(buffer == NULL)
# ^
# yamdi.c:2192:3: warning: incompatible implicit declaration of built-in function 'free' [enabled by default]
# free(buffer->data);
# ^
# yamdi.c: In function 'bufferReset':
# yamdi.c:2200:15: error: 'NULL' undeclared (first use in this function)
# if(buffer == NULL)
# ^
# yamdi.c: In function 'bufferAppendString':
# yamdi.c:2209:15: error: 'NULL' undeclared (first use in this function)
# if(string == NULL)
# ^
# yamdi.c:2212:40: warning: incompatible implicit declaration of built-in function 'strlen' [enabled by default]
# return bufferAppendBytes(dst, string, strlen((char *)string));
# ^
# yamdi.c: In function 'bufferAppendBuffer':
# yamdi.c:2216:12: error: 'NULL' undeclared (first use in this function)
# if(src == NULL)
# ^
# yamdi.c: At top level:
# yamdi.c:2222:66: error: unknown type name 'size_t'
# int bufferAppendBytes(buffer_t *dst, const unsigned char *bytes, size_t nbytes) {
# ^
# yamdi.c:2261:23: error: unknown type name 'FILE'
# void writeXMLMetadata(FILE *fp, const char *infile, const char *outfile, FLV_t *flv) {
# ^
# yamdi.c: In function 'printUsage':
# yamdi.c:2327:2: warning: incompatible implicit declaration of built-in function 'fprintf' [enabled by default]
# fprintf(stderr, "NAME\n");
# ^
# yamdi.c:2327:10: error: 'stderr' undeclared (first use in this function)
# fprintf(stderr, "NAME\n");
# ^
# make: *** [Makefile:7: yamdi] Error 1
# ==> ERROR: A failure occurred in build().
# Aborting...