+ case "${usergroup_phase}" in
+ local run_cmd
+ run_cmd=run_su
+ shift
+ run_su /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/kore-4.2.3nb4/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/kore-4.2.3nb4/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
===> Building for kore-4.2.3nb4
/usr/bin/mkdir -p /home/pbulk/build/www/kore/work/kore-4.2.3/obj
gcc -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/opt/pkg/include -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -Iinclude/kore -Iobj -std=c99 -pedantic -Wtype-limits -fno-common -DPREFIX='"/opt/pkg"' -fstack-protector-all -DTLS_BACKEND_OPENSSL -I/opt/pkg/include -DKORE_USE_TASKS -c src/kore.c -o obj/kore.o
In file included from src/kore.c:30:
include/kore/kore.h:140:9: error: unknown type name 'u_int64_t'
  140 |         u_int64_t                       mtime;
      |         ^~~~~~~~~
include/kore/kore.h:142:9: error: unknown type name 'u_int64_t'
  142 |         u_int64_t                       expiration;
      |         ^~~~~~~~~
include/kore/kore.h:149:9: error: unknown type name 'u_int8_t'
  149 |         u_int8_t                *buf;
      |         ^~~~~~~~
include/kore/kore.h:153:9: error: unknown type name 'u_int8_t'
  153 |         u_int8_t                type;
      |         ^~~~~~~~
include/kore/kore.h:154:9: error: unknown type name 'u_int8_t'
  154 |         u_int8_t                flags;
      |         ^~~~~~~~
include/kore/kore.h:226:9: error: unknown type name 'u_int8_t'
  226 |         u_int8_t                state;
      |         ^~~~~~~~
include/kore/kore.h:227:9: error: unknown type name 'u_int8_t'
  227 |         u_int8_t                proto;
      |         ^~~~~~~~
include/kore/kore.h:234:9: error: unknown type name 'u_int16_t'
  234 |         u_int16_t               flags;
      |         ^~~~~~~~~
include/kore/kore.h:250:17: error: unknown type name 'u_int64_t'
  250 |                 u_int64_t       length;
      |                 ^~~~~~~~~
include/kore/kore.h:251:17: error: unknown type name 'u_int64_t'
  251 |                 u_int64_t       start;
      |                 ^~~~~~~~~
include/kore/kore.h:259:9: error: unknown type name 'u_int64_t'
  259 |         u_int64_t                       http_start;
      |         ^~~~~~~~~
include/kore/kore.h:260:9: error: unknown type name 'u_int64_t'
  260 |         u_int64_t                       http_timeout;
      |         ^~~~~~~~~
include/kore/kore.h:288:21: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
  288 |                     u_int8_t, const void *, size_t);
      |                     ^~~~~~~~
      |                     uint8_t
include/kore/kore.h:307:9: error: unknown type name 'u_int8_t'
  307 |         u_int8_t                method;
      |         ^~~~~~~~
include/kore/kore.h:334:9: error: unknown type name 'u_int16_t'
  334 |         u_int16_t                               id;
      |         ^~~~~~~~~
include/kore/kore.h:336:9: error: unknown type name 'u_int64_t'
  336 |         u_int64_t                               logwarn;
      |         ^~~~~~~~~
include/kore/kore.h:397:9: error: unknown type name 'u_int8_t'
  397 |         u_int8_t                type;
      |         ^~~~~~~~
include/kore/kore.h:449:9: error: unknown type name 'u_int16_t'
  449 |         u_int16_t               domain;
      |         ^~~~~~~~~
include/kore/kore.h:450:9: error: unknown type name 'u_int16_t'
  450 |         u_int16_t               loglen;
      |         ^~~~~~~~~
include/kore/kore.h:461:9: error: unknown type name 'u_int16_t'
  461 |         u_int16_t                       id;
      |         ^~~~~~~~~
include/kore/kore.h:462:9: error: unknown type name 'u_int16_t'
  462 |         u_int16_t                       cpu;
      |         ^~~~~~~~~
include/kore/kore.h:471:9: error: unknown type name 'u_int8_t'
  471 |         u_int8_t                        has_lock;
      |         ^~~~~~~~
