Mock Version: 5.5 Mock Version: 5.5 Mock Version: 5.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/unrar.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-394869-71812/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.s0yhvv4q:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.s0yhvv4q:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '20597c496c064d7896ab6102aeb99ede', '-D', '/var/lib/mock/dist-an23-dde-build-394869-71812/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.s0yhvv4q:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/unrar.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1724976000 Wrote: /builddir/build/SRPMS/unrar-5.9.4-1.3.an23.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/unrar.spec'], chrootPath='/var/lib/mock/dist-an23-dde-build-394869-71812/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=990gid=135user='mockbuild'nspawn_args=['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.s0yhvv4q:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11']unshare_net=TrueprintOutput=False) Using nspawn with args ['--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.s0yhvv4q:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11'] Executing command: ['/usr/bin/systemd-nspawn', '-q', '-M', '03e3bfc8c2104dc981c57f96af55720c', '-D', '/var/lib/mock/dist-an23-dde-build-394869-71812/root', '-a', '-u', 'mockbuild', '--capability=cap_ipc_lock', '--bind=/tmp/mock-resolv.s0yhvv4q:/etc/resolv.conf', '--bind=/dev/mapper/control', '--bind=/dev/fuse', '--bind=/dev/loop-control', '--bind=/dev/loop0', '--bind=/dev/loop1', '--bind=/dev/loop2', '--bind=/dev/loop3', '--bind=/dev/loop4', '--bind=/dev/loop5', '--bind=/dev/loop6', '--bind=/dev/loop7', '--bind=/dev/loop8', '--bind=/dev/loop9', '--bind=/dev/loop10', '--bind=/dev/loop11', '--setenv=TERM=vt100', '--setenv=SHELL=/bin/bash', '--setenv=HOME=/builddir', '--setenv=HOSTNAME=mock', '--setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin', '--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"', '--setenv=PS1= \\s-\\v\\$ ', '--setenv=LANG=C.UTF-8', '--resolv-conf=off', 'bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/unrar.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8', 'SYSTEMD_NSPAWN_TMPFS_TMP': '0', 'SYSTEMD_SECCOMP': '0'} and shell False Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1724976000 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.pHO0Fu + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf unrar + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/unrarsrc-5.9.4.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd unrar + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/unrar-5.9.4-build.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /builddir/build/SOURCES/CVE-2022-48579.patch + /usr/bin/patch -s --fuzz=0 --no-backup-if-mismatch -f + cp -p /builddir/build/SOURCES/unrar.1 . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.nulmkX + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd unrar + /usr/bin/make -O -j80 V=1 VERBOSE=1 -f makefile unrar CXX=g++ 'CXXFLAGS=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC' 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/anolis/anolis-hardened-ld -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -Wl,--build-id=sha1 -pthread' STRIP=: g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c system.cpp In file included from rar.hpp:69, from system.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: system.o] Error 1 make: *** Waiting for unfinished jobs.... g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c isnt.cpp In file included from rar.hpp:69, from isnt.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: isnt.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c filcreat.cpp In file included from rar.hpp:69, from filcreat.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: filcreat.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c rawread.cpp In file included from rar.hpp:69, from rawread.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: rawread.o] Error 1 In file included from rar.hpp:69, from consio.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ consio.cpp: In function 'bool GetConsolePassword(UIPASSWORD_TYPE, const wchar*, SecPassword*)': consio.cpp:193:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 193 | if (!StdinRedirected) | ^ make: *** [makefile:132: consio.o] Error 1 In file included from rar.hpp:69, from options.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ options.cpp: In destructor 'RAROptions::~RAROptions()': options.cpp:13:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class RAROptions' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 13 | memset(this,0,sizeof(RAROptions)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rar.hpp:24: options.hpp:86:7: note: 'class RAROptions' declared here 86 | class RAROptions | ^~~~~~~~~~ options.cpp: In member function 'void RAROptions::Init()': options.cpp:19:9: warning: 'void* memset(void*, int, size_t)' clearing an object of type 'class RAROptions' with no trivial copy-assignment; use assignment or value-initialization instead [-Wclass-memaccess] 19 | memset(this,0,sizeof(RAROptions)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ options.hpp:86:7: note: 'class RAROptions' declared here 86 | class RAROptions | ^~~~~~~~~~ make: *** [makefile:132: options.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c consio.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c options.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c timefn.cpp In file included from rar.hpp:69, from timefn.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ timefn.cpp: In member function 'void RarTime::SetIsoText(const wchar*)': timefn.cpp:253:19: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 253 | if (FieldPos'; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ qopen.cpp: In member function 'bool QuickOpen::ReadNext()': qopen.cpp:290:8: warning: unused variable 'Flags' [-Wunused-variable] 290 | uint Flags=(uint)Raw.GetV(); | ^~~~~ make: *** [makefile:132: qopen.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c filestr.cpp In file included from rar.hpp:69, from filestr.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ filestr.cpp: In function 'bool ReadTextFile(const wchar*, StringList*, bool, bool, RAR_CHARSET, bool, bool, bool)': filestr.cpp:16:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 16 | if (Name!=NULL) | ^ make: *** [makefile:132: filestr.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c strlist.cpp In file included from rar.hpp:69, from strlist.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: strlist.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c rar.cpp In file included from rar.hpp:69, from rar.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: rar.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c global.cpp In file included from rar.hpp:69, from global.cpp:7: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: global.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c resource.cpp In file included from rar.hpp:69, from resource.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: resource.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c smallfn.cpp In file included from rar.hpp:69, from smallfn.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: smallfn.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c crc.cpp In file included from rar.hpp:69, from crc.cpp:15: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: crc.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c match.cpp In file included from rar.hpp:69, from match.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ match.cpp: In function 'bool CmpName(const wchar*, const wchar*, int)': match.cpp:51:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 51 | if (CmpMode==MATCH_SUBPATH || CmpMode==MATCH_WILDSUBPATH) | ^ make: *** [makefile:132: match.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c filefn.cpp In file included from rar.hpp:69, from filefn.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ filefn.cpp: In function 'bool CreatePath(const wchar*, bool)': filefn.cpp:57:15: warning: comparison of integer expressions of different signedness: 'long int' and 'long unsigned int' [-Wsign-compare] 57 | if (s-Path>=ASIZE(DirName)) make: *** [makefile:132: filefn.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c ui.cpp In file included from rar.hpp:69, from ui.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ In file included from ui.cpp:12: uiconsole.cpp: In function 'UIASKREP_RESULT uiAskReplace(wchar*, size_t, int64, RarTime*, uint)': uiconsole.cpp:7:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct FindData'; use assignment or value-initialization instead [-Wclass-memaccess] 7 | memset(&ExistingFD,0,sizeof(ExistingFD)); // In case find fails. | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rar.hpp:40: find.hpp:8:8: note: 'struct FindData' declared here 8 | struct FindData | ^~~~~~~~ uiconsole.cpp: In member function 'void uiMsgStore::Msg()': uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_INCERRCOUNT' not handled in switch [-Wswitch] 86 | switch(Code) | ^ uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOTSFX' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_OLDTOSFX' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_WRONGSFXVER' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_HEADENCMISMATCH' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_DICTOUTMEM' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_USESMALLERDICT' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_MODIFYUNKNOWN' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_MODIFYOLD' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_MODIFYLOCKED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_MODIFYVOLUME' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOTVOLUME' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOTFIRSTVOLUME' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_RECVOLLIMIT' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_RECVOLFOUND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_OPFAILED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOTSUPPORTED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_ENCRNOTSUPPORTED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_RARZIPONLY' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_REPAIROLDFORMAT' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOFILESREPAIRED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOFILESTOADD' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOFILESTODELETE' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NTFSREQUIRED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_ZIPVOLSFX' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_FILERO' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_TOOLARGESFX' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_NOZIPSFX' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_EMAIL' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_ACLGET' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_ACLBROKEN' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_ACLUNKNOWN' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_ACLSET' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_STREAMBROKEN' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_STREAMUNKNOWN' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_UOWNERGET' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIERROR_OPENPRESERVEATIME' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_FIRST' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_BUILD' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_RRSEARCH' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_ANALYZEFILEDATA' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_RRFOUND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_RRNOTFOUND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_RRDAMAGED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_BLOCKSRECOVERED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_COPYINGDATA' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_AREADAMAGED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_SECTORDAMAGED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_SECTORRECOVERED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_SECTORNOTRECOVERED' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIMSG_FOUND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIWAIT_FIRST' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIWAIT_DISKFULLNEXT' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIWAIT_FCREATEERROR' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_FIRST' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_SEARCHDUPFILESSTART' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_SEARCHDUPFILESEND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_CLEARATTRSTART' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_CLEARATTRFILE' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_DELADDEDSTART' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_DELADDEDFILE' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_FILESFOUND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_ERASEDISK' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_FILESUMSTART' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_FILESUMPROGRESS' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_FILESUMEND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_PROTECTSTART' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_PROTECTEND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_TESTADDEDSTART' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_TESTADDEDEND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_RRTESTINGEND' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_NEWARCHIVE' not handled in switch [-Wswitch] uiconsole.cpp:86:9: warning: enumeration value 'UIEVENT_NEWREVFILE' not handled in switch [-Wswitch] make: *** [makefile:132: ui.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c getbits.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c threadpool.cpp In file included from rar.hpp:69, from getbits.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: getbits.o] Error 1 In file included from rar.hpp:69, from threadpool.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: threadpool.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c hash.cpp In file included from rar.hpp:69, from hash.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ hash.cpp: In member function 'bool HashValue::operator==(const HashValue&)': hash.cpp:33:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 33 | if (Type==HASH_RAR14 && cmp.Type==HASH_RAR14 || | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ make: *** [makefile:132: hash.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c volume.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c errhnd.cpp In file included from rar.hpp:69, from volume.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ volume.cpp: In function 'bool MergeArchive(Archive&, ComprDataIO*, bool, wchar)': volume.cpp:22:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 22 | hd->UnpVer>=20 && hd->FileHash.CRC32!=0xffffffff; | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [makefile:132: volume.o] Error 1 In file included from rar.hpp:69, from errhnd.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: errhnd.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c rarvm.cpp In file included from rar.hpp:69, from rarvm.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ rarvm.cpp: In member function 'bool RarVM::ExecuteStandardFilter(VM_StandardFilters)': rarvm.cpp:124:9: warning: enumeration value 'VMSF_NONE' not handled in switch [-Wswitch] 124 | switch(FilterType) | ^ make: *** [makefile:132: rarvm.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c unicode.cpp In file included from rar.hpp:69, from unicode.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: unicode.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c secpassword.cpp In file included from rar.hpp:69, from secpassword.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: secpassword.o] Error 1 In file included from rar.hpp:69, from file.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ file.cpp: In destructor 'virtual File::~File()': file.cpp:26:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 26 | if (hFile!=FILE_BAD_HANDLE && !SkipClose) | ^ file.cpp: In member function 'bool File::Create(const wchar*, uint)': file.cpp:179:8: warning: unused variable 'ShareRead' [-Wunused-variable] 179 | bool ShareRead=(Mode & FMF_SHAREREAD)!=0 || File::OpenShared; | ^~~~~~~~~ file.cpp: In member function 'bool File::Write(const void*, size_t)': file.cpp:336:20: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 336 | Success=Written==Size; | ~~~~~~~^~~~~~ file.cpp:357:20: warning: comparison of integer expressions of different signedness: 'ssize_t' {aka 'long int'} and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 357 | if (Written0) | ~~~~~~~^~~~~ file.cpp: In member function 'virtual int File::Read(void*, size_t)': file.cpp:383:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 383 | if (AllowExceptions) | ^ file.cpp: In member function 'virtual int64 File::Tell()': file.cpp:515:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 515 | if (hFile==FILE_BAD_HANDLE) | ^ make: *** [makefile:132: file.o] Error 1 In file included from rar.hpp:69, from encname.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: encname.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c file.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c encname.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c headers.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c rs.cpp In file included from rar.hpp:69, from headers.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ headers.cpp: In member function 'FileHeader& FileHeader::operator=(FileHeader&)': headers.cpp:43:9: warning: 'void* memcpy(void*, const void*, size_t)' writing to an object of type 'struct FileHeader' with no trivial copy-assignment; use copy-assignment or copy-initialization instead [-Wclass-memaccess] 43 | memcpy(this,&hd,sizeof(*this)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ In file included from rar.hpp:28: headers.hpp:175:8: note: 'struct FileHeader' declared here 175 | struct FileHeader:BlockHeader | ^~~~~~~~~~ make: *** [makefile:132: headers.o] Error 1 In file included from rar.hpp:69, from rs.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: rs.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c strfn.cpp In file included from rar.hpp:69, from strfn.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ strfn.cpp: In function 'bool IsAlpha(int)': strfn.cpp:195:18: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 195 | return ch>='A' && ch<='Z' || ch>='a' && ch<='z'; | ~~~~~~~~^~~~~~~~~~ make: *** [makefile:132: strfn.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c rijndael.cpp In file included from rar.hpp:69, from rijndael.cpp:8: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ rijndael.cpp: In member function 'void Rijndael::GenerateTables()': rijndael.cpp:448:27: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 448 | for (int i = 0,w = 1; i < sizeof(rcon)/sizeof(rcon[0]); i++) | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [makefile:132: rijndael.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c arcread.cpp In file included from rar.hpp:69, from arcread.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ arcread.cpp: In member function 'size_t Archive::ReadHeader()': arcread.cpp:17:9: warning: enumeration value 'RARFMT_NONE' not handled in switch [-Wswitch] 17 | switch(Format) | ^ arcread.cpp:17:9: warning: enumeration value 'RARFMT_FUTURE' not handled in switch [-Wswitch] arcread.cpp: In member function 'size_t Archive::ReadHeader15()': arcread.cpp:187:9: warning: enumeration value 'HEAD_MARK' not handled in switch [-Wswitch] 187 | switch(ShortBlock.HeaderType) | ^ arcread.cpp:187:9: warning: enumeration value 'HEAD_MAIN' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD_FILE' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD_SERVICE' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD_CRYPT' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD_ENDARC' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD_UNKNOWN' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD3_MARK' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD3_CMT' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD3_AV' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD3_OLDSERVICE' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD3_PROTECT' not handled in switch [-Wswitch] arcread.cpp:187:9: warning: enumeration value 'HEAD3_SIGN' not handled in switch [-Wswitch] arcread.cpp: In member function 'size_t Archive::ReadHeader50()': arcread.cpp:699:9: warning: enumeration value 'HEAD_MARK' not handled in switch [-Wswitch] 699 | switch(ShortBlock.HeaderType) | ^ arcread.cpp:699:9: warning: enumeration value 'HEAD_UNKNOWN' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_MARK' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_MAIN' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_FILE' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_CMT' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_AV' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_OLDSERVICE' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_PROTECT' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_SIGN' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_SERVICE' not handled in switch [-Wswitch] arcread.cpp:699:9: warning: enumeration value 'HEAD3_ENDARC' not handled in switch [-Wswitch] arcread.cpp: In member function 'void Archive::ProcessExtra50(RawRead*, size_t, BaseBlock*)': arcread.cpp:1071:16: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 1071 | if ((Flags & FHEXTRA_HTIME_MTIME)!=0) | ^ arcread.cpp:1076:16: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 1076 | if ((Flags & FHEXTRA_HTIME_CTIME)!=0) | ^ arcread.cpp:1081:16: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 1081 | if ((Flags & FHEXTRA_HTIME_ATIME)!=0) | ^ arcread.cpp: In member function 'void Archive::ConvertFileHeader(FileHeader*)': arcread.cpp:1360:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 1360 | if (hd->HSType==HSYS_UNKNOWN) | ^ arcread.cpp:1402:29: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 1402 | if (*s=='/' || *s=='\\' && Format!=RARFMT50) | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ arcread.cpp: In member function 'bool Archive::ReadSubData(Array*, File*, bool)': arcread.cpp:1458:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 1458 | if (SubHead.Encrypted) | ^ make: *** [makefile:132: arcread.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c sha256.cpp In file included from rar.hpp:69, from sha256.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: sha256.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c list.cpp In file included from rar.hpp:69, from list.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ list.cpp: In function 'void ListArchive(CommandData*)': list.cpp:50:14: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 50 | if (Arc.Volume) | ^ list.cpp:92:17: warning: enumeration value 'HEAD_MARK' not handled in switch [-Wswitch] 92 | switch(HeaderType) | ^ list.cpp:92:17: warning: enumeration value 'HEAD_MAIN' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD_CRYPT' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD_ENDARC' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD_UNKNOWN' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_MARK' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_MAIN' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_FILE' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_CMT' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_AV' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_OLDSERVICE' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_PROTECT' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_SIGN' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_SERVICE' not handled in switch [-Wswitch] list.cpp:92:17: warning: enumeration value 'HEAD3_ENDARC' not handled in switch [-Wswitch] list.cpp:117:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 117 | if (!Bare && !Technical) | ^ list.cpp:151:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 151 | Arc.GetHeaderType()==HEAD_ENDARC && Arc.EndArcHead.NextVolume) && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ list.cpp: In function 'void ListFileHeader(Archive&, FileHeader&, bool&, bool, bool, bool)': list.cpp:264:15: warning: enumeration value 'FSREDIR_NONE' not handled in switch [-Wswitch] 264 | switch(hd.RedirType) | ^ In file included from rar.hpp:13: rardefs.hpp:4:24: warning: comparison of integer expressions of different signedness: 'int64' {aka 'long int'} and 'long unsigned int' [-Wsign-compare] 4 | #define Min(x,y) (((x)<(y)) ? (x):(y)) | ~~~^~~~ list.cpp:290:31: note: in expansion of macro 'Min' 290 | int DataSize=(int)Min(hd.PackSize,ASIZE(LinkTargetA)-1); | ^~~ list.cpp:278:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 278 | if (hd.RedirType!=FSREDIR_NONE) | ^ list.cpp: At global scope: list.cpp:4:13: warning: 'void ListSymLink(Archive&)' declared 'static' but never defined [-Wunused-function] 4 | static void ListSymLink(Archive &Arc); | ^~~~~~~~~~~ list.cpp:6:13: warning: 'void ListOldSubHeader(Archive&)' declared 'static' but never defined [-Wunused-function] 6 | static void ListOldSubHeader(Archive &Arc); | ^~~~~~~~~~~~~~~~ list.cpp:7:13: warning: 'void ListNewSubHeader(CommandData*, Archive&)' declared 'static' but never defined [-Wunused-function] 7 | static void ListNewSubHeader(CommandData *Cmd,Archive &Arc); | ^~~~~~~~~~~~~~~~ make: *** [makefile:132: list.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c rs16.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c blake2s.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c scantree.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c extinfo.cpp In file included from rar.hpp:69, from rs16.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: rs16.o] Error 1 In file included from rar.hpp:69, from blake2s.cpp:3: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: blake2s.o] Error 1 In file included from rar.hpp:69, from scantree.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ scantree.cpp: In member function 'bool ScanTree::GetNextMask()': scantree.cpp:226:51: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 226 | if (Name[0]=='.' && (Name[1]==0 || Name[1]=='.' && Name[2]==0)) | ~~~~~~~~~~~~~^~~~~~~~~~~~~ scantree.cpp: In member function 'SCAN_CODE ScanTree::FindProc(FindData*)': scantree.cpp:265:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 265 | FolderWildcards && Recurse!=RECURSE_DISABLE || | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ scantree.cpp:266:30: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 266 | Wildcards && Recurse==RECURSE_WILDCARDS || | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ scantree.cpp:267:35: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 267 | ScanEntireDisk && Recurse!=RECURSE_DISABLE); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [makefile:132: scantree.o] Error 1 In file included from rar.hpp:69, from extinfo.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ extinfo.cpp:116:61: error: 'std::wstring' has not been declared 116 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked) | ^~~ extinfo.cpp: In function 'bool LinksToDirs(const wchar*, const wchar*, int&)': extinfo.cpp:144:45: error: request for member 'size' in 'LastChecked', which is of non-class type 'int' 144 | for (uint I=0;Path[I]!=0 && I'; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ In file included from crypt.cpp:7: crypt3.cpp: In member function 'void CryptData::SetKey30(bool, SecPassword*, const wchar*, const byte*)': crypt3.cpp:8:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 8 | (Salt==NULL && !KDF3Cache[I].SaltPresent || Salt!=NULL && | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ crypt.cpp: In constructor 'CryptData::CryptData()': crypt.cpp:14:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct CryptData::KDF3CacheItem'; use assignment or value-initialization instead [-Wclass-memaccess] 14 | memset(KDF3Cache,0,sizeof(KDF3Cache)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from rar.hpp:26: crypt.hpp:35:10: note: 'struct CryptData::KDF3CacheItem' declared here 35 | struct KDF3CacheItem | ^~~~~~~~~~~~~ crypt.cpp:15:9: warning: 'void* memset(void*, int, size_t)' clearing an object of non-trivial type 'struct CryptData::KDF5CacheItem'; use assignment or value-initialization instead [-Wclass-memaccess] 15 | memset(KDF5Cache,0,sizeof(KDF5Cache)); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ crypt.hpp:25:10: note: 'struct CryptData::KDF5CacheItem' declared here 25 | struct KDF5CacheItem | ^~~~~~~~~~~~~ crypt.cpp: In member function 'void CryptData::DecryptBlock(byte*, size_t)': crypt.cpp:33:9: warning: enumeration value 'CRYPT_NONE' not handled in switch [-Wswitch] 33 | switch(Method) | ^ crypt.cpp: In member function 'bool CryptData::SetCryptKeys(bool, CRYPT_METHOD, SecPassword*, const byte*, const byte*, uint, byte*, byte*)': crypt.cpp:69:9: warning: enumeration value 'CRYPT_NONE' not handled in switch [-Wswitch] 69 | switch(Method) | ^ make: *** [makefile:132: crypt.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c archive.cpp In file included from rar.hpp:69, from archive.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ In file included from archive.cpp:3: arccmt.cpp: In member function 'bool Archive::DoGetComment(Array*)': arccmt.cpp:53:24: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 53 | if (Format==RARFMT14 && MainHead.PackComment || Format!=RARFMT14 && CommHead.Method!=0x30) | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~ archive.cpp: In static member function 'static RARFORMAT Archive::IsSignature(const byte*, size_t)': archive.cpp:102:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 102 | if (Size>=1 && D[0]==0x52) | ^ archive.cpp: In member function 'bool Archive::IsArchive(bool)': archive.cpp:206:46: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 206 | StartFound=Type==HEAD_MAIN || SilentOpen && Type==HEAD_CRYPT; | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ arccmt.cpp: At global scope: arccmt.cpp:1:13: warning: 'bool IsAnsiEscComment(const wchar*, size_t)' declared 'static' but never defined [-Wunused-function] 1 | static bool IsAnsiEscComment(const wchar *Data,size_t Size); | ^~~~~~~~~~~~~~~~ make: *** [makefile:132: archive.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c find.cpp In file included from rar.hpp:69, from find.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: find.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c pathfn.cpp g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c rdwrfn.cpp In file included from rar.hpp:69, from pathfn.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ pathfn.cpp: In function 'wchar* ConvertPath(const wchar*, wchar*, size_t)': pathfn.cpp:36:12: warning: unused variable 'SlashCount' [-Wunused-variable] 36 | uint SlashCount=0; | ^~~~~~~~~~ pathfn.cpp:35:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation] 35 | if (IsPathDiv(s[0]) && IsPathDiv(s[1])) | ^~ pathfn.cpp:37:7: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' 37 | for (const wchar *t=s+2;*t!=0;t++) | ^~~ pathfn.cpp:38:32: error: 'SlashCount' was not declared in this scope 38 | if (IsPathDiv(*t) && ++SlashCount==2) | ^~~~~~~~~~ pathfn.cpp:44:25: error: 's' was not declared in this scope 44 | for (const wchar *t=s;*t!=0;t++) | ^ pathfn.cpp:50:9: error: 's' was not declared in this scope 50 | if (s==DestPtr) | ^ pathfn.cpp:51:7: error: break statement not within loop or switch 51 | break; | ^~~~~ pathfn.cpp:52:13: error: 's' was not declared in this scope 52 | DestPtr=s; | ^ pathfn.cpp:53:3: warning: no return statement in function returning non-void [-Wreturn-type] 53 | } | ^ pathfn.cpp: At global scope: pathfn.cpp:56:3: error: expected unqualified-id before 'if' 56 | if (DestPtr[0]=='.' && DestPtr[1]=='.' && DestPtr[2]==0) | ^~ pathfn.cpp:59:3: error: expected unqualified-id before 'if' 59 | if (DestPath!=NULL) | ^~ pathfn.cpp:67:3: error: expected unqualified-id before 'return' 67 | return (wchar *)DestPtr; | ^~~~~~ pathfn.cpp:68:1: error: expected declaration before '}' token 68 | } | ^ pathfn.cpp: In function 'void MakeNameUsable(char*, bool)': pathfn.cpp:453:64: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 453 | if (strchr(Extended ? "?*<>|\"":"?*",*s)!=NULL || Extended && (byte)*s<32) | ~~~~~~~~~^~~~~~~~~~~~~~ pathfn.cpp: In function 'void MakeNameUsable(wchar*, bool)': pathfn.cpp:474:66: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 474 | if (wcschr(Extended ? L"?*<>|\"":L"?*",*s)!=NULL || Extended && (uint)*s<32) | ~~~~~~~~~^~~~~~~~~~~~~~ pathfn.cpp: In function 'void GenArcName(wchar*, size_t, const wchar*, uint, bool&)': pathfn.cpp:757:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 757 | if (StartWeekDay<0) | ^ make: *** [makefile:132: pathfn.o] Error 1 In file included from rar.hpp:69, from rdwrfn.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ rdwrfn.cpp: In member function 'int ComprDataIO::UnpRead(byte*, size_t)': rdwrfn.cpp:122:36: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 122 | (ReadSize==0 || Decryption && (TotalRead & CRYPT_BLOCK_MASK) != 0) ) | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [makefile:132: rdwrfn.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c cmddata.cpp In file included from rar.hpp:69, from cmddata.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ In file included from cmddata.cpp:3: cmdfilter.cpp: In member function 'bool CommandData::TimeCheck(RarTime&, RarTime&, RarTime&)': cmdfilter.cpp:196:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 196 | if (FileMtimeBefore.IsSet()) // Filter present. | ^ cmdfilter.cpp:206:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 206 | if (FileMtimeAfter.IsSet()) // Filter present. | ^ cmdfilter.cpp:216:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 216 | if (FileCtimeBefore.IsSet()) // Filter present. | ^ cmdfilter.cpp:226:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 226 | if (FileCtimeAfter.IsSet()) // Filter present. | ^ cmdfilter.cpp:236:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 236 | if (FileAtimeBefore.IsSet()) // Filter present. | ^ cmdfilter.cpp:246:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 246 | if (FileAtimeAfter.IsSet()) // Filter present. | ^ cmdfilter.cpp: In member function 'int CommandData::IsProcessFile(FileHeader&, bool*, int, bool, wchar*, uint)': cmdfilter.cpp:288:61: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 288 | if ((FileHead.FileAttr & ExclFileAttr)!=0 || FileHead.Dir && ExclDir) | ~~~~~~~~~~~~~^~~~~~~~~~ cmdfilter.cpp:290:37: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 290 | if (InclAttrSet && (!FileHead.Dir && (FileHead.FileAttr & InclFileAttr)==0 || | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cmddata.cpp: In member function 'void CommandData::ProcessSwitch(const wchar*)': cmddata.cpp:780:18: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 780 | if (!AlreadyBad) | ^ cmddata.cpp: In member function 'void CommandData::ProcessCommand()': cmddata.cpp:909:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 909 | if (Command[0]!=0 && Command[1]!=0 && wcschr(SingleCharCommands,Command[0])!=NULL || *ArcName==0) | ^ make: *** [makefile:132: cmddata.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c recvol.cpp In file included from rar.hpp:69, from recvol.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ In file included from recvol.cpp:3: recvol3.cpp: In function 'bool IsNewStyleRev(const wchar*)': recvol3.cpp:93:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 93 | if (!IsDigit(*Ext)) | ^ recvol3.cpp: In member function 'bool RecVolumes3::Restore(RAROptions*, const wchar*, bool)': recvol3.cpp:231:25: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 231 | if (RecVolNumber!=0 && RecVolNumber!=P[1] || FileNumber!=0 && FileNumber!=P[2]) | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ In file included from recvol.cpp:4: recvol5.cpp: In member function 'bool RecVolumes5::Restore(RAROptions*, const wchar*, bool)': recvol5.cpp:382:19: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare] 382 | if (ReadSize!=RecBufferSize) | ~~~~~~~~^~~~~~~~~~~~~~~ In file included from rar.hpp:13: rardefs.hpp:4:24: warning: comparison of integer expressions of different signedness: 'int' and 'uint64' {aka 'long unsigned int'} [-Wsign-compare] 4 | #define Min(x,y) (((x)<(y)) ? (x):(y)) | ~~~^~~~ recvol5.cpp:399:34: note: in expansion of macro 'Min' 399 | size_t WriteSize=(size_t)Min(MaxRead,Item->FileSize); | ^~~ make: *** [makefile:132: recvol.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c sha1.cpp In file included from rar.hpp:69, from sha1.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ make: *** [makefile:132: sha1.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c extract.cpp In file included from rar.hpp:69, from extract.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ extract.cpp: In member function 'void CmdExtract::DoExtract()': extract.cpp:76:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 76 | if (!Cmd->DisableDone) | ^ extract.cpp: In member function 'void CmdExtract::ExtractArchiveInit(Archive&)': extract.cpp:107:3: error: 'LastCheckedSymlink' was not declared in this scope 107 | LastCheckedSymlink.clear(); | ^~~~~~~~~~~~~~~~~~ extract.cpp: In member function 'EXTRACT_ARC_CODE CmdExtract::ExtractArchive()': extract.cpp:211:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 211 | if (!ExtractCurrentFile(Arc,Size,Repeat)) | ^ extract.cpp: In member function 'bool CmdExtract::ExtractCurrentFile(Archive&, size_t, bool&)': extract.cpp:242:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 242 | if (HeaderSize==0) | ^ extract.cpp:269:8: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 269 | if (HeaderType==HEAD_ENDARC) | ^ extract.cpp:365:40: error: 'RedirName' was not declared in this scope 365 | SlashToNative(Arc.FileHead.RedirName,RedirName,ASIZE(RedirName)); | ^~~~~~~~~ extract.cpp:376:32: warning: comparison of integer expressions of different signedness: 'uint' {aka 'unsigned int'} and 'int' [-Wsign-compare] 376 | if (Cmd->VersionControl-1==Version) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ extract.cpp:533:55: error: 'LastCheckedSymlink' was not declared in this scope 533 | ExtrFile=LinksToDirs(DestFileName,Cmd->ExtrPath,LastCheckedSymlink); | ^~~~~~~~~~~~~~~~~~ extract.cpp:598:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 598 | if (Command!='I') | ^ extract.cpp:662:14: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 662 | if (FileCreateMode && *NameExisting!=0) // *NameExisting can be 0 in case of excessive -ap switch. | ^ extract.cpp:686:15: error: 'LastCheckedSymlink' was not declared in this scope 686 | LastCheckedSymlink.clear(); // Reset cache for safety reason. | ^~~~~~~~~~~~~~~~~~ extract.cpp:668:9: warning: this 'else' clause does not guard... [-Wmisleading-indentation] 668 | else | ^~~~ extract.cpp:695:11: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else' 695 | if (!LinkSuccess || Arc.Format==RARFMT15 && !FileCreateMode) | ^~ extract.cpp:695:52: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 695 | if (!LinkSuccess || Arc.Format==RARFMT15 && !FileCreateMode) | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ extract.cpp:707:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 707 | if (!Arc.FileHead.SplitBefore) | ^ extract.cpp:783:82: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 783 | (!LinkEntry || SetAttrOnly || Arc.FileHead.RedirType==FSREDIR_FILECOPY && LinkSuccess) && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ extract.cpp:794:66: warning: comparison of integer expressions of different signedness: 'int64' {aka 'long int'} and 'uint64' {aka 'long unsigned int'} [-Wsign-compare] 794 | if (Preallocated>0 && (BrokenFile || DataIO.CurUnpWrite!=Preallocated)) | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ extract.cpp:832:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 832 | if (!ExtrFile) | ^ extract.cpp: In member function 'void CmdExtract::ExtrCreateDir(Archive&, const wchar*)': extract.cpp:1105:48: error: 'LastCheckedSymlink' was not declared in this scope 1105 | LinksToDirs(DestFileName,Cmd->ExtrPath,LastCheckedSymlink); | ^~~~~~~~~~~~~~~~~~ extract.cpp: In member function 'bool CmdExtract::ExtrCreateFile(Archive&, File&)': extract.cpp:1191:52: error: 'LastCheckedSymlink' was not declared in this scope 1191 | LinksToDirs(DestFileName,Cmd->ExtrPath,LastCheckedSymlink); | ^~~~~~~~~~~~~~~~~~ make: *** [makefile:132: extract.o] Error 1 g++ -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/anolis/anolis-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/anolis/anolis-annobin-cc1 -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DRAR_SMP -DUNRAR -c unpack.cpp In file included from rar.hpp:69, from unpack.cpp:1: extinfo.hpp:4:61: error: 'std::wstring' has not been declared 4 | bool LinksToDirs(const wchar *SrcName,const wchar *SkipPart,std::wstring &LastChecked); | ^~~ In file included from rar.hpp:70: extract.hpp:54:10: error: 'wstring' in namespace 'std' does not name a type 54 | std::wstring LastCheckedSymlink; | ^~~~~~~ extract.hpp:1:1: note: 'std::wstring' is defined in header ''; did you forget to '#include '? +++ |+#include 1 | #ifndef _RAR_EXTRACT_ In file included from unpack.cpp:3: model.cpp: In member function 'int ModelPPM::DecodeChar()': coder.cpp:23:45: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 23 | while ((low^(low+range))BlockHeader.TablePresent && !TablesRead5) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ unpack50mt.cpp:207:34: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 207 | if (!CurData->LargeBlock && !ProcessDecoded(*CurData) || | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ unpack50mt.cpp: In member function 'void Unpack::UnpackDecode(UnpackThreadData&)': unpack50mt.cpp:318:65: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 318 | if (D.Inp.InAddr>BlockBorder || D.Inp.InAddr==BlockBorder && | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 319 | D.Inp.InBit>=D.BlockHeader.BlockBitSize) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unpack50mt.cpp:325:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 325 | if ((D.Inp.InAddr>=DataBorder) && !D.NoDataLeft || D.Inp.InAddr>=D.DataSize) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ unpack50mt.cpp: In member function 'bool Unpack::UnpackLargeBlock(UnpackThreadData&)': unpack50mt.cpp:549:65: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 549 | if (D.Inp.InAddr>BlockBorder || D.Inp.InAddr==BlockBorder && | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 550 | D.Inp.InBit>=D.BlockHeader.BlockBitSize) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unpack50mt.cpp:556:38: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 556 | if ((D.Inp.InAddr>=DataBorder) && !D.NoDataLeft || D.Inp.InAddr>=D.DataSize) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ In file included from unpack.cpp:11: unpack15.cpp: In member function 'void Unpack::LongLZ()': unpack15.cpp:295:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 295 | if (Length!=1 && Length!=4) | ^ unpack15.cpp:309:42: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 309 | if (OldAvr3 > 0xb0 || AvrPlc >= 0x2a00 && OldAvr2 < 0x40) | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ In file included from unpack.cpp:12: unpack20.cpp: In member function 'void Unpack::ReadLastTables()': unpack20.cpp:259:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 259 | if (ReadTop>=Inp.InAddr+5) | ^ In file included from unpack.cpp:14: unpack30.cpp: In member function 'void Unpack::Unpack29(bool)': unpack30.cpp:30:19: warning: comparison of integer expressions of different signedness: 'int' and 'long unsigned int' [-Wsign-compare] 30 | for (int I=0;IParentFilter]->Prg; | ^~~~~~~~~ unpack30.cpp:561:29: warning: unused variable 'ParentPrg' [-Wunused-variable] 561 | VM_PreparedProgram *ParentPrg=&Filters30[flt->ParentFilter]->Prg; | ^~~~~~~~~ In file included from unpack.cpp:15: unpack50.cpp: In member function 'void Unpack::Unpack5(bool)': unpack50.cpp:30:73: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 30 | Inp.InAddr==BlockHeader.BlockStart+BlockHeader.BlockSize-1 && | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~ 31 | Inp.InBit>=BlockHeader.BlockBitSize) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unpack50.cpp:129:10: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 129 | if (LastLength!=0) | ^ unpack50.cpp: In member function 'void Unpack::UnpWriteBuf()': unpack50.cpp:393:21: warning: suggest parentheses around '&&' within '||' [-Wparentheses] 393 | WrPtr!=UnpPtr && ((WrPtr-UnpPtr)&MaxWinMask)<((WriteBorder-UnpPtr)&MaxWinMask)) | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ unpack.cpp: In member function 'void Unpack::Init(size_t, bool)': unpack.cpp:107:6: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else] 107 | if (NewWindow==NULL) | ^ make: *** [makefile:132: unpack.o] Error 1 RPM build errors: error: Bad exit status from /var/tmp/rpm-tmp.nulmkX (%build) Bad exit status from /var/tmp/rpm-tmp.nulmkX (%build) Child return code was: 1 EXCEPTION: [Error('Command failed: \n # /usr/bin/systemd-nspawn -q -M 03e3bfc8c2104dc981c57f96af55720c -D /var/lib/mock/dist-an23-dde-build-394869-71812/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.s0yhvv4q:/etc/resolv.conf --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin \'--setenv=PROMPT_COMMAND=printf "\\033]0;\\007"\' \'--setenv=PS1= \\s-\\v\\$ \' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c \'/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/unrar.spec\'\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 612, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (cmd_pretty(command, env), output), child.returncode) mockbuild.exception.Error: Command failed: # /usr/bin/systemd-nspawn -q -M 03e3bfc8c2104dc981c57f96af55720c -D /var/lib/mock/dist-an23-dde-build-394869-71812/root -a -u mockbuild --capability=cap_ipc_lock --bind=/tmp/mock-resolv.s0yhvv4q:/etc/resolv.conf --bind=/dev/mapper/control --bind=/dev/fuse --bind=/dev/loop-control --bind=/dev/loop0 --bind=/dev/loop1 --bind=/dev/loop2 --bind=/dev/loop3 --bind=/dev/loop4 --bind=/dev/loop5 --bind=/dev/loop6 --bind=/dev/loop7 --bind=/dev/loop8 --bind=/dev/loop9 --bind=/dev/loop10 --bind=/dev/loop11 --setenv=TERM=vt100 --setenv=SHELL=/bin/bash --setenv=HOME=/builddir --setenv=HOSTNAME=mock --setenv=PATH=/usr/bin:/bin:/usr/sbin:/sbin '--setenv=PROMPT_COMMAND=printf "\033]0;\007"' '--setenv=PS1= \s-\v\$ ' --setenv=LANG=C.UTF-8 --resolv-conf=off bash --login -c '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/unrar.spec'