WARNING: [license.mk] Every package should define a LICENSE.
===> Building for upclient-4.2.1.23nb4
/opt/pkg/bin/bmake  LDFLAGS='-L/opt/pkg/lib -lkvm'  OBJECTS='stats-bsd.c network.c base64.c options.c'  CFLAGS='-DPKG_SYSCONFDIR="\"/opt/pkg/etc\"" -pipe -Os -DPLATFORM_BSD -DCONFIGFILE=\"upclient.conf\"'  upclient
clang -DPKG_SYSCONFDIR="\"/opt/pkg/etc\"" -pipe -Os -DPLATFORM_BSD -DCONFIGFILE=\"upclient.conf\" -L/opt/pkg/lib -lkvm stats-bsd.c network.c base64.c options.c upclient.c -o upclient
stats-bsd.c:14:10: fatal error: 'kvm.h' file not found
#include <kvm.h>
         ^~~~~~~
1 error generated.
network.c:28:17: warning: implicit declaration of function 'write' is invalid in C99 [-Wimplicit-function-declaration]
    write_ret = write(fd, buf+nwritten, nbytes-nwritten);
                ^
network.c:46:16: warning: implicit declaration of function 'read' is invalid in C99 [-Wimplicit-function-declaration]
    read_ret = read(fd, buf+nread, nbytes-nread);
               ^
2 warnings generated.
base64.c:32:16: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
  int length = strlen((char *)string);
               ^
base64.c:32:16: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
base64.c:35:44: warning: implicitly declaring library function 'malloc' with type 'void *(unsigned long)' [-Wimplicit-function-declaration]
  unsigned char *result = (unsigned char *)malloc(((length + 3 - length % 3) * 4 / 3 + 1) * sizeof(char));
                                           ^
base64.c:35:44: note: include the header <stdlib.h> or explicitly provide a declaration for 'malloc'
base64.c:41:5: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
    exit(1);
    ^
