0x09 / hfsfuse

FUSE driver for HFS+ filesystems
Other
77 stars 13 forks source link

/hfsfuse-master/lib/libhfsuser/features.h:5:10: fatal error: 'utf8proc.h' file not found #21

Closed yoBoss283 closed 2 years ago

yoBoss283 commented 3 years ago

HI there,

I follow the commands here for my Macbook Pro 16, MacOS 11.3.1. First I did a brew update && brew upgrade. Then I downloaded the hfsfuse via the <> Code section, click Code > Download zip file > unpack it and then tried to install and get the following error message that a file is not found.

`username@Macbook hfsfuse-master % sudo make config WITH_UBILIO=none WITH_UTF8PROC=system Makefile:103: Warning: git repo nor prepackaged version.h found, hfsfuse will be built without version information echo "$CONFIG" > config.mak username@Macbook hfsfuse-master % sudo make Makefile:103: Warning: git repo nor prepackaged version.h found, hfsfuse will be built without version information cc -Wall -Wextra -pedantic -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -DFUSE_USE_VERSION=28 -I/usr/local/include -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfsuser -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfs -iquote /Users/username/Downloads/hfsfuse-master/lib/ublio -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -c -o src/hfsfuse.o src/hfsfuse.c /Library/Developer/CommandLineTools/usr/bin/make -C lib/libhfsuser/ cc -Wall -Wextra -pedantic -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfsuser -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfs -iquote /Users/username/Downloads/hfsfuse-master/lib/ublio -I/usr/local/include -DHAVE_BIRTHTIME -DHAVE_UBLIO -DHAVE_UTF8PROC -c -o cache.o cache.c cc -Wall -Wextra -pedantic -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfsuser -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfs -iquote /Users/username/Downloads/hfsfuse-master/lib/ublio -I/usr/local/include -DHAVE_BIRTHTIME -DHAVE_UBLIO -DHAVE_UTF8PROC -c -o features.o features.c In file included from features.c:25: /Users/username/Downloads/hfsfuse-master/lib/libhfsuser/features.h:5:10: fatal error: 'utf8proc.h' file not found

include "utf8proc.h"

     ^~~~~~~~~~~~

1 error generated. make[1]: [features.o] Error 1 make: [lib/libhfsuser/libhfsuser.a] Error 2 username@Macbook hfsfuse-master % `

0x09 commented 3 years ago

Hi @yoBoss283

By setting WITH_UTF8PROC=system you're specifying that hfsfuse should use the utf8proc library that's already installed on the system . Do you have utf8proc installed? If you don't need to use a preinstalled version of utf8proc, you can just run make without specifying this flag at all.

yoBoss283 commented 3 years ago

Hi @0x09

Thank for heads up, so I now did brew install utf8proc

Then did a `username@ hfsfuse-master % make config WITH_UBILIO=none WITH_UTF8PROC=system

Makefile:103: Warning: git repo nor prepackaged version.h found, hfsfuse will be built without version information echo "$CONFIG" > config.mak username@ hfsfuse-master % sudo make Password: Makefile:103: Warning: git repo nor prepackaged version.h found, hfsfuse will be built without version information cc -Wall -Wextra -pedantic -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -DFUSE_USE_VERSION=28 -I/usr/local/include -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfsuser -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfs -iquote /Users/username/Downloads/hfsfuse-master/lib/ublio -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -c -o src/hfsfuse.o src/hfsfuse.c /Library/Developer/CommandLineTools/usr/bin/make -C lib/libhfsuser/ cc -Wall -Wextra -pedantic -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfsuser -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfs -iquote /Users/username/Downloads/hfsfuse-master/lib/ublio -I/usr/local/include -DHAVE_BIRTHTIME -DHAVE_UBLIO -DHAVE_UTF8PROC -c -o cache.o cache.c cc -Wall -Wextra -pedantic -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfsuser -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfs -iquote /Users/username/Downloads/hfsfuse-master/lib/ublio -I/usr/local/include -DHAVE_BIRTHTIME -DHAVE_UBLIO -DHAVE_UTF8PROC -c -o features.o features.c In file included from features.c:25: In file included from /Users/username/Downloads/hfsfuse-master/lib/libhfsuser/features.h:11: /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:59:61: error: unknown type name 'off_t' ssize_t (up_pread) (void priv, void buf, size_t count, off_t off); ^ /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:61:24: error: unknown type name 'off_t' off_t off); ^ /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:62:61: error: unknown type name 'off_t' ssize_t (up_pwrite) (void priv, void buf, size_t count, off_t off); ^ /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:64:24: error: unknown type name 'off_t' off_t off); ^ /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:95:22: error: unknown type name 'off_t' off_t off); ^ /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:97:22: error: unknown type name 'off_t' off_t off); ^ 6 errors generated. make[1]: [features.o] Error 1 make: [lib/libhfsuser/libhfsuser.a] Error 2 username@ hfsfuse-master % `