include/kore/kore.h:473:9: error: unknown type name 'u_int64_t'
  473 |         u_int64_t                       time_locked;
      |         ^~~~~~~~~
include/kore/kore.h:491:9: error: unknown type name 'u_int8_t'
  491 |         u_int8_t                        type;
      |         ^~~~~~~~
include/kore/kore.h:504:9: error: unknown type name 'u_int8_t'
  504 |         u_int8_t                *data;
      |         ^~~~~~~~
include/kore/kore.h:581:15: error: unknown type name 'u_int8_t'
  581 |         const u_int8_t                  *data;
      |               ^~~~~~~~
include/kore/kore.h:591:9: error: unknown type name 'u_int32_t'
  591 |         u_int32_t                       type;
      |         ^~~~~~~~~
include/kore/kore.h:601:17: error: unknown type name 'u_int64_t'
  601 |                 u_int64_t                       u64;
      |                 ^~~~~~~~~
include/kore/kore.h:617:9: error: unknown type name 'u_int8_t'
  617 |         u_int8_t                        state;
      |         ^~~~~~~~
include/kore/kore.h:636:9: error: unknown type name 'u_int64_t'
  636 |         u_int64_t       nextrun;
      |         ^~~~~~~~~
include/kore/kore.h:637:9: error: unknown type name 'u_int64_t'
  637 |         u_int64_t       interval;
      |         ^~~~~~~~~
include/kore/kore.h:640:39: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  640 |         void            (*cb)(void *, u_int64_t);
      |                                       ^~~~~~~~~
      |                                       uint64_t
include/kore/kore.h:683:9: error: unknown type name 'u_int8_t'
  683 |         u_int8_t        id;
      |         ^~~~~~~~
include/kore/kore.h:684:9: error: unknown type name 'u_int16_t'
  684 |         u_int16_t       src;
      |         ^~~~~~~~~
include/kore/kore.h:685:9: error: unknown type name 'u_int16_t'
  685 |         u_int16_t       dst;
      |         ^~~~~~~~~
include/kore/kore.h:693:9: error: unknown type name 'u_int8_t'
  693 |         u_int8_t        data[];
      |         ^~~~~~~~
include/kore/kore.h:699:9: error: unknown type name 'u_int8_t'
  699 |         u_int8_t        data[];
      |         ^~~~~~~~
include/kore/kore.h:724:8: error: unknown type name 'u_int8_t'
  724 | extern u_int8_t                 nlisteners;
      |        ^~~~~~~~
include/kore/kore.h:725:8: error: unknown type name 'u_int16_t'
  725 | extern u_int16_t                cpu_count;
      |        ^~~~~~~~~
include/kore/kore.h:726:8: error: unknown type name 'u_int8_t'
  726 | extern u_int8_t                 worker_count;
      |        ^~~~~~~~
include/kore/kore.h:730:8: error: unknown type name 'u_int8_t'
  730 | extern u_int8_t                 worker_set_affinity;
      |        ^~~~~~~~
include/kore/kore.h:731:8: error: unknown type name 'u_int32_t'
  731 | extern u_int32_t                worker_rlimit_nofiles;
      |        ^~~~~~~~~
include/kore/kore.h:732:8: error: unknown type name 'u_int32_t'
  732 | extern u_int32_t                worker_max_connections;
      |        ^~~~~~~~~
include/kore/kore.h:733:8: error: unknown type name 'u_int32_t'
  733 | extern u_int32_t                worker_active_connections;
      |        ^~~~~~~~~
include/kore/kore.h:734:8: error: unknown type name 'u_int32_t'
  734 | extern u_int32_t                worker_accept_threshold;
      |        ^~~~~~~~~
include/kore/kore.h:735:8: error: unknown type name 'u_int64_t'
  735 | extern u_int64_t                kore_websocket_maxframe;
      |        ^~~~~~~~~
include/kore/kore.h:736:8: error: unknown type name 'u_int64_t'
  736 | extern u_int64_t                kore_websocket_timeout;
      |        ^~~~~~~~~
include/kore/kore.h:737:8: error: unknown type name 'u_int32_t'
  737 | extern u_int32_t                kore_socket_backlog;
      |        ^~~~~~~~~