base64.c:41:5: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
3 warnings generated.
options.c:75:6: warning: implicitly declaring library function 'strcmp' with type 'int (const char *, const char *)' [-Wimplicit-function-declaration]
  if(strcmp(key, "AuthKey") == 0) {
     ^
options.c:75:6: note: include the header <string.h> or explicitly provide a declaration for 'strcmp'
options.c:76:8: warning: implicitly declaring library function 'strlen' with type 'unsigned long (const char *)' [-Wimplicit-function-declaration]
    if(strlen(value) == AUTHKEY_REQUIRED_LEN) {
       ^
options.c:76:8: note: include the header <string.h> or explicitly provide a declaration for 'strlen'
options.c:77:7: warning: implicitly declaring library function 'strcpy' with type 'char *(char *, const char *)' [-Wimplicit-function-declaration]
      strcpy(cfg_authkey, value);
      ^
options.c:77:7: note: include the header <string.h> or explicitly provide a declaration for 'strcpy'
options.c:80:7: warning: implicitly declaring library function 'exit' with type 'void (int) __attribute__((noreturn))' [-Wimplicit-function-declaration]
      exit(-1);
      ^
options.c:80:7: note: include the header <stdlib.h> or explicitly provide a declaration for 'exit'
options.c:84:20: warning: implicit declaration of function 'atol' is invalid in C99 [-Wimplicit-function-declaration]
    cfg_interval = atol(value);
                   ^
options.c:106:21: warning: implicit declaration of function 'atol' is invalid in C99 [-Wimplicit-function-declaration]
    cfg_proxyport = atol(value);
                    ^
options.c:125:20: warning: implicit declaration of function 'atol' is invalid in C99 [-Wimplicit-function-declaration]
    cfg_sendidle = atol(value);
                   ^
options.c:131:20: warning: implicit declaration of function 'atol' is invalid in C99 [-Wimplicit-function-declaration]
    cfg_sendload = atol(value);
                   ^
options.c:135:18: warning: implicit declaration of function 'atol' is invalid in C99 [-Wimplicit-function-declaration]
    cfg_sendos = atol(value);
                 ^
options.c:138:23: warning: implicit declaration of function 'atol' is invalid in C99 [-Wimplicit-function-declaration]
    cfg_sendoslevel = atol(value);
                      ^
options.c:141:19: warning: implicit declaration of function 'atol' is invalid in C99 [-Wimplicit-function-declaration]
    cfg_sendcpu = atol(value);
                  ^
options.c:144:24: warning: implicit declaration of function 'atol' is invalid in C99 [-Wimplicit-function-declaration]
    cfg_sendcpulevel = atol(value);
                       ^
options.c:170:9: warning: implicitly declaring library function 'isblank' with type 'int (int)' [-Wimplicit-function-declaration]
  while(isblank(line[pos]))
        ^
options.c:170:9: note: include the header <ctype.h> or explicitly provide a declaration for 'isblank'
options.c:212:9: warning: implicitly declaring library function 'isalnum' with type 'int (int)' [-Wimplicit-function-declaration]
  while(isalnum(line[pos]) && i < MAX_KEY_LEN) {
        ^
options.c:212:9: note: include the header <ctype.h> or explicitly provide a declaration for 'isalnum'
options.c:243:9: warning: implicitly declaring library function 'isgraph' with type 'int (int)' [-Wimplicit-function-declaration]
  while(isgraph(line[pos]) && line[pos] != '#' && i < MAX_VAL_LEN) {
        ^
options.c:243:9: note: include the header <ctype.h> or explicitly provide a declaration for 'isgraph'
15 warnings generated.
upclient.c:165:24: warning: passing 'char [128]' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
    s2 = base64_encode(auth);
                       ^~~~
./base64.h:10:58: note: passing argument to parameter here
extern unsigned char *base64_encode(const unsigned char *);
                                                         ^
upclient.c:165:8: 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]
    s2 = base64_encode(auth);
       ^ ~~~~~~~~~~~~~~~~~~~
upclient.c:171:297: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
      sprintf(header, "POST http://%s%s HTTP/1.1\r\nHost: %s\r\nProxy-Connection: Close\r\nUser-Agent: upclient/%s/uptime-client-%s\r\nProxy-Authorization: Basic %s\r\nContent-type: application/x-www-form-urlencoded\r\nContent-length: %d\r\n\r\n", hostname, url, hostname, PROTOCOL, VERSION, s2, strlen(data) - 1);
                                                                                                                                                                                                                                           ~~                                                           ^~~~~~~~~~~~~~~~
                                                                                                                                                                                                                                           %lu
/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__)
                                                       ^~~~~~~~~~~
upclient.c:173:260: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
      sprintf(header, "POST http://%s%s HTTP/1.1\r\nHost: %s\r\nProxy-Connection: Close\r\nUser-Agent: upclient/%s/uptime-client-%s\r\nContent-type: application/x-www-form-urlencoded\r\nContent-length: %d\r\n\r\n", hostname, url, hostname, PROTOCOL, VERSION, strlen(data) - 1);
                                                                                                                                                                                                          ~~                                                       ^~~~~~~~~~~~~~~~
                                                                                                                                                                                                          %lu
/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__)
                                                       ^~~~~~~~~~~
upclient.c:176:233: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
    sprintf(header, "POST %s HTTP/1.1\r\nHost: %s\r\nConnection: Close\r\nUser-Agent: upclient/%s/uptime-client-%s\r\nContent-type: application/x-www-form-urlencoded\r\nContent-length: %d\r\n\r\n", url, hostname, PROTOCOL, VERSION, strlen(data) - 1);
                                                                                                                                                                                         ~~                                             ^~~~~~~~~~~~~~~~
                                                                                                                                                                                         %lu
/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__)
                                                       ^~~~~~~~~~~
upclient.c:319:3: warning: implicit declaration of function 'read_config' is invalid in C99 [-Wimplicit-function-declaration]
  read_config();
  ^
6 warnings generated.
*** [upclient] Error code 1

bmake[1]: stopped making "upclient" in /Users/pbulk/build/net/upclient/work/upclient-4.2.1.23/src
bmake[1]: 1 error

bmake[1]: stopped making "upclient" in /Users/pbulk/build/net/upclient/work/upclient-4.2.1.23/src
*** [bsd] Error code 2

bmake: stopped making "bsd" in /Users/pbulk/build/net/upclient/work/upclient-4.2.1.23/src
bmake: 1 error

bmake: stopped making "bsd" in /Users/pbulk/build/net/upclient/work/upclient-4.2.1.23/src
*** Error code 2

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

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