=> Bootstrap dependency digest>=20211023: found digest-20220214 ===> Building for tkimg-1.3.20080116nb3 --- pkgIndex.tcl --- --- imgInit.o --- --- tkimgIO.o --- --- pkgIndex.tcl --- echo 'package ifneeded Img 1.3.9 [list load [file join $dir Img.dylib]]' > pkgIndex.tcl --- imgInit.o --- imgInit.c --- imgPNG.o --- --- tkimgIO.o --- tkimgIO.c --- imgPNG.o --- imgPNG.c --- tkimgIO.o --- 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); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- imgPNG.o --- 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: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) { ^ & --- tkimgIO.o --- 1 warning generated. --- imgPNG.o --- 5 warnings generated. --- imgJPEG.o --- imgJPEG.c --- tkimgIO.o --- 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); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- imgPNG.o --- 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: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) { ^ & --- tkimgIO.o --- 1 warning generated. --- imgTIFF.o --- imgTIFF.c --- imgJPEG.o --- 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) && ^ & --- imgPNG.o --- 5 warnings generated. --- imgPS.o --- imgPS.c --- imgTIFF.o --- 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)) ^ --- imgJPEG.o --- 2 warnings generated. --- imgPS.o --- 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: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:404:12: warning: unused function 'ChnMatchBeta' [-Wunused-function] static int ChnMatchBeta( ^ imgPS.c:420:12: warning: unused function 'ObjMatchBeta' [-Wunused-function] static int ObjMatchBeta( ^ --- imgJPEG.o --- 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) && ^ & --- imgTIFF.o --- 5 warnings generated. --- imgPS.o --- 5 warnings generated. --- imgTIFF.o --- 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)) ^ --- imgJPEG.o --- 2 warnings generated. --- imgTGA.o --- imgTGA.c --- imgPS.o --- 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: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:404:12: warning: unused function 'ChnMatchBeta' [-Wunused-function] static int ChnMatchBeta( ^ imgPS.c:420:12: warning: unused function 'ObjMatchBeta' [-Wunused-function] static int ObjMatchBeta( ^ --- imgTIFF.o --- 5 warnings generated. --- imgXPM.o --- imgXPM.c --- imgPS.o --- 5 warnings generated. --- imgPCX.o --- imgPCX.c --- imgXPM.o --- 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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 6 warnings generated. 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); ^~~~~~~~~~~~~~~~~~~~~~~~~~~ --- imgPPM.o --- imgPPM.c --- imgGIF.o --- imgGIF.c --- imgXPM.o --- 6 warnings generated. --- imgBMP.o --- imgBMP.c --- imgGIF.o --- 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:185:18: warning: variable 'aspectRatio' set but not used [-Wunused-but-set-variable] unsigned int aspectRatio; ^ imgGIF.c:184:18: warning: variable 'background' set but not used [-Wunused-but-set-variable] unsigned int background; ^ imgGIF.c:183:18: warning: variable 'colorResolution' set but not used [-Wunused-but-set-variable] unsigned int colorResolution; ^ 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); ^ --- imgBMP.o --- 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]; ^ 2 warnings generated. --- imgGIF.o --- 5 warnings generated. --- imgICO.o --- imgICO.c --- imgBMP.o --- 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]; ^ --- imgGIF.o --- 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: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); ^ --- imgBMP.o --- 2 warnings generated. --- imgXBM.o --- imgXBM.c --- imgGIF.o --- 5 warnings generated. --- imgSGI.o --- imgSGI.c --- imgXBM.o --- imgXBM.c:391:30: warning: variable 'hotY' set but not used [-Wunused-but-set-variable] int width, height, hotX, hotY; ^ imgXBM.c:391:24: warning: variable 'hotX' set but not used [-Wunused-but-set-variable] int width, height, hotX, hotY; ^ 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 --- imgSGI.o --- 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: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))) ^ --- imgXBM.o --- 3 warnings generated. imgXBM.c:391:30: warning: variable 'hotY' set but not used [-Wunused-but-set-variable] int width, height, hotX, hotY; ^ imgXBM.c:391:24: warning: variable 'hotX' set but not used [-Wunused-but-set-variable] int width, height, hotX, hotY; ^ 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 --- imgSUN.o --- imgSUN.c --- imgXBM.o --- 3 warnings generated. --- imgWindow.o --- imgWindow.c --- imgSGI.o --- 28 warnings generated. imgSGI.c:313:52: warning: too few arguments in call to 'i_errhdlr' i_errhdlr("iopen: read/write mode not supported\n"); ~~~~~~~~~ ^ --- imgSUN.o --- 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__) ^~~~~~~~~~~ --- imgSGI.o --- 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: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))) ^ --- imgSUN.o --- 1 warning generated. --- imgSGI.o --- 28 warnings generated. --- imgSUN.o --- 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__) ^~~~~~~~~~~ 1 warning generated. --- Img.dylib --- rm -f Img.dylib clang -dynamiclib -pipe -Os -I/opt/pkg/include -arch x86_64 -Os -Wall -fno-common -DPNG_NO_ASSEMBLER_CODE -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: option -prebind is obsolete and being ignored ld: warning: ignoring file /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/lib/libjpeg.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/lib/libpng16.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/lib/libtclstub86.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/lib/libtkstub86.a, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/lib/libtiff.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 ld: warning: ignoring file /Users/pbulk/build/graphics/tk-tkimg/work/.buildlink/lib/libz.dylib, building for macOS-x86_64 but attempting to link with file built for macOS-arm64 Undefined symbols for architecture x86_64: "_TIFFClientOpen", referenced from: _ChnReadTIFF in imgTIFF.o _ObjRead in imgTIFF.o _StringWriteTIFF in imgTIFF.o "_TIFFClose", referenced from: _ChnWriteTIFF in imgTIFF.o _StringWriteTIFF in imgTIFF.o _CommonRead in imgTIFF.o "_TIFFGetField", referenced from: _CommonRead in imgTIFF.o "_TIFFOpen", referenced from: _ChnWriteTIFF in imgTIFF.o "_TIFFReadRGBAImage", referenced from: _CommonRead in imgTIFF.o "_TIFFSetErrorHandler", referenced from: _Tkimgtiff_Init in imgTIFF.o "_TIFFSetField", referenced from: _CommonWrite in imgTIFF.o "_TIFFSetWarningHandler", referenced from: _Tkimgtiff_Init in imgTIFF.o "_TIFFWriteEncodedStrip", referenced from: _CommonWrite in imgTIFF.o "_Tcl_InitStubs", referenced from: _Img_Init in imgInit.o _Tkimgpng_Init in imgPNG.o _Tkimgjpeg_Init in imgJPEG.o _Tkimgtiff_Init in imgTIFF.o _Tkimgps_Init in imgPS.o _Tkimgtga_Init in imgTGA.o _Tkimgxpm_Init in imgXPM.o ... "_Tk_InitStubs", referenced from: _Img_Init in imgInit.o _Tkimgpng_Init in imgPNG.o _Tkimgjpeg_Init in imgJPEG.o _Tkimgtiff_Init in imgTIFF.o _Tkimgps_Init in imgPS.o _Tkimgtga_Init in imgTGA.o _Tkimgxpm_Init in imgXPM.o ... "_XGetImage", referenced from: _ObjRead in imgWindow.o "_XParseColor", referenced from: _CommonRead in imgXPM.o "_XQueryColors", referenced from: _ObjRead in imgWindow.o "_jpeg_CreateCompress", referenced from: _CommonWrite in imgJPEG.o "_jpeg_CreateDecompress", referenced from: _CommonRead in imgJPEG.o "_jpeg_abort_decompress", referenced from: _CommonRead in imgJPEG.o "_jpeg_destroy_compress", referenced from: _CommonWrite in imgJPEG.o "_jpeg_destroy_decompress", referenced from: _CommonRead in imgJPEG.o "_jpeg_finish_compress", referenced from: _CommonWrite in imgJPEG.o "_jpeg_finish_decompress", referenced from: _CommonRead in imgJPEG.o "_jpeg_read_header", referenced from: _CommonRead in imgJPEG.o "_jpeg_read_scanlines", referenced from: _CommonRead in imgJPEG.o "_jpeg_resync_to_restart", referenced from: _CommonRead in imgJPEG.o "_jpeg_set_colorspace", referenced from: _CommonWrite in imgJPEG.o "_jpeg_set_defaults", referenced from: _CommonWrite in imgJPEG.o "_jpeg_set_quality", referenced from: _CommonWrite in imgJPEG.o "_jpeg_simple_progression", referenced from: _CommonWrite in imgJPEG.o "_jpeg_start_compress", referenced from: _CommonWrite in imgJPEG.o "_jpeg_start_decompress", referenced from: _CommonRead in imgJPEG.o "_jpeg_std_error", referenced from: _CommonRead in imgJPEG.o _CommonWrite in imgJPEG.o "_jpeg_write_scanlines", referenced from: _CommonWrite in imgJPEG.o "_png_create_info_struct", referenced from: _CommonReadPNG in imgPNG.o _CommonWrite in imgPNG.o "_png_create_read_struct", referenced from: _CommonRead in imgPNG.o "_png_create_write_struct", referenced from: _CommonWrite in imgPNG.o "_png_destroy_read_struct", referenced from: _CommonReadPNG in imgPNG.o "_png_destroy_write_struct", referenced from: _CommonWrite in imgPNG.o _CommonWritePNG in imgPNG.o "_png_error", referenced from: _tk_png_read in imgPNG.o _tk_png_write in imgPNG.o "_png_get_IHDR", referenced from: _CommonReadPNG in imgPNG.o "_png_get_channels", referenced from: _CommonReadPNG in imgPNG.o "_png_get_error_ptr", referenced from: _tk_png_error in imgPNG.o _CommonReadPNG in imgPNG.o _CommonWritePNG in imgPNG.o "_png_get_gAMA", referenced from: _CommonReadPNG in imgPNG.o "_png_get_io_ptr", referenced from: _tk_png_read in imgPNG.o _tk_png_write in imgPNG.o "_png_get_rowbytes", referenced from: _CommonReadPNG in imgPNG.o "_png_get_sRGB", referenced from: _CommonReadPNG in imgPNG.o "_png_get_valid", referenced from: _CommonReadPNG in imgPNG.o "_png_read_image", referenced from: _CommonReadPNG in imgPNG.o "_png_read_info", referenced from: _CommonReadPNG in imgPNG.o "_png_read_update_info", referenced from: _CommonReadPNG in imgPNG.o "_png_set_IHDR", referenced from: _CommonWritePNG in imgPNG.o "_png_set_expand", referenced from: _CommonReadPNG in imgPNG.o "_png_set_gAMA", referenced from: _CommonWritePNG in imgPNG.o "_png_set_gamma", referenced from: _CommonReadPNG in imgPNG.o "_png_set_interlace_handling", referenced from: _CommonWritePNG in imgPNG.o "_png_set_read_fn", referenced from: _CommonRead in imgPNG.o "_png_set_sRGB", referenced from: _CommonReadPNG in imgPNG.o "_png_set_strip_16", referenced from: _CommonReadPNG in imgPNG.o "_png_set_text", referenced from: _CommonWritePNG in imgPNG.o "_png_set_write_fn", referenced from: _CommonWrite in imgPNG.o "_png_write_end", referenced from: _CommonWritePNG in imgPNG.o "_png_write_info", referenced from: _CommonWritePNG in imgPNG.o "_png_write_row", referenced from: _CommonWritePNG in imgPNG.o "_tclStubsPtr", referenced from: _Img_Init in imgInit.o _tkimg_Read in tkimgIO.o _tkimg_Write in tkimgIO.o _tkimg_Putc in tkimgIO.o _tkimg_Finish in tkimgIO.o _tkimg_WriteInit in tkimgIO.o _tkimg_ReadInit in tkimgIO.o ... "_tkStubsPtr", referenced from: _Tkimgpng_Init in imgPNG.o _CommonReadPNG in imgPNG.o _Tkimgjpeg_Init in imgJPEG.o _CommonRead in imgJPEG.o _Tkimgtiff_Init in imgTIFF.o _CommonRead in imgTIFF.o _Tkimgps_Init in imgPS.o ... ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) *** [Img.dylib] Error code 1 (ignored)