include/kore/kore.h:779:1: warning: parameter names (without types) in function declaration
  779 | int             kore_worker_spawn(u_int16_t, u_int16_t, u_int16_t);
      | ^~~
include/kore/kore.h:785:8: warning: parameter names (without types) in function declaration
  785 | struct kore_worker      *kore_worker_data(u_int8_t);
      |        ^~~~~~~~~~~
include/kore/kore.h:786:8: warning: parameter names (without types) in function declaration
  786 | struct kore_worker      *kore_worker_data_byid(u_int16_t);
      |        ^~~~~~~~~~~
include/kore/kore.h:797:1: warning: parameter names (without types) in function declaration
  797 | void            kore_platform_event_wait(u_int64_t);
      | ^~~~
include/kore/kore.h:840:57: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
  840 | int             kore_tls_x509_data(struct connection *, u_int8_t **, size_t *);
      |                                                         ^~~~~~~~
      |                                                         uint8_t
include/kore/kore.h:847:1: warning: parameter names (without types) in function declaration
  847 | void            kore_accesslog_init(u_int16_t);
      | ^~~~
include/kore/kore.h:849:44: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  849 | void            kore_accesslog_run(void *, u_int64_t);
      |                                            ^~~~~~~~~
      |                                            uint64_t
include/kore/kore.h:850:47: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  850 | void            kore_accesslog_gather(void *, u_int64_t, int);
      |                                               ^~~~~~~~~
      |                                               uint64_t
include/kore/kore.h:865:1: warning: parameter names (without types) in function declaration
  865 | void            kore_timer_run(u_int64_t);
      | ^~~~
include/kore/kore.h:866:1: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  866 | u_int64_t       kore_timer_next_run(u_int64_t);
      | ^~~~~~~~~
      | uint64_t
include/kore/kore.h:866:1: warning: parameter names (without types) in function declaration
include/kore/kore.h:868:60: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  868 | struct kore_timer       *kore_timer_add(void (*cb)(void *, u_int64_t),
      |                                                            ^~~~~~~~~
      |                                                            uint64_t
include/kore/kore.h:869:29: error: expected ';', ',' or ')' before 'u_int64_t'
  869 |                             u_int64_t, void *, int);
      |                             ^~~~~~~~~
include/kore/kore.h:878:1: warning: parameter names (without types) in function declaration
  878 | void                    kore_connection_check_timeout(u_int64_t);
      | ^~~~
include/kore/kore.h:884:67: error: expected ')' before 'struct'
  884 | void                    kore_connection_check_idletimer(u_int64_t,
      |                                                                   ^
      |                                                                   )
  885 |                             struct connection *);
      |                             ~~~~~~                                 
include/kore/kore.h:908:1: warning: parameter names (without types) in function declaration
  908 | void            *kore_mem_lookup(u_int32_t);
      | ^~~~
include/kore/kore.h:910:38: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  910 | void            kore_mem_tag(void *, u_int32_t);
      |                                      ^~~~~~~~~
      |                                      uint32_t
include/kore/kore.h:911:45: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  911 | void            *kore_malloc_tagged(size_t, u_int32_t);
      |                                             ^~~~~~~~~
      |                                             uint32_t
include/kore/kore.h:926:1: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  926 | u_int64_t       kore_time_ms(void);
      | ^~~~~~~~~
      | uint64_t
include/kore/kore.h:932:1: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  932 | u_int64_t       kore_strtonum64(const char *, int, int *);
      | ^~~~~~~~~
      | uint64_t
include/kore/kore.h:942:50: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
  942 | int             kore_base64_decode(const char *, u_int8_t **, size_t *);
      |                                                  ^~~~~~~~
      |                                                  uint8_t
include/kore/kore.h:944:53: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
  944 | int             kore_base64url_decode(const char *, u_int8_t **, size_t *, int);
      |                                                     ^~~~~~~~
      |                                                     uint8_t
include/kore/kore.h:958:21: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
  958 |                     u_int8_t, const void *, size_t);
      |                     ^~~~~~~~
      |                     uint8_t
include/kore/kore.h:960:21: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
  960 |                     u_int8_t, const void *, size_t, int);
      |                     ^~~~~~~~
      |                     uint8_t
include/kore/kore.h:967:1: warning: parameter names (without types) in function declaration
  967 | void            kore_msg_unregister(u_int8_t);
      | ^~~~
