=> Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for tkimg-1.3.20080116nb5 echo 'package ifneeded Img 1.3.9 [list load [file join $dir Img.dylib]]' > pkgIndex.tcl imgInit.c tkimgIO.c tkimgIO.c:284:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tkimg_WriteInit(buffer, handle) ^ tkimgIO.c:303:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tkimg_ReadInit(data, c, handle) ^ tkimgIO.c:308:18: warning: assigning to 'char *' from 'unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] handle->data = Tcl_GetByteArrayFromObj(data, &handle->length); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. imgPNG.c In file included from imgPNG.c:26: ./init.c:190:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DLLEXPORT int PKG_SAFEINITPROC (interp) ^ ./init.c:35:26: note: expanded from macro 'PKG_SAFEINITPROC' #define PKG_SAFEINITPROC JOIN(CPACKAGE,_SafeInit) ^ ./init.c:22:19: note: expanded from macro 'JOIN' #define JOIN(a,b) _JOIN_(a,b) ^ ./init.c:23:21: note: expanded from macro '_JOIN_' #define _JOIN_(a,b) a ## b ^ :444:1: note: expanded from here Tkimgpng_SafeInit ^ imgPNG.c:74:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tk_png_error(png_ptr, error_msg) ^ imgPNG.c:84:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tk_png_warning(png_ptr, error_msg) ^ imgPNG.c:92:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tk_png_read(png_ptr, data, length) ^ imgPNG.c:105:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tk_png_write(png_ptr, data, length) ^ imgPNG.c:118:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] tk_png_flush(png_ptr) ^ imgPNG.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CommonMatchPNG(handle, widthPtr, heightPtr) ^ imgPNG.c:194:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ObjRead (interp, dataObj, format, imageHandle, ^ imgPNG.c:213:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CommonReadPNG(png_ptr, interp, format, imageHandle, destX, destY, ^ imgPNG.c:273:9: warning: comparison of function 'png_set_strip_16' not equal to a null pointer is always true [-Wtautological-pointer-compare] if (png_set_strip_16 != NULL) { ^~~~~~~~~~~~~~~~ ~~~~ imgPNG.c:273:9: note: prefix with the address-of operator to silence this warning if (png_set_strip_16 != NULL) { ^ & imgPNG.c:280:9: warning: comparison of function 'png_set_expand' not equal to a null pointer is always true [-Wtautological-pointer-compare] if (png_set_expand != NULL) { ^~~~~~~~~~~~~~ ~~~~ imgPNG.c:280:9: note: prefix with the address-of operator to silence this warning if (png_set_expand != NULL) { ^ & imgPNG.c:305:9: warning: address of function 'png_get_sRGB' will always evaluate to 'true' [-Wpointer-bool-conversion] if (png_get_sRGB && png_get_sRGB(png_ptr, info_ptr, &intent)) { ^~~~~~~~~~~~ ~~ imgPNG.c:305:9: note: prefix with the address-of operator to silence this warning if (png_get_sRGB && png_get_sRGB(png_ptr, info_ptr, &intent)) { ^ & imgPNG.c:307:16: warning: address of function 'png_get_gAMA' will always evaluate to 'true' [-Wpointer-bool-conversion] } else if (png_get_gAMA) { ~~ ^~~~~~~~~~~~ imgPNG.c:307:16: note: prefix with the address-of operator to silence this warning } else if (png_get_gAMA) { ^ & imgPNG.c:366:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CommonWritePNG(interp, png_ptr, info_ptr, format, blockPtr) ^ imgPNG.c:433:9: warning: address of function 'png_set_gAMA' will always evaluate to 'true' [-Wpointer-bool-conversion] if (png_set_gAMA) { ~~ ^~~~~~~~~~~~ imgPNG.c:433:9: note: prefix with the address-of operator to silence this warning if (png_set_gAMA) { ^ & 15 warnings generated. imgJPEG.c In file included from imgJPEG.c:61: ./init.c:190:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DLLEXPORT int PKG_SAFEINITPROC (interp) ^ ./init.c:35:26: note: expanded from macro 'PKG_SAFEINITPROC' #define PKG_SAFEINITPROC JOIN(CPACKAGE,_SafeInit) ^ ./init.c:22:19: note: expanded from macro 'JOIN' #define JOIN(a,b) _JOIN_(a,b) ^ ./init.c:23:21: note: expanded from macro '_JOIN_' #define _JOIN_(a,b) a ## b ^ :425:1: note: expanded from here Tkimgjpeg_SafeInit ^ imgJPEG.c:211:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CommonMatch(handle, widthPtr, heightPtr) ^ imgJPEG.c:378:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CommonReadJPEG(interp, cinfo, format, imageHandle, destX, destY, ^ imgJPEG.c:560:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CommonWriteJPEG(interp, cinfo, format, blockPtr) ^ imgJPEG.c:618:11: warning: comparison of function 'jpeg_simple_progression' not equal to a null pointer is always true [-Wtautological-pointer-compare] if (jpeg_simple_progression != NULL) { ^~~~~~~~~~~~~~~~~~~~~~~ ~~~~ imgJPEG.c:618:11: note: prefix with the address-of operator to silence this warning if (jpeg_simple_progression != NULL) { ^ & imgJPEG.c:657:10: warning: comparison of function 'jpeg_set_colorspace' not equal to a null pointer is always true [-Wtautological-pointer-compare] if ((jpeg_set_colorspace != NULL) && ^~~~~~~~~~~~~~~~~~~ ~~~~ imgJPEG.c:657:10: note: prefix with the address-of operator to silence this warning if ((jpeg_set_colorspace != NULL) && ^ & imgJPEG.c:734:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] fill_input_buffer(cinfo) ^ imgJPEG.c:756:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] skip_input_data(cinfo, num_bytes) ^ imgJPEG.c:773:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] dummy_source(cinfo) ^ imgJPEG.c:804:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] my_init_destination (cinfo) ^ imgJPEG.c:813:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] my_empty_output_buffer (cinfo) ^ imgJPEG.c:828:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] my_term_destination (cinfo) ^ imgJPEG.c:850:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] my_error_exit (cinfo) ^ imgJPEG.c:859:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] append_jpeg_message (interp, cinfo) ^ imgJPEG.c:870:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] my_output_message (cinfo) ^ 15 warnings generated. imgTIFF.c In file included from imgTIFF.c:27: ./init.c:190:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DLLEXPORT int PKG_SAFEINITPROC (interp) ^ ./init.c:35:26: note: expanded from macro 'PKG_SAFEINITPROC' #define PKG_SAFEINITPROC JOIN(CPACKAGE,_SafeInit) ^ ./init.c:22:19: note: expanded from macro 'JOIN' #define JOIN(a,b) _JOIN_(a,b) ^ ./init.c:23:21: note: expanded from macro '_JOIN_' #define _JOIN_(a,b) a ## b ^ :387:1: note: expanded from here Tkimgtiff_SafeInit ^ imgTIFF.c:85:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] getint(buf, format, order) ^ imgTIFF.c:111:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] _TIFFerr(module, fmt, ap) ^ imgTIFF.c:134:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] _TIFFwarn(module, fmt, ap) ^ imgTIFF.c:142:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] mapDummy(fd, base, size) ^ imgTIFF.c:151:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] unMapDummy(fd, base, size) ^ imgTIFF.c:159:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] closeDummy(fd) ^ imgTIFF.c:166:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] writeDummy(fd, data, size) ^ imgTIFF.c:175:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] readMFile(fd, data, size) ^ imgTIFF.c:184:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] seekMFile(fd, off, whence) ^ imgTIFF.c:193:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sizeMFile(fd) ^ imgTIFF.c:213:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] readString(fd, data, size) ^ imgTIFF.c:231:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] writeString(fd, data, size) ^ imgTIFF.c:249:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] seekString(fd, off, whence) ^ imgTIFF.c:275:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] sizeString(fd) ^ imgTIFF.c:334:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CommonMatch(handle, widthPtr, heightPtr) ^ imgTIFF.c:382:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ObjRead(interp, data, format, imageHandle, ^ imgTIFF.c:429:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ChnReadTIFF(interp, chan, fileName, format, imageHandle, ^ imgTIFF.c:465:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CommonRead(interp, tif, format, imageHandle, ^ imgTIFF.c:476:5: warning: 'uint32' is deprecated [-Wdeprecated-declarations] uint32 w, h; ^ /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/include/tiff.h:86:45: note: 'uint32' has been explicitly marked deprecated here typedef TIFF_MSC_DEPRECATED uint32_t uint32 TIFF_GCC_DEPRECATED; ^ /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED' #define TIFF_GCC_DEPRECATED __attribute__((deprecated)) ^ imgTIFF.c:478:5: warning: 'uint32' is deprecated [-Wdeprecated-declarations] uint32 *raster; ^ /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/include/tiff.h:86:45: note: 'uint32' has been explicitly marked deprecated here typedef TIFF_MSC_DEPRECATED uint32_t uint32 TIFF_GCC_DEPRECATED; ^ /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED' #define TIFF_GCC_DEPRECATED __attribute__((deprecated)) ^ imgTIFF.c:491:31: warning: 'uint32' is deprecated [-Wdeprecated-declarations] block.pixelSize = sizeof (uint32); ^ /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/include/tiff.h:86:45: note: 'uint32' has been explicitly marked deprecated here typedef TIFF_MSC_DEPRECATED uint32_t uint32 TIFF_GCC_DEPRECATED; ^ /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED' #define TIFF_GCC_DEPRECATED __attribute__((deprecated)) ^ imgTIFF.c:497:15: warning: 'uint32' is deprecated [-Wdeprecated-declarations] raster = (uint32*) attemptckalloc(npixels * sizeof (uint32)); ^ /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/include/tiff.h:86:45: note: 'uint32' has been explicitly marked deprecated here typedef TIFF_MSC_DEPRECATED uint32_t uint32 TIFF_GCC_DEPRECATED; ^ /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED' #define TIFF_GCC_DEPRECATED __attribute__((deprecated)) ^ imgTIFF.c:497:57: warning: 'uint32' is deprecated [-Wdeprecated-declarations] raster = (uint32*) attemptckalloc(npixels * sizeof (uint32)); ^ /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/include/tiff.h:86:45: note: 'uint32' has been explicitly marked deprecated here typedef TIFF_MSC_DEPRECATED uint32_t uint32 TIFF_GCC_DEPRECATED; ^ /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/include/tiff.h:66:44: note: expanded from macro 'TIFF_GCC_DEPRECATED' #define TIFF_GCC_DEPRECATED __attribute__((deprecated)) ^ imgTIFF.c:610:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ParseWriteFormat(interp, format, comp, mode) ^ 25 warnings generated. imgPS.c In file included from imgPS.c:30: ./init.c:190:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DLLEXPORT int PKG_SAFEINITPROC (interp) ^ ./init.c:35:26: note: expanded from macro 'PKG_SAFEINITPROC' #define PKG_SAFEINITPROC JOIN(CPACKAGE,_SafeInit) ^ ./init.c:22:19: note: expanded from macro 'JOIN' #define JOIN(a,b) _JOIN_(a,b) ^ ./init.c:23:21: note: expanded from macro '_JOIN_' #define _JOIN_(a,b) a ## b ^ :347:1: note: expanded from here Tkimgps_SafeInit ^ imgPS.c:143:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CommonMatchPS(handle, format, widthPtr, heightPtr) ^ imgPS.c:162:12: warning: initializing 'char *' with an expression of type 'unsigned char[41]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] char *p = buf; ^ ~~~ imgPS.c:163:6: warning: array index 41 is past the end of the array (which contains 41 elements) [-Warray-bounds] buf[41] = 0; ^ ~~ imgPS.c:148:5: note: array 'buf' declared here unsigned char buf[41]; ^ imgPS.c:182:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ObjRead(interp, data, format, imageHandle, ^ imgPS.c:228:16: warning: passing 'unsigned char[1025]' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] p = strstr(buffer,"%%BoundingBox:"); ^~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/string.h:89:26: note: passing argument to parameter '__big' here char *strstr(const char *__big, const char *__little); ^ imgPS.c:437:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CommonMatchPDF(handle, format, widthPtr, heightPtr) ^ imgPS.c:404:12: warning: unused function 'ChnMatchBeta' [-Wunused-function] static int ChnMatchBeta( ^ imgPS.c:420:12: warning: unused function 'ObjMatchBeta' [-Wunused-function] static int ObjMatchBeta( ^ 9 warnings generated. imgTGA.c In file included from imgTGA.c:60: ./init.c:190:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DLLEXPORT int PKG_SAFEINITPROC (interp) ^ ./init.c:35:26: note: expanded from macro 'PKG_SAFEINITPROC' #define PKG_SAFEINITPROC JOIN(CPACKAGE,_SafeInit) ^ ./init.c:22:19: note: expanded from macro 'JOIN' #define JOIN(a,b) _JOIN_(a,b) ^ ./init.c:23:21: note: expanded from macro '_JOIN_' #define _JOIN_(a,b) a ## b ^ :380:1: note: expanded from here Tkimgtga_SafeInit ^ imgTGA.c:560:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int ParseFormatOpts (interp, format, comp, verb, matte) ^ imgTGA.c:682:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int CommonMatch (handle, widthPtr, heightPtr, tgaHeaderPtr) ^ 3 warnings generated. imgXPM.c In file included from imgXPM.c:40: ./init.c:190:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DLLEXPORT int PKG_SAFEINITPROC (interp) ^ ./init.c:35:26: note: expanded from macro 'PKG_SAFEINITPROC' #define PKG_SAFEINITPROC JOIN(CPACKAGE,_SafeInit) ^ ./init.c:22:19: note: expanded from macro 'JOIN' #define JOIN(a,b) _JOIN_(a,b) ^ ./init.c:23:21: note: expanded from macro '_JOIN_' #define _JOIN_(a,b) a ## b ^ :392:1: note: expanded from here Tkimgxpm_SafeInit ^ imgXPM.c:113:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] Gets(handle, buffer, size) ^ imgXPM.c:229:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CommonRead(interp, handle, format, imageHandle, destX, destY, ^ imgXPM.c:388:42: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] hPtr = Tcl_CreateHashEntry(&colorTable, (char *) color1, &found); ^~~~~~~~~~~~~~~ /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/include/tcl.h:2567:55: note: expanded from macro 'Tcl_CreateHashEntry' (*((tablePtr)->createProc))(tablePtr, (const char *)(key), newPtr) ^~~ imgXPM.c:389:25: warning: cast to 'char *' from smaller integer type 'unsigned int' [-Wint-to-pointer-cast] Tcl_SetHashValue(hPtr, (char *) data); ^~~~~~~~~~~~~ /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/include/tcl.h:2550:69: note: expanded from macro 'Tcl_SetHashValue' #define Tcl_SetHashValue(h, value) ((h)->clientData = (ClientData) (value)) ^~~~~ imgXPM.c:438:44: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] hPtr = Tcl_FindHashEntry(&colorTable, (char *) color1); ^~~~~~~~~~~~~~~ /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/include/tcl.h:2564:53: note: expanded from macro 'Tcl_FindHashEntry' (*((tablePtr)->findProc))(tablePtr, (const char *)(key)) ^~~ imgXPM.c:445:16: warning: cast to smaller integer type 'int' from 'ClientData' (aka 'void *') [-Wvoid-pointer-to-int-cast] col = (int)Tcl_GetHashValue(hPtr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ imgXPM.c:467:42: warning: cast to 'char *' from smaller integer type 'int' [-Wint-to-pointer-cast] hPtr = Tcl_FindHashEntry(&colorTable, (char *) color1); ^~~~~~~~~~~~~~~ /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/include/tcl.h:2564:53: note: expanded from macro 'Tcl_FindHashEntry' (*((tablePtr)->findProc))(tablePtr, (const char *)(key)) ^~~ imgXPM.c:469:14: warning: cast to smaller integer type 'int' from 'ClientData' (aka 'void *') [-Wvoid-pointer-to-int-cast] col = (int)Tcl_GetHashValue(hPtr); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ imgXPM.c:510:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ObjRead(interp, data, format, imageHandle, destX, destY, ^ imgXPM.c:557:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReadXPMFileHeader(handle, widthPtr, heightPtr, numColors, byteSize) ^ imgXPM.c:624:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static char * GetType(colorDefn, type_ret) ^ imgXPM.c:671:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static char * GetColor(colorDefn, colorName, type_ret) ^ 13 warnings generated. imgPCX.c In file included from imgPCX.c:62: ./init.c:190:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DLLEXPORT int PKG_SAFEINITPROC (interp) ^ ./init.c:35:26: note: expanded from macro 'PKG_SAFEINITPROC' #define PKG_SAFEINITPROC JOIN(CPACKAGE,_SafeInit) ^ ./init.c:22:19: note: expanded from macro 'JOIN' #define JOIN(a,b) _JOIN_(a,b) ^ ./init.c:23:21: note: expanded from macro '_JOIN_' #define _JOIN_(a,b) a ## b ^ :380:1: note: expanded from here Tkimgpcx_SafeInit ^ imgPCX.c:421:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int ParseFormatOpts (interp, format, comp, verb, matte) ^ imgPCX.c:543:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int CommonMatch (handle, widthPtr, heightPtr, pcxHeaderPtr) ^ imgPCX.c:572:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int ObjRead (interp, data, format, imageHandle, ^ 4 warnings generated. imgPPM.c In file included from imgPPM.c:61: ./init.c:190:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DLLEXPORT int PKG_SAFEINITPROC (interp) ^ ./init.c:35:26: note: expanded from macro 'PKG_SAFEINITPROC' #define PKG_SAFEINITPROC JOIN(CPACKAGE,_SafeInit) ^ ./init.c:22:19: note: expanded from macro 'JOIN' #define JOIN(a,b) _JOIN_(a,b) ^ ./init.c:23:21: note: expanded from macro '_JOIN_' #define _JOIN_(a,b) a ## b ^ :379:1: note: expanded from here Tkimgppm_SafeInit ^ imgPPM.c:139:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int CommonMatch (handle, widthPtr, heightPtr, maxIntensityPtr) ^ imgPPM.c:150:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int ObjRead (interp, data, format, imageHandle, ^ imgPPM.c:352:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReadPPMFileHeader (handle, widthPtr, heightPtr, maxIntensityPtr) ^ 4 warnings generated. imgGIF.c In file included from imgGIF.c:44: ./init.c:190:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DLLEXPORT int PKG_SAFEINITPROC (interp) ^ ./init.c:35:26: note: expanded from macro 'PKG_SAFEINITPROC' #define PKG_SAFEINITPROC JOIN(CPACKAGE,_SafeInit) ^ ./init.c:22:19: note: expanded from macro 'JOIN' #define JOIN(a,b) _JOIN_(a,b) ^ ./init.c:23:21: note: expanded from macro '_JOIN_' #define _JOIN_(a,b) a ## b ^ :380:1: note: expanded from here Tkimggif_SafeInit ^ imgGIF.c:343:28: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] if (ReadImage(interp, trashBuffer, handle, fileWidth, ^~~~~~~~~~~ imgGIF.c:110:14: note: passing argument to parameter 'imagePtr' here char *imagePtr, tkimg_MFile *handle, int len, int rows, ^ imgGIF.c:183:18: warning: variable 'colorResolution' set but not used [-Wunused-but-set-variable] unsigned int colorResolution; ^ imgGIF.c:184:18: warning: variable 'background' set but not used [-Wunused-but-set-variable] unsigned int background; ^ imgGIF.c:185:18: warning: variable 'aspectRatio' set but not used [-Wunused-but-set-variable] unsigned int aspectRatio; ^ imgGIF.c:481:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ObjRead(interp, data, format, imageHandle, ^ imgGIF.c:518:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReadGIFHeader(handle, widthPtr, heightPtr) ^ imgGIF.c:548:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReadColorMap(handle, number, buffer) ^ imgGIF.c:572:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DoExtension(handle, label, transparent) ^ imgGIF.c:615:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] GetDataBlock(handle, buf) ^ imgGIF.c:658:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReadImage(interp, imagePtr, handle, len, rows, cmap, ^ imgGIF.c:1238:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] no_bits( colors ) ^ imgGIF.c:1346:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] binformat(v, nbits) ^ imgGIF.c:1379:27: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign] tkimg_Write(e->ofile, &e->oblock[0], e->oblen); ^~~~~~~~~~~~~ ./tkimg.h:54:60: note: passing argument to parameter 'src' here TKIMGAPI int tkimg_Write(tkimg_MFile *handle, const char * src, int count); ^ imgGIF.c:1447:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] isqrt(x) ^ imgGIF.c:1463:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] compute_triangle_count(count, nrepcodes) ^ 16 warnings generated. imgBMP.c In file included from imgBMP.c:16: ./init.c:190:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DLLEXPORT int PKG_SAFEINITPROC (interp) ^ ./init.c:35:26: note: expanded from macro 'PKG_SAFEINITPROC' #define PKG_SAFEINITPROC JOIN(CPACKAGE,_SafeInit) ^ ./init.c:22:19: note: expanded from macro 'JOIN' #define JOIN(a,b) _JOIN_(a,b) ^ ./init.c:23:21: note: expanded from macro '_JOIN_' #define _JOIN_(a,b) a ## b ^ :380:1: note: expanded from here Tkimgbmp_SafeInit ^ imgBMP.c:64:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ObjRead (interp, data, format, imageHandle, ^ imgBMP.c:86:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CommonMatch (handle, widthPtr, heightPtr, colorMap, numBits, numCols, comp) ^ imgBMP.c:347:8: warning: array index 2 is past the end of the array (which contains 2 elements) [-Warray-bounds] x += rleBuf[2]; ^ ~ imgBMP.c:256:2: note: array 'rleBuf' declared here unsigned char rleBuf[2]; ^ imgBMP.c:348:8: warning: array index 3 is past the end of the array (which contains 2 elements) [-Warray-bounds] y += rleBuf[3]; ^ ~ imgBMP.c:256:2: note: array 'rleBuf' declared here unsigned char rleBuf[2]; ^ imgBMP.c:487:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] putint(handle, i) ^ 6 warnings generated. imgICO.c In file included from imgICO.c:55: ./init.c:190:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DLLEXPORT int PKG_SAFEINITPROC (interp) ^ ./init.c:35:26: note: expanded from macro 'PKG_SAFEINITPROC' #define PKG_SAFEINITPROC JOIN(CPACKAGE,_SafeInit) ^ ./init.c:22:19: note: expanded from macro 'JOIN' #define JOIN(a,b) _JOIN_(a,b) ^ ./init.c:23:21: note: expanded from macro '_JOIN_' #define _JOIN_(a,b) a ## b ^ :425:1: note: expanded from here Tkimgico_SafeInit ^ imgICO.c:416:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int ParseFormatOpts (interp, format, opts) ^ imgICO.c:510:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int CommonMatch (handle, widthPtr, heightPtr, icoHeaderPtr) ^ imgICO.c:535:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int ObjRead (interp, data, format, imageHandle, ^ 4 warnings generated. imgXBM.c In file included from imgXBM.c:29: ./init.c:190:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DLLEXPORT int PKG_SAFEINITPROC (interp) ^ ./init.c:35:26: note: expanded from macro 'PKG_SAFEINITPROC' #define PKG_SAFEINITPROC JOIN(CPACKAGE,_SafeInit) ^ ./init.c:22:19: note: expanded from macro 'JOIN' #define JOIN(a,b) _JOIN_(a,b) ^ ./init.c:23:21: note: expanded from macro '_JOIN_' #define _JOIN_(a,b) a ## b ^ :425:1: note: expanded from here Tkimgxbm_SafeInit ^ imgXBM.c:155:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] CommonRead(interp, parseInfo, format, imageHandle, destX, destY, ^ imgXBM.c:250:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ChnReadXBM(interp, chan, fileName, format, imageHandle, destX, destY, ^ imgXBM.c:293:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ObjRead(interp, data, format, imageHandle, destX, destY, ^ imgXBM.c:352:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] NextBitmapWord(parseInfoPtr) ^ imgXBM.c:386:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ReadXBMFileHeader(pi, widthPtr, heightPtr) ^ imgXBM.c:391:24: warning: variable 'hotX' set but not used [-Wunused-but-set-variable] int width, height, hotX, hotY; ^ imgXBM.c:391:30: warning: variable 'hotY' set but not used [-Wunused-but-set-variable] int width, height, hotX, hotY; ^ imgXBM.c:569:15: warning: variable 'i' set but not used [-Wunused-but-set-variable] int x, y, i, value, mask; ^ imgXBM.c:634:6: warning: variable 'i' is uninitialized when used here [-Wuninitialized] i++; ^ imgXBM.c:569:16: note: initialize the variable 'i' to silence this warning int x, y, i, value, mask; ^ = 0 10 warnings generated. imgSGI.c In file included from imgSGI.c:72: ./init.c:190:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DLLEXPORT int PKG_SAFEINITPROC (interp) ^ ./init.c:35:26: note: expanded from macro 'PKG_SAFEINITPROC' #define PKG_SAFEINITPROC JOIN(CPACKAGE,_SafeInit) ^ ./init.c:22:19: note: expanded from macro 'JOIN' #define JOIN(a,b) _JOIN_(a,b) ^ ./init.c:23:21: note: expanded from macro '_JOIN_' #define _JOIN_(a,b) a ## b ^ :425:1: note: expanded from here Tkimgsgi_SafeInit ^ imgSGI.c:221:40: warning: parameter 'a4' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] static void i_errhdlr(fmt, a1, a2, a3, a4) /* most args currently used is 2 */ ^ imgSGI.c:221:36: warning: parameter 'a3' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] static void i_errhdlr(fmt, a1, a2, a3, a4) /* most args currently used is 2 */ ^ imgSGI.c:221:32: warning: parameter 'a2' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] static void i_errhdlr(fmt, a1, a2, a3, a4) /* most args currently used is 2 */ ^ imgSGI.c:221:28: warning: parameter 'a1' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int] static void i_errhdlr(fmt, a1, a2, a3, a4) /* most args currently used is 2 */ ^ imgSGI.c:221:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void i_errhdlr(fmt, a1, a2, a3, a4) /* most args currently used is 2 */ ^ imgSGI.c:233:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void cvtshorts( buffer, n) ^ imgSGI.c:247:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void cvtlongs( buffer, n) ^ imgSGI.c:266:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static void cvtimage( buffer ) ^ imgSGI.c:313:52: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("iopen: read/write mode not supported\n"); ~~~~~~~~~ ^ imgSGI.c:337:57: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("iopen: error on write of image header\n"); ~~~~~~~~~ ^ imgSGI.c:343:56: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("iopen: error on read of image header\n"); ~~~~~~~~~ ^ imgSGI.c:352:67: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("iopen: bad magic in image file %x\n",image->imagic); ~~~~~~~~~ ^ imgSGI.c:367:47: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("iopen: error on table alloc\n"); ~~~~~~~~~ ^ imgSGI.c:381:49: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("iopen: error on read of rowstart\n"); ~~~~~~~~~ ^ imgSGI.c:385:12: warning: passing 'UInt *' (aka 'unsigned long *') to parameter of type 'long *' converts between pointers to integer types with different sign [-Wpointer-sign] cvtlongs(image->rowstart,tablesize); ^~~~~~~~~~~~~~~ imgSGI.c:387:48: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("iopen: error on read of rowsize\n"); ~~~~~~~~~ ^ imgSGI.c:398:60: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("iopen: error on tmpbuf alloc %d\n",image->xsize); ~~~~~~~~~ ^ imgSGI.c:425:58: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("iclose: error on write of image header\n"); ~~~~~~~~~ ^ imgSGI.c:434:12: warning: passing 'UInt *' (aka 'unsigned long *') to parameter of type 'long *' converts between pointers to integer types with different sign [-Wpointer-sign] cvtlongs(image->rowstart,tablesize); ^~~~~~~~~~~~~~~ imgSGI.c:436:51: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("iclose: error on write of rowstart\n"); ~~~~~~~~~ ^ imgSGI.c:442:50: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("iclose: error on write of rowsize\n"); ~~~~~~~~~ ^ imgSGI.c:488:49: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("img_seek: row number out of range\n"); ~~~~~~~~~ ^ imgSGI.c:505:36: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("img_seek: weird dim\n"); ~~~~~~~~~ ^ imgSGI.c:517:36: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("img_seek: weird dim\n"); ~~~~~~~~~ ^ imgSGI.c:521:42: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("img_seek: weird image type\n"); ~~~~~~~~~ ^ imgSGI.c:606:60: warning: too few arguments in call to 'i_errhdlr' i_errhdlr ("img_setrowsize: bad dim: %d\n", image->dim); ~~~~~~~~~ ^ imgSGI.c:688:53: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("rle_compact: bad bpp: %d %d\n",ibpp,obpp); ~~~~~~~~~ ^ imgSGI.c:736:52: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("rle_expand: bad bpp: %d %d\n",ibpp,obpp); ~~~~~~~~~ ^ imgSGI.c:811:34: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("putrow: weird bpp\n"); ~~~~~~~~~ ^ imgSGI.c:864:34: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("putrow: weird bpp\n"); ~~~~~~~~~ ^ imgSGI.c:867:40: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("putrow: weird image type\n"); ~~~~~~~~~ ^ imgSGI.c:913:34: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("getrow: weird bpp\n"); ~~~~~~~~~ ^ imgSGI.c:943:34: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("getrow: weird bpp\n"); ~~~~~~~~~ ^ imgSGI.c:947:40: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("getrow: weird image type\n"); ~~~~~~~~~ ^ imgSGI.c:1119:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int ParseFormatOpts (interp, format, comp, verb, matte) ^ imgSGI.c:1242:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int CommonMatch (handle, widthPtr, heightPtr, sgiHeaderPtr) ^ imgSGI.c:1270:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int ObjRead (interp, data, format, imageHandle, ^ imgSGI.c:1289:5: warning: 'tmpnam' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead. [-Wdeprecated-declarations] tmpnam(tempFileName); ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/stdio.h:186:1: note: 'tmpnam' has been explicitly marked deprecated here __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead.") ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro '__deprecated_msg' #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) ^ imgSGI.c:1453:5: warning: 'tmpnam' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead. [-Wdeprecated-declarations] tmpnam(tempFileName); /* @@@ DO NOT USE */ ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/stdio.h:186:1: note: 'tmpnam' has been explicitly marked deprecated here __deprecated_msg("This function is provided for compatibility reasons only. Due to security concerns inherent in the design of tmpnam(3), it is highly recommended that you use mkstemp(3) instead.") ^ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/sys/cdefs.h:200:48: note: expanded from macro '__deprecated_msg' #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg))) ^ 40 warnings generated. imgSUN.c In file included from imgSUN.c:67: ./init.c:190:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DLLEXPORT int PKG_SAFEINITPROC (interp) ^ ./init.c:35:26: note: expanded from macro 'PKG_SAFEINITPROC' #define PKG_SAFEINITPROC JOIN(CPACKAGE,_SafeInit) ^ ./init.c:22:19: note: expanded from macro 'JOIN' #define JOIN(a,b) _JOIN_(a,b) ^ ./init.c:23:21: note: expanded from macro '_JOIN_' #define _JOIN_(a,b) a ## b ^ :380:1: note: expanded from here Tkimgsun_SafeInit ^ imgSUN.c:531:6: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat] fileWidth * sizeof (UByte)); ^~~~~~~~~~~~~~~~~~~~~~~~~~ /Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk/usr/include/secure/_stdio.h:47:56: note: expanded from macro 'sprintf' __builtin___sprintf_chk (str, 0, __darwin_obsz(str), __VA_ARGS__) ^~~~~~~~~~~ imgSUN.c:718:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int ParseFormatOpts (interp, format, comp, verb, matte) ^ imgSUN.c:848:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int CommonMatch (handle, widthPtr, heightPtr, sunHeaderPtr) ^ imgSUN.c:866:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int ObjRead (interp, data, format, imageHandle, ^ 5 warnings generated. imgWindow.c In file included from imgWindow.c:18: ./init.c:190:15: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] DLLEXPORT int PKG_SAFEINITPROC (interp) ^ ./init.c:35:26: note: expanded from macro 'PKG_SAFEINITPROC' #define PKG_SAFEINITPROC JOIN(CPACKAGE,_SafeInit) ^ ./init.c:22:19: note: expanded from macro 'JOIN' #define JOIN(a,b) _JOIN_(a,b) ^ ./init.c:23:21: note: expanded from macro '_JOIN_' #define _JOIN_(a,b) a ## b ^ :346:1: note: expanded from here Tkimgwindow_SafeInit ^ imgWindow.c:46:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] xerrorhandler(clientData, e) ^ imgWindow.c:55:1: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] ChnReadWindow (interp, chan, fileName, format, imageHandle, ^ imgWindow.c:175:12: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype] static int ObjRead(interp, data, format, imageHandle, ^ 4 warnings generated. rm -f Img.dylib clang -dynamiclib -pipe -Os -I/opt/pkg/include -arch x86_64 -Os -Wall -fno-common -I/opt/pkg/include -Wl,-single_module imgInit.o tkimgIO.o imgPNG.o imgJPEG.o imgTIFF.o imgPS.o imgTGA.o imgXPM.o imgPCX.o imgPPM.o imgGIF.o imgBMP.o imgICO.o imgXBM.o imgSGI.o imgSUN.o imgWindow.o -L/opt/pkg/lib -prebind -headerpad_max_install_names -Wl,-search_paths_first -L/opt/pkg/lib -ltclstub86 -L/opt/pkg/lib -ltkstub86 -ltiff -ljpeg -lpng -lz -lm -o Img.dylib ld: warning: -prebind is obsolete ld: warning: -single_module is obsolete ld: Undefined symbols: _XGetImage, referenced from: _ObjRead in imgWindow.o _XParseColor, referenced from: _CommonRead in imgXPM.o _XQueryColors, referenced from: _ObjRead in imgWindow.o clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [Img.dylib] Error code 1 (ignored)