Bon dia, Jordi,
Jordi Sanfeliu wrote:
Since version 1.26 I'm unable to build 'ddrescue' (that is versions
1.26, 1.27 and 1.28) on my hobbyOS FiwixOS (https://www.fiwix.org).
Version 1.25 compiled successfully.
I'm using GCC 4.7.4 on FiwixOS 3.3:
Thank you very much for reporting this. The problem seems to be that your
compiler only knows about int and long versions of std::abs. The fix is
easy. Just change 'std::abs' to 'llabs' in line 178 of ddrescuelog.cc:
- if( std::abs( offset ) % hardbs )
+ if( llabs( offset ) % hardbs )
Best regards,
Antonio.