And then I tried once without config and just run 'make' as you said (each time I delete the folder and redownload it from github)

`username@macbook hfsfuse-master % ls COPYING Makefile README.md lib src

username@macbook hfsfuse-master % sudo make

Password:

Makefile:103: Warning: git repo nor prepackaged version.h found, hfsfuse will be built without version information cc -Wall -Wextra -pedantic -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -DFUSE_USE_VERSION=28 -I/usr/local/include -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfsuser -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfs -iquote /Users/username/Downloads/hfsfuse-master/lib/ublio -iquote /Users/username/Downloads/hfsfuse-master/lib/utf8proc -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -c -o src/hfsfuse.o src/hfsfuse.c /Library/Developer/CommandLineTools/usr/bin/make -C lib/libhfsuser/ cc -Wall -Wextra -pedantic -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfsuser -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfs -iquote /Users/username/Downloads/hfsfuse-master/lib/ublio -iquote /Users/username/Downloads/hfsfuse-master/lib/utf8proc -I/usr/local/include -DHAVE_BIRTHTIME -DHAVE_UBLIO -DHAVE_UTF8PROC -c -o cache.o cache.c cc -Wall -Wextra -pedantic -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfsuser -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfs -iquote /Users/username/Downloads/hfsfuse-master/lib/ublio -iquote /Users/username/Downloads/hfsfuse-master/lib/utf8proc -I/usr/local/include -DHAVE_BIRTHTIME -DHAVE_UBLIO -DHAVE_UTF8PROC -c -o features.o features.c In file included from features.c:25: In file included from /Users/username/Downloads/hfsfuse-master/lib/libhfsuser/features.h:11: /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:59:61: error: unknown type name 'off_t' ssize_t (up_pread) (void priv, void buf, size_t count, off_t off); ^ /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:61:24: error: unknown type name 'off_t' off_t off); ^ /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:62:61: error: unknown type name 'off_t' ssize_t (up_pwrite) (void priv, void buf, size_t count, off_t off); ^ /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:64:24: error: unknown type name 'off_t' off_t off); ^ /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:95:22: error: unknown type name 'off_t' off_t off); ^ /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:97:22: error: unknown type name 'off_t' off_t off); ^ 6 errors generated. make[1]: [features.o] Error 1 make: [lib/libhfsuser/libhfsuser.a] Error 2 username@macbook hfsfuse-master % `

As you can see, I am a copy pasta user, so I am sorry if this is a bit to simple... I really don't know what is happening.

0x09 commented 3 years ago

@yoBoss283 that's odd, the macOS 11.3 SDK does define off_t in the system headers that are being included there. Do you mind running make up until that error occurs and then running CFLAGS=-v make and posting the output?

You can also use make WITH_UBLIO=none to get around this entirely (ublio is not required, it just potentially enhances performance), but I'm curious why that error is happening, especially since I'm also building on macOS 11.3.

yoBoss283 commented 3 years ago

@0x09 Like this?

