tel / saltine

Cryptography that's easy to digest (NaCl/libsodium bindings)
https://github.com/tel/saltine
MIT License
61 stars 29 forks source link

Fails on `libsodium-1.0.19` #64

Open agevelt opened 9 months ago

agevelt commented 9 months ago

After updating to the latest libsodium via homebrew on mac, compilation fails with the following error message:

<no location info>: error:
    dlopen(/Users/ag/.stack/snapshots/aarch64-osx/05cea9c761dcdd9448fb537dabaa41d5606a0988e1f706929c9813d1569fbcd3/9.4.7/lib/aarch64-osx-ghc-9.4.7/libHSsaltine-0.2.1.0-AdwsJvszzLkGtax63fo2Vs-ghc9.4.7.dylib, 0x0005): Library not loaded: /opt/homebrew/opt/libsodium/lib/libsodium.23.dylib
  Referenced from: <EEDC9FF7-99D0-3F45-9413-15812EA43167> /Users/ag/.stack/snapshots/aarch64-osx/05cea9c761dcdd9448fb537dabaa41d5606a0988e1f706929c9813d1569fbcd3/9.4.7/lib/aarch64-osx-ghc-9.4.7/libHSsaltine-0.2.1.0-AdwsJvszzLkGtax63fo2Vs-ghc9.4.7.dylib
  Reason: tried: '/opt/homebrew/opt/libsodium/lib/libsodium.23.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/opt/libsodium/lib/libsodium.23.dylib' (no such file), '/opt/homebrew/opt/libsodium/lib/libsodium.23.dylib' (no such file), '/usr/local/lib/libsodium.23.dylib' (no such file), '/usr/lib/libsodium.23.dylib' (no such file, not in dyld cache), '/opt/homebrew/Cellar/libsodium/1.0.19/lib/libsodium.23.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/libsodium/1.0.19/lib/libsodium.23.dylib' (no such file), '/opt/homebrew/Cellar/libsodium/1.0.19/lib/libsodium.23.dylib' (no such file), '/usr/local/lib/libsodium.23.dylib' (no such file), '/usr/lib/libsodium.23.dylib' (no such file, not in dyld cache)

The libsodium.23.dylib file has been bumped to 26 in libsodium-1.0.19, and it can't find it.

linearray commented 8 months ago

On my machine (with cabal) everything seems to work unchanged.

Some people have similar problems and the solutions seems to be reinstalling libsodium: brew reinstall libsodium. Can you try that?