+ 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/waste-1.0/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/waste-1.0/work.log
=> Bootstrap dependency digest>=20211023: found digest-20220214
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for waste-1.0
--- asyncdns.o ---
--- config.o ---
--- connection.o ---
--- filedb.o ---
--- listen.o ---
--- m_chat.o ---
--- m_file.o ---
--- m_keydist.o ---
--- asyncdns.o ---
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -c asyncdns.cpp
--- config.o ---
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -c config.cpp
--- connection.o ---
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -c connection.cpp
--- filedb.o ---
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -c filedb.cpp
--- listen.o ---
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -c listen.cpp
--- m_chat.o ---
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -c m_chat.cpp
--- m_file.o ---
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -c m_file.cpp
--- m_keydist.o ---
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -c m_keydist.cpp
--- config.o ---
In file included from config.cpp:20:
platform.h: In function 'char* safe_strncpy(char*, char*, int)':
platform.h:74:104: warning: no return statement in function returning non-void [-Wreturn-type]
   74 | static inline char *safe_strncpy(char *out, char *in, int maxl) { strncpy(out,in,maxl); out[maxl-1]=0; }
      |                                                                                                        ^
config.cpp: In member function 'int C_Config::ReadInt(char*, int)':
config.cpp:100:27: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  100 |   char *t=ReadString(name,"");
      |                           ^~
--- asyncdns.o ---
In file included from asyncdns.cpp:21:
platform.h: In function 'char* safe_strncpy(char*, char*, int)':
platform.h:74:104: warning: no return statement in function returning non-void [-Wreturn-type]
   74 | static inline char *safe_strncpy(char *out, char *in, int maxl) { strncpy(out,in,maxl); out[maxl-1]=0; }
      |                                                                                                        ^
--- connection.o ---
In file included from main.h:25,
                 from connection.cpp:20:
platform.h: In function 'char* safe_strncpy(char*, char*, int)':
platform.h:74:104: warning: no return statement in function returning non-void [-Wreturn-type]
   74 | static inline char *safe_strncpy(char *out, char *in, int maxl) { strncpy(out,in,maxl); out[maxl-1]=0; }
      |                                                                                                        ^
--- m_file.o ---
In file included from m_file.cpp:20:
platform.h: In function 'char* safe_strncpy(char*, char*, int)':
platform.h:74:104: warning: no return statement in function returning non-void [-Wreturn-type]
   74 | static inline char *safe_strncpy(char *out, char *in, int maxl) { strncpy(out,in,maxl); out[maxl-1]=0; }
      |                                                                                                        ^
m_file.cpp: In member function 'C_SHBuf* C_FileSendRequest::Make()':
m_file.cpp:147:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  147 |   debug_printf("sending a request with %d pairs, for %d items\n",m_need_chunks_indexused,m_need_chunks_used);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
m_file.cpp: In constructor 'C_FileSendReply::C_FileSendReply(C_SHBuf*)':
m_file.cpp:231:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
--- m_ping.o ---
--- m_file.o ---
  231 |       debug_printf("filesendreply: data length out of range, %d\n",m_data_len);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
m_file.cpp:243:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  243 |       debug_printf("filesendreply: got packet that is a header, with length of %d\n",datalen);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
m_file.cpp: In member function 'C_SHBuf* C_FileSendReply::Make()':
m_file.cpp:296:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  296 |       debug_printf("filesendreply::make() data length = %d\n",m_data_len);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
m_file.cpp: In member function 'void C_FileSendReply::set_data(unsigned char*, int)':
m_file.cpp:369:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
--- m_ping.o ---
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -D_FORTIFY_SOURCE=2 -I/usr/include -I/usr/include -c m_ping.cpp
--- m_file.o ---
  369 |     debug_printf("filesendreply::set_data() data length out of range, %d\n",len);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- connection.o ---
