=> Bootstrap dependency digest>=20010302: found digest-20190127 ===> Building for zsnes-1.51nb4 c++ -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s -fno-rtti -o tools/fileutil.o -c tools/fileutil.cpp c++ -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s -fno-rtti -o tools/strutil.o -c tools/strutil.cpp c++ -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s -fno-rtti -o tools/depbuild tools/depbuild.cpp tools/fileutil.o tools/strutil.o tools/depbuild gcc "-O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s" nasm " -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1" cfg.o endmem.o init.o initc.o input.o md.o patch.o ui.o vcache.o version.o zloader.o zmovie.o zpath.o zstate.o ztime.o ztimec.o chips/c4emu.o chips/c4proc.o chips/dsp1emu.o chips/dsp1proc.o chips/dsp2proc.o chips/dsp3emu.o chips/dsp3proc.o chips/dsp4emu.o chips/dsp4proc.o chips/fxemu2.o chips/fxemu2b.o chips/fxemu2c.o chips/fxtable.o chips/obc1emu.o chips/obc1proc.o chips/sa1proc.o chips/sa1regs.o chips/sdd1emu.o chips/seta10.o chips/sfxproc.o chips/st10proc.o chips/7110proc.o chips/seta11.o chips/st11proc.o cpu/dma.o cpu/dsp.o cpu/dspproc.o cpu/execute.o cpu/executec.o cpu/irq.o cpu/memory.o cpu/memtable.o cpu/spc700.o cpu/stable.o cpu/table.o cpu/tablec.o debugasm.o debugger.o gui/gui.o gui/guifuncs.o gui/menu.o effects/burn.o effects/smoke.o effects/water.o jma/7zlzma.o jma/crc32.o jma/iiostrm.o jma/inbyte.o jma/jma.o jma/lzma.o jma/lzmadec.o jma/winout.o jma/zsnesjma.o mmlib/mm.o video/makev16b.o video/makev16t.o video/makevid.o video/mode716.o video/mode716b.o video/mode716d.o video/mode716e.o video/mode716t.o video/mode7.o video/mode7ext.o video/mv16tms.o video/m716text.o video/newg162.o video/newgfx.o video/newgfx16.o video/newgfx2.o video/procvid.o video/procvidc.o video/sw_draw.o video/2xsaiw.o video/hq2x16.o video/hq2x32.o video/hq3x16.o video/hq3x32.o video/hq4x16.o video/hq4x32.o video/ntsc.o video/copyvwin.o linux/audio.o linux/battery.o linux/sdlintrf.o linux/sdllink.o linux/gl_draw.o linux/sw_draw.o linux/safelib.o zip/unzip.o zip/zpng.o > makefile.dep c++ -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s -fno-rtti -o parsegen parsegen.cpp -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/local/lib -L/usr/lib -lz -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lSDL -lpthread -lpng -lm -lcurses -L/usr/X11R7/lib -lGL -lz nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o endmem.o endmem.asm nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o init.o init.asm gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s -o patch.o -c patch.c nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o vcache.o vcache.asm gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s -o version.o -c version.c nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o ztime.o ztime.asm gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s -o ztimec.o -c ztimec.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s -o chips/c4emu.o -c chips/c4emu.c nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/c4proc.o chips/c4proc.asm gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s -o chips/dsp1emu.o -c chips/dsp1emu.c nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/dsp1proc.o chips/dsp1proc.asm nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/dsp2proc.o chips/dsp2proc.asm gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s -o chips/dsp3emu.o -c chips/dsp3emu.c nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/dsp3proc.o chips/dsp3proc.asm gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s -o chips/dsp4emu.o -c chips/dsp4emu.c nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/dsp4proc.o chips/dsp4proc.asm nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/fxemu2.o chips/fxemu2.asm nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/fxemu2b.o chips/fxemu2b.asm parsegen.cpp: In function 'char* get_token(char*, char*)': parsegen.cpp:137:20: error: 'strchr' was not declared in this scope while (*pos && strchr(delim, *pos)) ^~~~~~ parsegen.cpp:137:20: note: suggested alternative: 'str' while (*pos && strchr(delim, *pos)) ^~~~~~ str parsegen.cpp:146:23: error: 'strchr' was not declared in this scope while (*pos && !strchr(delim, *pos)) ^~~~~~ parsegen.cpp:146:23: note: suggested alternative: 'str' while (*pos && !strchr(delim, *pos)) ^~~~~~ str parsegen.cpp: In function 'variable::ctype variable::GetCType(const char*)': parsegen.cpp:431:12: error: 'strcmp' was not declared in this scope if (!strcmp(info[i].CTypeSpace, str)) { break; } ^~~~~~ parsegen.cpp:431:12: note: suggested alternative: 'str' if (!strcmp(info[i].CTypeSpace, str)) { break; } ^~~~~~ str parsegen.cpp: In function 'char* convert_asm_type(const char*, bool)': parsegen.cpp:621:8: error: 'strcasecmp' was not declared in this scope if (!strcasecmp(str, "dd")) ^~~~~~~~~~ parsegen.cpp:621:8: note: suggested alternative: 'wcscasecmp' if (!strcasecmp(str, "dd")) ^~~~~~~~~~ wcscasecmp parsegen.cpp:623:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] var_type = "unsigned int"; ^~~~~~~~~~~~~~ parsegen.cpp:627:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] var_type = "unsigned short"; ^~~~~~~~~~~~~~~~ parsegen.cpp:631:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] var_type = "unsigned char"; ^~~~~~~~~~~~~~~ parsegen.cpp:635:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] var_type = "int"; ^~~~~ parsegen.cpp:639:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] var_type = "short"; ^~~~~~~ parsegen.cpp:643:16: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] var_type = "char"; ^~~~~~ parsegen.cpp:650:51: error: 'strlen' was not declared in this scope if (var_type && !strncmp(var_type, "unsigned ", strlen("unsigned ")) && !unsigned_var) ^~~~~~ parsegen.cpp:650:51: note: suggested alternative: 'mbrlen' if (var_type && !strncmp(var_type, "unsigned ", strlen("unsigned ")) && !unsigned_var) ^~~~~~ mbrlen parsegen.cpp:650:20: error: 'strncmp' was not declared in this scope if (var_type && !strncmp(var_type, "unsigned ", strlen("unsigned ")) && !unsigned_var) ^~~~~~~ parsegen.cpp:650:20: note: suggested alternative: 'wcsncmp' if (var_type && !strncmp(var_type, "unsigned ", strlen("unsigned ")) && !unsigned_var) ^~~~~~~ wcsncmp nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/fxemu2c.o chips/fxemu2c.asm nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/fxtable.o chips/fxtable.asm gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s -o chips/obc1emu.o -c chips/obc1emu.c parsegen.cpp: In function 'void handle_directive(const char*, const char*)': parsegen.cpp:1375:8: error: 'strcasecmp' was not declared in this scope if (!strcasecmp(instruction, "define")) ^~~~~~~~~~ parsegen.cpp:1375:8: note: suggested alternative: 'wcscasecmp' if (!strcasecmp(instruction, "define")) ^~~~~~~~~~ wcscasecmp parsegen.cpp: In function 'char* get_comment(char)': parsegen.cpp:1506:25: error: 'strlen' was not declared in this scope if (isspace(comment[strlen(comment)-1])) ^~~~~~ parsegen.cpp:1506:25: note: suggested alternative: 'mbrlen' if (isspace(comment[strlen(comment)-1])) ^~~~~~ mbrlen parsegen.cpp: In function 'void output_header_conditional(std::ostream&, const char*, const char*)': parsegen.cpp:1525:9: error: 'strcasecmp' was not declared in this scope if ((!strcasecmp(instruction, "elifdef") || !strcasecmp(instruction, "elseifdef")) && label) ^~~~~~~~~~ parsegen.cpp:1525:9: note: suggested alternative: 'wcscasecmp' if ((!strcasecmp(instruction, "elifdef") || !strcasecmp(instruction, "elseifdef")) && label) ^~~~~~~~~~ wcscasecmp parsegen.cpp: In function 'void parser_generate(std::istream&, std::ostream&, std::ostream&, std::__cxx11::string)': parsegen.cpp:1558:63: error: 'strlen' was not declared in this scope psr_file_hash = crc32(psr_file_hash, (const Bytef *)line, strlen(line)); ^~~~~~ parsegen.cpp:1558:63: note: suggested alternative: 'mbrlen' psr_file_hash = crc32(psr_file_hash, (const Bytef *)line, strlen(line)); ^~~~~~ mbrlen parsegen.cpp:1582:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if ((token = get_token(line, " ")) && ^ parsegen.cpp:1583:10: error: 'strcasecmp' was not declared in this scope (strcasecmp(token, "NEWSYM") || (token = get_token(0, " ,")))) ^~~~~~~~~~ parsegen.cpp:1583:10: note: suggested alternative: 'wcscasecmp' (strcasecmp(token, "NEWSYM") || (token = get_token(0, " ,")))) ^~~~~~~~~~ wcscasecmp parsegen.cpp:1583:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] (strcasecmp(token, "NEWSYM") || (token = get_token(0, " ,")))) ^ parsegen.cpp:1587:44: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] char *next_token = get_token(0, " "); ^ parsegen.cpp:1590:47: error: 'strncasecmp' was not declared in this scope if (cheader_stream && (!next_token || strncasecmp(next_token, "PSR_", strlen("PSR_")))) ^~~~~~~~~~~ parsegen.cpp:1590:47: note: suggested alternative: 'wcsncasecmp' if (cheader_stream && (!next_token || strncasecmp(next_token, "PSR_", strlen("PSR_")))) ^~~~~~~~~~~ wcsncasecmp parsegen.cpp:1601:16: error: 'strchr' was not declared in this scope if ((d = strchr(token, ':'))) ^~~~~~ parsegen.cpp:1601:16: note: suggested alternative: 'strtoq' if ((d = strchr(token, ':'))) ^~~~~~ strtoq parsegen.cpp:1613:37: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if ((token = get_token(0, " ,"))) ^ parsegen.cpp:1620:39: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] ((token = get_token(0, " ")) && (array = enhanced_atoi(token)) && (token = get_token(0, " ")))) ^ parsegen.cpp:1620:104: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] ((token = get_token(0, " ")) && (array = enhanced_atoi(token)) && (token = get_token(0, " ")))) ^ parsegen.cpp:1627:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] string initial_value = get_token(0, " ,\n"); ^ parsegen.cpp:1673:44: error: 'strncmp' was not declared in this scope if ((init_value_num < 0) && !strncmp(var_type, "unsigned ", strlen("unsigned "))) ^~~~~~~ parsegen.cpp:1673:44: note: suggested alternative: 'wcsncmp' if ((init_value_num < 0) && !strncmp(var_type, "unsigned ", strlen("unsigned "))) ^~~~~~~ wcsncmp parsegen.cpp:610:38: error: 'strcmp' was not declared in this scope #define var_type_is_char(var_type) !strcmp(var_type+strlen(var_type)-strlen("char"), "char") ^ parsegen.cpp:1681:21: note: in expansion of macro 'var_type_is_char' if (var_type_is_char(var_type) || !init_value_num) ^~~~~~~~~~~~~~~~ parsegen.cpp:610:38: note: suggested alternative: 'strtoq' #define var_type_is_char(var_type) !strcmp(var_type+strlen(var_type)-strlen("char"), "char") ^ parsegen.cpp:1681:21: note: in expansion of macro 'var_type_is_char' if (var_type_is_char(var_type) || !init_value_num) ^~~~~~~~~~~~~~~~ parsegen.cpp:1727:49: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] if ((token = get_token(0, " ,\n"))) ^ parsegen.cpp:1735:55: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] } while((token = get_token(0, " ,\n"))); ^ parsegen.cpp: At global scope: parsegen.cpp:1831:5: warning: first argument of 'int main(size_t, const char**)' should be 'int' [-Wmain] int main(size_t argc, const char **argv) ^~~~ parsegen.cpp: In function 'int main(size_t, const char**)': parsegen.cpp:1839:10: error: 'strncmp' was not declared in this scope if (!strncmp(argv[param_pos], "-D", 2)) ^~~~~~~ parsegen.cpp:1839:10: note: suggested alternative: 'wcsncmp' if (!strncmp(argv[param_pos], "-D", 2)) ^~~~~~~ wcsncmp parsegen.cpp:1843:15: error: 'strcmp' was not declared in this scope else if (!strcmp(argv[param_pos], "-cheader")) ^~~~~~ parsegen.cpp:1843:15: note: suggested alternative: 'strtoq' else if (!strcmp(argv[param_pos], "-cheader")) ^~~~~~ strtoq nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/obc1proc.o chips/obc1proc.asm nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/sa1proc.o chips/sa1proc.asm nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/sa1regs.o chips/sa1regs.asm gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s -o chips/sdd1emu.o -c chips/sdd1emu.c gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s -o chips/seta10.o -c chips/seta10.c nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/sfxproc.o chips/sfxproc.asm nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/st10proc.o chips/st10proc.asm nasm -w-orphan-labels -D__UNIXSDL__ -D__BSDSDL__ -f elf -DELF -D__OPENGL__ -O1 -o chips/7110proc.o chips/7110proc.asm gcc -O2 -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/X11R7/include/libdrm -I/usr/include -pipe -I. -I/usr/local/include -I/usr/include -D__UNIXSDL__ -D__BSDSDL__ -I/usr/pkg/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -D_THREAD_SAFE -D__OPENGL__ -march=i386 -s -o chips/seta11.o -c chips/seta11.c distcc[2209] ERROR: compile parsegen.cpp on localhost failed gmake: *** [Makefile:107: parsegen] Error 1 gmake: *** Waiting for unfinished jobs.... *** Error code 2 Stop. make[1]: stopped in /usr/pkgsrc/emulators/zsnes *** Error code 1 Stop. make: stopped in /usr/pkgsrc/emulators/zsnes