WARNING: [license.mk] Every package should define a LICENSE.
===> Building for makeztxt-1.40
cd libztxt && /opt/pkg/bin/bmake all
clang -pipe -Os -I/opt/pkg/include -I../../common -I.. -c ztxt_add_regex.c
clang -pipe -Os -I/opt/pkg/include -I../../common -I.. -c ztxt_generate_db.c
clang -pipe -Os -I/opt/pkg/include -I../../common -I.. -c ztxt_list_bookmarks.c
clang -pipe -Os -I/opt/pkg/include -I../../common -I.. -c ztxt_set.c
ztxt_set.c:40:11: warning: passing 'UInt8 [32]' 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]
  strncpy(db->dbHeader->name, new_title, dmDBNameLength);
          ^~~~~~~~~~~~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/secure/_string.h:128:28: note: expanded from macro 'strncpy'
                __builtin___strncpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                                         ^~~~
1 warning generated.
clang -pipe -Os -I/opt/pkg/include -I../../common -I.. -c ztxt_free.c
clang -pipe -Os -I/opt/pkg/include -I../../common -I.. -c ztxt_init.c
ztxt_init.c:63:10: warning: passing 'UInt8 [32]' 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]
  strcpy(header->name, "New zTXT database");
         ^~~~~~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/secure/_string.h:84:27: note: expanded from macro 'strcpy'
                __builtin___strcpy_chk (dest, __VA_ARGS__, __darwin_obsz (dest))
                                        ^~~~
ztxt_init.c:64:24: warning: implicit conversion from '__uint32_t' (aka 'unsigned int') to 'UInt16' (aka 'unsigned short') changes value from 134217728 to 0 [-Wconstant-conversion]
  header->attributes = htonl(0x0008);
                     ~ ^~~~~~~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/sys/_endian.h:136:25: note: expanded from macro 'htonl'
#define htonl(x)        __DARWIN_OSSwapInt32(x)
                        ^~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/libkern/_OSByteOrder.h:88:32: note: expanded from macro '__DARWIN_OSSwapInt32'
    (__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt32(x) : _OSSwapInt32(x))
                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode-13.4.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk/usr/include/libkern/_OSByteOrder.h:48:6: note: expanded from macro '__DARWIN_OSSwapConstInt32'
    ((__uint32_t)((((__uint32_t)(x) & 0xff000000U) >> 24) | \
     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
clang -pipe -Os -I/opt/pkg/include -I../../common -I.. -c ztxt_process.c
ztxt_process.c:264:25: warning: assigning to 'Bytef *' (aka 'unsigned char *') from 'char [8192]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        zstream.next_in = buf;
                        ^ ~~~
ztxt_process.c:265:26: warning: assigning to 'Bytef *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        zstream.next_out = zbuf;
                         ^ ~~~~
ztxt_process.c:297:37: warning: assigning to 'Bytef *' (aka 'unsigned char *') from 'char [8192]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
                    zstream.next_in = buf;
                                    ^ ~~~
ztxt_process.c:308:37: warning: assigning to 'Bytef *' (aka 'unsigned char *') from 'char [8192]' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
                    zstream.next_in = buf;
                                    ^ ~~~
ztxt_process.c:345:25: warning: assigning to 'Bytef *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        zstream.next_in = db->tmp;
                        ^ ~~~~~~~
ztxt_process.c:346:26: warning: assigning to 'Bytef *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
        zstream.next_out = zbuf;
                         ^ ~~~~
6 warnings generated.
ar rs libztxt.a ztxt_add_regex.o ztxt_generate_db.o ztxt_list_bookmarks.o ztxt_set.o ztxt_free.o ztxt_init.o ztxt_process.o
ar: creating archive libztxt.a
ranlib libztxt.a
clang -pipe -Os -I/opt/pkg/include -I../common -I. -c makeztxt.c
makeztxt.c:68:1: error: unknown type name 'u_long'; did you mean 'long'?
u_long  id_to_int(char *);
^~~~~~
long
makeztxt.c:89:3: error: use of undeclared identifier 'u_int'
  u_int         filesize;
  ^
makeztxt.c:150:7: error: use of undeclared identifier 'filesize'
      filesize = read(infile, inputbuf, instats.st_size);
      ^
makeztxt.c:151:15: error: use of undeclared identifier 'filesize'; did you mean 'insize'?
      errorif(filesize == -1);
              ^~~~~~~~
              insize
makeztxt.c:84:17: note: 'insize' declared here
  long          insize;
                ^
makeztxt.c:154:39: error: use of undeclared identifier 'filesize'; did you mean 'insize'?
      ztxt_set_data(ztxtdb, inputbuf, filesize);
                                      ^~~~~~~~
                                      insize
makeztxt.c:84:17: note: 'insize' declared here
  long          insize;
                ^
makeztxt.c:471:1: error: unknown type name 'u_long'; did you mean 'long'?
u_long
^~~~~~
long
makeztxt.c:477:22: error: use of undeclared identifier 'u_long'; did you mean 'long'?
  return (0x1000000*(u_long)idstr[0] +
                     ^~~~~~
                     long
makeztxt.c:477:21: error: reference to overloaded function could not be resolved; did you mean to call it?
  return (0x1000000*(u_long)idstr[0] +
                    ^~~~~~~~
makeztxt.c:477:29: error: expected ')'
  return (0x1000000*(u_long)idstr[0] +
                            ^
makeztxt.c:477:10: note: to match this '('
  return (0x1000000*(u_long)idstr[0] +
         ^
9 errors generated.
*** [makeztxt.o] Error code 1

bmake: stopped making "all" in /Users/pbulk/build/textproc/makeztxt/work/makeztxt-1.40b
bmake: 1 error

bmake: stopped making "all" in /Users/pbulk/build/textproc/makeztxt/work/makeztxt-1.40b
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/textproc/makeztxt
*** Error code 1

Stop.
bmake: stopped making "all" in /Volumes/data/jenkins/workspace/pkgsrc-macos-trunk-arm64/textproc/makeztxt