include/kore/kore.h:970:51: error: expected ')' before 'const'
  970 | void            kore_msg_send(u_int16_t, u_int8_t, const void *, size_t);
      |                                                   ^~~~~~
      |                                                   )
include/kore/kore.h:971:44: error: expected ')' before 'void'
  971 | int             kore_msg_register(u_int8_t,
      |                                            ^
      |                                            )
  972 |                     void (*cb)(struct kore_msg *, const void *));
      |                     ~~~~                    
include/kore/kore.h:994:8: warning: parameter names (without types) in function declaration
  994 | struct kore_domain      *kore_domain_byid(u_int16_t);
      |        ^~~~~~~~~~~
include/kore/kore.h:1047:34: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
 1047 |             struct connection *, u_int8_t, const void *, size_t);
      |                                  ^~~~~~~~
      |                                  uint8_t
include/kore/kore.h:1054:50: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
 1054 | int             kore_validator_add(const char *, u_int8_t, const char *);
      |                                                  ^~~~~~~~
      |                                                  uint8_t
include/kore/kore.h:1064:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'?
 1064 | u_int16_t       net_read16(u_int8_t *);
      | ^~~~~~~~~
      | uint16_t
include/kore/kore.h:1064:28: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
 1064 | u_int16_t       net_read16(u_int8_t *);
      |                            ^~~~~~~~
      |                            uint8_t
include/kore/kore.h:1065:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
 1065 | u_int32_t       net_read32(u_int8_t *);
      | ^~~~~~~~~
      | uint32_t
include/kore/kore.h:1065:28: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
 1065 | u_int32_t       net_read32(u_int8_t *);
      |                            ^~~~~~~~
      |                            uint8_t
include/kore/kore.h:1066:1: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
 1066 | u_int64_t       net_read64(u_int8_t *);
      | ^~~~~~~~~
      | uint64_t
include/kore/kore.h:1066:28: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
 1066 | u_int64_t       net_read64(u_int8_t *);
      |                            ^~~~~~~~
      |                            uint8_t
include/kore/kore.h:1067:29: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
 1067 | void            net_write16(u_int8_t *, u_int16_t);
      |                             ^~~~~~~~
      |                             uint8_t
include/kore/kore.h:1067:41: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'?
 1067 | void            net_write16(u_int8_t *, u_int16_t);
      |                                         ^~~~~~~~~
      |                                         uint16_t
include/kore/kore.h:1068:29: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
 1068 | void            net_write32(u_int8_t *, u_int32_t);
      |                             ^~~~~~~~
      |                             uint8_t
include/kore/kore.h:1068:41: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
 1068 | void            net_write32(u_int8_t *, u_int32_t);
      |                                         ^~~~~~~~~
      |                                         uint32_t
include/kore/kore.h:1069:29: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
 1069 | void            net_write64(u_int8_t *, u_int64_t);
      |                             ^~~~~~~~
      |                             uint8_t
include/kore/kore.h:1069:41: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
 1069 | void            net_write64(u_int8_t *, u_int64_t);
      |                                         ^~~~~~~~~
      |                                         uint64_t
include/kore/kore.h:1096:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
 1096 | u_int8_t        *kore_buf_release(struct kore_buf *, size_t *);
      | ^~~~~~~~
      | uint8_t
include/kore/kore.h:1119:43: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
 1119 |                             const char *, u_int32_t);
      |                                           ^~~~~~~~~
      |                                           uint32_t
include/kore/kore.h:1121:43: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
 1121 |                             const char *, u_int32_t, ...);
      |                                           ^~~~~~~~~
      |                                           uint32_t
In file included from include/kore/http.h:25,
                 from src/kore.c:34:
include/kore/sha2.h:56:17: error: unknown type name 'u_int32_t'
   56 |                 u_int32_t       st32[8];
      |                 ^~~~~~~~~
include/kore/sha2.h:57:17: error: unknown type name 'u_int64_t'
   57 |                 u_int64_t       st64[8];
      |                 ^~~~~~~~~
include/kore/sha2.h:59:9: error: unknown type name 'u_int64_t'
   59 |         u_int64_t       bitcount[2];
      |         ^~~~~~~~~
