Rich5 / pyhashcat

Python bindings for hashcat
56 stars 37 forks source link

build errors #28

Closed ryukam closed 5 years ago

ryukam commented 5 years ago

Firstly i want to felicitate you, Good Game. I have some problems in the installation of your tool. when i want to build the pyhashcat i have the errors messages :

I have the Ubuntu 18.04 OS.

running build_ext
building 'pyhashcat' extension
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-3hk45v/python2.7-2.7.15~rc1=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Ihashcat/include -Ihashcat/deps/OpenCL-Headers -Ihashcat/OpenCL -Ihashcat -I/usr/include/python2.7 -c pyhashcat.c -o build/temp.linux-x86_64-2.7/pyhashcat.o -std=c99
pyhashcat.c: In function ‘hashcat_event_connect’:
pyhashcat.c:136:14: warning: initialization makes integer from pointer without a cast [-Wint-conversion]
   int _hid = NULL;
              ^~~~
pyhashcat.c: In function ‘hashcat_getgpu_temp_abort’:
pyhashcat.c:2461:50: error: ‘user_options_t {aka struct user_options}’ has no member named ‘gpu_temp_abort’; did you mean ‘hwmon_temp_abort’?
   return Py_BuildValue ("i", self->user_options->gpu_temp_abort);
                                                  ^~~~~~~~~~~~~~
                                                  hwmon_temp_abort
pyhashcat.c: In function ‘hashcat_setgpu_temp_abort’:
pyhashcat.c:2484:23: error: ‘user_options_t {aka struct user_options}’ has no member named ‘gpu_temp_abort’; did you mean ‘hwmon_temp_abort’?
   self->user_options->gpu_temp_abort = PyInt_AsLong (value);
                       ^~~~~~~~~~~~~~
                       hwmon_temp_abort
pyhashcat.c: In function ‘hashcat_getgpu_temp_disable’:
pyhashcat.c:2497:47: error: ‘user_options_t {aka struct user_options}’ has no member named ‘gpu_temp_disable’; did you mean ‘self_test_disable’?
   return PyBool_FromLong (self->user_options->gpu_temp_disable);
                                               ^~~~~~~~~~~~~~~~
                                               self_test_disable
pyhashcat.c: In function ‘hashcat_setgpu_temp_disable’:
pyhashcat.c:2523:25: error: ‘user_options_t {aka struct user_options}’ has no member named ‘gpu_temp_disable’; did you mean ‘self_test_disable’?
     self->user_options->gpu_temp_disable = 1;
                         ^~~~~~~~~~~~~~~~
                         self_test_disable
pyhashcat.c:2530:25: error: ‘user_options_t {aka struct user_options}’ has no member named ‘gpu_temp_disable’; did you mean ‘self_test_disable’?
     self->user_options->gpu_temp_disable = 0;
                         ^~~~~~~~~~~~~~~~
                         self_test_disable
pyhashcat.c: In function ‘hashcat_getmarkov_hcstat’:
pyhashcat.c:3420:27: error: ‘user_options_t {aka struct user_options}’ has no member named ‘markov_hcstat’; did you mean ‘markov_hcstat2’?
   if (self->user_options->markov_hcstat == NULL)
                           ^~~~~~~~~~~~~
                           markov_hcstat2
pyhashcat.c:3426:50: error: ‘user_options_t {aka struct user_options}’ has no member named ‘markov_hcstat’; did you mean ‘markov_hcstat2’?
   return Py_BuildValue ("s", self->user_options->markov_hcstat);
                                                  ^~~~~~~~~~~~~
                                                  markov_hcstat2
pyhashcat.c: In function ‘hashcat_setmarkov_hcstat’:
pyhashcat.c:3449:23: error: ‘user_options_t {aka struct user_options}’ has no member named ‘markov_hcstat’; did you mean ‘markov_hcstat2’?
   self->user_options->markov_hcstat = PyString_AsString (value);
                       ^~~~~~~~~~~~~
                       markov_hcstat2
pyhashcat.c: In function ‘hashcat_getnvidia_spin_damp’:
pyhashcat.c:3498:50: error: ‘user_options_t {aka struct user_options}’ has no member named ‘nvidia_spin_damp’; did you mean ‘spin_damp’?
   return Py_BuildValue ("i", self->user_options->nvidia_spin_damp);
                                                  ^~~~~~~~~~~~~~~~
                                                  spin_damp
pyhashcat.c: In function ‘hashcat_setnvidia_spin_damp’:
pyhashcat.c:3521:23: error: ‘user_options_t {aka struct user_options}’ has no member named ‘nvidia_spin_damp’; did you mean ‘spin_damp’?
   self->user_options->nvidia_spin_damp = PyInt_AsLong (value);
                       ^~~~~~~~~~~~~~~~
                       spin_damp
pyhashcat.c: In function ‘hashcat_getnvidia_spin_damp’:
pyhashcat.c:3500:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
pyhashcat.c: In function ‘hashcat_getmarkov_hcstat’:
pyhashcat.c:3428:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
pyhashcat.c: In function ‘hashcat_getgpu_temp_disable’:
pyhashcat.c:2499:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
pyhashcat.c: In function ‘hashcat_getgpu_temp_abort’:
pyhashcat.c:2463:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Rich5 commented 5 years ago

Sorry this module hasn't been updated lately. Since the build pulls directly from the main hashcat repo a lot has changed and thus this project is currently broken and not building. I don't have much time these days so I likely won't be able update it.

ryukam commented 5 years ago

Ok thank you. Good luck