`username@macbook hfsfuse-master % CFLAGS=-v make

Makefile:103: Warning: git repo nor prepackaged version.h found, hfsfuse will be built without version information /Library/Developer/CommandLineTools/usr/bin/make -C lib/libhfsuser/ cc -Wall -Wextra -pedantic -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -v -DHFSFUSE_VERSION_STRING=\"omitted\" -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfsuser -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfs -iquote /Users/username/Downloads/hfsfuse-master/lib/ublio -iquote /Users/username/Downloads/hfsfuse-master/lib/utf8proc -I/usr/local/include -DHAVE_BIRTHTIME -DHAVE_UBLIO -DHAVE_UTF8PROC -c -o features.o features.c Apple clang version 11.0.3 (clang-1103.0.32.29) Target: x86_64-apple-darwin20.4.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin "/Library/Developer/CommandLineTools/usr/bin/clang" -cc1 -triple x86_64-apple-macosx10.15.4 -Wdeprecated-objc-isa-usage -Werror=deprecated-objc-isa-usage -emit-obj -disable-free -disable-llvm-verifier -discard-value-names -main-file-name features.c -mrelocation-model pic -pic-level 2 -mthread-model posix -mframe-pointer=all -fno-strict-return -masm-verbose -munwind-tables -target-sdk-version=10.15.4 -target-cpu penryn -dwarf-column-info -debugger-tuning=lldb -target-linker-version 556.5 -v -coverage-notes-file /Users/username/Downloads/hfsfuse-master/lib/libhfsuser/features.gcno -resource-dir /Library/Developer/CommandLineTools/usr/lib/clang/11.0.3 -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfsuser -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfs -iquote /Users/username/Downloads/hfsfuse-master/lib/ublio -iquote /Users/username/Downloads/hfsfuse-master/lib/utf8proc -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -D _FILE_OFFSET_BITS=64 -D "HFSFUSE_VERSION_STRING=\"omitted\"" -I /usr/local/include -D HAVE_BIRTHTIME -D HAVE_UBLIO -D HAVE_UTF8PROC -I/usr/local/include -internal-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/local/include -internal-isystem /Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include -internal-externc-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -internal-externc-isystem /Library/Developer/CommandLineTools/usr/include -O3 -Wall -Wextra -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -Wno-objc-signed-char-bool-implicit-int-conversion -Wno-extra-semi-stmt -Wno-quoted-include-in-framework-header -pedantic -std=gnu11 -fdebug-compilation-dir /Users/username/Downloads/hfsfuse-master/lib/libhfsuser -ferror-limit 19 -fmessage-length 126 -stack-protector 1 -fstack-check -mdarwin-stkchk-strong-link -fblocks -fencode-extended-block-signature -fregister-global-dtors-with-atexit -fobjc-runtime=macosx-10.15.4 -fmax-type-align=16 -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp -o features.o -x c features.c clang -cc1 version 11.0.3 (clang-1103.0.32.29) default target x86_64-apple-darwin20.4.0 ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/local/include" ignoring nonexistent directory "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/Library/Frameworks" ignoring duplicate directory "/usr/local/include"

include "..." search starts here:

/Users/username/Downloads/hfsfuse-master/lib/libhfsuser /Users/username/Downloads/hfsfuse-master/lib/libhfs /Users/username/Downloads/hfsfuse-master/lib/ublio /Users/username/Downloads/hfsfuse-master/lib/utf8proc

include <...> search starts here:

/usr/local/include /Library/Developer/CommandLineTools/usr/lib/clang/11.0.3/include /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include /Library/Developer/CommandLineTools/usr/include /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory) End of search list. In file included from features.c:25: In file included from /Users/username/Downloads/hfsfuse-master/lib/libhfsuser/features.h:11: /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:59:61: error: unknown type name 'off_t' ssize_t (up_pread) (void priv, void buf, size_t count, off_t off); ^ /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:61:24: error: unknown type name 'off_t' off_t off); ^ /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:62:61: error: unknown type name 'off_t' ssize_t (up_pwrite) (void priv, void buf, size_t count, off_t off); ^ /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:64:24: error: unknown type name 'off_t' off_t off); ^ /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:95:22: error: unknown type name 'off_t' off_t off); ^ /Users/username/Downloads/hfsfuse-master/lib/ublio/ublio.h:97:22: error: unknown type name 'off_t' off_t off); ^ 6 errors generated. make[1]: [features.o] Error 1 make: [lib/libhfsuser/libhfsuser.a] Error 2`

yoBoss283 commented 3 years ago

@0x09 for the record, I did run it without Biblio.. and this works? (there is some warning though)

