Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error when building on macos #9

Closed
py4h0n opened this issue Nov 3, 2017 · 2 comments
Closed

error when building on macos #9

py4h0n opened this issue Nov 3, 2017 · 2 comments

Comments

@py4h0n
Copy link

py4h0n commented Nov 3, 2017

make build
mkdir -p builds/
go build -tags """" -o builds/darwin/amd64/gocrack_worker -ldflags
"-X github.com/fireeye/gocrack/worker.CompileRev=1618023
-X github.com/fireeye/gocrack/worker.CompileTime=1509696556"
cmd/gocrack_worker/*.go
github.com/fireeye/gocrack/gocat
ld: library not found for -lhashcat
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [build] Error 2

but hashcat building seems right..
➜ hashcat-3.6.0 ./hashcat --opencl-info
hashcat () starting...

OpenCL Info:

Platform ID #1
Vendor : Apple
Name : Apple
Version : OpenCL 1.2 (Sep 6 2017 16:05:06)

Device ID #1
Type : CPU
Vendor ID : 4
Vendor : Intel
Name : Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Version : OpenCL 1.2
Processor(s) : 8
Clock : 2200
Memory : 4096/16384 MB allocatable
OpenCL Version : OpenCL C 1.2
Driver Version : 1.1

Device ID #2
Type : GPU
Vendor ID : 4
Vendor : Intel
Name : Iris Pro
Version : OpenCL 1.2
Processor(s) : 40
Clock : 1200
Memory : 384/1536 MB allocatable
OpenCL Version : OpenCL C 1.2
Driver Version : 1.2(Sep 29 2017 19:15:12)

@0w3
Copy link

0w3 commented Nov 3, 2017

I also met this problem before.
This works for me.
1.Uninstall your hashcat first(I have installed hashcat via homebrew) - brew uninstall hashcat
2.git clone hashcat & git submodule update
3.Set SHARED to 1 in src/Makefile
4.make & make install
5.cp -r include/ /usr/local/include/hashcat
After these I can make build in gocrack
Before you build you have to ensure there have "gocat" and "zerolog" in your $GOPATH$

@tankbusta
Copy link
Contributor

@EasyTraveller's instructions should fix it as it sounds like hashcat is not built as a shared library. (They're documented on this page https://github.com/fireeye/gocrack/blob/master/docs/building.md#step-1-building-hashcat).

You'll also want to make sure the code lives in a proper go workspace (as defined by the GOPATH environment variable). Mine is set to GOPATH="/Users//code/golang/" and the code should be in "/Users//code/golang/src/github.com/fireeye/gocrack". go get -u github.com/fireeye/gocrack should take care of downloading and setting up that folder hierarchy and will most likely complain about no buildable files but that can be ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants