>>> Building on exopi-3 under graphics/mpeg-lib DIST = [graphics/mpeg-lib:mpeg_lib-1.3.1.tar.gz] FULLPKGNAME = mpeg-lib-1.3.1p1 distfiles size=152092 >>> Running build in graphics/mpeg-lib at 1735220283.97 ===> graphics/mpeg-lib ===> Building from scratch mpeg-lib-1.3.1p1 ===> Checking files for mpeg-lib-1.3.1p1 `/exopi-cvs/ports/distfiles/mpeg_lib-1.3.1.tar.gz' is up to date. >> (SHA256) all files: OK ===> Extracting for mpeg-lib-1.3.1p1 ===> Patching for mpeg-lib-1.3.1p1 ===> Applying OpenBSD patch patch-24bit_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- 24bit.c.orig 1999-07-23 21:59:25.000000000 -0600 |+++ 24bit.c 2004-06-21 20:01:38.000000000 -0600 -------------------------- Patching file 24bit.c using Plan A... Hunk #1 succeeded at 26. done ===> Applying OpenBSD patch patch-2x2_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- 2x2.c.orig 1999-07-23 22:06:22.000000000 -0600 |+++ 2x2.c 2004-06-21 20:01:38.000000000 -0600 -------------------------- Patching file 2x2.c using Plan A... Hunk #1 succeeded at 21. done ===> Applying OpenBSD patch patch-Makefile_in Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- Makefile.in.orig Thu Nov 26 17:03:29 1998 |+++ Makefile.in Thu Mar 10 21:53:37 2016 -------------------------- Patching file Makefile.in using Plan A... Hunk #1 succeeded at 15. Hunk #2 succeeded at 39. Hunk #3 succeeded at 49. Hunk #4 succeeded at 71. done ===> Applying OpenBSD patch patch-configure Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- configure.orig 1999-08-08 18:36:05.000000000 -0600 |+++ configure 2004-06-21 20:01:38.000000000 -0600 -------------------------- Patching file configure using Plan A... Hunk #1 succeeded at 1285. done ===> Applying OpenBSD patch patch-fs2_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- fs2.c.orig 1999-07-23 21:40:17.000000000 -0600 |+++ fs2.c 2004-06-21 20:01:38.000000000 -0600 -------------------------- Patching file fs2.c using Plan A... Hunk #1 succeeded at 19. done ===> Applying OpenBSD patch patch-fs2fast_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- fs2fast.c.orig 1999-07-23 21:59:24.000000000 -0600 |+++ fs2fast.c 2004-06-21 20:01:38.000000000 -0600 -------------------------- Patching file fs2fast.c using Plan A... Hunk #1 succeeded at 19. done ===> Applying OpenBSD patch patch-fs4_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- fs4.c.orig 1999-07-23 21:59:24.000000000 -0600 |+++ fs4.c 2004-06-21 20:01:38.000000000 -0600 -------------------------- Patching file fs4.c using Plan A... Hunk #1 succeeded at 21. done ===> Applying OpenBSD patch patch-gdith_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- gdith.c.orig 1999-07-23 22:04:42.000000000 -0600 |+++ gdith.c 2004-06-21 20:01:38.000000000 -0600 -------------------------- Patching file gdith.c using Plan A... Hunk #1 succeeded at 21. done ===> Applying OpenBSD patch patch-hybrid_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- hybrid.c.orig 1999-07-23 21:50:51.000000000 -0600 |+++ hybrid.c 2004-06-21 20:01:38.000000000 -0600 -------------------------- Patching file hybrid.c using Plan A... Hunk #1 succeeded at 21. done ===> Applying OpenBSD patch patch-hybriderr_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- hybriderr.c.orig 1999-07-31 18:05:24.000000000 -0600 |+++ hybriderr.c 2004-06-21 20:01:38.000000000 -0600 -------------------------- Patching file hybriderr.c using Plan A... Hunk #1 succeeded at 23. done ===> Applying OpenBSD patch patch-mb_ordered_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- mb_ordered.c.orig 1999-07-23 21:53:08.000000000 -0600 |+++ mb_ordered.c 2004-06-21 20:01:39.000000000 -0600 -------------------------- Patching file mb_ordered.c using Plan A... Hunk #1 succeeded at 21. done ===> Applying OpenBSD patch patch-mono_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- mono.c.orig 1999-07-23 21:59:22.000000000 -0600 |+++ mono.c 2004-06-21 20:01:38.000000000 -0600 -------------------------- Patching file mono.c using Plan A... Hunk #1 succeeded at 24. done ===> Applying OpenBSD patch patch-ordered2_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- ordered2.c.orig 1999-07-23 21:54:01.000000000 -0600 |+++ ordered2.c 2004-06-21 20:01:39.000000000 -0600 -------------------------- Patching file ordered2.c using Plan A... Hunk #1 succeeded at 21. done ===> Applying OpenBSD patch patch-ordered_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- ordered.c.orig 1999-07-23 21:53:40.000000000 -0600 |+++ ordered.c 2004-06-21 20:01:38.000000000 -0600 -------------------------- Patching file ordered.c using Plan A... Hunk #1 succeeded at 21. done ===> Applying OpenBSD patch patch-video_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- video.c.orig 1999-07-23 22:00:51.000000000 -0600 |+++ video.c 2004-06-21 20:01:38.000000000 -0600 -------------------------- Patching file video.c using Plan A... Hunk #1 succeeded at 49. Hunk #2 succeeded at 449. done ===> Applying OpenBSD patch patch-wrapper_c Hmm... Looks like a unified diff to me... The text leading up to this was: -------------------------- |--- wrapper.c.orig 1999-08-08 18:22:14.000000000 -0600 |+++ wrapper.c 2004-06-21 20:01:38.000000000 -0600 -------------------------- Patching file wrapper.c using Plan A... Hunk #1 succeeded at 44. done ===> Compiler link: clang -> /usr/bin/clang ===> Compiler link: clang++ -> /usr/bin/clang++ ===> Compiler link: cc -> /usr/bin/cc ===> Compiler link: c++ -> /usr/bin/c++ ===> Generating configure for mpeg-lib-1.3.1p1 ===> Configuring for mpeg-lib-1.3.1p1 Using /exopi-obj/pobj/mpeg-lib-1.3.1/config.site (generated) loading site script /exopi-obj/pobj/mpeg-lib-1.3.1/config.site creating cache ./config.cache checking for a BSD compatible install... /exopi-obj/pobj/mpeg-lib-1.3.1/bin/install -c checking host system type... x86_64-unknown-openbsd7.6 checking whether byte ordering is bigendian... no checking for gcc... cc checking whether the C compiler (cc -O2 -pipe ) works... yes checking whether the C compiler (cc -O2 -pipe ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether cc accepts -g... (cached) yes checking that "cc -O2 -pipe" is fairly ANSI-compliant... yes checking for ranlib... ranlib checking for ar... ar including dithering code checking how to run the C preprocessor... cc -E checking for ANSI C header files... (cached) yes checking for sys/time.h... (cached) yes checking for unistd.h... (cached) yes checking for netinet/in.h... (cached) yes checking for malloc.h... (cached) no checking whether time.h and sys/time.h may both be included... (cached) yes checking for vprintf... (cached) yes checking for strtod... (cached) yes checking for strtol... (cached) yes checking for random... (cached) yes checking for rand... (cached) yes checking for lrand48... (cached) yes checking for getrusage... (cached) yes updating cache ./config.cache creating ./config.status creating Makefile creating extras/Makefile creating config.h ===> Building for mpeg-lib-1.3.1p1 cc -c -O2 -pipe -I. util.c util.c:142:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int next_bits(num, mask) ^ 1 warning generated. cc -c -O2 -pipe -I. video.c video.c:157:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] NewVidStream(bufLength) ^ video.c:268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DestroyVidStream(astream) ^ video.c:332:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] NewPictImage(width, height) ^ video.c:381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DestroyPictImage(apictimage) ^ video.c:445:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mpegVidRsrc(time_stamp, vid_stream) ^ video.c:665:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseSeqHead(vid_stream) ^ video.c:826:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseGOP(vid_stream) ^ video.c:931:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParsePicture(vid_stream, time_stamp) ^ video.c:1079:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseSlice(vid_stream) ^ video.c:1154:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseMacroBlock(vid_stream) ^ video.c:1475:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReconIMBlock(vid_stream, bnum) ^ video.c:1610:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReconPMBlock(vid_stream, bnum, recon_right_for, recon_down_for, zflag) ^ video.c:2042:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReconBMBlock(vid_stream, bnum, recon_right_back, recon_down_back, zflag) ^ video.c:2468:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReconBiMBlock(vid_stream, bnum, recon_right_for, recon_down_for, ^ video.c:2759:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ProcessSkippedPFrameMBlocks(vid_stream) ^ video.c:2892:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ProcessSkippedBFrameMBlocks(vid_stream) ^ video.c:3220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReconSkippedBlock(source, dest, row, col, row_size, ^ video.c:3390:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DoPictureDisplay(vid_stream) ^ 18 warnings generated. cc -c -O2 -pipe -I. parseblock.c parseblock.c:70:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseReconBlock(n) ^ parseblock.c:363:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseAwayBlock(n) ^ 2 warnings generated. cc -c -O2 -pipe -I. motionvector.c motionvector.c:141:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ComputeForwVector(recon_right_for_ptr, recon_down_for_ptr) ^ motionvector.c:180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ComputeBackVector(recon_right_back_ptr, recon_down_back_ptr) ^ 2 warnings generated. cc -c -O2 -pipe -I. decoders.c decoders.c:668:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] decodeDCTDCSizeLum(value) ^ decoders.c:703:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] decodeDCTDCSizeChrom(value) ^ decoders.c:900:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] decodeDCTCoeffFirst(run, level) ^ decoders.c:930:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] decodeDCTCoeffNext(run, level) ^ 4 warnings generated. cc -c -O2 -pipe -I. jrevdct.c jrevdct.c:160:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] void mpeg_j_rev_dct(); ^ ./proto.h:52:6: note: conflicting prototype is here void mpeg_j_rev_dct (DCTBLOCK data); ^ jrevdct.c:177:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mpeg_j_rev_dct_sparse (data, pos) ^ jrevdct.c:238:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mpeg_j_rev_dct (data) ^ 3 warnings generated. cc -c -O2 -pipe -I. wrapper.c wrapper.c:145:25: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] lum_values = (int *) malloc(LUM_RANGE*sizeof(int)); ^ wrapper.c:145:17: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] lum_values = (int *) malloc(LUM_RANGE*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wrapper.c:146:16: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] cr_values = (int *) malloc(CR_RANGE*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wrapper.c:147:16: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] cb_values = (int *) malloc(CB_RANGE*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wrapper.c:193:4: warning: call to undeclared function 'free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] free (lum_values); ^ wrapper.c:360:16: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] cmap_index = (unsigned char *) Value; ^~~~~~~~~~~~~~~~~~~~~~~ wrapper.c:348:12: warning: enumeration value 'MPEG_QUIET' not handled in switch [-Wswitch] switch (Option) ^~~~~~ 7 warnings generated. cc -c -O2 -pipe -I. globals.c globals.c:120:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_more_data(buf_start, max_length, length_ptr, buf_ptr) ^ globals.c:233:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DoDitherImage(l, Cr, Cb, disp, h, w) ^ 2 warnings generated. cc -c -O2 -pipe -I. 24bit.c 24bit.c:157:23: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Cr_b_tab = (int *)malloc(256*sizeof(int)); ^ 24bit.c:157:16: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] Cr_b_tab = (int *)malloc(256*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24bit.c:158:16: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] Cr_g_tab = (int *)malloc(256*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24bit.c:159:16: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] Cb_g_tab = (int *)malloc(256*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24bit.c:160:16: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] Cb_r_tab = (int *)malloc(256*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24bit.c:207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ColorDitherImage(lum, cr, cb, out, rows, cols) ^ 6 warnings generated. cc -c -O2 -pipe -I. gdith.c gdith.c:170:29: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] *Map = (ColormapEntry *) malloc (*NumColors * sizeof (ColormapEntry)); ^ gdith.c:170:11: warning: cast to 'ColormapEntry *' from smaller integer type 'int' [-Wint-to-pointer-cast] *Map = (ColormapEntry *) malloc (*NumColors * sizeof (ColormapEntry)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gdith.c:212:29: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] *Map = (ColormapEntry *) malloc (*NumColors * sizeof (ColormapEntry)); ^ gdith.c:212:11: warning: cast to 'ColormapEntry *' from smaller integer type 'int' [-Wint-to-pointer-cast] *Map = (ColormapEntry *) malloc (*NumColors * sizeof (ColormapEntry)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. cc -c -O2 -pipe -I. fs2.c fs2.c:117:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FS2DitherImage(lum, cr, cb, disp, rows, cols) ^ fs2.c:132:30: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] cur_row_error = (char *) malloc(cols+2); ^ fs2.c:132:21: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] cur_row_error = (char *) malloc(cols+2); ^~~~~~~~~~~~~~~~~~~~~~~ fs2.c:133:22: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] next_row_error = (char *) malloc(cols+2); ^~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. cc -c -O2 -pipe -I. fs2fast.c fs2fast.c:115:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] FS2FastDitherImage (lum, cr, cb, out, h, w) ^ fs2fast.c:141:23: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] yerr1 = (int *) malloc((w+5)*sizeof(int)); ^ fs2fast.c:141:15: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] yerr1 = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs2fast.c:142:15: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] yerr2 = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs2fast.c:143:15: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] uerr1 = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs2fast.c:144:15: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] uerr2 = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs2fast.c:145:15: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] verr1 = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs2fast.c:146:15: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] verr2 = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 warnings generated. cc -c -O2 -pipe -I. fs4.c fs4.c:117:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] FS4DitherImage(lum, cr, cb, disp, rows, cols) ^ fs4.c:130:30: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] cur_row_error = (char *) malloc(cols+2); ^ fs4.c:130:21: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] cur_row_error = (char *) malloc(cols+2); ^~~~~~~~~~~~~~~~~~~~~~~ fs4.c:131:22: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] next_row_error = (char *) malloc(cols+2); ^~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. cc -c -O2 -pipe -I. hybrid.c hybrid.c:70:46: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] lmark = l_darrays[i] = (unsigned char *) malloc(256); ^ hybrid.c:70:28: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] lmark = l_darrays[i] = (unsigned char *) malloc(256); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hybrid.c:183:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] HybridDitherImage (lum, cr, cb, out, h, w) ^ 3 warnings generated. cc -c -O2 -pipe -I. hybriderr.c hybriderr.c:74:46: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] lmark = l_darrays[i] = (unsigned char *) malloc(256); ^ hybriderr.c:74:28: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] lmark = l_darrays[i] = (unsigned char *) malloc(256); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hybriderr.c:225:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] HybridErrorDitherImage (lum, cr, cb, out, h, w) ^ hybriderr.c:252:27: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] cr_row_errs = (int *) malloc((w+5)*sizeof(int)); ^ hybriderr.c:252:19: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] cr_row_errs = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hybriderr.c:253:19: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] cb_row_errs = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6 warnings generated. cc -c -O2 -pipe -I. 2x2.c 2x2.c:210:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RandInit(h, w) ^ 2x2.c:290:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Twox2DitherImage(lum, cr, cb, out, h, w) ^ 2 warnings generated. cc -c -O2 -pipe -I. gray.c gray.c:47:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] GrayDitherImage(lum, cr, cb, out, h, w) ^ 1 warning generated. cc -c -O2 -pipe -I. mono.c mono.c:73:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] MonoDitherImage(lum, cr, cb, out, h, w) ^ mono.c:91:19: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] curr = (int *)malloc(sizeof(int) * (w + 2)); ^ mono.c:91:12: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] curr = (int *)malloc(sizeof(int) * (w + 2)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mono.c:95:19: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] next = (int *)malloc(sizeof(int) * (w + 2)); ^ mono.c:95:12: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] next = (int *)malloc(sizeof(int) * (w + 2)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mono.c:197:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] MonoThresholdImage(lum, cr, cb, out, h, w) ^ 6 warnings generated. cc -c -O2 -pipe -I. ordered.c ordered.c:67:46: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] lmark = l_darrays[i] = (unsigned char *) malloc(256); ^ ordered.c:67:28: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] lmark = l_darrays[i] = (unsigned char *) malloc(256); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered.c:89:47: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] cmark = cr_darrays[i] = (unsigned char *) malloc(256); ^ ordered.c:89:29: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] cmark = cr_darrays[i] = (unsigned char *) malloc(256); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered.c:111:47: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] cmark = cb_darrays[i] = (unsigned char *) malloc(256); ^ ordered.c:111:29: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] cmark = cb_darrays[i] = (unsigned char *) malloc(256); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered.c:154:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] OrderedDitherImage (lum, cr, cb, out, h, w) ^ 7 warnings generated. cc -c -O2 -pipe -I. ordered2.c ordered2.c:69:35: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] pos_2_cb = (unsigned char ****) malloc (DITH_SIZE*sizeof(unsigned char ***)); ^ ordered2.c:69:14: warning: cast to 'unsigned char ****' from smaller integer type 'int' [-Wint-to-pointer-cast] pos_2_cb = (unsigned char ****) malloc (DITH_SIZE*sizeof(unsigned char ***)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered2.c:70:13: warning: cast to 'unsigned char ***' from smaller integer type 'int' [-Wint-to-pointer-cast] cb_2_cr = (unsigned char ***) malloc(CB_RANGE*sizeof(unsigned char **)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered2.c:71:12: warning: cast to 'unsigned char **' from smaller integer type 'int' [-Wint-to-pointer-cast] cr_2_l = (unsigned char **) malloc(CR_RANGE*sizeof(unsigned char *)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered2.c:75:21: warning: cast to 'unsigned char ***' from smaller integer type 'int' [-Wint-to-pointer-cast] pos_2_cb[pos] = (unsigned char ***) malloc(256*(sizeof(unsigned char **))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered2.c:78:20: warning: cast to 'unsigned char **' from smaller integer type 'int' [-Wint-to-pointer-cast] cb_2_cr[j] = (unsigned char **) malloc(256*(sizeof(unsigned char *))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered2.c:102:14: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] cr_2_l[j] = (unsigned char *) malloc(256*(sizeof(unsigned char))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered2.c:176:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Ordered2DitherImage (lum, cr, cb, out, h, w) ^ 8 warnings generated. cc -c -O2 -pipe -I. mb_ordered.c mb_ordered.c:69:35: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] pos_2_cb = (unsigned char ****) malloc (DITH_SIZE*sizeof(unsigned char ***)); ^ mb_ordered.c:69:14: warning: cast to 'unsigned char ****' from smaller integer type 'int' [-Wint-to-pointer-cast] pos_2_cb = (unsigned char ****) malloc (DITH_SIZE*sizeof(unsigned char ***)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mb_ordered.c:70:13: warning: cast to 'unsigned char ***' from smaller integer type 'int' [-Wint-to-pointer-cast] cb_2_cr = (unsigned char ***) malloc(CB_RANGE*sizeof(unsigned char **)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mb_ordered.c:71:12: warning: cast to 'unsigned char **' from smaller integer type 'int' [-Wint-to-pointer-cast] cr_2_l = (unsigned char **) malloc(CR_RANGE*sizeof(unsigned char *)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mb_ordered.c:75:21: warning: cast to 'unsigned char ***' from smaller integer type 'int' [-Wint-to-pointer-cast] pos_2_cb[pos] = (unsigned char ***) malloc(256*(sizeof(unsigned char **))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mb_ordered.c:78:20: warning: cast to 'unsigned char **' from smaller integer type 'int' [-Wint-to-pointer-cast] cb_2_cr[j] = (unsigned char **) malloc(256*(sizeof(unsigned char *))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mb_ordered.c:102:14: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] cr_2_l[j] = (unsigned char *) malloc(256*(sizeof(unsigned char))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mb_ordered.c:178:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] MBOrderedDitherImage (lum, cr, cb, out, h, w) ^ mb_ordered.c:340:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] MBOrderedDitherDisplayCopy(vid_stream, mb_addr, motion_forw, r_right_forw, ^ 9 warnings generated. ar -ru libmpeg.a util.o video.o parseblock.o motionvector.o decoders.o jrevdct.o wrapper.o globals.o 24bit.o gdith.o fs2.o fs2fast.o fs4.o hybrid.o hybriderr.o 2x2.o gray.o mono.o ordered.o ordered2.o mb_ordered.o ar: warning: creating libmpeg.a ranlib libmpeg.a cc -c -O2 -pipe -I. -fpic util.c -o util.so util.c:142:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] int next_bits(num, mask) ^ 1 warning generated. cc -c -O2 -pipe -I. -fpic video.c -o video.so video.c:157:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] NewVidStream(bufLength) ^ video.c:268:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DestroyVidStream(astream) ^ video.c:332:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] NewPictImage(width, height) ^ video.c:381:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DestroyPictImage(apictimage) ^ video.c:445:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mpegVidRsrc(time_stamp, vid_stream) ^ video.c:665:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseSeqHead(vid_stream) ^ video.c:826:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseGOP(vid_stream) ^ video.c:931:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParsePicture(vid_stream, time_stamp) ^ video.c:1079:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseSlice(vid_stream) ^ video.c:1154:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseMacroBlock(vid_stream) ^ video.c:1475:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReconIMBlock(vid_stream, bnum) ^ video.c:1610:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReconPMBlock(vid_stream, bnum, recon_right_for, recon_down_for, zflag) ^ video.c:2042:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReconBMBlock(vid_stream, bnum, recon_right_back, recon_down_back, zflag) ^ video.c:2468:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReconBiMBlock(vid_stream, bnum, recon_right_for, recon_down_for, ^ video.c:2759:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ProcessSkippedPFrameMBlocks(vid_stream) ^ video.c:2892:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ProcessSkippedBFrameMBlocks(vid_stream) ^ video.c:3220:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReconSkippedBlock(source, dest, row, col, row_size, ^ video.c:3390:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DoPictureDisplay(vid_stream) ^ 18 warnings generated. cc -c -O2 -pipe -I. -fpic parseblock.c -o parseblock.so parseblock.c:70:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseReconBlock(n) ^ parseblock.c:363:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseAwayBlock(n) ^ 2 warnings generated. cc -c -O2 -pipe -I. -fpic motionvector.c -o motionvector.so motionvector.c:141:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ComputeForwVector(recon_right_for_ptr, recon_down_for_ptr) ^ motionvector.c:180:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ComputeBackVector(recon_right_back_ptr, recon_down_back_ptr) ^ 2 warnings generated. cc -c -O2 -pipe -I. -fpic decoders.c -o decoders.so decoders.c:668:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] decodeDCTDCSizeLum(value) ^ decoders.c:703:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] decodeDCTDCSizeChrom(value) ^ decoders.c:900:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] decodeDCTCoeffFirst(run, level) ^ decoders.c:930:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] decodeDCTCoeffNext(run, level) ^ cc -c -O2 -pipe -I. -fpic jrevdct.c -o jrevdct.so 4 warnings generated. jrevdct.c:160:8: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a previous declaration [-Wdeprecated-non-prototype] void mpeg_j_rev_dct(); ^ ./proto.h:52:6: note: conflicting prototype is here void mpeg_j_rev_dct (DCTBLOCK data); ^ jrevdct.c:177:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mpeg_j_rev_dct_sparse (data, pos) ^ jrevdct.c:238:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mpeg_j_rev_dct (data) ^ 3 warnings generated. cc -c -O2 -pipe -I. -fpic wrapper.c -o wrapper.so wrapper.c:145:25: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] lum_values = (int *) malloc(LUM_RANGE*sizeof(int)); ^ wrapper.c:145:17: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] lum_values = (int *) malloc(LUM_RANGE*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wrapper.c:146:16: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] cr_values = (int *) malloc(CR_RANGE*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wrapper.c:147:16: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] cb_values = (int *) malloc(CB_RANGE*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ wrapper.c:193:4: warning: call to undeclared function 'free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] free (lum_values); ^ wrapper.c:360:16: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] cmap_index = (unsigned char *) Value; ^~~~~~~~~~~~~~~~~~~~~~~ wrapper.c:348:12: warning: enumeration value 'MPEG_QUIET' not handled in switch [-Wswitch] switch (Option) ^~~~~~ 7 warnings generated. cc -c -O2 -pipe -I. -fpic globals.c -o globals.so globals.c:120:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] get_more_data(buf_start, max_length, length_ptr, buf_ptr) ^ globals.c:233:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DoDitherImage(l, Cr, Cb, disp, h, w) ^ 2 warnings generated. cc -c -O2 -pipe -I. -fpic 24bit.c -o 24bit.so 24bit.c:157:23: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] Cr_b_tab = (int *)malloc(256*sizeof(int)); ^ 24bit.c:157:16: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] Cr_b_tab = (int *)malloc(256*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24bit.c:158:16: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] Cr_g_tab = (int *)malloc(256*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24bit.c:159:16: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] Cb_g_tab = (int *)malloc(256*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24bit.c:160:16: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] Cb_r_tab = (int *)malloc(256*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 24bit.c:207:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ColorDitherImage(lum, cr, cb, out, rows, cols) ^ 6 warnings generated. cc -c -O2 -pipe -I. -fpic gdith.c -o gdith.so gdith.c:170:29: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] *Map = (ColormapEntry *) malloc (*NumColors * sizeof (ColormapEntry)); ^ gdith.c:170:11: warning: cast to 'ColormapEntry *' from smaller integer type 'int' [-Wint-to-pointer-cast] *Map = (ColormapEntry *) malloc (*NumColors * sizeof (ColormapEntry)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ gdith.c:212:29: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] *Map = (ColormapEntry *) malloc (*NumColors * sizeof (ColormapEntry)); ^ gdith.c:212:11: warning: cast to 'ColormapEntry *' from smaller integer type 'int' [-Wint-to-pointer-cast] *Map = (ColormapEntry *) malloc (*NumColors * sizeof (ColormapEntry)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -c -O2 -pipe -I. -fpic fs2.c -o fs2.so 4 warnings generated. fs2.c:117:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void FS2DitherImage(lum, cr, cb, disp, rows, cols) ^ fs2.c:132:30: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] cur_row_error = (char *) malloc(cols+2); ^ fs2.c:132:21: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] cur_row_error = (char *) malloc(cols+2); ^~~~~~~~~~~~~~~~~~~~~~~ fs2.c:133:22: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] next_row_error = (char *) malloc(cols+2); ^~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. cc -c -O2 -pipe -I. -fpic fs2fast.c -o fs2fast.so fs2fast.c:115:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] FS2FastDitherImage (lum, cr, cb, out, h, w) ^ fs2fast.c:141:23: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] yerr1 = (int *) malloc((w+5)*sizeof(int)); ^ fs2fast.c:141:15: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] yerr1 = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs2fast.c:142:15: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] yerr2 = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs2fast.c:143:15: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] uerr1 = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs2fast.c:144:15: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] uerr2 = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs2fast.c:145:15: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] verr1 = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ fs2fast.c:146:15: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] verr2 = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc -c -O2 -pipe -I. -fpic fs4.c -o fs4.so 8 warnings generated. fs4.c:117:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] FS4DitherImage(lum, cr, cb, disp, rows, cols) ^ fs4.c:130:30: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] cur_row_error = (char *) malloc(cols+2); ^ fs4.c:130:21: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] cur_row_error = (char *) malloc(cols+2); ^~~~~~~~~~~~~~~~~~~~~~~ fs4.c:131:22: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] next_row_error = (char *) malloc(cols+2); ^~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. cc -c -O2 -pipe -I. -fpic hybrid.c -o hybrid.so hybrid.c:70:46: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] lmark = l_darrays[i] = (unsigned char *) malloc(256); ^ hybrid.c:70:28: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] lmark = l_darrays[i] = (unsigned char *) malloc(256); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hybrid.c:183:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] HybridDitherImage (lum, cr, cb, out, h, w) ^ 3 warnings generated. cc -c -O2 -pipe -I. -fpic hybriderr.c -o hybriderr.so hybriderr.c:74:46: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] lmark = l_darrays[i] = (unsigned char *) malloc(256); ^ hybriderr.c:74:28: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] lmark = l_darrays[i] = (unsigned char *) malloc(256); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hybriderr.c:225:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] HybridErrorDitherImage (lum, cr, cb, out, h, w) ^ hybriderr.c:252:27: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] cr_row_errs = (int *) malloc((w+5)*sizeof(int)); ^ hybriderr.c:252:19: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] cr_row_errs = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ hybriderr.c:253:19: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] cb_row_errs = (int *) malloc((w+5)*sizeof(int)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 6 warnings generated. cc -c -O2 -pipe -I. -fpic 2x2.c -o 2x2.so 2x2.c:210:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] void RandInit(h, w) ^ 2x2.c:290:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Twox2DitherImage(lum, cr, cb, out, h, w) ^ 2 warnings generated. cc -c -O2 -pipe -I. -fpic gray.c -o gray.so gray.c:47:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] GrayDitherImage(lum, cr, cb, out, h, w) ^ 1 warning generated. cc -c -O2 -pipe -I. -fpic mono.c -o mono.so mono.c:73:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] MonoDitherImage(lum, cr, cb, out, h, w) ^ mono.c:91:19: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] curr = (int *)malloc(sizeof(int) * (w + 2)); ^ mono.c:91:12: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] curr = (int *)malloc(sizeof(int) * (w + 2)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mono.c:95:19: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] next = (int *)malloc(sizeof(int) * (w + 2)); ^ mono.c:95:12: warning: cast to 'int *' from smaller integer type 'int' [-Wint-to-pointer-cast] next = (int *)malloc(sizeof(int) * (w + 2)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mono.c:197:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] MonoThresholdImage(lum, cr, cb, out, h, w) ^ 6 warnings generated. cc -c -O2 -pipe -I. -fpic ordered.c -o ordered.so ordered.c:67:46: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] lmark = l_darrays[i] = (unsigned char *) malloc(256); ^ ordered.c:67:28: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] lmark = l_darrays[i] = (unsigned char *) malloc(256); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered.c:89:47: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] cmark = cr_darrays[i] = (unsigned char *) malloc(256); ^ ordered.c:89:29: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] cmark = cr_darrays[i] = (unsigned char *) malloc(256); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered.c:111:47: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] cmark = cb_darrays[i] = (unsigned char *) malloc(256); ^ ordered.c:111:29: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] cmark = cb_darrays[i] = (unsigned char *) malloc(256); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered.c:154:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] OrderedDitherImage (lum, cr, cb, out, h, w) ^ 7 warnings generated. cc -c -O2 -pipe -I. -fpic ordered2.c -o ordered2.so ordered2.c:69:35: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] pos_2_cb = (unsigned char ****) malloc (DITH_SIZE*sizeof(unsigned char ***)); ^ ordered2.c:69:14: warning: cast to 'unsigned char ****' from smaller integer type 'int' [-Wint-to-pointer-cast] pos_2_cb = (unsigned char ****) malloc (DITH_SIZE*sizeof(unsigned char ***)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered2.c:70:13: warning: cast to 'unsigned char ***' from smaller integer type 'int' [-Wint-to-pointer-cast] cb_2_cr = (unsigned char ***) malloc(CB_RANGE*sizeof(unsigned char **)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered2.c:71:12: warning: cast to 'unsigned char **' from smaller integer type 'int' [-Wint-to-pointer-cast] cr_2_l = (unsigned char **) malloc(CR_RANGE*sizeof(unsigned char *)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered2.c:75:21: warning: cast to 'unsigned char ***' from smaller integer type 'int' [-Wint-to-pointer-cast] pos_2_cb[pos] = (unsigned char ***) malloc(256*(sizeof(unsigned char **))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered2.c:78:20: warning: cast to 'unsigned char **' from smaller integer type 'int' [-Wint-to-pointer-cast] cb_2_cr[j] = (unsigned char **) malloc(256*(sizeof(unsigned char *))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered2.c:102:14: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] cr_2_l[j] = (unsigned char *) malloc(256*(sizeof(unsigned char))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ordered2.c:176:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Ordered2DitherImage (lum, cr, cb, out, h, w) ^ 8 warnings generated. cc -c -O2 -pipe -I. -fpic mb_ordered.c -o mb_ordered.so mb_ordered.c:69:35: warning: call to undeclared function 'malloc'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] pos_2_cb = (unsigned char ****) malloc (DITH_SIZE*sizeof(unsigned char ***)); ^ mb_ordered.c:69:14: warning: cast to 'unsigned char ****' from smaller integer type 'int' [-Wint-to-pointer-cast] pos_2_cb = (unsigned char ****) malloc (DITH_SIZE*sizeof(unsigned char ***)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mb_ordered.c:70:13: warning: cast to 'unsigned char ***' from smaller integer type 'int' [-Wint-to-pointer-cast] cb_2_cr = (unsigned char ***) malloc(CB_RANGE*sizeof(unsigned char **)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mb_ordered.c:71:12: warning: cast to 'unsigned char **' from smaller integer type 'int' [-Wint-to-pointer-cast] cr_2_l = (unsigned char **) malloc(CR_RANGE*sizeof(unsigned char *)); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mb_ordered.c:75:21: warning: cast to 'unsigned char ***' from smaller integer type 'int' [-Wint-to-pointer-cast] pos_2_cb[pos] = (unsigned char ***) malloc(256*(sizeof(unsigned char **))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mb_ordered.c:78:20: warning: cast to 'unsigned char **' from smaller integer type 'int' [-Wint-to-pointer-cast] cb_2_cr[j] = (unsigned char **) malloc(256*(sizeof(unsigned char *))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mb_ordered.c:102:14: warning: cast to 'unsigned char *' from smaller integer type 'int' [-Wint-to-pointer-cast] cr_2_l[j] = (unsigned char *) malloc(256*(sizeof(unsigned char))); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mb_ordered.c:178:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] MBOrderedDitherImage (lum, cr, cb, out, h, w) ^ mb_ordered.c:340:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] MBOrderedDitherDisplayCopy(vid_stream, mb_addr, motion_forw, r_right_forw, ^ 9 warnings generated. cc -shared -fpic -o libmpeg.so.13.1 util.so video.so parseblock.so motionvector.so decoders.so jrevdct.so wrapper.so globals.so 24bit.so gdith.so fs2.so fs2fast.so fs4.so hybrid.so hybriderr.so 2x2.so gray.so mono.so ordered.so ordered2.so mb_ordered.so (cd extras ; /usr/bin/make mpegtest) cc -c -O2 -pipe -I.. mpegtest.c mpegtest.c mpegtest.c:71:8: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (strlen (msg) > 0) ^ mpegtest.c:71:8: note: include the header or explicitly provide a declaration for 'strlen' mpegtest.c:123:11: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (strncmp (s, Table [i], len) != 0) ^ mpegtest.c:123:11: note: include the header or explicitly provide a declaration for 'strncmp' mpegtest.c:314:40: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] printf ("\nAverage time per frame: %g sec "); ~^ mpegtest.c:316:48: warning: data argument not used by format string [-Wformat-extra-args] printf ("(%g frames/sec)\n", total_time, 1/total_time); ~~~~~~~~~~~~~~~~~~~ ^ 4 warnings generated. mpegtest.c:71:8: warning: call to undeclared library function 'strlen' with type 'unsigned long (const char *)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (strlen (msg) > 0) ^ mpegtest.c:71:8: note: include the header or explicitly provide a declaration for 'strlen' mpegtest.c:123:11: warning: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] if (strncmp (s, Table [i], len) != 0) ^ mpegtest.c:123:11: note: include the header or explicitly provide a declaration for 'strncmp' mpegtest.c:314:40: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] printf ("\nAverage time per frame: %g sec "); ~^ mpegtest.c:316:48: warning: data argument not used by format string [-Wformat-extra-args] printf ("(%g frames/sec)\n", total_time, 1/total_time); ~~~~~~~~~~~~~~~~~~~ ^ 4 warnings generated. cc -c -O2 -pipe -I.. ParseArgv.c ParseArgv.c ParseArgv.c:176:36: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] *((int *) infoPtr->dst) = (int) infoPtr->src; ^~~~~~~~~~~~~~~~~~ ParseArgv.c:179:18: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] nargs = (int) infoPtr->src; ^~~~~~~~~~~~~~~~~~ ParseArgv.c:191:68: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] "expected integer argument for \"%s\" but got \"%s\"", ~^ ParseArgv.c:201:18: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] nargs = (int) infoPtr->src; ^~~~~~~~~~~~~~~~~~ ParseArgv.c:217:18: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] nargs = (int) infoPtr->src; ^~~~~~~~~~~~~~~~~~ ParseArgv.c:313:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintUsage(argTable, flags) ^ ParseArgv.c:372:21: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] nargs = (int) infoPtr->src; ^~~~~~~~~~~~~~~~~~ ParseArgv.c:381:21: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] nargs = (int) infoPtr->src; ^~~~~~~~~~~~~~~~~~ ParseArgv.c:391:21: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] nargs = (int) infoPtr->src; ^~~~~~~~~~~~~~~~~~ ParseArgv.c:401:44: warning: data argument not used by format string [-Wformat-extra-args] FPRINTF(stderr, " \"\"", string); ~~~~~~~ ^ 10 warnings generated. ParseArgv.c:176:36: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] *((int *) infoPtr->dst) = (int) infoPtr->src; ^~~~~~~~~~~~~~~~~~ ParseArgv.c:179:18: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] nargs = (int) infoPtr->src; ^~~~~~~~~~~~~~~~~~ ParseArgv.c:191:68: warning: more '%' conversions than data arguments [-Wformat-insufficient-args] "expected integer argument for \"%s\" but got \"%s\"", ~^ ParseArgv.c:201:18: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] nargs = (int) infoPtr->src; ^~~~~~~~~~~~~~~~~~ ParseArgv.c:217:18: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] nargs = (int) infoPtr->src; ^~~~~~~~~~~~~~~~~~ ParseArgv.c:313:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] PrintUsage(argTable, flags) ^ ParseArgv.c:372:21: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] nargs = (int) infoPtr->src; ^~~~~~~~~~~~~~~~~~ ParseArgv.c:381:21: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] nargs = (int) infoPtr->src; ^~~~~~~~~~~~~~~~~~ ParseArgv.c:391:21: warning: cast to smaller integer type 'int' from 'char *' [-Wpointer-to-int-cast] nargs = (int) infoPtr->src; ^~~~~~~~~~~~~~~~~~ ParseArgv.c:401:44: warning: data argument not used by format string [-Wformat-extra-args] FPRINTF(stderr, " \"\"", string); ~~~~~~~ ^ 10 warnings generated. cc -O2 -pipe mpegtest.o ParseArgv.o -o mpegtest -L.. -lmpeg rm -f mpegtest ln -s extras/mpegtest . >>> Running package in graphics/mpeg-lib at 1735220299.88 ===> graphics/mpeg-lib ===> Faking installation for mpeg-lib-1.3.1p1 /exopi-obj/pobj/mpeg-lib-1.3.1/bin/install -c -m 644 mpeg.h /exopi-obj/pobj/mpeg-lib-1.3.1/fake-amd64/usr/local/include /exopi-obj/pobj/mpeg-lib-1.3.1/bin/install -c -m 644 libmpeg.a /exopi-obj/pobj/mpeg-lib-1.3.1/fake-amd64/usr/local/lib ===> Building package for mpeg-lib-1.3.1p1 Create /exopi-cvs/ports/packages/amd64/all/mpeg-lib-1.3.1p1.tgz Creating package mpeg-lib-1.3.1p1 reading plist| checking dependencies| checksumming| checksumming| | 0% checksumming|****** | 10% checksumming|************ | 20% checksumming|****************** | 30% checksumming|************************ | 40% checksumming|******************************* | 50% checksumming|************************************* | 60% checksumming|******************************************* | 70% checksumming|************************************************* | 80% checksumming|******************************************************* | 90% checksumming|*************************************************************|100% archiving| archiving| | 0% archiving|*************************************** | 61% archiving|*************************************************************** | 99% archiving|****************************************************************|100% Link to /exopi-cvs/ports/packages/amd64/ftp/mpeg-lib-1.3.1p1.tgz >>> Running clean in graphics/mpeg-lib at 1735220302.41 ===> graphics/mpeg-lib ===> Cleaning for mpeg-lib-1.3.1p1 >>> Ended at 1735220303.11 max_stuck=0.87/build=15.89/package=2.51/clean=0.78