connection.cpp: In constructor 'C_Connection::C_Connection(char*, int, C_AsyncDNS*)':
connection.cpp:57:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   57 |     debug_printf("connection: call to socket() failed: %d.\n",ERRNO);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connection.cpp: In member function 'void C_Connection::init_crypt_gotpkey()':
connection.cpp:141:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  141 |     debug_printf("connection: got what looks like feedback on bfpubkey.\n");
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connection.cpp:229:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  229 |     debug_printf("connection: error encrypting session key\n");
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connection.cpp: In member function 'void C_Connection::init_crypt_decodekey()':
connection.cpp:258:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  258 |     debug_printf("connection: error decrypting session key with my own private key (%d,%d)\n",err,m_kl);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connection.cpp:289:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  289 |     debug_printf("connection: zero session key, aborting.\n");
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connection.cpp:299:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  299 |     debug_printf("connection: CBC IVs are equal, being hacked?\n");
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connection.cpp:307:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  307 |     debug_printf("connection: error decrypting session key (signature is wrong, being hacked?)\n");
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connection.cpp: In member function 'C_Connection::state C_Connection::run(int, int)':
connection.cpp:409:24: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  409 |           debug_printf("connection: error resolving hostname\n");
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connection.cpp:420:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  420 |       debug_printf("connection: connect() returned error: %d\n",ERRNO);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connection.cpp:437:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  437 |       debug_printf("connection::run: select() returned error: %d\n",ERRNO);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connection.cpp:442:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  442 |       debug_printf("connection::run: select() notified of error\n");
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connection.cpp: In member function 'void C_Connection::decrypt_buffer(void*, int)':
connection.cpp:676:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  676 |     debug_printf("connection::decrypt_buffer(): len=%d (&7)\n",len);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connection.cpp: In member function 'void C_Connection::encrypt_buffer(void*, int)':
connection.cpp:704:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  704 |     debug_printf("connection::encrypt_buffer(): len=%d (&7)\n",len);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
connection.cpp: In member function 'long unsigned int C_Connection::get_interface()':
connection.cpp:771:54: error: invalid conversion from 'int*' to 'Psocklen_t' {aka 'unsigned int*'} [-fpermissive]
  771 |   if (::getsockname(m_socket,(struct sockaddr *)&sin,(socklen_t *)&len)) return 0;
      |                                                      ^~~~~~~~~~~~~~~~~
      |                                                      |
      |                                                      int*
In file included from platform.h:51,
                 from main.h:25,
                 from connection.cpp:20:
/usr/include/sys/socket.h:552:62: note:   initializing argument 3 of 'int getsockname(int, sockaddr*, Psocklen_t)'
  552 | extern int getsockname(int, struct sockaddr *_RESTRICT_KYWD, Psocklen_t);
      |                                                              ^~~~~~~~~~
*** [connection.o] Error code 1

bmake: stopped in /home/pbulk/build/net/waste/work/waste
--- listen.o ---
In file included from main.h:25,
                 from listen.cpp:20:
platform.h: In function 'char* safe_strncpy(char*, char*, int)':
platform.h:74:104: warning: no return statement in function returning non-void [-Wreturn-type]
   74 | static inline char *safe_strncpy(char *out, char *in, int maxl) { strncpy(out,in,maxl); out[maxl-1]=0; }
      |                                                                                                        ^
listen.cpp: In constructor 'C_Listen::C_Listen(short int, char*)':
listen.cpp:30:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   30 |     debug_printf("C_Listen: call to socket() failed: %d.\n",ERRNO);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
listen.cpp:55:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   55 |       debug_printf("C_Listen: call to bind() failed: %d.\n",ERRNO);
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
listen.cpp:63:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   63 |         debug_printf("C_Listen: call to listen() failed: %d.\n",ERRNO);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
listen.cpp: In member function 'C_Connection* C_Listen::get_connect()':
listen.cpp:85:55: error: invalid conversion from 'int*' to 'Psocklen_t' {aka 'unsigned int*'} [-fpermissive]
   85 |  int s = accept(m_socket, (struct sockaddr *) &saddr, (socklen_t *)&length);
      |                                                       ^~~~~~~~~~~~~~~~~~~~
      |                                                       |
      |                                                       int*
In file included from platform.h:51,
                 from main.h:25,
                 from listen.cpp:20:
/usr/include/sys/socket.h:547:57: note:   initializing argument 3 of 'int accept(int, sockaddr*, Psocklen_t)'
  547 | extern int accept(int, struct sockaddr *_RESTRICT_KYWD, Psocklen_t);
      |                                                         ^~~~~~~~~~
*** [listen.o] Error code 1

bmake: stopped in /home/pbulk/build/net/waste/work/waste
--- m_chat.o ---
In file included from main.h:25,
                 from m_chat.cpp:21:
platform.h: In function 'char* safe_strncpy(char*, char*, int)':
platform.h:74:104: warning: no return statement in function returning non-void [-Wreturn-type]
   74 | static inline char *safe_strncpy(char *out, char *in, int maxl) { strncpy(out,in,maxl); out[maxl-1]=0; }
      |                                                                                                        ^
