=> "/opt/local/bin/bmake" ["-C", "/data/jenkins/workspace/pkgsrc-trunk-x86_64/multimedia/mpeg_encode", "all", "BATCH=1", "DEPENDS_TARGET=/nonexistent"] WARNING: [license.mk] Every package should define a LICENSE. ===> Building for mpeg_encode-1.5bnb7 gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o mfwddct.o mfwddct.c gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o postdct.o postdct.c gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o huff.o huff.c gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o bitio.o bitio.c bitio.c: In function 'Bitio_WriteToSocket': bitio.c:422:22: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration] 422 | nitems = write(socket, buffer, numWords * sizeof(uint32)); | ^~~~~ | fwrite gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o mheaders.o mheaders.c gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o mpeg.o mpeg.c mpeg.c: In function 'SetReferenceFrameType': mpeg.c:251:10: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 251 | if ( strcmp(type, "ORIGINAL") == 0 ) { | ^~~~~~ mpeg.c:152:1: note: include '' or provide a declaration of 'strcmp' 151 | #include +++ |+#include 152 | mpeg.c: In function 'SetBitRateFileName': mpeg.c:266:5: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 266 | strcpy(bitRateFileName, fileName); | ^~~~~~ mpeg.c:266:5: note: include '' or provide a declaration of 'strcpy' mpeg.c:266:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] mpeg.c:266:5: note: include '' or provide a declaration of 'strcpy' mpeg.c: In function 'GenMPEGStream': mpeg.c:604:17: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 604 | if (strlen(userDataFileName) != 0) { | ^~~~~~ mpeg.c:604:17: note: include '' or provide a declaration of 'strlen' mpeg.c:604:17: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] mpeg.c:604:17: note: include '' or provide a declaration of 'strlen' mpeg.c:604:24: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 604 | if (strlen(userDataFileName) != 0) { | ^~~~~~~~~~~~~~~~ | | | unsigned char * mpeg.c:604:24: note: expected 'const char *' but argument is of type 'unsigned char *' mpeg.c:608:20: warning: pointer targets in passing argument 1 of 'stat' differ in signedness [-Wpointer-sign] 608 | stat(userDataFileName,&statbuf); | ^~~~~~~~~~~~~~~~ | | | unsigned char * In file included from /usr/include/sys/stat.h:517, from mpeg.c:151: /usr/include/sys/stat_impl.h:46:17: note: expected 'const char * restrict' but argument is of type 'unsigned char *' 46 | extern int stat(const char *_RESTRICT_KYWD, struct stat *_RESTRICT_KYWD); | ^ mpeg.c:611:31: warning: pointer targets in passing argument 1 of 'fopen' differ in signedness [-Wpointer-sign] 611 | if ((fp = fopen(userDataFileName,"rb")) == NULL) { | ^~~~~~~~~~~~~~~~ | | | unsigned char * In file included from /usr/include/stdio.h:83, from headers/all.h:65, from mpeg.c:133: /usr/include/iso/stdio_iso.h:197:24: note: expected 'const char * restrict' but argument is of type 'unsigned char *' 197 | extern FILE *fopen(const char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ mpeg.c:641:53: warning: pointer targets in passing argument 13 of 'Mhead_GenSequenceHeader' differ in signedness [-Wpointer-sign] 641 | /* user_data */ userData, /* user_data_size */ userDataSize); | ^~~~~~~~ | | | char * In file included from headers/all.h:84: headers/mheaders.h:72:41: note: expected 'uint8 *' {aka 'unsigned char *'} but argument is of type 'char *' 72 | int32 ext_data_size, uint8 *user_data, int32 user_data_size)); | ~~~~~~~^~~~~~~~~ headers/ansi.h:66:26: note: in definition of macro '_ANSI_ARGS_' 66 | #define _ANSI_ARGS_(x) x | ^ mpeg.c:310:26: warning: variable 'res' set but not used [-Wunused-but-set-variable] 310 | int32 bitstreamMode, res; | ^~~ mpeg.c: In function 'SetStatFileName': mpeg.c:781:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 781 | strcpy(statFileName, fileName); | ^~~~~~ mpeg.c:781:5: note: include '' or provide a declaration of 'strcpy' gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o subsample.o subsample.c gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o param.o param.c param.c: In function 'ReadParamFile': param.c:556:9: warning: statement with no effect [-Wunused-value] 556 | log(10.0); | ^~~ param.c:711:16: warning: pointer targets in passing argument 1 of 'strcpy' differ in signedness [-Wpointer-sign] 711 | strcpy(userDataFileName, charPtr); | ^~~~~~~~~~~~~~~~ | | | unsigned char * In file included from /usr/include/string.h:35, from param.c:179: /usr/include/iso/string_iso.h:75:21: note: expected 'char * restrict' but argument is of type 'unsigned char *' 75 | extern char *strcpy(char *_RESTRICT_KYWD, const char *_RESTRICT_KYWD); | ^ mpeg.c: In function 'ReadDecodedRefFrame': mpeg.c:1601:26: warning: '.decoded.' directive writing 9 bytes into a region of size between 1 and 256 [-Wformat-overflow=] 1601 | sprintf(fileName, "%s.decoded.%d", outputFileName, frameNumber); | ^~~~~~~~~ mpeg.c:1601:5: note: 'sprintf' output between 11 and 276 bytes into a destination of size 256 1601 | sprintf(fileName, "%s.decoded.%d", outputFileName, frameNumber); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ param.c: In function 'ReadInputFileNames': param.c:1007:27: warning: '%s' directive writing up to 1023 bytes into a region of size 107 [-Wformat-overflow=] 1007 | sprintf(cdcmd,"cd %s;",currentPath); | ^~ ~~~~~~~~~~~ param.c:1007:9: note: 'sprintf' output between 5 and 1028 bytes into a destination of size 110 1007 | sprintf(cdcmd,"cd %s;",currentPath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ param.c:1012:24: warning: '%s' directive writing up to 299 bytes into a region of size between 189 and 298 [-Wformat-overflow=] 1012 | sprintf(cmd,"(%s %s)", cdcmd, tmp); | ^~ ~~~ param.c:1012:7: note: 'sprintf' output between 4 and 412 bytes into a destination of size 300 1012 | sprintf(cmd,"(%s %s)", cdcmd, tmp); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o rgbtoycc.o rgbtoycc.c gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o readframe.o readframe.c gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o combine.o combine.c readframe.c: In function 'ReadAYUV': readframe.c:828:15: warning: pointer targets in assignment from 'uint8 *' {aka 'unsigned char *'} to 'int8 *' {aka 'char *'} differ in signedness [-Wpointer-sign] 828 | cbptr = &(mf->orig_cb[y>>1][0]); | ^ readframe.c:829:15: warning: pointer targets in assignment from 'uint8 *' {aka 'unsigned char *'} to 'int8 *' {aka 'char *'} differ in signedness [-Wpointer-sign] 829 | crptr = &(mf->orig_cr[y>>1][0]); | ^ gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o jrevdct.o jrevdct.c combine.c: In function 'GOPStoMPEG': combine.c:163:35: warning: '%s' directive writing up to 1023 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] 163 | sprintf(fileName, "%s/%s", currentGOPPath, inputFileName); | ^~ ~~~~~~~~~~~~~ combine.c:163:13: note: 'sprintf' output between 2 and 2048 bytes into a destination of size 1024 163 | sprintf(fileName, "%s/%s", currentGOPPath, inputFileName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ combine.c: In function 'FramesToMPEG': combine.c:313:39: warning: '%s' directive writing up to 1023 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] 313 | sprintf(fileName, "%s/%s", currentFramePath, inputFileName); | ^~ ~~~~~~~~~~~~~ combine.c:313:17: note: 'sprintf' output between 2 and 2048 bytes into a destination of size 1024 313 | sprintf(fileName, "%s/%s", currentFramePath, inputFileName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ combine.c:345:47: warning: '%s' directive writing up to 1023 bytes into a region of size between 0 and 1023 [-Wformat-overflow=] 345 | sprintf(fileName, "%s/%s", currentFramePath, inputFileName); | ^~ ~~~~~~~~~~~~~ combine.c:345:25: note: 'sprintf' output between 2 and 2048 bytes into a destination of size 1024 345 | sprintf(fileName, "%s/%s", currentFramePath, inputFileName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ readframe.c: In function '_ReadFrame': readframe.c:271:35: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] 271 | sprintf(fullFileName, "%s/%s", currentPath, fileName); | ^ readframe.c:271:7: note: 'sprintf' output 2 or more bytes (assuming 1025) into a destination of size 1024 271 | sprintf(fullFileName, "%s/%s", currentPath, fileName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o frame.o frame.c frame.c: In function 'Resize_Array_Width': frame.c:283:14: warning: variable 'pointB' set but not used [-Wunused-but-set-variable] 283 | uint8 pointA,pointB; | ^~~~~~ frame.c:283:7: warning: variable 'pointA' set but not used [-Wunused-but-set-variable] 283 | uint8 pointA,pointB; | ^~~~~~ frame.c: In function 'Resize_Array_Height': frame.c:354:14: warning: variable 'diff' set but not used [-Wunused-but-set-variable] 354 | double slope,diff; | ^~~~ frame.c:354:8: warning: variable 'slope' set but not used [-Wunused-but-set-variable] 354 | double slope,diff; | ^~~~~ frame.c: In function 'GetNumOfFrames': frame.c:800:40: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 800 | for ( idx = 0, bcount = 0; idx < strlen(framePattern); idx++) { | ^~~~~~ frame.c:52:1: note: include '' or provide a declaration of 'strlen' 51 | #include "dct.h" +++ |+#include 52 | frame.c:800:40: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 800 | for ( idx = 0, bcount = 0; idx < strlen(framePattern); idx++) { | ^~~~~~ frame.c:800:40: note: include '' or provide a declaration of 'strlen' readframe.c: In function 'ReadIOConvert': readframe.c:549:33: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] 549 | sprintf(fullFileName, "%s/%s", currentPath, fileName); | ^ readframe.c:549:5: note: 'sprintf' output 2 or more bytes (assuming 1025) into a destination of size 1024 549 | sprintf(fullFileName, "%s/%s", currentPath, fileName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ readframe.c:560:29: warning: '%s' directive writing up to 1023 bytes into a region of size 1017 [-Wformat-overflow=] 560 | sprintf(buff,"fopen \"%s\"",fullFileName); | ^~ ~~~~~~~~~~~~ readframe.c:560:7: note: 'sprintf' output between 9 and 1032 bytes into a destination of size 1024 560 | sprintf(buff,"fopen \"%s\"",fullFileName); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o fsize.o fsize.c gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o frametype.o frametype.c frametype.c: In function 'SetFramePattern': frametype.c:198:15: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 198 | int len = strlen(pattern); | ^~~~~~ frametype.c:49:1: note: include '' or provide a declaration of 'strlen' 48 | #include "param.h" +++ |+#include 49 | frametype.c:198:15: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 198 | int len = strlen(pattern); | ^~~~~~ frametype.c:198:15: note: include '' or provide a declaration of 'strlen' frametype.c: In function 'ComputeFrameTable': frametype.c:269:18: warning: variable 'lastI' set but not used [-Wunused-but-set-variable] 269 | FrameTable *lastI, *lastIP, *firstB, *secondIP; | ^~~~~ gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o libpnmrw.o libpnmrw.c gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o specifics.o specifics.c gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o rate.o rate.c specifics.c: In function 'Parse_Specifics_File_v1': specifics.c:249:7: warning: variable 'num_scanned' set but not used [-Wunused-but-set-variable] 249 | int num_scanned; | ^~~~~~~~~~~ rate.c: In function 'targetRateControl': rate.c:353:9: warning: variable 'strPtr' set but not used [-Wunused-but-set-variable] 353 | char *strPtr; | ^~~~~~ rate.c: In function 'updateRateControl': rate.c:462:9: warning: variable 'strPtr' set but not used [-Wunused-but-set-variable] 462 | char *strPtr; | ^~~~~~ gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o opts.o opts.c gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o iframe.o iframe.c iframe.c: In function 'GenIFrame': iframe.c:556:15: warning: implicit declaration of function 'Mpost_UnQuantZigBlockLaplace'; did you mean 'Mpost_UnQuantZigBlock'? [-Wimplicit-function-declaration] 556 | Mpost_UnQuantZigBlockLaplace(fb[index], dec[index], QScale, TRUE); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Mpost_UnQuantZigBlock opts.c: In function 'SetupWriteDistortions': opts.c:495:29: warning: 'rate' directive writing 4 bytes into a region of size between 1 and 256 [-Wformat-overflow=] 495 | sprintf(scratch, "%srate%d", fname, i); | ^~~~ opts.c:495:26: note: directive argument in the range [1, 31] 495 | sprintf(scratch, "%srate%d", fname, i); | ^~~~~~~~~~ opts.c:495:9: note: 'sprintf' output between 6 and 262 bytes into a destination of size 256 495 | sprintf(scratch, "%srate%d", fname, i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ opts.c:497:29: warning: 'dist' directive writing 4 bytes into a region of size between 1 and 256 [-Wformat-overflow=] 497 | sprintf(scratch, "%sdist%d", fname, i); | ^~~~ opts.c:497:26: note: directive argument in the range [1, 31] 497 | sprintf(scratch, "%sdist%d", fname, i); | ^~~~~~~~~~ opts.c:497:9: note: 'sprintf' output between 6 and 262 bytes into a destination of size 256 497 | sprintf(scratch, "%sdist%d", fname, i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o pframe.o pframe.c iframe.c: In function 'WriteDecodedFrame': iframe.c:965:26: warning: '.decoded.' directive writing 9 bytes into a region of size between 1 and 256 [-Wformat-overflow=] 965 | sprintf(fileName, "%s.decoded.%d", outputFileName, frame->id); | ^~~~~~~~~ iframe.c:965:5: note: 'sprintf' output between 11 and 276 bytes into a destination of size 256 965 | sprintf(fileName, "%s.decoded.%d", outputFileName, frame->id); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o bframe.o bframe.c gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o psearch.o psearch.c psearch.c: In function 'SetPixelSearch': psearch.c:199:11: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 199 | if ( (strcmp(searchType, "FULL") == 0 ) || ( strcmp(searchType, "WHOLE") == 0 )) { | ^~~~~~ psearch.c:87:1: note: include '' or provide a declaration of 'strcmp' 86 | #include "param.h" +++ |+#include 87 | psearch.c: In function 'SetSearchRange': psearch.c:296:27: warning: self-comparison always evaluates to false [-Wtautological-compare] 296 | : ((searchRangeB>searchRangeB)?searchRangeB:searchRangeB); | ^ bframe.c: In function 'GenBFrame': bframe.c:546:9: warning: label 'skip_block' defined but not used [-Wunused-label] 546 | skip_block: | ^~~~~~~~~~ gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o bsearch.o bsearch.c gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o block.o block.c bsearch.c: In function 'SetBSearchAlg': bsearch.c:150:10: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 150 | if ( strcmp(alg, "SIMPLE") == 0 ) { | ^~~~~~ bsearch.c:83:1: note: include '' or provide a declaration of 'strcmp' 82 | #include "fsize.h" +++ |+#include 83 | gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o parallel.o parallel.c gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o jpeg.o jpeg.c parallel.c: In function 'StartMasterServer': parallel.c:824:11: warning: variable 'finished' set but not used [-Wunused-but-set-variable] 824 | boolean finished[MAX_MACHINES]; | ^~~~~~~~ parallel.c:819:13: warning: variable 'framesPerMachine' set but not used [-Wunused-but-set-variable] 819 | int framesPerMachine; | ^~~~~~~~~~~~~~~~ parallel.c: In function 'StartDecodeServer': parallel.c:1307:12: warning: variable 'ready' set but not used [-Wunused-but-set-variable] 1307 | boolean *ready; | ^~~~~ jpeg.c: In function 'ReadJPEG': jpeg.c:588:7: warning: implicit declaration of function 'jcopy_sample_rows' [-Wimplicit-function-declaration] 588 | jcopy_sample_rows(scanarray[ci],0,(JSAMPARRAY)(orig[ci]), | ^~~~~~~~~~~~~~~~~ gcc -Iheaders -O -Wall -Wmissing-prototypes -I/opt/local/include -I/usr/include -c -o main.o main.c main.c: In function 'main': main.c:212:5: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 212 | strcpy(encoder_name, argv[0]); | ^~~~~~ main.c:132:1: note: include '' or provide a declaration of 'strcpy' 131 | #include "opts.h" +++ |+#include 132 | #include main.c:212:5: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] 212 | strcpy(encoder_name, argv[0]); | ^~~~~~ main.c:212:5: note: include '' or provide a declaration of 'strcpy' main.c:231:14: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 231 | if ( strcmp(argv[idx], "-stat") == 0 ) { | ^~~~~~ main.c:231:14: note: include '' or provide a declaration of 'strcmp' jpeg.c:509:19: warning: 'h_samp' may be used uninitialized [-Wmaybe-uninitialized] 509 | temp_h = (h_samp[0]' or provide a declaration of 'exit' 43 | #include "ansi.h" +++ |+#include 44 | ppmtoeyuv.c:73:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 73 | exit(1); | ^~~~ ppmtoeyuv.c:73:9: note: include '' or provide a declaration of 'exit' ppmtoeyuv.c: In function 'ReadPPM': ppmtoeyuv.c:92:10: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 92 | if ( strncmp(input, "P6", 2) != 0 ) /* magic number */ | ^~~~~~~ ppmtoeyuv.c:44:1: note: include '' or provide a declaration of 'strncmp' 43 | #include "ansi.h" +++ |+#include 44 | ppmtoeyuv.c:92:31: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 92 | if ( strncmp(input, "P6", 2) != 0 ) /* magic number */ | ^ : note: built-in 'strncmp' declared here ppmtoeyuv.c:111:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 111 | exit(1); | ^~~~ ppmtoeyuv.c:111:9: note: include '' or provide a declaration of 'exit' ppmtoeyuv.c:114:27: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 114 | ppm_data = (uint8 **) malloc(sizeof(uint8 *) * height); | ^~~~~~ ppmtoeyuv.c:114:27: note: include '' or provide a declaration of 'malloc' ppmtoeyuv.c:114:27: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] ppmtoeyuv.c:114:27: note: include '' or provide a declaration of 'malloc' ppmtoeyuv.c: In function 'ReadNextInteger': ppmtoeyuv.c:145:14: warning: implicit declaration of function 'isspace' [-Wimplicit-function-declaration] 145 | if ( isspace(input[0]) ) | ^~~~~~~ ppmtoeyuv.c:44:1: note: include '' or provide a declaration of 'isspace' 43 | #include "ansi.h" +++ |+#include 44 | ppmtoeyuv.c:170:16: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 170 | return atoi(input); | ^~~~ ppmtoeyuv.c: In function 'PPMtoYUV': ppmtoeyuv.c:224:25: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 224 | orig_y = (uint8 **) malloc(sizeof(uint8 *) * height); | ^~~~~~ ppmtoeyuv.c:224:25: note: include '' or provide a declaration of 'malloc' gcc -O -g -Wall -W -Wreturn-type -Wunused -Wmissing-prototypes -I/opt/local/include -I/usr/include -lsocket -lnsl -L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 eyuvtoppm.c -o eyuvtoppm eyuvtoppm.c:45:9: warning: return type of 'main' is not 'int' [-Wmain] 45 | void main(int argc, char **argv) | ^~~~ eyuvtoppm.c: In function 'main': eyuvtoppm.c:50:10: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 50 | if ((strcmp(argv[1],"-?") == 0) || | ^~~~~~ eyuvtoppm.c:27:1: note: include '' or provide a declaration of 'strcmp' 26 | #include +++ |+#include 27 | eyuvtoppm.c:61:7: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 61 | strcpy(src, argv[1]); | ^~~~~~ eyuvtoppm.c:61:7: note: include '' or provide a declaration of 'strcpy' eyuvtoppm.c:61:7: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] eyuvtoppm.c:61:7: note: include '' or provide a declaration of 'strcpy' gcc -O -g -Wall -W -Wreturn-type -Wunused -Wmissing-prototypes -I/opt/local/include -I/usr/include -lsocket -lnsl -L/opt/local/lib -Wl,-R/opt/local/lib -L/usr/lib/amd64 -Wl,-R/usr/lib/amd64 eyuvtojpeg.c -o eyuvtojpeg eyuvtojpeg.c: In function 'main': eyuvtojpeg.c:53:10: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 53 | if ((strcmp(argv[1],"-?") == 0) || | ^~~~~~ eyuvtojpeg.c:28:1: note: include '' or provide a declaration of 'strcmp' 27 | #include +++ |+#include 28 | eyuvtojpeg.c:64:7: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 64 | strcpy(src, argv[1]); | ^~~~~~ eyuvtojpeg.c:64:7: note: include '' or provide a declaration of 'strcpy' eyuvtojpeg.c:64:7: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] eyuvtojpeg.c:64:7: note: include '' or provide a declaration of 'strcpy' eyuvtojpeg.c:102:26: warning: '.tmp' directive writing 4 bytes into a region of size between 1 and 4096 [-Wformat-overflow=] 102 | sprintf(tempfile, "%s.tmp", dest); | ^~~~ eyuvtojpeg.c:102:5: note: 'sprintf' output between 5 and 4100 bytes into a destination of size 4096 102 | sprintf(tempfile, "%s.tmp", dest); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ eyuvtojpeg.c:108:29: warning: '%s' directive writing up to 4095 bytes into a region of size 4090 [-Wformat-overflow=] 108 | sprintf(command, "cjpeg %s > %s", tempfile, dest); | ^~ ~~~~~~~~ eyuvtojpeg.c:108:5: note: 'sprintf' output between 10 and 8200 bytes into a destination of size 4096 108 | sprintf(command, "cjpeg %s > %s", tempfile, dest); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -o jmovie2jpeg jmovie2jpeg.c jmovie2jpeg.c:39:1: warning: return type defaults to 'int' [-Wimplicit-int] 39 | usage (p) | ^~~~~ jmovie2jpeg.c: In function 'usage': jmovie2jpeg.c:44:5: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 44 | exit (1); | ^~~~ jmovie2jpeg.c:36:1: note: include '' or provide a declaration of 'exit' 35 | #include +++ |+#include 36 | jmovie2jpeg.c:44:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 44 | exit (1); | ^~~~ jmovie2jpeg.c:44:5: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c: At top level: jmovie2jpeg.c:47:1: warning: return type defaults to 'int' [-Wimplicit-int] 47 | main (argc, argv) | ^~~~ jmovie2jpeg.c: In function 'main': jmovie2jpeg.c:56:18: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 56 | extern char *malloc(); | ^~~~~~ jmovie2jpeg.c:56:18: note: 'malloc' is declared in header '' jmovie2jpeg.c:174:13: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 174 | start = atoi(argv[3]); | ^~~~ jmovie2jpeg.c:181:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 181 | exit(1); | ^~~~ jmovie2jpeg.c:181:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:187:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 187 | exit(1); | ^~~~ jmovie2jpeg.c:187:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:195:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 195 | exit (1); | ^~~~ jmovie2jpeg.c:195:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:209:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 209 | exit(1); | ^~~~ jmovie2jpeg.c:209:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:214:8: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 214 | exit(1); | ^~~~ jmovie2jpeg.c:214:8: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:219:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 219 | exit(1); | ^~~~ jmovie2jpeg.c:219:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:225:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 225 | exit(1); | ^~~~ jmovie2jpeg.c:225:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:234:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 234 | exit(1); | ^~~~ jmovie2jpeg.c:234:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:243:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 243 | exit(1); | ^~~~ jmovie2jpeg.c:243:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:252:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 252 | exit(1); | ^~~~ jmovie2jpeg.c:252:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:259:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 259 | exit(1); | ^~~~ jmovie2jpeg.c:259:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:280:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 280 | exit(1); | ^~~~ jmovie2jpeg.c:280:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:286:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 286 | exit(1); | ^~~~ jmovie2jpeg.c:286:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:291:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 291 | exit(1); | ^~~~ jmovie2jpeg.c:291:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:296:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 296 | exit(1); | ^~~~ jmovie2jpeg.c:296:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:303:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 303 | exit(1); | ^~~~ jmovie2jpeg.c:303:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:310:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 310 | exit(1); | ^~~~ jmovie2jpeg.c:310:9: note: include '' or provide a declaration of 'exit' jmovie2jpeg.c:350:9: warning: implicit declaration of function 'lseek'; did you mean 'fseek'? [-Wimplicit-function-declaration] 350 | lseek(fd, inoffsets[i-1],0); | ^~~~~ | fseek jmovie2jpeg.c:352:9: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 352 | read(fd, &(op_code), 1); | ^~~~ | fread jmovie2jpeg.c:370:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 370 | free(inoffsets); | ^~~~ jmovie2jpeg.c:370:5: note: include '' or provide a declaration of 'free' jmovie2jpeg.c:370:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] jmovie2jpeg.c:370:5: note: include '' or provide a declaration of 'free' gcc -O -o mpeg_demux mpeg_demux.c mpeg_demux.c:112:1: warning: return type defaults to 'int' [-Wimplicit-int] 112 | main(int argc, char **argv) | ^~~~