firoorg / firo

The privacy-focused cryptocurrency
https://firo.org
MIT License
717 stars 357 forks source link

libor-crypto.a linker error on MacOS with enable-debug flag #352

Closed riordant closed 5 years ago

riordant commented 5 years ago

Steps to reproduce: ./configure --enable-debug make

output:

Undefined symbols for architecture x86_64:
  "_libscrypt_scrypt", referenced from:
      _secret_to_key_compute_key in libor-crypto.a(crypto_s2k.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

On MacOS 10.13.4

psolstice commented 5 years ago

Works fine for me on 10.14.3, latest Xcode

$ brew list
autoconf    cabextract  icu4c       libtool     openssl     protobuf    qrencode    sphinx-doc  winetricks
automake    cmake       iperf       makedepend  p7zip       python      qt      sqlite      xz
berkeley-db@4   coreutils   libevent    miniupnpc   pcre        python3     readline    unrar       zsh
boost       gdbm        libpng      ncurses     pkg-config  python@2    smartmontools   wine
riordant commented 5 years ago

Was a system-specific issue. I'm not sure what the exact cause was, but removing and reinstalling brew fixed it for me.