+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/fbm-1.2/work.log + su pbulk -c '"$@"' make /opt/local/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/fbm-1.2/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for fbm-1.2 gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flalfb.c In file included from flalfb.c:34: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flalfb.c:47:1: warning: return type defaults to 'int' [-Wimplicit-int] 47 | alloc_fbm (image) | ^~~~~~~~~ flalfb.c: In function 'alloc_fbm': flalfb.c:51:9: warning: implicit declaration of function 'free_fbm' [-Wimplicit-function-declaration] 51 | if (! free_fbm (image)) return (0); | ^~~~~~~~ flalfb.c:59:27: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 59 | { perror ("alloc_fbm"); exit (1); } | ^~~~ flalfb.c:35:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 34 | # include "fbm.h" +++ |+#include <stdlib.h> 35 | flalfb.c:59:27: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 59 | { perror ("alloc_fbm"); exit (1); } | ^~~~ flalfb.c:59:27: note: include '<stdlib.h>' or provide a declaration of 'exit' flalfb.c: At top level: flalfb.c:68:1: warning: return type defaults to 'int' [-Wimplicit-int] 68 | free_fbm (image) | ^~~~~~~~ flalfb.c: In function 'free_fbm': flalfb.c:72:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 72 | { free ((char *) image->bm); image->bm = (unsigned char *) NULL; } | ^~~~ flalfb.c:72:5: note: include '<stdlib.h>' or provide a declaration of 'free' flalfb.c:72:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] flalfb.c:72:5: note: include '<stdlib.h>' or provide a declaration of 'free' flalfb.c:75:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 75 | { free ((char *) image->cm); image->cm = (unsigned char *) NULL; } | ^~~~ flalfb.c:75:5: note: include '<stdlib.h>' or provide a declaration of 'free' gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flblue.c In file included from flblue.c:36: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flblue.c:57:1: warning: return type defaults to 'int' [-Wimplicit-int] 57 | bluenoise_fbm (input, output, noiselevel) | ^~~~~~~~~~~~~ flblue.c: In function 'bluenoise_fbm': flblue.c:74:3: warning: implicit declaration of function 'free_fbm' [-Wimplicit-function-declaration] 74 | free_fbm (output); | ^~~~~~~~ flblue.c:81:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 81 | alloc_fbm (output); | ^~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flbyte.c In file included from flbyte.c:41: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flbyte.c:79:1: warning: return type defaults to 'int' [-Wimplicit-int] 79 | put_long (word, file, order) | ^~~~~~~~ flbyte.c:102:1: warning: return type defaults to 'int' [-Wimplicit-int] 102 | get_short (file, order) | ^~~~~~~~~ flbyte.c:123:1: warning: return type defaults to 'int' [-Wimplicit-int] 123 | put_short (word, file, order) | ^~~~~~~~~ flbyte.c:142:1: warning: return type defaults to 'int' [-Wimplicit-int] 142 | machine_byte_order () | ^~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flcavg.c In file included from flcavg.c:36: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flcavg.c:51:1: warning: return type defaults to 'int' [-Wimplicit-int] 51 | constravg_fbm (input, output, gamma) | ^~~~~~~~~~~~~ flcavg.c: In function 'constravg_fbm': flcavg.c:72:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 72 | alloc_fbm (output); | ^~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flclr.c In file included from flclr.c:32: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flclr.c:45:1: warning: return type defaults to 'int' [-Wimplicit-int] 45 | clr2gray (input, output, rw, gw, bw) | ^~~~~~~~ flclr.c: In function 'clr2gray': flclr.c:77:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 77 | alloc_fbm (output); | ^~~~~~~~~ flclr.c: At top level: flclr.c:143:1: warning: return type defaults to 'int' [-Wimplicit-int] 143 | gray2clr (input, output, sun_map) | ^~~~~~~~ flclr.c:218:1: warning: return type defaults to 'int' [-Wimplicit-int] 218 | clr_unmap (input, output) | ^~~~~~~~~ flclr.c:289:1: warning: return type defaults to 'int' [-Wimplicit-int] 289 | copy_clr (input, output) | ^~~~~~~~ flclr.c: In function 'copy_clr': flclr.c:295:33: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 295 | { if (output->hdr.clrlen > 0) free (output->cm); | ^~~~ flclr.c:33:1: note: include '<stdlib.h>' or provide a declaration of 'free' 32 | # include "fbm.h" +++ |+#include <stdlib.h> 33 | flclr.c:295:33: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 295 | { if (output->hdr.clrlen > 0) free (output->cm); | ^~~~ flclr.c:295:33: note: include '<stdlib.h>' or provide a declaration of 'free' gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c fledge.c In file included from fledge.c:34: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** fledge.c:47:1: warning: return type defaults to 'int' [-Wimplicit-int] 47 | findedge_fbm (input, output, beta) | ^~~~~~~~~~~~ fledge.c: In function 'findedge_fbm': fledge.c:52:13: warning: implicit declaration of function 'findedge_bw'; did you mean 'findedge_fbm'? [-Wimplicit-function-declaration] 52 | { return (findedge_bw (input, output, beta)); } | ^~~~~~~~~~~ | findedge_fbm fledge.c: At top level: fledge.c:61:1: warning: return type defaults to 'int' [-Wimplicit-int] 61 | findedge_bw (input, output, beta) | ^~~~~~~~~~~ fledge.c: In function 'findedge_bw': fledge.c:87:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 87 | alloc_fbm (output); | ^~~~~~~~~ fledge.c: At top level: fledge.c:284:1: warning: return type defaults to 'int' [-Wimplicit-int] 284 | findedge_clr (input, output, beta) | ^~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flextr.c In file included from flextr.c:36: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flextr.c:49:1: warning: return type defaults to 'int' [-Wimplicit-int] 49 | extract_fbm (input, output, xo, yo, w, h, ow, oh, title, credits) | ^~~~~~~~~~~ flextr.c: In function 'extract_fbm': fbm.h:30:33: warning: 'strncpy' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 30 | # define FBM_MAX_TITLE 80 /* For title and credits */ | ^~ flextr.c:105:51: note: in expansion of macro 'FBM_MAX_TITLE' 105 | { strncpy (output->hdr.title, input->hdr.title, FBM_MAX_TITLE); } | ^~~~~~~~~~~~~ fbm.h:114:7: note: built-in 'strncpy' declared here 114 | char *strncpy(); | ^~~~~~~ fbm.h:30:33: warning: 'strncpy' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 30 | # define FBM_MAX_TITLE 80 /* For title and credits */ | ^~ flextr.c:110:55: note: in expansion of macro 'FBM_MAX_TITLE' 110 | { strncpy (output->hdr.credits, input->hdr.credits, FBM_MAX_TITLE); } | ^~~~~~~~~~~~~ fbm.h:114:7: note: built-in 'strncpy' declared here 114 | char *strncpy(); | ^~~~~~~ flextr.c:115:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 115 | alloc_fbm (output); | ^~~~~~~~~ flextr.c:117:3: warning: implicit declaration of function 'copy_clr' [-Wimplicit-function-declaration] 117 | copy_clr (input, output); | ^~~~~~~~ flextr.c:129:11: warning: implicit declaration of function 'extract_one'; did you mean 'extract_fbm'? [-Wimplicit-function-declaration] 129 | { if (! extract_one (&(input->bm[k * input->hdr.plnlen]), | ^~~~~~~~~~~ | extract_fbm flextr.c:134:7: warning: implicit declaration of function 'free_fbm' [-Wimplicit-function-declaration] 134 | { free_fbm (output); return (0); } | ^~~~~~~~ flextr.c: At top level: flextr.c:145:1: warning: return type defaults to 'int' [-Wimplicit-int] 145 | extract_one (inbm, outbm, cols, rows, inlen, outlen, xo, yo, w, h, ow, oh) | ^~~~~~~~~~~ flextr.c: In function 'extract_one': flextr.c:145:1: warning: type of 'cols' defaults to 'int' [-Wimplicit-int] flextr.c:145:1: warning: type of 'rows' defaults to 'int' [-Wimplicit-int] flextr.c:179:18: warning: type defaults to 'int' in declaration of 'cntr' [-Wimplicit-int] 179 | { static cntr = 0; | ^~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flface.c In file included from flface.c:35: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flface.c:47:1: warning: return type defaults to 'int' [-Wimplicit-int] 47 | write_face (image, stream) | ^~~~~~~~~~ flface.c: In function 'write_face': flface.c:56:3: warning: implicit declaration of function 'put_short'; did you mean 'get_short'? [-Wimplicit-function-declaration] 56 | put_short (BM_MAGIC, stream, BIG); | ^~~~~~~~~ | get_short flface.c: At top level: flface.c:82:1: warning: return type defaults to 'int' [-Wimplicit-int] 82 | read_face (image, rfile, mstr, mlen) | ^~~~~~~~~ flface.c: In function 'read_face': flface.c:125:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 125 | alloc_fbm (image); | ^~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flflyd.c In file included from flflyd.c:36: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flflyd.c:55:1: warning: return type defaults to 'int' [-Wimplicit-int] 55 | floyd_fbm (input, output) | ^~~~~~~~~ flflyd.c: In function 'floyd_fbm': flflyd.c:70:3: warning: implicit declaration of function 'free_fbm' [-Wimplicit-function-declaration] 70 | free_fbm (output); | ^~~~~~~~ flflyd.c:77:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 77 | alloc_fbm (output); | ^~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flgifc.c flgifc.c:162:9: warning: type defaults to 'int' in declaration of 'output' [-Wimplicit-int] 162 | static output(), cl_block(), cl_hash(), writeerr(), char_init(), char_out(), | ^~~~~~ flgifc.c:162:19: warning: type defaults to 'int' in declaration of 'cl_block' [-Wimplicit-int] 162 | static output(), cl_block(), cl_hash(), writeerr(), char_init(), char_out(), | ^~~~~~~~ flgifc.c:162:31: warning: type defaults to 'int' in declaration of 'cl_hash' [-Wimplicit-int] 162 | static output(), cl_block(), cl_hash(), writeerr(), char_init(), char_out(), | ^~~~~~~ flgifc.c:162:42: warning: type defaults to 'int' in declaration of 'writeerr' [-Wimplicit-int] 162 | static output(), cl_block(), cl_hash(), writeerr(), char_init(), char_out(), | ^~~~~~~~ flgifc.c:162:54: warning: type defaults to 'int' in declaration of 'char_init' [-Wimplicit-int] 162 | static output(), cl_block(), cl_hash(), writeerr(), char_init(), char_out(), | ^~~~~~~~~ flgifc.c:162:67: warning: type defaults to 'int' in declaration of 'char_out' [-Wimplicit-int] 162 | static output(), cl_block(), cl_hash(), writeerr(), char_init(), char_out(), | ^~~~~~~~ flgifc.c:163:9: warning: type defaults to 'int' in declaration of 'flush_char' [-Wimplicit-int] 163 | flush_char(); | ^~~~~~~~~~ flgifc.c: In function 'compress': flgifc.c:202:11: warning: implicit declaration of function 'GIFNextPixel' [-Wimplicit-function-declaration] 202 | ent = GIFNextPixel( ReadValue ); | ^~~~~~~~~~~~ flgifc.c: At top level: flgifc.c:294:1: warning: return type defaults to 'int' [-Wimplicit-int] 294 | output( code ) | ^~~~~~ flgifc.c:356:1: warning: return type defaults to 'int' [-Wimplicit-int] 356 | cl_block () /* table clear for block compress */ | ^~~~~~~~ flgifc.c:367:1: warning: return type defaults to 'int' [-Wimplicit-int] 367 | cl_hash(hsize) /* reset code table */ | ^~~~~~~ flgifc.c:402:1: warning: return type defaults to 'int' [-Wimplicit-int] 402 | writeerr() | ^~~~~~~~ flgifc.c: In function 'writeerr': flgifc.c:405:9: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 405 | exit(1); | ^~~~ flgifc.c:96:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 95 | #include <signal.h> +++ |+#include <stdlib.h> 96 | flgifc.c:405:9: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 405 | exit(1); | ^~~~ flgifc.c:405:9: note: include '<stdlib.h>' or provide a declaration of 'exit' flgifc.c: At top level: flgifc.c:423:1: warning: return type defaults to 'int' [-Wimplicit-int] 423 | char_init() | ^~~~~~~~~ flgifc.c:438:1: warning: return type defaults to 'int' [-Wimplicit-int] 438 | char_out( c ) | ^~~~~~~~ flgifc.c:450:1: warning: return type defaults to 'int' [-Wimplicit-int] 450 | flush_char() | ^~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flgife.c flgife.c:52:8: warning: type defaults to 'int' in declaration of 'Putword' [-Wimplicit-int] 52 | static Putword(); | ^~~~~~~ flgife.c:66:1: warning: return type defaults to 'int' [-Wimplicit-int] 66 | BumpPixel() | ^~~~~~~~~ flgife.c:121:1: warning: return type defaults to 'int' [-Wimplicit-int] 121 | GIFNextPixel( getpixel ) | ^~~~~~~~~~~~ flgife.c:140:1: warning: return type defaults to 'int' [-Wimplicit-int] 140 | GIFEncode( wfile, GWidth, GHeight, GInterlace, Background, | ^~~~~~~~~ flgife.c:310:1: warning: return type defaults to 'int' [-Wimplicit-int] 310 | Putword( w, fp ) | ^~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flgifr.c In file included from flgifr.c:46: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flgifr.c:80:1: warning: return type defaults to 'int' [-Wimplicit-int] 80 | read_gif (image, fd, mstr, mlen) | ^~~~~~~~ flgifr.c: In function 'read_gif': flgifr.c:102:7: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 102 | if (strcmp (buf, GIF_MAGIC) != 0) | ^~~~~~ flgifr.c:47:1: note: include '<string.h>' or provide a declaration of 'strcmp' 46 | # include "fbm.h" +++ |+#include <string.h> 47 | flgifr.c:154:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 154 | alloc_fbm (image); | ^~~~~~~~~ flgifr.c:158:9: warning: implicit declaration of function 'ReadColorMap' [-Wimplicit-function-declaration] 158 | { if (ReadColorMap (fd, colors, image->cm) == BAD) | ^~~~~~~~~~~~ flgifr.c:172:11: warning: implicit declaration of function 'IgnoreExtention' [-Wimplicit-function-declaration] 172 | if (IgnoreExtention(fd) == BAD) | ^~~~~~~~~~~~~~~ flgifr.c:70:33: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 70 | #define HardFail(str,status) exit ((fprintf(stderr,str), status)) | ^~~~ flgifr.c:182:7: note: in expansion of macro 'HardFail' 182 | HardFail("This file contains more than one image! FAILING\n", 1); | ^~~~~~~~ flgifr.c:47:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 46 | # include "fbm.h" +++ |+#include <stdlib.h> 47 | flgifr.c:70:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 70 | #define HardFail(str,status) exit ((fprintf(stderr,str), status)) | ^~~~ flgifr.c:182:7: note: in expansion of macro 'HardFail' 182 | HardFail("This file contains more than one image! FAILING\n", 1); | ^~~~~~~~ flgifr.c:70:33: note: include '<stdlib.h>' or provide a declaration of 'exit' 70 | #define HardFail(str,status) exit ((fprintf(stderr,str), status)) | ^~~~ flgifr.c:182:7: note: in expansion of macro 'HardFail' 182 | HardFail("This file contains more than one image! FAILING\n", 1); | ^~~~~~~~ flgifr.c:70:33: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 70 | #define HardFail(str,status) exit ((fprintf(stderr,str), status)) | ^~~~ flgifr.c:202:7: note: in expansion of macro 'HardFail' 202 | { HardFail ("Local colormap has more colors than global!\n", BAD); } | ^~~~~~~~ flgifr.c:70:33: note: include '<stdlib.h>' or provide a declaration of 'exit' 70 | #define HardFail(str,status) exit ((fprintf(stderr,str), status)) | ^~~~ flgifr.c:202:7: note: in expansion of macro 'HardFail' 202 | { HardFail ("Local colormap has more colors than global!\n", BAD); } | ^~~~~~~~ flgifr.c:230:11: warning: implicit declaration of function 'ReadInterlaced' [-Wimplicit-function-declaration] 230 | if (ReadInterlaced(fd, | ^~~~~~~~~~~~~~ flgifr.c:238:11: warning: implicit declaration of function 'ReadRaster' [-Wimplicit-function-declaration] 238 | { if (ReadRaster(fd, | ^~~~~~~~~~ flgifr.c: At top level: flgifr.c:250:1: warning: return type defaults to 'int' [-Wimplicit-int] 250 | ReadColorMap (fd, number, buffer) | ^~~~~~~~~~~~ flgifr.c:274:1: warning: return type defaults to 'int' [-Wimplicit-int] 274 | IgnoreExtention(fd) | ^~~~~~~~~~~~~~~ flgifr.c: In function 'IgnoreExtention': flgifr.c:288:9: warning: implicit declaration of function 'read'; did you mean 'fread'? [-Wimplicit-function-declaration] 288 | if (read(fd, buf, (int) c) != (int) c) | ^~~~ | fread flgifr.c: At top level: flgifr.c:293:1: warning: return type defaults to 'int' [-Wimplicit-int] 293 | GetCode(fd, code_size, flag) | ^~~~~~~ flgifr.c:343:1: warning: return type defaults to 'int' [-Wimplicit-int] 343 | LWZReadByte(fd, flag, input_code_size) | ^~~~~~~~~~~ flgifr.c:466:1: warning: return type defaults to 'int' [-Wimplicit-int] 466 | ReadInterlaced(fd, len, height, buffer, rowlen) | ^~~~~~~~~~~~~~ flgifr.c:529:1: warning: return type defaults to 'int' [-Wimplicit-int] 529 | ReadRaster (fd, len, height, buffer, rowlen) | ^~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flgifw.c In file included from flgifw.c:43: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flgifw.c:56:1: warning: return type defaults to 'int' [-Wimplicit-int] 56 | write_gif (image, wfile) | ^~~~~~~~~ flgifw.c: In function 'write_gif': flgifw.c:117:11: warning: implicit declaration of function 'GIFEncode' [-Wimplicit-function-declaration] 117 | return (GIFEncode ( | ^~~~~~~~~ flgifw.c: At top level: flgifw.c:132:1: warning: return type defaults to 'int' [-Wimplicit-int] 132 | GetGIFPixel (x, y) | ^~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c fliff.c In file included from fliff.c:34: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** fliff.c:242:8: warning: return type defaults to 'int' [-Wimplicit-int] 242 | static UnPackRow(pSource, pDest, srcBytes0, dstBytes0) | ^~~~~~~~~ fliff.c:304:1: warning: return type defaults to 'int' [-Wimplicit-int] 304 | read_iff (image, rfile, mstr, mlen) | ^~~~~~~~ fliff.c: In function 'read_iff': fliff.c:322:7: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 322 | if (strcmp (magic, "FORM") != 0) | ^~~~~~ fliff.c:35:1: note: include '<string.h>' or provide a declaration of 'strcmp' 34 | # include "fbm.h" +++ |+#include <string.h> 35 | fliff.c:323:9: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 323 | { if (strncmp (magic, "FOR", 3) == 0 || | ^~~~~~~ fliff.c:323:9: note: include '<string.h>' or provide a declaration of 'strncmp' fliff.c:323:32: 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] 323 | { if (strncmp (magic, "FOR", 3) == 0 || | ^ <built-in>: note: built-in 'strncmp' declared here fliff.c:324:32: 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] 324 | strncmp (magic, "LIS", 3) == 0 || | ^ <built-in>: note: built-in 'strncmp' declared here fliff.c:325:32: 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] 325 | strncmp (magic, "CAT", 3) == 0) | ^ <built-in>: note: built-in 'strncmp' declared here fliff.c:352:5: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 352 | exit (1); | ^~~~ fliff.c:35:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 34 | # include "fbm.h" +++ |+#include <stdlib.h> 35 | fliff.c:352:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 352 | exit (1); | ^~~~ fliff.c:352:5: note: include '<stdlib.h>' or provide a declaration of 'exit' fliff.c:356:12: warning: implicit declaration of function 'parse_form' [-Wimplicit-function-declaration] 356 | result = parse_form (image, form); | ^~~~~~~~~~ fliff.c:359:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 359 | free (form); | ^~~~ fliff.c:359:3: note: include '<stdlib.h>' or provide a declaration of 'free' fliff.c:359:3: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] fliff.c:359:3: note: include '<stdlib.h>' or provide a declaration of 'free' fliff.c: At top level: fliff.c:372:1: warning: return type defaults to 'int' [-Wimplicit-int] 372 | parse_form (image, chunk) | ^~~~~~~~~~ fliff.c: In function 'parse_form': fliff.c:165:24: warning: implicit declaration of function 'machine_byte_order' [-Wimplicit-function-declaration] 165 | # define swapsize(X) ((machine_byte_order () == LITTLE) ? swaplong(X) : (X)) | ^~~~~~~~~~~~~~~~~~ fliff.c:397:20: note: in expansion of macro 'swapsize' 397 | part->ckID = swapsize (part->ckID); | ^~~~~~~~ fliff.c:440:7: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 440 | alloc_fbm (image); | ^~~~~~~~~ fliff.c:493:15: warning: implicit declaration of function 'read_iff_body'; did you mean 'read_iff'? [-Wimplicit-function-declaration] 493 | return (read_iff_body (image, bmh, part)); | ^~~~~~~~~~~~~ | read_iff fliff.c: At top level: fliff.c:504:1: warning: return type defaults to 'int' [-Wimplicit-int] 504 | read_iff_body (image, bmh, body) | ^~~~~~~~~~~~~ fliff.c:591:1: warning: return type defaults to 'int' [-Wimplicit-int] 591 | write_iff (image, wfile) | ^~~~~~~~~ fliff.c: In function 'write_iff': fliff.c:623:13: warning: implicit declaration of function 'build_bmhd' [-Wimplicit-function-declaration] 623 | bmhdlen = build_bmhd (image, &bmhd, ilbmbits) ; | ^~~~~~~~~~ fliff.c:624:13: warning: implicit declaration of function 'build_cmap' [-Wimplicit-function-declaration] 624 | cmaplen = build_cmap (image, &cmap, ilbmbits); | ^~~~~~~~~~ fliff.c:625:13: warning: implicit declaration of function 'build_body' [-Wimplicit-function-declaration] 625 | bodylen = build_body (image, &body, ilbmbits); | ^~~~~~~~~~ fliff.c:632:3: warning: implicit declaration of function 'put_long'; did you mean 'get_long'? [-Wimplicit-function-declaration] 632 | put_long (formlen-8, wfile, BIG); | ^~~~~~~~ | get_long fliff.c:661:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 661 | if (cmap) free (cmap); | ^~~~ fliff.c:661:17: note: include '<stdlib.h>' or provide a declaration of 'free' fliff.c:662:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 662 | if (body) free (body); | ^~~~ fliff.c:662:17: note: include '<stdlib.h>' or provide a declaration of 'free' fliff.c: At top level: fliff.c:671:1: warning: return type defaults to 'int' [-Wimplicit-int] 671 | build_bmhd (image, bmh, bits) | ^~~~~~~~~~ fliff.c:708:1: warning: return type defaults to 'int' [-Wimplicit-int] 708 | build_cmap (image, cmap, bits) | ^~~~~~~~~~ fliff.c:740:1: warning: return type defaults to 'int' [-Wimplicit-int] 740 | build_body (image, body, bits) | ^~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flklnr.c In file included from flklnr.c:33: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flklnr.c:46:1: warning: return type defaults to 'int' [-Wimplicit-int] 46 | clean_fbm (input, output, beta, gamma, nbr) | ^~~~~~~~~ flklnr.c: In function 'clean_fbm': flklnr.c:51:13: warning: implicit declaration of function 'clean_bw'; did you mean 'clean_fbm'? [-Wimplicit-function-declaration] 51 | { return (clean_bw (input, output, beta, gamma, nbr)); } | ^~~~~~~~ | clean_fbm flklnr.c: At top level: flklnr.c:60:1: warning: return type defaults to 'int' [-Wimplicit-int] 60 | clean_bw (input, output, beta, gamma, nbr) | ^~~~~~~~ flklnr.c: In function 'clean_bw': flklnr.c:81:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 81 | alloc_fbm (output); | ^~~~~~~~~ flklnr.c:142:9: warning: implicit declaration of function 'abort' [-Wimplicit-function-declaration] 142 | abort (); | ^~~~~ flklnr.c:34:1: note: include '<stdlib.h>' or provide a declaration of 'abort' 33 | # include "fbm.h" +++ |+#include <stdlib.h> 34 | flklnr.c:142:9: warning: incompatible implicit declaration of built-in function 'abort' [-Wbuiltin-declaration-mismatch] 142 | abort (); | ^~~~~ flklnr.c:142:9: note: include '<stdlib.h>' or provide a declaration of 'abort' gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flpbm.c In file included from flpbm.c:34: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flpbm.c:46:1: warning: return type defaults to 'int' [-Wimplicit-int] 46 | read_pbm (image, infile, mstr, mlen) | ^~~~~~~~ flpbm.c: In function 'read_pbm': flpbm.c:61:21: warning: implicit declaration of function 'pbm_getint' [-Wimplicit-function-declaration] 61 | image->hdr.cols = pbm_getint (infile); | ^~~~~~~~~~ flpbm.c:83:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 83 | alloc_fbm (image); | ^~~~~~~~~ flpbm.c:99:16: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 99 | if (!strncmp (s, "Title: ", 7)) strcpy (image->hdr.title, s+7); | ^~~~~~~ flpbm.c:35:1: note: include '<string.h>' or provide a declaration of 'strncmp' 34 | # include "fbm.h" +++ |+#include <string.h> 35 | flpbm.c:99:39: 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] 99 | if (!strncmp (s, "Title: ", 7)) strcpy (image->hdr.title, s+7); | ^ <built-in>: note: built-in 'strncmp' declared here flpbm.c: At top level: flpbm.c:124:1: warning: return type defaults to 'int' [-Wimplicit-int] 124 | pbm_getint (infile) | ^~~~~~~~~~ flpbm.c: In function 'pbm_getint': flpbm.c:156:36: warning: implicit declaration of function 'atoi'; did you mean 'atof'? [-Wimplicit-function-declaration] 156 | result = atoi (buf); | ^~~~ | atof flpbm.c: At top level: flpbm.c:171:1: warning: return type defaults to 'int' [-Wimplicit-int] 171 | write_pbm (image, stream) | ^~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flpcx.c In file included from flpcx.c:35: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flpcx.c:93:1: warning: return type defaults to 'int' [-Wimplicit-int] 93 | write_pcx (image, stream) | ^~~~~~~~~ flpcx.c: In function 'write_pcx': flpcx.c:143:7: warning: implicit declaration of function 'machine_byte_order' [-Wimplicit-function-declaration] 143 | if (machine_byte_order () == BIG) | ^~~~~~~~~~~~~~~~~~ flpcx.c:173:5: warning: implicit declaration of function 'writepcxrow'; did you mean 'write_pcx'? [-Wimplicit-function-declaration] 173 | writepcxrow (line, rowlen, stream); | ^~~~~~~~~~~ | write_pcx flpcx.c:176:3: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 176 | free ((char *) line); | ^~~~ flpcx.c:36:1: note: include '<stdlib.h>' or provide a declaration of 'free' 35 | # include "fbm.h" +++ |+#include <stdlib.h> 36 | flpcx.c:176:3: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 176 | free ((char *) line); | ^~~~ flpcx.c:176:3: note: include '<stdlib.h>' or provide a declaration of 'free' flpcx.c: At top level: flpcx.c:188:1: warning: return type defaults to 'int' [-Wimplicit-int] 188 | writepcxrow (row, len, stream) | ^~~~~~~~~~~ flpcx.c: In function 'writepcxrow': flpcx.c:188:1: warning: type of 'len' defaults to 'int' [-Wimplicit-int] flpcx.c: At top level: flpcx.c:220:1: warning: return type defaults to 'int' [-Wimplicit-int] 220 | read_pcx (image, rfile, mstr, mlen) | ^~~~~~~~ flpcx.c: In function 'read_pcx': flpcx.c:235:36: warning: 'strncpy' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 235 | if (mlen > 0) strncpy (hp, mstr, mlen); | ^~~~ fbm.h:114:7: note: built-in 'strncpy' declared here 114 | char *strncpy(); | ^~~~~~~ flpcx.c:317:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 317 | alloc_fbm (image); | ^~~~~~~~~ flpcx.c:345:9: warning: implicit declaration of function 'pcxline_read' [-Wimplicit-function-declaration] 345 | if (pcxline_read (enc, buf, totalbytes, rfile) == 0) | ^~~~~~~~~~~~ flpcx.c:348:7: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 348 | free ((char *) buf); | ^~~~ flpcx.c:348:7: note: include '<stdlib.h>' or provide a declaration of 'free' flpcx.c:409:3: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 409 | free ((char *) buf); | ^~~~ flpcx.c:409:3: note: include '<stdlib.h>' or provide a declaration of 'free' flpcx.c: At top level: flpcx.c:418:1: warning: return type defaults to 'int' [-Wimplicit-int] 418 | encget (pbyt, pcnt, fid) | ^~~~~~ flpcx.c:437:1: warning: return type defaults to 'int' [-Wimplicit-int] 437 | pcxline_read (enc, buf, total, fid) | ^~~~~~~~~~~~ flpcx.c: In function 'pcxline_read': flpcx.c:437:1: warning: type of 'enc' defaults to 'int' [-Wimplicit-int] gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flrdfb.c In file included from flrdfb.c:34: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flrdfb.c:46:1: warning: return type defaults to 'int' [-Wimplicit-int] 46 | read_fbm (image, rfile, mstr, mlen) | ^~~~~~~~ flrdfb.c: In function 'read_fbm': flrdfb.c:54:8: warning: implicit declaration of function 'read_hdr_fbm'; did you mean 'read_fbm'? [-Wimplicit-function-declaration] 54 | if (!read_hdr_fbm (image, rfile, mstr, mlen)) | ^~~~~~~~~~~~ | read_fbm flrdfb.c:57:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 57 | alloc_fbm (image); | ^~~~~~~~~ flrdfb.c: At top level: flrdfb.c:87:1: warning: return type defaults to 'int' [-Wimplicit-int] 87 | read_hdr_fbm (image, rfile, mstr, mlen) | ^~~~~~~~~~~~ flrdfb.c: In function 'read_hdr_fbm': flrdfb.c:97:36: warning: 'strncpy' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 97 | if (mlen > 0) strncpy (hp, mstr, mlen); | ^~~~ fbm.h:114:7: note: built-in 'strncpy' declared here 114 | char *strncpy(); | ^~~~~~~ flrdfb.c:102:7: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 102 | if (strncmp (FBM_MAGIC, file_hdr.magic, 2) != 0) | ^~~~~~~ flrdfb.c:35:1: note: include '<string.h>' or provide a declaration of 'strncmp' 34 | # include "fbm.h" +++ |+#include <string.h> 35 | flrdfb.c:102:43: 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] 102 | if (strncmp (FBM_MAGIC, file_hdr.magic, 2) != 0) | ^ <built-in>: note: built-in 'strncmp' declared here flrdfb.c:107:21: warning: implicit declaration of function 'atoi'; did you mean 'atof'? [-Wimplicit-function-declaration] 107 | image->hdr.cols = atoi (file_hdr.cols); | ^~~~ | atof fbm.h:30:33: warning: 'strncpy' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 30 | # define FBM_MAX_TITLE 80 /* For title and credits */ | ^~ flrdfb.c:116:46: note: in expansion of macro 'FBM_MAX_TITLE' 116 | strncpy (image->hdr.title, file_hdr.title, FBM_MAX_TITLE); | ^~~~~~~~~~~~~ fbm.h:114:7: note: built-in 'strncpy' declared here 114 | char *strncpy(); | ^~~~~~~ fbm.h:30:33: warning: 'strncpy' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 30 | # define FBM_MAX_TITLE 80 /* For title and credits */ | ^~ flrdfb.c:117:50: note: in expansion of macro 'FBM_MAX_TITLE' 117 | strncpy (image->hdr.credits, file_hdr.credits, FBM_MAX_TITLE); | ^~~~~~~~~~~~~ fbm.h:114:7: note: built-in 'strncpy' declared here 114 | char *strncpy(); | ^~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flread.c In file included from flread.c:32: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flread.c:56:1: warning: return type defaults to 'int' [-Wimplicit-int] 56 | read_bitmap (image, fname) | ^~~~~~~~~~~ flread.c: In function 'read_bitmap': flread.c:64:43: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 64 | if (fname == NULL || *fname == '\0' || !strcmp (fname, "-")) | ^~~~~~ flread.c:33:1: note: include '<string.h>' or provide a declaration of 'strcmp' 32 | # include "fbm.h" +++ |+#include <string.h> 33 | flread.c:77:11: warning: implicit declaration of function 'lseek'; did you mean 'fseek'? [-Wimplicit-function-declaration] 77 | { if (lseek (fileno (rfile), 0L, 0) < 0) perror ("lseek"); | ^~~~~ | fseek flread.c:95:34: warning: implicit declaration of function 'read_face' [-Wimplicit-function-declaration] 95 | { case BM_MAGC: result = read_face (image, rfile, magic, mlen); break; | ^~~~~~~~~ flread.c:96:34: warning: implicit declaration of function 'read_fbm' [-Wimplicit-function-declaration] 96 | case FBM_MAGC: result = read_fbm (image, rfile, magic, mlen); break; | ^~~~~~~~ flread.c:97:34: warning: implicit declaration of function 'read_sun' [-Wimplicit-function-declaration] 97 | case SUN_MAGC: result = read_sun (image, rfile, magic, mlen); break; | ^~~~~~~~ flread.c:98:34: warning: implicit declaration of function 'read_pbm' [-Wimplicit-function-declaration] 98 | case PBM_MAGC: result = read_pbm (image, rfile, magic, mlen); break; | ^~~~~~~~ flread.c:99:34: warning: implicit declaration of function 'read_pcx' [-Wimplicit-function-declaration] 99 | case PCX_MAGC: result = read_pcx (image, rfile, magic, mlen); break; | ^~~~~~~~ flread.c:100:34: warning: implicit declaration of function 'read_gif' [-Wimplicit-function-declaration] 100 | case GIF_MAGC: result = read_gif (image, rfile, magic, mlen); break; | ^~~~~~~~ flread.c:101:34: warning: implicit declaration of function 'read_iff' [-Wimplicit-function-declaration] 101 | case IFF_MAGC: result = read_iff (image, rfile, magic, mlen); break; | ^~~~~~~~ flread.c:105:34: warning: implicit declaration of function 'read_rle' [-Wimplicit-function-declaration] 105 | case RLE_MAGC: result = read_rle (image, rfile, magic, mlen); break; | ^~~~~~~~ flread.c:108:34: warning: implicit declaration of function 'read_jpeg' [-Wimplicit-function-declaration] 108 | result = read_jpeg (image, rfile, magic, mlen); | ^~~~~~~~~ flread.c: At top level: flread.c:126:1: warning: return type defaults to 'int' [-Wimplicit-int] 126 | write_bitmap (image, wfile, type) | ^~~~~~~~~~~~ flread.c: In function 'write_bitmap': flread.c:133:31: warning: implicit declaration of function 'write_pbm' [-Wimplicit-function-declaration] 133 | case FMT_PBM: if (! write_pbm (image, wfile)) return (0); break; | ^~~~~~~~~ flread.c:134:31: warning: implicit declaration of function 'write_fbm' [-Wimplicit-function-declaration] 134 | case FMT_FBM: if (! write_fbm (image, wfile)) return (0); break; | ^~~~~~~~~ flread.c:135:31: warning: implicit declaration of function 'write_face' [-Wimplicit-function-declaration] 135 | case FMT_FACE: if (! write_face (image, wfile)) return (0); break; | ^~~~~~~~~~ flread.c:136:31: warning: implicit declaration of function 'write_sun' [-Wimplicit-function-declaration] 136 | case FMT_SUN: if (! write_sun (image, wfile)) return (0); break; | ^~~~~~~~~ flread.c:137:31: warning: implicit declaration of function 'write_gif' [-Wimplicit-function-declaration] 137 | case FMT_GIF: if (! write_gif (image, wfile)) return (0); break; | ^~~~~~~~~ flread.c:138:31: warning: implicit declaration of function 'write_iff' [-Wimplicit-function-declaration] 138 | case FMT_IFF: if (! write_iff (image, wfile)) return (0); break; | ^~~~~~~~~ flread.c:139:31: warning: implicit declaration of function 'write_jpeg' [-Wimplicit-function-declaration] 139 | case FMT_JPEG: if (! write_jpeg (image, wfile, quality)) return (0); break; | ^~~~~~~~~~ flread.c:140:31: warning: implicit declaration of function 'write_rle' [-Wimplicit-function-declaration] 140 | case FMT_RLE: if (! write_rle (image, wfile)) return (0); break; | ^~~~~~~~~ flread.c:141:31: warning: implicit declaration of function 'write_pcx' [-Wimplicit-function-declaration] 141 | case FMT_PCX: if (! write_pcx (image, wfile)) return (0); break; | ^~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flrot.c In file included from flrot.c:33: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flrot.c:45:1: warning: return type defaults to 'int' [-Wimplicit-int] 45 | rotate_fbm (input, output, rot) | ^~~~~~~~~~ flrot.c: In function 'rotate_fbm': flrot.c:50:25: warning: implicit declaration of function 'rot90_fbm'; did you mean 'rotate_fbm'? [-Wimplicit-function-declaration] 50 | { case 90: return (rot90_fbm (input, output)); | ^~~~~~~~~ | rotate_fbm flrot.c:51:25: warning: implicit declaration of function 'rot180_fbm'; did you mean 'rotate_fbm'? [-Wimplicit-function-declaration] 51 | case 180: return (rot180_fbm (input, output)); | ^~~~~~~~~~ | rotate_fbm flrot.c:52:25: warning: implicit declaration of function 'rot270_fbm'; did you mean 'rotate_fbm'? [-Wimplicit-function-declaration] 52 | case 270: return (rot270_fbm (input, output)); | ^~~~~~~~~~ | rotate_fbm flrot.c: At top level: flrot.c:63:1: warning: return type defaults to 'int' [-Wimplicit-int] 63 | rot90_fbm (input, output) | ^~~~~~~~~ flrot.c: In function 'rot90_fbm': flrot.c:72:5: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 72 | exit (1); | ^~~~ flrot.c:34:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 33 | # include "fbm.h" +++ |+#include <stdlib.h> 34 | flrot.c:72:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 72 | exit (1); | ^~~~ flrot.c:72:5: note: include '<stdlib.h>' or provide a declaration of 'exit' flrot.c:98:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 98 | alloc_fbm (output); | ^~~~~~~~~ flrot.c:100:3: warning: implicit declaration of function 'copy_clr' [-Wimplicit-function-declaration] 100 | copy_clr (input, output); | ^~~~~~~~ flrot.c: At top level: flrot.c:118:1: warning: return type defaults to 'int' [-Wimplicit-int] 118 | rot180_fbm (input, output) | ^~~~~~~~~~ flrot.c: In function 'rot180_fbm': flrot.c:127:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 127 | exit (1); | ^~~~ flrot.c:127:5: note: include '<stdlib.h>' or provide a declaration of 'exit' flrot.c: At top level: flrot.c:158:1: warning: return type defaults to 'int' [-Wimplicit-int] 158 | rot270_fbm (input, output) | ^~~~~~~~~~ flrot.c: In function 'rot270_fbm': flrot.c:167:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 167 | exit (1); | ^~~~ flrot.c:167:5: note: include '<stdlib.h>' or provide a declaration of 'exit' gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flshrp.c In file included from flshrp.c:33: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flshrp.c:46:1: warning: return type defaults to 'int' [-Wimplicit-int] 46 | sharpen_fbm (input, output, beta) | ^~~~~~~~~~~ flshrp.c: In function 'sharpen_fbm': flshrp.c:51:13: warning: implicit declaration of function 'sharpen_bw'; did you mean 'sharpen_fbm'? [-Wimplicit-function-declaration] 51 | { return (sharpen_bw (input, output, beta)); } | ^~~~~~~~~~ | sharpen_fbm flshrp.c:53:13: warning: implicit declaration of function 'sharpen_clr'; did you mean 'sharpen_fbm'? [-Wimplicit-function-declaration] 53 | { return (sharpen_clr (input, output, beta)); } | ^~~~~~~~~~~ | sharpen_fbm flshrp.c: At top level: flshrp.c:60:1: warning: return type defaults to 'int' [-Wimplicit-int] 60 | sharpen_bw (input, output, beta) | ^~~~~~~~~~ flshrp.c: In function 'sharpen_bw': flshrp.c:74:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 74 | alloc_fbm (output); | ^~~~~~~~~ flshrp.c: At top level: flshrp.c:121:1: warning: return type defaults to 'int' [-Wimplicit-int] 121 | sharpen_clr (input, output, beta) | ^~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flsun.c In file included from flsun.c:37: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flsun.c:69:1: warning: return type defaults to 'int' [-Wimplicit-int] 69 | write_sun (image, wfile) | ^~~~~~~~~ flsun.c: In function 'write_sun': flsun.c:132:3: warning: implicit declaration of function 'put_long'; did you mean 'get_long'? [-Wimplicit-function-declaration] 132 | put_long (rhdr.ras_magic, wfile, BIG); | ^~~~~~~~ | get_long flsun.c: At top level: flsun.c:193:1: warning: return type defaults to 'int' [-Wimplicit-int] 193 | read_sun (image, rfile, mstr, mlen) | ^~~~~~~~ flsun.c: In function 'read_sun': flsun.c:297:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 297 | alloc_fbm (image); | ^~~~~~~~~ flsun.c:308:5: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 308 | { free (image->cm); | ^~~~ flsun.c:38:1: note: include '<stdlib.h>' or provide a declaration of 'free' 37 | # include "fbm.h" +++ |+#include <stdlib.h> 38 | flsun.c:308:5: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 308 | { free (image->cm); | ^~~~ flsun.c:308:5: note: include '<stdlib.h>' or provide a declaration of 'free' gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flthre.c In file included from flthre.c:37: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flthre.c:51:1: warning: return type defaults to 'int' [-Wimplicit-int] 51 | thesh_fbm (input, output, thresh) | ^~~~~~~~~ flthre.c: In function 'thesh_fbm': flthre.c:65:3: warning: implicit declaration of function 'free_fbm' [-Wimplicit-function-declaration] 65 | free_fbm (output); | ^~~~~~~~ flthre.c:72:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 72 | alloc_fbm (output); | ^~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flwrfb.c In file included from flwrfb.c:34: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flwrfb.c:46:1: warning: return type defaults to 'int' [-Wimplicit-int] 46 | write_fbm (image, wfile) | ^~~~~~~~~ flwrfb.c: In function 'write_fbm': flwrfb.c:52:9: warning: implicit declaration of function 'write_hdr_fbm'; did you mean 'write_fbm'? [-Wimplicit-function-declaration] 52 | if (! write_hdr_fbm (image, wfile)) return (0); | ^~~~~~~~~~~~~ | write_fbm flwrfb.c: At top level: flwrfb.c:78:1: warning: return type defaults to 'int' [-Wimplicit-int] 78 | write_hdr_fbm (image, wfile) | ^~~~~~~~~~~~~ flwrfb.c: In function 'write_hdr_fbm': flwrfb.c:83:39: warning: 'strncpy' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 83 | strncpy (file_hdr.magic, FBM_MAGIC, 8); | ^ fbm.h:114:7: note: built-in 'strncpy' declared here 114 | char *strncpy(); | ^~~~~~~ fbm.h:30:33: warning: 'strncpy' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 30 | # define FBM_MAX_TITLE 80 /* For title and credits */ | ^~ flwrfb.c:93:46: note: in expansion of macro 'FBM_MAX_TITLE' 93 | strncpy (file_hdr.title, image->hdr.title, FBM_MAX_TITLE); | ^~~~~~~~~~~~~ fbm.h:114:7: note: built-in 'strncpy' declared here 114 | char *strncpy(); | ^~~~~~~ fbm.h:30:33: warning: 'strncpy' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch] 30 | # define FBM_MAX_TITLE 80 /* For title and credits */ | ^~ flwrfb.c:94:50: note: in expansion of macro 'FBM_MAX_TITLE' 94 | strncpy (file_hdr.credits, image->hdr.credits, FBM_MAX_TITLE); | ^~~~~~~~~~~~~ fbm.h:114:7: note: built-in 'strncpy' declared here 114 | char *strncpy(); | ^~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flpic.c In file included from flpic.c:25: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flpic.c:38:1: warning: return type defaults to 'int' [-Wimplicit-int] 38 | read_pic(image, rfile, mstr, mlen) | ^~~~~~~~ flpic.c: In function 'read_pic': flpic.c:66:9: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 66 | alloc_fbm(image); | ^~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c fltga.c In file included from fltga.c:33: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** fltga.c:106:1: warning: return type defaults to 'int' [-Wimplicit-int] 106 | read_tga(image, rfile, mstr, mlen) | ^~~~~~~~ fltga.c: In function 'read_tga': fltga.c:125:17: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 125 | exit(1); | ^~~~ fltga.c:34:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 33 | #include "fbm.h" +++ |+#include <stdlib.h> 34 | fltga.c:125:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 125 | exit(1); | ^~~~ fltga.c:125:17: note: include '<stdlib.h>' or provide a declaration of 'exit' fltga.c:131:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 131 | exit(1); | ^~~~ fltga.c:131:17: note: include '<stdlib.h>' or provide a declaration of 'exit' fltga.c:145:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 145 | exit(1); | ^~~~ fltga.c:145:25: note: include '<stdlib.h>' or provide a declaration of 'exit' fltga.c:180:9: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 180 | alloc_fbm(image); | ^~~~~~~~~ fltga.c:194:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 194 | exit(1); | ^~~~ fltga.c:194:25: note: include '<stdlib.h>' or provide a declaration of 'exit' fltga.c:197:25: warning: implicit declaration of function 'get_map_entry' [-Wimplicit-function-declaration] 197 | get_map_entry(&ColourMap[i][0],&ColourMap[i][1], | ^~~~~~~~~~~~~ fltga.c:280:25: warning: implicit declaration of function 'get_pixel' [-Wimplicit-function-declaration] 280 | get_pixel(&r,&g,&b,tga->PixelSize,mode); | ^~~~~~~~~ fltga.c:288:9: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 288 | free(tga); | ^~~~ fltga.c:288:9: note: include '<stdlib.h>' or provide a declaration of 'free' fltga.c:288:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] fltga.c:288:9: note: include '<stdlib.h>' or provide a declaration of 'free' fltga.c: At top level: fltga.c:292:1: warning: return type defaults to 'int' [-Wimplicit-int] 292 | get_map_entry(Red,Grn,Blu,Size,mode) | ^~~~~~~~~~~~~ fltga.c: In function 'get_map_entry': fltga.c:326:65: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 326 | fprintf(stderr,"Unknown Pixel Size\n"); exit(1); | ^~~~ fltga.c:326:65: note: include '<stdlib.h>' or provide a declaration of 'exit' fltga.c: At top level: fltga.c:331:1: warning: return type defaults to 'int' [-Wimplicit-int] 331 | get_pixel(rRed,rGrn,rBlu,Size,mode) | ^~~~~~~~~ fltga.c: In function 'get_pixel': fltga.c:393:57: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 393 | fprintf(stderr,"Unknown Pixel Size\n"); exit(1); | ^~~~ fltga.c:393:57: note: include '<stdlib.h>' or provide a declaration of 'exit' fltga.c: At top level: fltga.c:415:1: warning: return type defaults to 'int' [-Wimplicit-int] 415 | write_tga(image, wfile) | ^~~~~~~~~ fltga.c: In function 'write_tga': fltga.c:431:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 431 | exit(1); | ^~~~ fltga.c:431:17: note: include '<stdlib.h>' or provide a declaration of 'exit' fltga.c:437:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 437 | exit(1); | ^~~~ fltga.c:437:17: note: include '<stdlib.h>' or provide a declaration of 'exit' fltga.c:446:17: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 446 | exit(1); | ^~~~ fltga.c:446:17: note: include '<stdlib.h>' or provide a declaration of 'exit' fltga.c:547:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 547 | free(tga); | ^~~~ fltga.c:547:9: note: include '<stdlib.h>' or provide a declaration of 'free' gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c fluun.c In file included from fluun.c:25: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** fluun.c:39:1: warning: return type defaults to 'int' [-Wimplicit-int] 39 | read_uunet(image, rfile, mstr, mlen) | ^~~~~~~~~~ fluun.c: In function 'read_uunet': fluun.c:57:22: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 57 | if (!strncmp("PicData:", buf, 8)) | ^~~~~~~ fluun.c:26:1: note: include '<string.h>' or provide a declaration of 'strncmp' 25 | # include "fbm.h" +++ |+#include <string.h> 26 | fluun.c:57:47: 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] 57 | if (!strncmp("PicData:", buf, 8)) | ^ <built-in>: note: built-in 'strncmp' declared here fluun.c:59:45: 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] 59 | if (!strncmp("Image:", buf, 6)) | ^ <built-in>: note: built-in 'strncmp' declared here fluun.c:61:49: 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] 61 | if (!strncmp("FirstName:", buf, 10)) { | ^~ <built-in>: note: built-in 'strncmp' declared here fluun.c:63:25: warning: implicit declaration of function 'strcat' [-Wimplicit-function-declaration] 63 | strcat(title," "); | ^~~~~~ fluun.c:63:25: note: include '<string.h>' or provide a declaration of 'strcat' fluun.c:63:25: warning: incompatible implicit declaration of built-in function 'strcat' [-Wbuiltin-declaration-mismatch] fluun.c:63:25: note: include '<string.h>' or provide a declaration of 'strcat' fluun.c:65:48: 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] 65 | if (!strncmp("LastName:", buf, 9)) | ^ <built-in>: note: built-in 'strncmp' declared here fluun.c:66:53: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 66 | sscanf(&buf[9],"%s", &title[strlen(title)]); | ^~~~~~ fluun.c:66:53: note: include '<string.h>' or provide a declaration of 'strlen' fluun.c:66:53: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] fluun.c:66:53: note: include '<string.h>' or provide a declaration of 'strlen' fluun.c:67:46: 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] 67 | if (!strncmp("E-Mail:", buf, 7)) | ^ <built-in>: note: built-in 'strncmp' declared here fluun.c:70:17: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 70 | } while(strlen(buf) && buf[0] != '\n'); | ^~~~~~ fluun.c:70:17: note: include '<string.h>' or provide a declaration of 'strlen' fluun.c:88:9: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 88 | alloc_fbm(image); | ^~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flrle.c In file included from flrle.c:24: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flrle.c:325:1: warning: return type defaults to 'int' [-Wimplicit-int] 325 | write_rle (image, wfile) | ^~~~~~~~~ flrle.c:333:1: warning: return type defaults to 'int' [-Wimplicit-int] 333 | read_rle (image, rfile, mstr, mlen) | ^~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flmedn.c In file included from flmedn.c:27: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flmedn.c:45:1: warning: return type defaults to 'int' [-Wimplicit-int] 45 | median_fbm (input, output, beta) | ^~~~~~~~~~ flmedn.c: In function 'median_fbm': flmedn.c:69:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 69 | alloc_fbm (output); | ^~~~~~~~~ flmedn.c:110:18: warning: implicit declaration of function 'median'; did you mean 'median_fbm'? [-Wimplicit-function-declaration] 110 | obm[i] = median (mdn, 9); | ^~~~~~ | median_fbm flmedn.c: At top level: flmedn.c:123:1: warning: return type defaults to 'int' [-Wimplicit-int] 123 | median (arr, n) | ^~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c fljpeg.c In file included from fljpeg.c:29: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** fljpeg.c:376:1: warning: return type defaults to 'int' [-Wimplicit-int] 376 | write_jpeg (image, wfile, quality) | ^~~~~~~~~~ fljpeg.c: In function 'write_jpeg': fljpeg.c:382:3: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 382 | exit (1); | ^~~~ fljpeg.c:30:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 29 | # include "fbm.h" +++ |+#include <stdlib.h> 30 | fljpeg.c:382:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 382 | exit (1); | ^~~~ fljpeg.c:382:3: note: include '<stdlib.h>' or provide a declaration of 'exit' fljpeg.c: At top level: fljpeg.c:385:1: warning: return type defaults to 'int' [-Wimplicit-int] 385 | read_jpeg (image, rfile) | ^~~~~~~~~ fljpeg.c: In function 'read_jpeg': fljpeg.c:390:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 390 | exit (1); | ^~~~ fljpeg.c:390:3: note: include '<stdlib.h>' or provide a declaration of 'exit' gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flconv.c In file included from flconv.c:46: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flconv.c:58:1: warning: return type defaults to 'int' [-Wimplicit-int] 58 | convolve_fbm (input, output, kernel, n, absval) | ^~~~~~~~~~~~ flconv.c: In function 'convolve_fbm': flconv.c:85:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 85 | alloc_fbm (output); | ^~~~~~~~~ flconv.c: At top level: flconv.c:160:1: warning: return type defaults to 'int' [-Wimplicit-int] 160 | sobel_fbm (input, output) | ^~~~~~~~~ flconv.c:222:1: warning: return type defaults to 'int' [-Wimplicit-int] 222 | sobel_5x5_fbm (input, output) | ^~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flthin.c In file included from flthin.c:30: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flthin.c:42:1: warning: return type defaults to 'int' [-Wimplicit-int] 42 | thin_fbm (input, output) | ^~~~~~~~ flthin.c: In function 'thin_fbm': flthin.c:61:3: warning: implicit declaration of function 'alloc_fbm' [-Wimplicit-function-declaration] 61 | alloc_fbm (output); | ^~~~~~~~~ flthin.c:224:3: warning: implicit declaration of function 'free_fbm' [-Wimplicit-function-declaration] 224 | free_fbm (&temp); | ^~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -c flcmps.c In file included from flcmps.c:26: fbm.h:117:7: warning: conflicting types for built-in function 'malloc'; expected 'void *(long unsigned int)' [-Wbuiltin-declaration-mismatch] 117 | char *malloc(); | ^~~~~~ fbm.h:1:1: note: 'malloc' is declared in header '<stdlib.h>' +++ |+#include <stdlib.h> 1 | /***************************************************************** flcmps.c:76:1: warning: return type defaults to 'int' [-Wimplicit-int] 76 | analyze_image (image, iscolor, bits, padlen) | ^~~~~~~~~~~~~ flcmps.c: In function 'analyze_image': flcmps.c:167:5: warning: implicit declaration of function 'abort' [-Wimplicit-function-declaration] 167 | abort (); | ^~~~~ flcmps.c:27:1: note: include '<stdlib.h>' or provide a declaration of 'abort' 26 | # include "fbm.h" +++ |+#include <stdlib.h> 27 | flcmps.c:167:5: warning: incompatible implicit declaration of built-in function 'abort' [-Wbuiltin-declaration-mismatch] 167 | abort (); | ^~~~~ flcmps.c:167:5: note: include '<stdlib.h>' or provide a declaration of 'abort' flcmps.c: At top level: flcmps.c:178:1: warning: return type defaults to 'int' [-Wimplicit-int] 178 | write_simple_ps (image, wfile, iscolor, bits, padlen) | ^~~~~~~~~~~~~~~ flcmps.c: In function 'write_simple_ps': flcmps.c:201:3: warning: implicit declaration of function 'write_simple_decoder'; did you mean 'write_simple_ps'? [-Wimplicit-function-declaration] 201 | write_simple_decoder (padlen, h, bits, iscolor); | ^~~~~~~~~~~~~~~~~~~~ | write_simple_ps flcmps.c:205:7: warning: implicit declaration of function 'write_simple_scanline' [-Wimplicit-function-declaration] 205 | { write_simple_scanline (rowlen, padlen, bits, &image->bm[j * rowlen], rd); | ^~~~~~~~~~~~~~~~~~~~~ flcmps.c: At top level: flcmps.c:239:1: warning: return type defaults to 'int' [-Wimplicit-int] 239 | write_simple_scanline (rowlen, padlen, bits, ibm, cmap) | ^~~~~~~~~~~~~~~~~~~~~ flcmps.c:279:1: warning: return type defaults to 'int' [-Wimplicit-int] 279 | write_simple_decoder (w, h, bits, iscolor) | ^~~~~~~~~~~~~~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -o idiff idiff.c -lm idiff.c:41:1: warning: return type defaults to 'int' [-Wimplicit-int] 41 | main (argc, argv) | ^~~~ idiff.c: In function 'main': idiff.c:41:1: warning: type of 'argc' defaults to 'int' [-Wimplicit-int] idiff.c:45:20: warning: implicit declaration of function 'strcmp' [-Wimplicit-function-declaration] 45 | if (argc > 1 || !strcmp (argv[0] + strlen (argv[0]) - 5, "udiff")) | ^~~~~~ idiff.c:31:1: note: include '<string.h>' or provide a declaration of 'strcmp' 30 | # include <stdio.h> +++ |+#include <string.h> 31 | idiff.c:45:38: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 45 | if (argc > 1 || !strcmp (argv[0] + strlen (argv[0]) - 5, "udiff")) | ^~~~~~ idiff.c:45:38: note: include '<string.h>' or provide a declaration of 'strlen' idiff.c:45:38: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] idiff.c:45:38: note: include '<string.h>' or provide a declaration of 'strlen' gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -o pbm2ps pbm2ps.c -lm pbm2ps.c:55:1: warning: return type defaults to 'int' [-Wimplicit-int] 55 | main (argc, argv) | ^~~~ pbm2ps.c: In function 'main': pbm2ps.c:55:1: warning: type of 'argc' defaults to 'int' [-Wimplicit-int] pbm2ps.c:65:25: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 65 | exit (1); | ^~~~ pbm2ps.c:36:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 35 | # include <ctype.h> +++ |+#include <stdlib.h> 36 | pbm2ps.c:65:25: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 65 | exit (1); | ^~~~ pbm2ps.c:65:25: note: include '<stdlib.h>' or provide a declaration of 'exit' pbm2ps.c:70:28: warning: implicit declaration of function 'atoi' [-Wimplicit-function-declaration] 70 | if (argc > 0 && (scale = atoi (argv[0])) < 1) | ^~~~ pbm2ps.c:71:30: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 71 | { fprintf (stderr, USAGE); exit (1); } | ^~~~ pbm2ps.c:71:30: note: include '<stdlib.h>' or provide a declaration of 'exit' pbm2ps.c:73:7: warning: implicit declaration of function 'read_pbm' [-Wimplicit-function-declaration] 73 | if (read_pbm (stdin) && write_ps (scale, scribe)) exit (0); | ^~~~~~~~ pbm2ps.c:73:27: warning: implicit declaration of function 'write_ps' [-Wimplicit-function-declaration] 73 | if (read_pbm (stdin) && write_ps (scale, scribe)) exit (0); | ^~~~~~~~ pbm2ps.c:73:53: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 73 | if (read_pbm (stdin) && write_ps (scale, scribe)) exit (0); | ^~~~ pbm2ps.c:73:53: note: include '<stdlib.h>' or provide a declaration of 'exit' pbm2ps.c:75:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 75 | exit (1); | ^~~~ pbm2ps.c:75:3: note: include '<stdlib.h>' or provide a declaration of 'exit' pbm2ps.c: At top level: pbm2ps.c:83:1: warning: return type defaults to 'int' [-Wimplicit-int] 83 | read_pbm (rfile) | ^~~~~~~~ pbm2ps.c: In function 'read_pbm': pbm2ps.c:96:12: warning: implicit declaration of function 'pbm_getint' [-Wimplicit-function-declaration] 96 | if ((w = pbm_getint (stdin)) < 0 || (h = pbm_getint (stdin)) < 0) | ^~~~~~~~~~ pbm2ps.c:99:28: warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 99 | bits = (unsigned char *) malloc (w*h); | ^~~~~~ pbm2ps.c:99:28: note: include '<stdlib.h>' or provide a declaration of 'malloc' pbm2ps.c:99:28: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] pbm2ps.c:99:28: note: include '<stdlib.h>' or provide a declaration of 'malloc' pbm2ps.c:108:25: warning: implicit declaration of function 'eatcomment' [-Wimplicit-function-declaration] 108 | else if (ch == '#') eatcomment (); | ^~~~~~~~~~ pbm2ps.c:113:61: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 113 | { fprintf (stderr, "Too many junk characters, bye!\n"); exit (1); } | ^~~~ pbm2ps.c:113:61: note: include '<stdlib.h>' or provide a declaration of 'exit' pbm2ps.c: At top level: pbm2ps.c:129:1: warning: return type defaults to 'int' [-Wimplicit-int] 129 | pbm_getint (rfile) | ^~~~~~~~~~ pbm2ps.c:156:1: warning: return type defaults to 'int' [-Wimplicit-int] 156 | eatcomment () | ^~~~~~~~~~ pbm2ps.c: In function 'eatcomment': pbm2ps.c:162:10: warning: implicit declaration of function 'strlen' [-Wimplicit-function-declaration] 162 | cmtbuf[strlen (cmtbuf) - 1] = '\0'; | ^~~~~~ pbm2ps.c:36:1: note: include '<string.h>' or provide a declaration of 'strlen' 35 | # include <ctype.h> +++ |+#include <string.h> 36 | pbm2ps.c:162:10: warning: incompatible implicit declaration of built-in function 'strlen' [-Wbuiltin-declaration-mismatch] 162 | cmtbuf[strlen (cmtbuf) - 1] = '\0'; | ^~~~~~ pbm2ps.c:162:10: note: include '<string.h>' or provide a declaration of 'strlen' pbm2ps.c:166:8: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 166 | if (!strncmp (s, "Title: ", 7)) strcpy (title, s+7); | ^~~~~~~ pbm2ps.c:166:8: note: include '<string.h>' or provide a declaration of 'strncmp' pbm2ps.c:166: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] 166 | if (!strncmp (s, "Title: ", 7)) strcpy (title, s+7); | ^ <built-in>: note: built-in 'strncmp' declared here pbm2ps.c:166:35: warning: implicit declaration of function 'strcpy' [-Wimplicit-function-declaration] 166 | if (!strncmp (s, "Title: ", 7)) strcpy (title, s+7); | ^~~~~~ pbm2ps.c:166:35: note: include '<string.h>' or provide a declaration of 'strcpy' pbm2ps.c:166:35: warning: incompatible implicit declaration of built-in function 'strcpy' [-Wbuiltin-declaration-mismatch] pbm2ps.c:166:35: note: include '<string.h>' or provide a declaration of 'strcpy' pbm2ps.c: At top level: pbm2ps.c:192:1: warning: return type defaults to 'int' [-Wimplicit-int] 192 | write_ps (scale, scribe) | ^~~~~~~~ gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/local/include -I/usr/include -o pbmtitle pbmtitle.c -lm pbmtitle.c:40:1: warning: return type defaults to 'int' [-Wimplicit-int] 40 | main (argc, argv) | ^~~~ pbmtitle.c: In function 'main': pbmtitle.c:40:1: warning: type of 'argc' defaults to 'int' [-Wimplicit-int] pbmtitle.c:47:5: warning: implicit declaration of function 'exit' [-Wimplicit-function-declaration] 47 | exit (1); | ^~~~ pbmtitle.c:31:1: note: include '<stdlib.h>' or provide a declaration of 'exit' 30 | # include <stdio.h> +++ |+#include <stdlib.h> 31 | pbmtitle.c:47:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 47 | exit (1); | ^~~~ pbmtitle.c:47:5: note: include '<stdlib.h>' or provide a declaration of 'exit' pbmtitle.c:52:14: warning: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration] 52 | else if (strncmp (buf, "# Title: ", 9)) printf ("%s", buf); | ^~~~~~~ pbmtitle.c:31:1: note: include '<string.h>' or provide a declaration of 'strncmp' 30 | # include <stdio.h> +++ |+#include <string.h> 31 | pbmtitle.c:52:41: 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] 52 | else if (strncmp (buf, "# Title: ", 9)) printf ("%s", buf); | ^ <built-in>: note: built-in 'strncmp' declared here pbmtitle.c:57:3: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch] 57 | exit (0); | ^~~~ pbmtitle.c:57:3: note: include '<stdlib.h>' or provide a declaration of 'exit' rm -f libfbm.a ar clq libfbm.a flalfb.o flblue.o flbyte.o flcavg.o flclr.o fledge.o flextr.o flface.o flflyd.o flgifc.o flgife.o flgifr.o flgifw.o fliff.o flklnr.o flpbm.o flpcx.o flrdfb.o flread.o flrot.o flshrp.o flsun.o flthre.o flwrfb.o flpic.o fltga.o fluun.o flrle.o flmedn.o fljpeg.o flconv.o flthin.o flcmps.o ar: libdeps specified more than once *** [libfbm.a] Error code 1 bmake: stopped in /home/pbulk/build/graphics/fbm/work 1 error bmake: stopped in /home/pbulk/build/graphics/fbm/work *** Error code 2 Stop. bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/graphics/fbm *** Error code 1 Stop. bmake: stopped in /data/jenkins/workspace/pkgsrc-2023Q4-x86_64/graphics/fbm