jivanpal / drat

Utility for performing data recovery and analysis of APFS partitions/containers.
GNU General Public License v3.0
163 stars 21 forks source link

Build fails on Linux #15

Closed KMayne closed 3 years ago

KMayne commented 3 years ago

For offline recovery, it might be helpful to have this tool available on Linux. Currently the build fails due to printf format string issues as well as relying on some non-portable C functions. I managed to hack it and get it to build successfully on Ubuntu 20.04 on a branch on my fork: https://github.com/KMayne/drat/tree/ubuntu-build

jivanpal commented 3 years ago

Thanks for reporting and working on this. I intend to test builds consistently on other platforms in the future, probably after 0.2.0 is released (ETA, 1 month or so). Binaries for those platforms should follow.

I have made needed changes on a new branch portable-test and tested them on Ubuntu 20.04. If you could checkout that branch and also test compilation, I'd appreciate it 🙂

KMayne commented 3 years ago

Awesome, this compiles with no problems for me. I'm not very familiar with POSIX so thanks for explaining :) I would have been keen to contribute more but sadly I discovered my entire disk was somehow completely zeroed which left my motivation similarly zeroed 🙃

jivanpal commented 3 years ago

Ouch... in any case, thanks for this — closing now.