`username@macbook hfsfuse-master % make WITH_UBLIO=none

Makefile:103: Warning: git repo nor prepackaged version.h found, hfsfuse will be built without version information /Library/Developer/CommandLineTools/usr/bin/make -C lib/libhfsuser/ cc -Wall -Wextra -pedantic -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfsuser -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfs -iquote /Users/username/Downloads/hfsfuse-master/lib/utf8proc -I/usr/local/include -DHAVE_BIRTHTIME -DHAVE_UTF8PROC -c -o features.o features.c cc -Wall -Wextra -pedantic -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfsuser -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfs -iquote /Users/username/Downloads/hfsfuse-master/lib/utf8proc -I/usr/local/include -DHAVE_BIRTHTIME -DHAVE_UTF8PROC -c -o hfsuser.o hfsuser.c ar rcs libhfsuser.a cache.o features.o hfsuser.o ranlib libhfsuser.a /Library/Developer/CommandLineTools/usr/bin/make -C lib/libhfs/ cc -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -c -o endian.o endian.c cc -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -c -o libhfs.o libhfs.c cc -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -c -o unicode.o unicode.c ar rcs libhfs.a endian.o libhfs.o unicode.o ranlib libhfs.a /Library/Developer/CommandLineTools/usr/bin/make -C lib/utf8proc/ cc -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -fPIC -std=c99 -Wsign-conversion -Wall -Wextra -pedantic -DUTF8PROC_EXPORTS -c -o utf8proc.o utf8proc.c utf8proc.c:413:36: warning: implicit conversion changes signedness: "const utf8proc_propval_t" (aka "const short") to "utf8proc_category_t" [-Wsign-conversion] return utf8proc_get_property(c)->category

1 warning generated. rm -f libutf8proc.a ar rs libutf8proc.a utf8proc.o ar: creating archive libutf8proc.a cc -dynamiclib -o libutf8proc.2.dylib utf8proc.o -install_name /usr/local/lib/libutf8proc.2.dylib -Wl,-compatibility_version -Wl,2 -Wl,-current_version -Wl,2.4.1 ln -f -s libutf8proc.2.dylib libutf8proc.dylib cc -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -L/usr/local/lib -o hfsfuse src/hfsfuse.o lib/libhfsuser/libhfsuser.a lib/libhfs/libhfs.a lib/utf8proc/libutf8proc.a -losxfuse -lpthread cc -Wall -Wextra -pedantic -Wno-gnu-zero-variadic-macro-arguments -Wno-unused-parameter -Wno-missing-field-initializers -Wno-missing-braces -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfsuser -iquote /Users/username/Downloads/hfsfuse-master/lib/libhfs -iquote /Users/username/Downloads/hfsfuse-master/lib/utf8proc -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -c -o src/hfsdump.o src/hfsdump.c cc -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -L/usr/local/lib -o hfsdump src/hfsdump.o lib/libhfsuser/libhfsuser.a lib/libhfs/libhfs.a lib/utf8proc/libutf8proc.a -lpthread

username@macbook hfsfuse-master % make install

Makefile:103: Warning: git repo nor prepackaged version.h found, hfsfuse will be built without version information /Library/Developer/CommandLineTools/usr/bin/make -C lib/libhfsuser/ make[1]: Nothing to be done for "all". /Library/Developer/CommandLineTools/usr/bin/make -C lib/libhfs/ make[1]: Nothing to be done for "all". /Library/Developer/CommandLineTools/usr/bin/make -C lib/ublio/ cc -g -O2 -Wall -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -c ublio.c -o ublio.o ar rcs libublio.a ublio.o /Library/Developer/CommandLineTools/usr/bin/make -C lib/utf8proc/ make[1]: Nothing to be done for "all". cc -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -L/usr/local/lib -o hfsfuse src/hfsfuse.o lib/libhfsuser/libhfsuser.a lib/libhfs/libhfs.a lib/ublio/libublio.a lib/utf8proc/libutf8proc.a -losxfuse -lpthread cc -D_FILE_OFFSET_BITS=64 -O3 -std=gnu11 -DHFSFUSE_VERSION_STRING=\"omitted\" -L/usr/local/lib -o hfsdump src/hfsdump.o lib/libhfsuser/libhfsuser.a lib/libhfs/libhfs.a lib/ublio/libublio.a lib/utf8proc/libutf8proc.a -lpthread install hfsfuse hfsdump /usr/local/bin/ username@macbook hfsfuse-master % `

0x09 commented 3 years ago

@yoBoss283 thanks, the output from CFLAGS=-v make looks fine to me. Can I ask for one more thing here? If you run cc -DHAVE_UBLIO -Ilib/ublio -E lib/libhfsuser/features.h from the hfsfuse-master directory, this will print out the fully preprocessed features.h file where this error was occurring, which will help identify exactly which system headers and type definitions are being included. This is about 500 lines long for me, so it may be better to attach it as a file.

yoBoss283 commented 3 years ago

@0x09 like this?

Terminal Saved Output.txt

0x09 commented 3 years ago

@yoBoss283 I ended up pushing a fix for that here. I'm still not sure why our SDKs differ in the content of those headers (the file you attached confirms they do), but hfsfuse was relying on something that's non standard here in any case. Thanks for helping troubleshoot this.

yoBoss283 commented 3 years ago

@0x09 good to hear! I hope you understand I didn't know what I was doing... so if this somehow helped you make it better, great! It is indeed strange that the SDK can be different.... I am using a Macbook Pro 16 (2019), Big Sur 11.3.1. Not sure if that makes the difference. Also, I got to know this through issue that I tried to solve from here: https://swissmacuser.ch/hfs-volume-data-recovery-diskutility-could-not-mount-error-49153/

Anyways, good luck and many thanks for sharing this to the world.