include/kore/sha2.h:60:9: error: unknown type name 'u_int8_t'
   60 |         u_int8_t        buffer[SHA512_BLOCK_LENGTH];
      |         ^~~~~~~~
include/kore/sha2.h:64:22: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   64 | void SHA256Transform(u_int32_t state[8], const u_int8_t [SHA256_BLOCK_LENGTH]);
      |                      ^~~~~~~~~
      |                      uint32_t
include/kore/sha2.h:64:48: warning: type defaults to 'int' in declaration of 'u_int8_t' [-Wimplicit-int]
   64 | void SHA256Transform(u_int32_t state[8], const u_int8_t [SHA256_BLOCK_LENGTH]);
      |                                                ^~~~~~~~
include/kore/sha2.h:65:37: error: unknown type name 'u_int8_t'
   65 | void SHA256Update(SHA2_CTX *, const u_int8_t *, size_t);
      |                                     ^~~~~~~~
include/kore/sha2.h:67:18: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
   67 | void SHA256Final(u_int8_t [SHA256_DIGEST_LENGTH], SHA2_CTX *);
      |                  ^~~~~~~~
      |                  uint8_t
include/kore/sha2.h:71:22: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
   71 | void SHA384Transform(u_int64_t state[8], const u_int8_t [SHA384_BLOCK_LENGTH]);
      |                      ^~~~~~~~~
      |                      uint64_t
include/kore/sha2.h:71:48: warning: type defaults to 'int' in declaration of 'u_int8_t' [-Wimplicit-int]
   71 | void SHA384Transform(u_int64_t state[8], const u_int8_t [SHA384_BLOCK_LENGTH]);
      |                                                ^~~~~~~~
include/kore/sha2.h:72:37: error: unknown type name 'u_int8_t'
   72 | void SHA384Update(SHA2_CTX *, const u_int8_t *, size_t);
      |                                     ^~~~~~~~
include/kore/sha2.h:74:18: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
   74 | void SHA384Final(u_int8_t [SHA384_DIGEST_LENGTH], SHA2_CTX *);
      |                  ^~~~~~~~
      |                  uint8_t
include/kore/sha2.h:78:22: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
   78 | void SHA512Transform(u_int64_t state[8], const u_int8_t [SHA512_BLOCK_LENGTH]);
      |                      ^~~~~~~~~
      |                      uint64_t
include/kore/sha2.h:78:48: warning: type defaults to 'int' in declaration of 'u_int8_t' [-Wimplicit-int]
   78 | void SHA512Transform(u_int64_t state[8], const u_int8_t [SHA512_BLOCK_LENGTH]);
      |                                                ^~~~~~~~
include/kore/sha2.h:79:37: error: unknown type name 'u_int8_t'
   79 | void SHA512Update(SHA2_CTX *, const u_int8_t *, size_t);
      |                                     ^~~~~~~~
include/kore/sha2.h:81:18: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
   81 | void SHA512Final(u_int8_t [SHA512_DIGEST_LENGTH], SHA2_CTX *);
      |                  ^~~~~~~~
      |                  uint8_t
include/kore/http.h:99:9: error: unknown type name 'u_int32_t'
   99 |         u_int32_t                       maxage;
      |         ^~~~~~~~~
include/kore/http.h:101:9: error: unknown type name 'u_int16_t'
  101 |         u_int16_t                       flags;
      |         ^~~~~~~~~
include/kore/http.h:271:9: error: unknown type name 'u_int8_t'
  271 |         u_int8_t                        method;
      |         ^~~~~~~~
include/kore/http.h:272:9: error: unknown type name 'u_int8_t'
  272 |         u_int8_t                        fsm_state;
      |         ^~~~~~~~
include/kore/http.h:273:9: error: unknown type name 'u_int16_t'
  273 |         u_int16_t                       flags;
      |         ^~~~~~~~~
include/kore/http.h:274:9: error: unknown type name 'u_int16_t'
  274 |         u_int16_t                       status;
      |         ^~~~~~~~~
include/kore/http.h:275:9: error: unknown type name 'u_int64_t'
  275 |         u_int64_t                       ms;
      |         ^~~~~~~~~
