f0cker / crackq

CrackQ: A Python Hashcat cracking queue system
MIT License
923 stars 100 forks source link

pyhashcat.c:910:16: error: redefinition of 'struct usage_sort' #28

Closed Fl4shy closed 3 years ago

Fl4shy commented 3 years ago

sudo ./install.sh docker/nvidia/centos

pyhashcat.c:910:16: error: redefinition of 'struct usage_sort' typedef struct usage_sort ^ In file included from pyhashcat.c:21:0: hashcat/include/usage.h:12:16: note: originally defined here typedef struct usage_sort ^ pyhashcat.c:916:3: error: conflicting types for 'usage_sort_t' } usage_sort_t; ^ In file included from pyhashcat.c:21:0: hashcat/include/usage.h:18:3: note: previous declaration of 'usage_sort_t' was here } usage_sort_t; ^ pyhashcat.c:918:12: error: static declaration of 'sort_by_usage' follows non-static declaration static int sort_by_usage (const void p1, const void p2) ^ In file included from pyhashcat.c:21:0: hashcat/include/usage.h:22:5: note: previous declaration of 'sort_by_usage' was here int sort_by_usage (const void p1, const void p2); ^ error: command 'gcc' failed with exit status 1 running install running build running build_ext building 'pyhashcat' extension gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Ihashcat/include -Ihashcat/deps/OpenCL-Headers -Ihashcat/OpenCL -Ihashcat -Ihashcat/deps/zlib -Ihashcat/deps/LZMA-SDK/C -I/usr/include/python3.6m -c pyhashcat.c -o build/temp.linux-x86_64-3.6/pyhashcat.o -std=c99 -DWITH_BRAIN -Wimplicit-function-declaration pyhashcat.c:910:16: error: redefinition of 'struct usage_sort' typedef struct usage_sort ^ In file included from pyhashcat.c:21:0: hashcat/include/usage.h:12:16: note: originally defined here typedef struct usage_sort ^ pyhashcat.c:916:3: error: conflicting types for 'usage_sort_t' } usage_sort_t; ^ In file included from pyhashcat.c:21:0: hashcat/include/usage.h:18:3: note: previous declaration of 'usage_sort_t' was here } usage_sort_t; ^ pyhashcat.c:918:12: error: static declaration of 'sort_by_usage' follows non-static declaration static int sort_by_usage (const void p1, const void p2) ^ In file included from pyhashcat.c:21:0: hashcat/include/usage.h:22:5: note: previous declaration of 'sort_by_usage' was here int sort_by_usage (const void p1, const void p2); ^ error: command 'gcc' failed with exit status 1

f0cker commented 3 years ago

This is because of changes in the latest/git version of hashcat. I've pinned it to the latest stable (6.2.2) in the dev_tasks branch. Can you use that branch for now please? I will update pyhashcat to support any newer versions soon, after I've merged all the new features into the master branch.

So: git clone https://github.com/f0cker/crackq.git --branch dev_tasks

Fl4shy commented 3 years ago

git clone https://github.com/f0cker/crackq.git --branch dev_tasks it working

but a new error ERROR: for crackq Cannot create container for service crackq: Unknown runtime specified nvidia

f0cker commented 3 years ago

are you following the install guide on the wiki? Sounds like you don't have either the docker-nvidia package installed or the drivers. Look in the troubleshooting page also, I think there's some further help on that error message there

f0cker commented 3 years ago

This is fixed in master now. Closing