+ 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/ggrab-0.22anb1/work.log
+ su pbulk -c '"$@"' make /opt/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/ggrab-0.22anb1/work.log
WARNING: [license.mk] Every package should define a LICENSE.
===> Building for ggrab-0.22anb1
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -DREENTRANT -D_LARGEFILE64_SOURCE  -Wall -Wshadow -O3 -c list.cpp
In file included from list.cpp:8:
tools.h:12:1: warning: 'typedef' was ignored in this declaration
   12 | typedef enum STARTFLAG {NO_START=0, START_SEQ, START_GOP};
      | ^~~~~~~
list.cpp: In function 'void* m_fill_video(void*)':
list.cpp:49:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   49 |                                 errexit ("m_fill_video: timeout waiting with all buffers filled");
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
list.cpp: In function 'void* m_fill_audio(void*)':
list.cpp:123:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  123 |                                 errexit ("m_fill_audio: timeout waiting with all buffers filled");
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
list.cpp: In constructor 'xlist::xlist(CBuffer*, S_TYPE)':
list.cpp:217:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  217 |                         errexit ("xlist::Type of Stream not found");
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
list.cpp: In member function 'PESELEM xlist::get_elem()':
list.cpp:259:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  259 |                         errexit ("xlist::getelem timeout wait for data");
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
list.cpp: In member function 'unsigned char xlist::sid()':
list.cpp:275:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  275 |                         errexit ("xlist::sid: timeout wait for data");
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
list.cpp: In constructor 'xlist::xlist(CBuffer*, S_TYPE)':
list.cpp:219:24: warning: 'void operator delete(void*, long unsigned int)' called on pointer returned from a mismatched allocation function [-Wmismatched-new-delete]
  219 |                 delete p_buf;
      |                        ^~~~~
list.cpp:174:61: note: returned from 'void* operator new [](long unsigned int)'
  174 |                 unsigned char * p_buf = new unsigned char[16];
      |                                                             ^
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -DREENTRANT -D_LARGEFILE64_SOURCE  -Wall -Wshadow -O3 -c cbuffer.cpp
In file included from cbuffer.cpp:8:
tools.h:12:1: warning: 'typedef' was ignored in this declaration
   12 | typedef enum STARTFLAG {NO_START=0, START_SEQ, START_GOP};
      | ^~~~~~~
cbuffer.cpp: In constructor 'CBuffer::CBuffer(int)':
cbuffer.cpp:17:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   17 |                 errexit("CBuffer::CBuffer: Fehler malloc Puffer");
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cbuffer.cpp: In member function 'void CBuffer::DiscardToPtr(CBUFPTR)':
cbuffer.cpp:84:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   84 |                 errexit ("Underrun at DiscardToPtr");
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~
cbuffer.cpp: In member function 'CBUFPTR CBuffer::SearchStreamId(CBUFPTR, int, unsigned char, unsigned char, unsigned char*)':
cbuffer.cpp:128:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  128 |                 errexit ("Pufferfehler SearchStreamID");
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cbuffer.cpp:198:42: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  198 |                                 errexit ("SearchStreamId: timeout wait for data");
      |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cbuffer.cpp: In member function 'int CBuffer::CopyBuffer(CBUFPTR, unsigned char*, int)':
cbuffer.cpp:224:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  224 |                 errexit ("CopyBuffer: data not avaiable in buffer");
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cbuffer.cpp:231:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  231 |                         errexit ("CopyBuffer: timeout waiting for data");
      |                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cbuffer.cpp: In member function 'int CBuffer::RemovePadding(CBUFPTR, int)':
cbuffer.cpp:278:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  278 |                 errexit ("RemovePadding: data not avaiable in buffer");
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -DREENTRANT -D_LARGEFILE64_SOURCE  -Wall -Wshadow -O3 -c tools.cpp
In file included from tools.cpp:6:
tools.h:12:1: warning: 'typedef' was ignored in this declaration
   12 | typedef enum STARTFLAG {NO_START=0, START_SEQ, START_GOP};
      | ^~~~~~~
tools.cpp: In function 'void fill_pes_len(unsigned char*, int)':
tools.cpp:84:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   84 |                 errexit ("fill_pes_len: len > 0xffff");
      |                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools.cpp: In function 'std::FILE* open_next_output_file(std::FILE*, char*, char*, int&)':
tools.cpp:156:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  156 |                 errexit("cannot open output file");
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
g++ -pipe -O2 -msave-args -fno-aggressive-loop-optimizations -I/usr/include -DREENTRANT -D_LARGEFILE64_SOURCE  -Wall -Wshadow -O3 -c ggrab.cpp
In file included from ggrab.cpp:34:
tools.h:12:1: warning: 'typedef' was ignored in this declaration
   12 | typedef enum STARTFLAG {NO_START=0, START_SEQ, START_GOP};
      | ^~~~~~~
ggrab.cpp: In function 'int main(int, char**)':
ggrab.cpp:74:43: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   74 |         char  *         dbox2name       = "dbox";
      |                                           ^~~~~~
ggrab.cpp: In function 'void install_signal_handler()':
ggrab.cpp:254:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  254 |                 errexit ("Set Handler SIGTERM");
      |                          ^~~~~~~~~~~~~~~~~~~~~
ggrab.cpp:257:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  257 |                 errexit ("Set Handler SIGINT");
      |                          ^~~~~~~~~~~~~~~~~~~~
ggrab.cpp:260:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  260 |                 errexit ("Set Handler SIGUSR2");
      |                          ^~~~~~~~~~~~~~~~~~~~~
ggrab.cpp:263:26: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  263 |                 errexit ("Set Handler SIGUSR1");
      |                          ^~~~~~~~~~~~~~~~~~~~~
ggrab.cpp: In function 'int toggle_sectionsd(char*)':
ggrab.cpp:313:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  313 |                 errexit("unable to lookup hostname");
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
ggrab.cpp:321:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  321 |                 errexit("unable to lookup hostname");
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~
ggrab.cpp:328:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  328 |                 errexit("error to connect to socket");
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
ggrab.cpp:330:17: error: 'fcntl' was not declared in this scope
  330 |         flags = fcntl(sock, F_GETFL, 0);
      |                 ^~~~~
ggrab.cpp: In function 'void generate_nomux_streams(int*, int, char*, int, int, bool, bool, long long int, bool, int)':
ggrab.cpp:573:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  573 |                                                 errexit ("generate_nomux_streams: fwrite failed");
      |                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ggrab.cpp: In function 'void generate_raw_audio(int*, int, char*, int, int, bool, bool, long long int, bool, int)':
ggrab.cpp:635:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  635 |                 fp[i]            = open_next_output_file (fp[i], p_basename[i], "mpg", seq[i]);
      |                                                                                 ^~~~~
ggrab.cpp:661:58: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  661 |                                                 errexit ("generate_raw_audio: fwrite failed");
      |                                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
*** [ggrab.o] Error code 1

bmake: stopped making "all" in /home/pbulk/build/multimedia/ggrab/work/ggrab-0.22a
bmake: 1 error

bmake: stopped making "all" in /home/pbulk/build/multimedia/ggrab/work/ggrab-0.22a
*** Error code 2

Stop.
bmake[1]: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/multimedia/ggrab
*** Error code 1

Stop.
bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-upstream-trunk/multimedia/ggrab