include/kore/http.h:276:9: error: unknown type name 'u_int64_t'
  276 |         u_int64_t                       start;
      |         ^~~~~~~~~
include/kore/http.h:277:9: error: unknown type name 'u_int64_t'
  277 |         u_int64_t                       end;
      |         ^~~~~~~~~
include/kore/http.h:278:9: error: unknown type name 'u_int64_t'
  278 |         u_int64_t                       total;
      |         ^~~~~~~~~
include/kore/http.h:285:9: error: unknown type name 'u_int8_t'
  285 |         u_int8_t                        *headers;
      |         ^~~~~~~~
include/kore/http.h:289:9: error: unknown type name 'u_int64_t'
  289 |         u_int64_t                       http_body_length;
      |         ^~~~~~~~~
include/kore/http.h:290:9: error: unknown type name 'u_int64_t'
  290 |         u_int64_t                       http_body_offset;
      |         ^~~~~~~~~
include/kore/http.h:291:9: error: unknown type name 'u_int64_t'
  291 |         u_int64_t                       content_length;
      |         ^~~~~~~~~
include/kore/http.h:307:9: error: unknown type name 'u_int8_t'
  307 |         u_int8_t        http_body_digest[HTTP_BODY_DIGEST_LEN];
      |         ^~~~~~~~
include/kore/http.h:345:8: error: unknown type name 'u_int16_t'
  345 | extern u_int16_t        http_body_timeout;
      |        ^~~~~~~~~
include/kore/http.h:346:8: error: unknown type name 'u_int16_t'
  346 | extern u_int16_t        http_header_max;
      |        ^~~~~~~~~
include/kore/http.h:347:8: error: unknown type name 'u_int16_t'
  347 | extern u_int16_t        http_header_timeout;
      |        ^~~~~~~~~
include/kore/http.h:348:8: error: unknown type name 'u_int32_t'
  348 | extern u_int32_t        http_request_ms;
      |        ^~~~~~~~~
include/kore/http.h:349:8: error: unknown type name 'u_int64_t'
  349 | extern u_int64_t        http_hsts_enable;
      |        ^~~~~~~~~
include/kore/http.h:350:8: error: unknown type name 'u_int16_t'
  350 | extern u_int16_t        http_keepalive_time;
      |        ^~~~~~~~~
include/kore/http.h:351:8: error: unknown type name 'u_int32_t'
  351 | extern u_int32_t        http_request_limit;
      |        ^~~~~~~~~
include/kore/http.h:352:8: error: unknown type name 'u_int32_t'
  352 | extern u_int32_t        http_request_count;
      |        ^~~~~~~~~
include/kore/http.h:353:8: error: unknown type name 'u_int64_t'
  353 | extern u_int64_t        http_body_disk_offload;
      |        ^~~~~~~~~
include/kore/http.h:377:57: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  377 | int             http_check_timeout(struct connection *, u_int64_t);
      |                                                         ^~~~~~~~~
      |                                                         uint64_t
