Open guntgbtgv opened 7 months ago
I encountered the same issue because my homebrew path is different from the one specified in the Makefile (brew list argp-standalone
confirmed the include and library paths needed to be /opt/homebrew/...
instead of /usr/local/...
).
Other problems I encountered:
commands/modify.c
and commands/search.c
open_container__info_stream()
in include/drat/io.h
is missing the parameter (should be int open_container__info_stream(FILE* info_stream);
)include/drat/print-fs-records.c
Resolving those issues, everything builds successfully (MacBook Air M1 2020, Sonoma 14.4) and drat inspect
confirms more or less the same APFS issues I have with diskutil verifyvolume
.
Thanks, this solved the issue. I've applied the changed you've suggested, and compiled like magic.
However, in my case drat inspect
did not work
baggeon-u@gunoos-MacBook-Pro-2 drat % ./drat inspect --container /dev/disk7s2
Opening `/dev/disk7s2` in read-only mode ... open_container__info_stream: ERROR: You do not have sufficient privileges to read this file.
baggeon-u@gunoos-MacBook-Pro-2 drat % sudo ./drat inspect --container /dev/disk7s2
Password:
Opening `/dev/disk7s2` in read-only mode ... open_container__info_stream: ERROR: Unknown error.
This may be another issue, not related to the original compile issue.
Opening `/dev/disk7s2` in read-only mode ... open_container__info_stream: ERROR: You do not have sufficient privileges to read this file.
You'll need to run as root to have full access to the disk (sudo ./drat inspect ...
)
I'm trying this repo directly by
git clone
. (https://github.com/jivanpal/drat/issues/52#issuecomment-1872546923_ ) I've installed all the requirements in README.md, yet I get this error: