=> 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: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);
                 ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
imgPNG.c
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) {
        ^
        &
5 warnings generated.
imgJPEG.c
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) &&
         ^
         &
2 warnings generated.
imgTIFF.c
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))
                                           ^
5 warnings generated.
imgPS.c
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:");
               ^~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.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(
           ^
5 warnings generated.
imgTGA.c
imgXPM.c
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:2570: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:2553: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:2567: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:2567: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.
imgPCX.c
imgPPM.c
imgGIF.c
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: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: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);
                                                           ^
5 warnings generated.
imgBMP.c
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.
imgICO.c
imgXBM.c
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: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
3 warnings generated.
imgSGI.c
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);
    ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.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.")
^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/cdefs.h:208: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 */
    ^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.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.")
^
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/cdefs.h:208:48: note: expanded from macro '__deprecated_msg'
        #define __deprecated_msg(_msg) __attribute__((__deprecated__(_msg)))
                                                      ^
28 warnings generated.
imgSUN.c
imgSUN.c:531:6: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
                          fileWidth * sizeof (UByte)); 
                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.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.
imgWindow.c
rm -f Img.dylib
clang -dynamiclib -pipe -Os -I/opt/pkg/include  -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
Undefined symbols for architecture arm64:
  "_XGetImage", referenced from:
      _ObjRead in imgWindow.o
  "_XParseColor", referenced from:
      _CommonRead in imgXPM.o
  "_XQueryColors", referenced from:
      _ObjRead in imgWindow.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
*** [Img.dylib] Error code 1 (ignored)