include/kore/http.h:398:53: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
  398 | int             http_state_run(struct http_state *, u_int8_t,
      |                                                     ^~~~~~~~
      |                                                     uint8_t
include/kore/http.h:403:57: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  403 |                     const char *, const char *, time_t, u_int32_t,
      |                                                         ^~~~~~~~~
      |                                                         uint32_t
src/kore.c:55:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
   55 | u_int8_t                nlisteners;
      | ^~~~~~~~
      | uint8_t
src/kore.c:58:1: error: unknown type name 'u_int16_t'; did you mean 'uint16_t'?
   58 | u_int16_t               cpu_count = 1;
      | ^~~~~~~~~
      | uint16_t
src/kore.c:62:1: error: unknown type name 'u_int8_t'; did you mean 'uint8_t'?
   62 | u_int8_t                worker_count = 0;
      | ^~~~~~~~
      | uint8_t
src/kore.c:66:1: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
   66 | u_int32_t               kore_socket_backlog = 5000;
      | ^~~~~~~~~
      | uint32_t
src/kore.c: In function 'main':
src/kore.c:179:17: error: 'optind' undeclared (first use in this function)
  179 |         argc -= optind;
      |                 ^~~~~~
src/kore.c:179:17: note: each undeclared identifier is reported only once for each function it appears in
src/kore.c: In function 'kore_default_getopt':
src/kore.c:306:22: warning: implicit declaration of function 'getopt'; did you mean 'gettxt'? [-Wimplicit-function-declaration]
  306 |         while ((ch = getopt(argc, argv, "c:fhnqrv")) != -1) {
      |                      ^~~~~~
      |                      gettxt
src/kore.c:314:44: warning: implicit declaration of function 'strdup'; did you mean 'strcmp'? [-Wimplicit-function-declaration]
  314 |                         if ((config_file = strdup(optarg)) == NULL)
      |                                            ^~~~~~
      |                                            strcmp
src/kore.c:314:51: error: 'optarg' undeclared (first use in this function)
  314 |                         if ((config_file = strdup(optarg)) == NULL)
      |                                                   ^~~~~~
src/kore.c: In function 'kore_listener_accept':
src/kore.c:627:9: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  627 |         u_int32_t               accepted;
      |         ^~~~~~~~~
      |         uint32_t
src/kore.c: In function 'kore_signal_trap':
src/kore.c:689:33: error: storage size of 'sa' isn't known
  689 |         struct sigaction        sa;
      |                                 ^~
src/kore.c:695:13: warning: implicit declaration of function 'sigfillset' [-Wimplicit-function-declaration]
  695 |         if (sigfillset(&sa.sa_mask) == -1)
      |             ^~~~~~~~~~
src/kore.c:698:13: warning: implicit declaration of function 'sigaction' [-Wimplicit-function-declaration]
  698 |         if (sigaction(sig, &sa, NULL) == -1)
      |             ^~~~~~~~~
src/kore.c:689:33: warning: unused variable 'sa' [-Wunused-variable]
  689 |         struct sigaction        sa;
      |                                 ^~
src/kore.c: In function 'kore_shutdown':
src/kore.c:733:17: warning: implicit declaration of function 'kore_msg_send'; did you mean 'kore_msg_init'? [-Wimplicit-function-declaration]
  733 |                 kore_msg_send(KORE_MSG_PARENT, KORE_MSG_SHUTDOWN, NULL, 0);
      |                 ^~~~~~~~~~~~~
      |                 kore_msg_init
src/kore.c: In function 'kore_proctitle_setup':
src/kore.c:764:24: warning: assignment to 'char *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  764 |                 if ((p = strdup(environ[i])) == NULL)
      |                        ^
src/kore.c: In function 'kore_server_start':
src/kore.c:777:9: error: unknown type name 'u_int32_t'; did you mean 'uint32_t'?
  777 |         u_int32_t                       tmp;
      |         ^~~~~~~~~
      |         uint32_t
src/kore.c:779:9: error: unknown type name 'u_int64_t'; did you mean 'uint64_t'?
  779 |         u_int64_t                       netwait;
      |         ^~~~~~~~~
      |         uint64_t
src/kore.c:818:21: warning: implicit declaration of function 'daemon' [-Wimplicit-function-declaration]
  818 |                 if (daemon(1, 0) == -1)
      |                     ^~~~~~
src/kore.c:896:17: warning: implicit declaration of function 'kore_timer_add'; did you mean 'kore_timer_run'? [-Wimplicit-function-declaration]
  896 |                 kore_timer_add(kore_accesslog_run, 100, NULL, 0);
      |                 ^~~~~~~~~~~~~~
      |                 kore_timer_run
src/kore.c:896:32: error: 'kore_accesslog_run' undeclared (first use in this function); did you mean 'kore_accesslog'?
  896 |                 kore_timer_add(kore_accesslog_run, 100, NULL, 0);
      |                                ^~~~~~~~~~~~~~~~~~
      |                                kore_accesslog
src/kore.c: In function 'kore_server_shutdown':
src/kore.c:955:9: warning: implicit declaration of function 'kore_accesslog_gather'; did you mean 'kore_accesslog_init'? [-Wimplicit-function-declaration]
  955 |         kore_accesslog_gather(NULL, kore_time_ms(), 1);
      |         ^~~~~~~~~~~~~~~~~~~~~
      |         kore_accesslog_init
gmake: *** [Makefile:276: obj/kore.o] Error 1
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/www/kore
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-trunk/www/kore