I have a problem. I need "par2" (the file repair tool) all the time, and I wanted to compile the latest version 0.4 for Porteus 2.0.
Naturally, for compiling, I just use Porteus 2.0 64bit XFCE.
When I try to compile, I get the following errors:
Code: Select all
In file included from par2cmdline.h:284:0,
from reedsolomon.cpp:20:
verificationhashtable.h: In member function ‘bool VerificationHashEntry::operator<(const VerificationHashEntry&) const’:
verificationhashtable.h:69:52: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
verificationhashtable.h: In member function ‘bool VerificationHashEntry::operator>(const VerificationHashEntry&) const’:
verificationhashtable.h:73:52: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
verificationhashtable.h: In static member function ‘static const VerificationHashEntry* VerificationHashEntry::Search(const VerificationHashEntry*, const MD5Hash&)’:
verificationhashtable.h:186:64: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
verificationhashtable.h:190:69: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
verificationhashtable.h: In member function ‘const VerificationHashEntry* VerificationHashTable::FindMatch(const VerificationHashEntry*, const Par2RepairerSourceFile*, FileCheckSummer&, bool&) const’:
verificationhashtable.h:405:126: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
In file included from par2cmdline.h:284:0,
from reedsolomon.cpp:20:
verificationhashtable.h:412:128: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
verificationhashtable.h:429:118: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
In file included from par2cmdline.h:289:0,
from reedsolomon.cpp:20:
par1fileformat.h: At global scope:
par1fileformat.h:41:15: warning: ignoring packed attribute because of unpacked non-POD field ‘MD5Hash PAR1FILEHEADER::controlhash’ [enabled by default]
par1fileformat.h:42:15: warning: ignoring packed attribute because of unpacked non-POD field ‘MD5Hash PAR1FILEHEADER::sethash’ [enabled by default]
par1fileformat.h:56:15: warning: ignoring packed attribute because of unpacked non-POD field ‘MD5Hash PAR1FILEENTRY::hashfull’ [enabled by default]
par1fileformat.h:57:15: warning: ignoring packed attribute because of unpacked non-POD field ‘MD5Hash PAR1FILEENTRY::hash16k’ [enabled by default]
reedsolomon.cpp:54:6: error: specializing member ‘ReedSolomon<Galois<8u, 285u, unsigned char> >::SetInput’ requires ‘template<>’ syntax
make[1]: *** [reedsolomon.o] Error 1
make[1]: Leaving directory `/root/Downloads/par2cmdline-0.4'
make: *** [all] Error 2
bash-4.2#