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

Source 'make build' fails #58

Open
Pir00t opened this issue Aug 23, 2019 · 4 comments
Open

Source 'make build' fails #58

Pir00t opened this issue Aug 23, 2019 · 4 comments

Comments

@Pir00t
Copy link

Pir00t commented Aug 23, 2019

Hello,

Trying to build from source on Ubuntu 18.04 with Hashcat 5.1.0 but getting the following error:

github.com/fireeye/gocat

In file included from /usr/local/include/hashcat/types.h:28:0,
from ./wrapper.h:5,
from ../gocat/gocat.go:9:
/usr/local/include/hashcat/ext_lzma.h:8:10: fatal error: LzmaDec.h: No such file or directory
#include <LzmaDec.h>

compilation terminated.
Makefile:14: recipe for target 'build' failed
make: *** [build] Error 2

So far I've built Hashcat in Shared mode and confirmed it works with my GPUs.

Any help would be greatly appreciated.

@kulinacs
Copy link
Contributor

kulinacs commented Oct 30, 2019

Not all the needed headers are currently pulled out with the Hashcat install process. After having similar problem, copying various header files from the Hashcat source directory to the includes path solved my problem.

cp deps/LZMA-SDK/C/LzmaDec.h /usr/local/include/hashcat/
cp deps/LZMA-SDK/C/7zTypes.h /usr/local/include/hashcat/
cp deps/LZMA-SDK/C/Lzma2Dec.h /usr/local/include/hashcat/
cp -r ./OpenCL/inc_types.h /usr/local/include/hashcat/
cp -r ./deps/zlib/contrib /usr/local/include/hashcat

@Pir00t
Copy link
Author

Pir00t commented Nov 13, 2019

Thanks for the reply @kulinacs.

This seems to have bypassed the errors I was getting previous. Now I'm hit with another build error:

# github.com/fireeye/gocat
/usr/bin/ld: cannot find -lhashcat
collect2: error ld returned 1 exit status

@Pir00t
Copy link
Author

Pir00t commented Nov 13, 2019

Think this may be fixed - pending some testing. Had to edit the Hashcat Makefile as it was appending the version to libhashcat.so

@Pir00t
Copy link
Author

Pir00t commented Nov 13, 2019

Now failing on this file:
https://github.com/fireeye/gocrack/blob/master/server/storage/bdb/user.go

multiple-value uuid.NewV4().String() in single-value context

Same issue for ldap.go and importer.go

Suggestions welcome

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

2 participants