+ case "${usergroup_phase}" in + local run_cmd + run_cmd=run_su + shift + run_su /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/ggrab-0.22anb1/work.log + su pbulk -c '"$@"' make /usr/pkg/bin/bmake all BATCH=1 DEPENDS_TARGET=/nonexistent WRKLOG=/tmp/bulklog/ggrab-0.22anb1/work.log => Bootstrap dependency digest>=20211023: found digest-20220214 WARNING: [license.mk] Every package should define a LICENSE. ===> Building for ggrab-0.22anb1 --- list.o --- --- cbuffer.o --- --- list.o --- c++ -pipe -O2 -I/usr/include -DREENTRANT -D_LARGEFILE64_SOURCE -Wall -Wshadow -O3 -c list.cpp --- cbuffer.o --- c++ -pipe -O2 -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"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- list.o --- 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"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- tools.o --- c++ -pipe -O2 -I/usr/include -DREENTRANT -D_LARGEFILE64_SOURCE -Wall -Wshadow -O3 -c tools.cpp --- ggrab.o --- c++ -pipe -O2 -I/usr/include -DREENTRANT -D_LARGEFILE64_SOURCE -Wall -Wshadow -O3 -c ggrab.cpp --- tools.o --- 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 'FILE* open_next_output_file(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"); | ^~~~~~~~~~~~~~~~~~~~~~~~~ --- pesstream.o --- c++ -pipe -O2 -I/usr/include -DREENTRANT -D_LARGEFILE64_SOURCE -Wall -Wshadow -O3 -c pesstream.cpp --- ggrab.o --- 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:301:17: warning: variable 'r' set but not used [-Wunused-but-set-variable] 301 | int r; | ^ 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.cpp: In function 'int toggle_sectionsd(char*)': ggrab.cpp:344:14: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 344 | write(sock, buffer, strlen(buffer)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ggrab.cpp: In function 'void generate_nomux_streams(int*, int, char*, int, int, bool, bool, long long int, bool, int)': ggrab.cpp:540:44: warning: '%d' directive writing 1 byte into a region of size between 0 and 255 [-Wformat-overflow=] 540 | sprintf(p_basename[i], "%ss%d_p", ga_basename, i); | ^~ ggrab.cpp:540:40: note: directive argument in the range [0, 9] 540 | sprintf(p_basename[i], "%ss%d_p", ga_basename, i); | ^~~~~~~~~ In file included from /usr/include/stdio.h:900, from ggrab.cpp:22: /usr/include/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 5 and 260 bytes into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ ggrab.cpp: In function 'void generate_raw_audio(int*, int, char*, int, int, bool, bool, long long int, bool, int)': ggrab.cpp:631:44: warning: '%d' directive writing 1 byte into a region of size between 0 and 255 [-Wformat-overflow=] 631 | sprintf(p_basename[i], "%ss%d_p", ga_basename, i); | ^~ ggrab.cpp:631:40: note: directive argument in the range [0, 9] 631 | sprintf(p_basename[i], "%ss%d_p", ga_basename, i); | ^~~~~~~~~ In file included from /usr/include/stdio.h:900, from ggrab.cpp:22: /usr/include/bits/stdio2.h:30:34: note: '__builtin___sprintf_chk' output between 5 and 260 bytes into a destination of size 256 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ --- pesstream.o --- In file included from pesstream.cpp:18: tools.h:12:1: warning: 'typedef' was ignored in this declaration 12 | typedef enum STARTFLAG {NO_START=0, START_SEQ, START_GOP}; | ^~~~~~~ pesstream.cpp: In member function 'void pesstream::fill_audio_pp(propack*)': pesstream.cpp:287:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 287 | errexit("Begin of audio frame not found"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pesstream.cpp: In member function 'void pesstream::get_pp_stats(char*, int)': pesstream.cpp:546:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 546 | errexit("Wrong length"); | ^~~~~~~~~~~~~~ pesstream.cpp: In function 'int openStream(char*, int, int, int, int*)': pesstream.cpp:590:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 590 | errexit("unable to lookup hostname"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ pesstream.cpp:598:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 598 | errexit("unable to lookup hostname"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ pesstream.cpp:605:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 605 | errexit("error to connect to socket"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ pesstream.cpp: In function 'void* readstream(pesstream&)': pesstream.cpp:656:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 656 | errexit ("cannot open Logfile"); | ^~~~~~~~~~~~~~~~~~~~~ pesstream.cpp: In function 'int openStream(char*, int, int, int, int*)': pesstream.cpp:616:14: warning: ignoring return value of 'ssize_t write(int, const void*, size_t)' declared with attribute 'warn_unused_result' [-Wunused-result] 616 | write(sock, buffer, strlen(buffer)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pesstream.cpp: In function 'void* readstream(pesstream&)': pesstream.cpp:648:21: warning: ignoring return value of 'int nice(int)' declared with attribute 'warn_unused_result' [-Wunused-result] 648 | nice(-10); | ~~~~^~~~~ --- sserver.o --- c++ -pipe -O2 -I/usr/include -DREENTRANT -D_LARGEFILE64_SOURCE -Wall -Wshadow -O3 -c sserver.cpp --- ggrab --- c++ -pipe -O2 -I/usr/include -DREENTRANT -D_LARGEFILE64_SOURCE -Wall -Wshadow -O3 -Wl,-zrelro -L/usr/lib64 -Wl,-R/usr/lib64 -Wl,-R/usr/pkg/lib -o ggrab list.o cbuffer.o tools.o ggrab.o pesstream.o -pthread -lpthread -lrt --- sserver.o --- sserver.cpp: In function 'int main(int, char**)': sserver.cpp:64:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 64 | a_arg[1] = "-p"; | ^~~~ sserver.cpp:67:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 67 | a_arg[4] = "-o"; | ^~~~ sserver.cpp:69:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 69 | a_arg[6] = "-host"; | ^~~~~~~ sserver.cpp:71:20: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 71 | a_arg[8] = "-nos"; | ^~~~~~ sserver.cpp:173:49: error: 'strlcpy' was not declared in this scope; did you mean 'strncpy'? 173 | strlcpy (a_filename,a_path, sizeof(a_filename)); | ^~~~~~~ | strncpy sserver.cpp:176:57: error: 'strlcat' was not declared in this scope; did you mean 'strncat'? 176 | strlcat(a_filename, "/", sizeof(a_filename)); | ^~~~~~~ | strncat sserver.cpp:189:57: error: 'strlcat' was not declared in this scope; did you mean 'strncat'? 189 | strlcat(a_filename, recdata.channelname, sizeof(a_filename)); | ^~~~~~~ | strncat sserver.cpp:210:57: error: 'strlcat' was not declared in this scope; did you mean 'strncat'? 210 | strlcat(a_filename, recdata.epgtitle, sizeof(a_filename)); | ^~~~~~~ | strncat sserver.cpp:216:49: error: 'strlcat' was not declared in this scope; did you mean 'strncat'? 216 | strlcat(a_filename, buf, sizeof(a_filename)); | ^~~~~~~ | strncat sserver.cpp: In function 'char* ExtractQuotedString(char*, char*, int)': sserver.cpp:284:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 284 | pe=ParseForString(ps, "\"", 1); | ^~~~ sserver.cpp: In function 'int AnalyzeXMLRequest(char*, RecordingData*)': sserver.cpp:322:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 322 | p1=ParseForString(szXML,"<record ", 1); | ^~~~~~~~~~ sserver.cpp:325:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 325 | p2=ParseForString(p1,"command=", 1); | ^~~~~~~~~~ sserver.cpp:330:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 330 | p1=ParseForString(p3,">", 1); | ^~~ sserver.cpp:335:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 335 | p2=ParseForString(p1,"<channelname>", 1); | ^~~~~~~~~~~~~~~ sserver.cpp:340:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 340 | p1=ParseForString(p2,"</channelname>", 0); | ^~~~~~~~~~~~~~~~ sserver.cpp:351:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 351 | p2=ParseForString(p1,"<epgtitle>", 1); | ^~~~~~~~~~~~ sserver.cpp:356:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 356 | p1=ParseForString(p2,"</epgtitle>", 0); | ^~~~~~~~~~~~~ sserver.cpp:367:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 367 | p2=ParseForString(p1,"<onidsid>", 1); | ^~~~~~~~~~~ sserver.cpp:372:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 372 | p1=ParseForString(p2,"</onidsid>", 0); | ^~~~~~~~~~~~ sserver.cpp:384:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 384 | p2=ParseForString(p1,"<mode>", 1); | ^~~~~~~~ sserver.cpp:389:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 389 | p1=ParseForString(p2,"</mode>", 0); | ^~~~~~~~~ sserver.cpp:399:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 399 | p2=ParseForString(szXML,"<videopid>", 1); | ^~~~~~~~~~~~ sserver.cpp:404:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 404 | p1=ParseForString(p2,"</videopid>", 0); | ^~~~~~~~~~~~~ sserver.cpp:413:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 413 | p2=ParseForString(szXML,"<audiopids selected=", 1); | ^~~~~~~~~~~~~~~~~~~~~~ sserver.cpp:418:34: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] 418 | p1=ParseForString(p3,">", 1); | ^~~ *** [sserver.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-el9-trunk-x86_64/multimedia/ggrab *** Error code 1 Stop. bmake: stopped making "all" in /data/jenkins/workspace/pkgsrc-el9-trunk-x86_64/multimedia/ggrab