vgough/encfs

encfs with Apple Silicon M1 ?

antenando opened this issue · 2 comments

I've installed the latest macFUSE 4.1.0 with support for the latest M1 chip but can't get encfs to work with it...

Via homebrew I get
Error: encfs has been disabled because it requires FUSE!

and building encfs locally I get a build fail:

[ 85%] Linking CXX executable encfs
[ 85%] Linking CXX executable encfsctl
ld: warning: ld: warning: ignoring file /usr/local/opt/openssl/lib/libssl.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64ignoring file /usr/local/opt/openssl/lib/libssl.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64

ld: warning: ignoring file /usr/local/opt/openssl/lib/libcrypto.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
ld: warning: ignoring file /usr/local/opt/openssl/lib/libcrypto.dylib, building for macOS-arm64 but attempting to link with file built for macOS-x86_64
Undefined symbols for architecture arm64:
  "_BUF_MEM_free", referenced from:
      encfs::freeBlock(encfs::BlockList*) in libencfs.a(MemoryPool.cpp.o)
  "_BUF_MEM_grow", referenced from:
      encfs::allocBlock(int) in libencfs.a(MemoryPool.cpp.o)
  "_BUF_MEM_new", referenced from:
      encfs::allocBlock(int) in libencfs.a(MemoryPool.cpp.o)
  "_CRYPTO_free", referenced from:
      encfs::SSLKey::~SSLKey() in libencfs.a(SSL_Cipher.cpp.o)
  "_CRYPTO_malloc", referenced from:
      encfs::SSLKey::SSLKey(int, int) in libencfs.a(SSL_Cipher.cpp.o)
  "_ERR_error_string", referenced from:
      encfs::SSL_Cipher::randomize(unsigned char*, int, bool) const in libencfs.a(SSL_Cipher.cpp.o)
  "_ERR_get_error", referenced from:
      encfs::SSL_Cipher::randomize(unsigned char*, int, bool) const in libencfs.a(SSL_Cipher.cpp.o)
  "_EVP_BytesToKey", referenced from:
      encfs::SSL_Cipher::newKey(char const*, int) in libencfs.a(SSL_Cipher.cpp.o)

can you shed me some light?

Thanks!

#630 (comment) – this did help to compile encfs on M1 for me.

#630 (comment) – this did help to compile encfs on M1 for me.

Worked here also. Thanks for finding it!