Open mouse07410 opened 2 years ago
@vgough ...?
I also got this error message.
Found out that someone has fixed the compile error https://github.com/vgough/encfs/pull/650. However, it did not pass the integration test.
Is it a compiler problem? Seems that you can build encfs with an older XCode version.
@stevenChuCP the compiler got more strict in what it accepts, so the encfs
code doesn't compile anymore with the recent (current) compilers.
Yes, old compilers still let that code pass. But that's not a solution for me, alas.
Re. Integration test for #650. I'm not sure it really failed - it looks like incompatibility between the old CI script and the current system. I'll look into it.
We need to figure how to fix the code...
After merging #650, all tests (unittests and integration) passed on one machine with OSXFuse v4.2.3. A few integration tests failed on two other boxes - all are Macs (OSXFuse v4.4.0). So, I suspect the FUSE version. In any case, my fork has #650 merged.
Failing tests are in integration/reverse
, and seem to deal with extended file attributes over symlink. I probably won't be able to do anything about this problem. At least, encfs
successfully builds again, and passes most of the tests (including those that I do care about).
@stevenChuCP thanks for pointing me at #650.
@mouse07410 I've tried to build with g++-11 and it worked without changing the codes.
What do you think is the better solution to resolve this issue?
I've tried to build with g++-11 and it worked without changing the codes
First, are you saying that this way it passed all the integration tests? Did you mean GCC v11, or -std=gnu++11
?
Second, I think it's important for the code to work with both GCC and Clang. Also, did you try to build it and run integration tests with GCC (well, g++) v12?
Did you mean GCC v11
Yes, it was GCC v11. I also tried GCC v12, it build successfully. Although both of them did not pass the integration tests.
Failing tests are in integration/reverse
I'm also failing at this step. I have OSXFuse 4.2.5 installed on my Mac.
Failing tests are in integration/reverse
I'm also failing at this step. I have OSXFuse 4.2.5 installed on my Mac.
In that case, I will keep the #650 merged in my fork. Being able to build with all reasonable C++ compilers (G++ and Clang) is more important to me than keeping the code unchanged.
I installed OSXFuse 4.4.0, with the same results - apparently, something with symlinking xattr
is broken (thats seems to be the scope of the failure), but I don't know how to go about fixing it. Perhaps, if/when @vgough is back, he can shed some light on this. In the meanwhile, patched code works, though it fails some tests.
I wonder if this very useful package is still maintained?
In case someone finds this thread in 2024: Compilation (and execution) still succeed on macOS Sonoma 14.3.1 and Apple Silicon (M2 in my case) with macFUSE 4.6.0, when compiled with GCC 13. Clang (from Xcode 15) continues to fail with the above problem, as does the "reverse" integration test.
Installation nevertheless worked as per my notes:
MacOS Monterey 12.4, Xcode-13.4.1, encfs current master.
I'd really appreciate your help!