m_chat.cpp: In constructor 'C_MessageChatReply::C_MessageChatReply(C_SHBuf*)':
m_chat.cpp:39:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   39 |     debug_printf("chatreply: length of %d too big\n",in->GetLength());
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
m_chat.cpp: In member function 'C_SHBuf* C_MessageChatReply::Make()':
m_chat.cpp:53:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   53 |     debug_printf("chatreply::make() length is %d\n",l);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- m_keydist.o ---
In file included from m_keydist.cpp:20:
platform.h: In function 'char* safe_strncpy(char*, char*, int)':
platform.h:74:104: warning: no return statement in function returning non-void [-Wreturn-type]
   74 | static inline char *safe_strncpy(char *out, char *in, int maxl) { strncpy(out,in,maxl); out[maxl-1]=0; }
      |                                                                                                        ^
m_keydist.cpp: In constructor 'C_KeydistRequest::C_KeydistRequest(C_SHBuf*)':
m_keydist.cpp:57:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   57 |     debug_printf("keydistrequest: length out of range (%d)\n",datalen);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- filedb.o ---
In file included from main.h:25,
                 from filedb.cpp:21:
platform.h: In function 'char* safe_strncpy(char*, char*, int)':
platform.h:74:104: warning: no return statement in function returning non-void [-Wreturn-type]
   74 | static inline char *safe_strncpy(char *out, char *in, int maxl) { strncpy(out,in,maxl); out[maxl-1]=0; }
      |                                                                                                        ^
--- m_keydist.o ---
m_keydist.cpp:73:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   73 |     debug_printf("keydistrequest: key bits out of range (%d,%d,%d,%d)\n",m_key.bits,modlen,explen,datalen);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
m_keydist.cpp: In member function 'C_SHBuf* C_KeydistRequest::Make()':
m_keydist.cpp:85:18: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   85 |     debug_printf("keydistrequest::make(): bits=0\n");
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
m_keydist.cpp:103:16: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  103 |   debug_printf("keydistrequest: modlen=%d,explen=%d\n",modlen,explen);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
--- filedb.o ---
filedb.cpp: In member function 'int C_FileDB::DoScan(int, C_FileDB*)':
filedb.cpp:702:22: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
  702 |         debug_printf("C_FileDB::DoScan(): error calling findfirstfile(%s)!\n",s.cur_path);
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
filedb.cpp:725:20: error: 'struct dirent' has no member named 'd_type'
  725 |           int t=d->d_type;
      |                    ^~~~~~
filedb.cpp:733:40: error: 'DT_DIR' was not declared in this scope
  733 |             if (s.st_mode & S_IFDIR) t=DT_DIR;
      |                                        ^~~~~~
filedb.cpp:736:19: error: 'DT_DIR' was not declared in this scope
  736 |          if (t != DT_DIR)
      |                   ^~~~~~
filedb.cpp: In member function 'void C_FileDB::mp3_getmetainfo(std::FILE*, char*, int)':
filedb.cpp:1173:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
 1173 |    char *modes[4]={"Stereo","Joint Stereo","2 Channel","Mono"};
      |                    ^~~~~~~~
filedb.cpp:1173:29: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
 1173 |    char *modes[4]={"Stereo","Joint Stereo","2 Channel","Mono"};
      |                             ^~~~~~~~~~~~~~
filedb.cpp:1173:44: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
 1173 |    char *modes[4]={"Stereo","Joint Stereo","2 Channel","Mono"};
      |                                            ^~~~~~~~~~~
filedb.cpp:1173:56: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
 1173 |    char *modes[4]={"Stereo","Joint Stereo","2 Channel","Mono"};
      |                                                        ^~~~~~
*** [filedb.o] Error code 1

bmake: stopped in /home/pbulk/build/net/waste/work/waste
--- m_ping.o ---
In file included from m_ping.cpp:20:
platform.h: In function 'char* safe_strncpy(char*, char*, int)':
platform.h:74:104: warning: no return statement in function returning non-void [-Wreturn-type]
   74 | static inline char *safe_strncpy(char *out, char *in, int maxl) { strncpy(out,in,maxl); out[maxl-1]=0; }
      |                                                                                                        ^
m_ping.cpp: In constructor 'C_MessagePing::C_MessagePing(C_SHBuf*)':
m_ping.cpp:50:20: warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]
   50 |       debug_printf("Ping: got ping with nick > 32\n");
      |                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3 errors

bmake: stopped in /home/pbulk/build/net/waste/work/waste
*** Error code 2

Stop.
bmake[1]: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/net/waste
*** Error code 1

Stop.
bmake: stopped in /data/jenkins/workspace/pkgsrc-upstream-bulktest/net/waste