You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After building with (which didn't fail with any errors, and appears to have completed successfully because of the "Done building all" message after it finished):
CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go run build.go -verbose build-all
Then running
go get -u github.com/cretz/bine/tor
I'm still unable to actually run the provided tests (or any other examples using embedded tor):
$ go test -v build_test.go -tor.verbose
# github.com/cretz/bine/process/embedded/tor-0.3.5
Undefined symbols for architecture x86_64:
"_libscrypt_scrypt", referenced from:
_secret_to_key_compute_key in libtor-crypt-ops.a(libtor_crypt_ops_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)
FAIL command-line-arguments [build failed]
FAIL
Hrmm, yeah I do all my work on Windows and Linux, so I haven't worked with macOS (I usually have a friend verify macOS). I see firoorg/firo#352 references a similar bug and says it was a system issue. At first glance it appears to be a libscrypt issue. Can you install libscrypt-dev and retry? Technically I think Tor is suppose to be able to build and run fine without scrypt present (it's optional), but it appears something is requiring it here. Anything you can find while debugging would be appreciated.
Actually, I had this same issue and it turned out to be because I had tor (and thus libscrypt) installed via brew. After uninstalling libscrypt (brew uninstall libscrypt) I could build my application.
After building with (which didn't fail with any errors, and appears to have completed successfully because of the "Done building all" message after it finished):
CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 go run build.go -verbose build-all
Then running
go get -u github.com/cretz/bine/tor
I'm still unable to actually run the provided tests (or any other examples using embedded tor):
Here is the output of
show-libs
:The text was updated successfully, but these errors were encountered: