^
cpyrit/_cpyrit_cpu.c:248:16: warning: implicit declaration of function ‘PyString_Size’; did you mean ‘PyMapping_Size’? [-Wimplicit-function-declaration]
248
essidlen = PyString_Size(essid_obj);
^~~~~
PyMapping_Size
cpyrit/_cpyrit_cpu.c:274:18: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
274
^
cpyrit/_cpyrit_cpu.c:301:40: warning: implicit declaration of function ‘PyString_FromStringAndSize’; did you mean ‘PyBytes_FromStringAndSize’? [-Wimplicit-function-declaration]
301
PyTuple_SetItem(result, i, PyString_FromStringAndSize((char*)pmk_buffer[i].e1, 32));
^~~~~~
PyBytes_FromStringAndSize
cpyrit/_cpyrit_cpu.c:301:40: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
301
PyTuple_SetItem(result, i, PyString_FromStringAndSize((char*)pmk_buffer[i].e1, 32));
^~~~~~~~~~~~~~~
int
In file included from /usr/include/python3.9/Python.h:101,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.9/tupleobject.h:33:57: note: expected ‘PyObject ’ {aka ‘struct _object ’} but argument is of type ‘int’
33
^~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘Cracker_unpack’:
cpyrit/_cpyrit_cpu.c:360:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
360
t = (unsigned char*)PyString_AsString(pmk_obj);
^
cpyrit/_cpyrit_cpu.c: In function ‘EAPOLCracker_dealloc’:
cpyrit/_cpyrit_cpu.c:719:9: error: ‘EAPOLCracker’ has no member named ‘ob_type’
719
self->ob_type->tp_free((PyObject*)self);
^~
cpyrit/_cpyrit_cpu.c: In function ‘EAPOLCracker_solve’:
cpyrit/_cpyrit_cpu.c:746:18: warning: implicit declaration of function ‘PyBuffer_Check’; did you mean ‘PyNumber_Check’? [-Wimplicit-function-declaration]
746
if (!PyBuffer_Check(pmkbuffer_obj))
^~~~~~
PyNumber_Check
cpyrit/_cpyrit_cpu.c:753:36: error: ‘PyBufferProcs’ has no member named ‘bf_getreadbuffer’; did you mean ‘bf_getbuffer’?
753
bf_getbuffer
cpyrit/_cpyrit_cpu.c: In function ‘CCMPCracker_dealloc’:
cpyrit/_cpyrit_cpu.c:910:9: error: ‘CCMPCracker’ has no member named ‘ob_type’
910
self->ob_type->tp_free((PyObject*)self);
^~
cpyrit/_cpyrit_cpu.c: In function ‘CCMPCracker_solve’:
cpyrit/_cpyrit_cpu.c:1175:36: error: ‘PyBufferProcs’ has no member named ‘bf_getreadbuffer’; did you mean ‘bf_getbuffer’?
1175
bf_getbuffer
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_dealloc’:
cpyrit/_cpyrit_cpu.c:1247:9: error: ‘CowpattyResult’ has no member named ‘ob_type’
1247
self->ob_type->tp_free((PyObject*)self);
^~
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_sq_item’:
cpyrit/_cpyrit_cpu.c:1300:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1300
In file included from /usr/include/python3.9/Python.h:101,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.9/tupleobject.h:33:57: note: expected ‘PyObject ’ {aka ‘struct _object ’} but argument is of type ‘int’
33
^~~~~~
cpyrit/_cpyrit_cpu.c:1301:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1301
In file included from /usr/include/python3.9/Python.h:101,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.9/tupleobject.h:33:57: note: expected ‘PyObject ’ {aka ‘struct _object ’} but argument is of type ‘int’
33
^~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_iternext’:
cpyrit/_cpyrit_cpu.c:1330:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1330
In file included from /usr/include/python3.9/Python.h:101,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.9/tupleobject.h:33:57: note: expected ‘PyObject ’ {aka ‘struct _object ’} but argument is of type ‘int’
33
^~~~~~
cpyrit/_cpyrit_cpu.c:1331:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1331
In file included from /usr/include/python3.9/Python.h:101,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.9/tupleobject.h:33:57: note: expected ‘PyObject ’ {aka ‘struct _object ’} but argument is of type ‘int’
33
^~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_getpmkbuffer’:
cpyrit/_cpyrit_cpu.c:1346:12: warning: implicit declaration of function ‘PyBuffer_FromObject’; did you mean ‘PyBytes_FromObject’? [-Wimplicit-function-declaration]
1346
^~~~
cpyrit/_cpyrit_cpu.c:1346:41: note: each undeclared identifier is reported only once for each function it appears in
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyFile_gencowpentries’:
cpyrit/_cpyrit_cpu.c:1401:16: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1401
passwd = PyString_AsString(passwd_obj);
^
cpyrit/_cpyrit_cpu.c:1416:13: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1416
pmk = PyString_AsString(pmk_obj);
^
cpyrit/_cpyrit_cpu.c:1437:12: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1437
result = PyString_FromStringAndSize((char*)cowpbuffer, buffer_offset);
^
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyFile_unpackcowpentries’:
cpyrit/_cpyrit_cpu.c:1523:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1523
In file included from /usr/include/python3.9/Python.h:101,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.9/tupleobject.h:33:57: note: expected ‘PyObject ’ {aka ‘struct _object ’} but argument is of type ‘int’
33
^~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘PcapDevice_dealloc’:
cpyrit/_cpyrit_cpu.c:1562:9: error: ‘PcapDevice’ has no member named ‘ob_type’
1562
self->ob_type->tp_free((PyObject*)self);
^~
cpyrit/_cpyrit_cpu.c: In function ‘PcapDevice_setup’:
cpyrit/_cpyrit_cpu.c:1590:31: warning: implicit declaration of function ‘PyString_FromString’; did you mean ‘PyLong_FromString’? [-Wimplicit-function-declaration]
1590
PyLong_FromString
cpyrit/_cpyrit_cpu.c:1590:29: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1590
^
cpyrit/_cpyrit_cpu.c:1599:16: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1599
self->type = PyString_FromString(type);
^
cpyrit/_cpyrit_cpu.c:1607:23: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1607
self->device_name = PyString_FromString(dev);
^
cpyrit/_cpyrit_cpu.c: In function ‘PcapDevice_read’:
cpyrit/_cpyrit_cpu.c:1711:30: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1711
^
cpyrit/_cpyrit_cpu.c: In function ‘PcapDevice_send’:
cpyrit/_cpyrit_cpu.c:1776:9: warning: implicit declaration of function ‘PyString_AsStringAndSize’; did you mean ‘PyBytes_AsStringAndSize’? [-Wimplicit-function-declaration]
1776
if (PyString_AsStringAndSize(pckt_string, &pckt_buffer, &pckt_size))
^~~~~~~~
PyBytes_AsStringAndSize
cpyrit/_cpyrit_cpu.c: In function ‘cpyrit_grouper’:
cpyrit/_cpyrit_cpu.c:1878:36: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion]
1878
PyTuple_SetItem(result, i, PyString_FromStringAndSize(&string[i * groupsize], groupsize));
^~~~~~~~~~~~~
int
In file included from /usr/include/python3.9/Python.h:101,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.9/tupleobject.h:33:57: note: expected ‘PyObject ’ {aka ‘struct _object ’} but argument is of type ‘int’
33 | PyAPI_FUNC(int) PyTuple_SetItem(PyObject , Py_ssize_t, PyObject );
| ^~~~~~
cpyrit/_cpyrit_cpu.c: In function ‘cpyrit_pyr2halfpack’:
cpyrit/_cpyrit_cpu.c:1939:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1939 | t = (unsigned char)PyString_AsString(item);
| ^
cpyrit/_cpyrit_cpu.c:1960:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
1960 | t = (unsigned char)PyString_AsString(item);
| ^
cpyrit/_cpyrit_cpu.c:1984:10: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1984 | item = PyString_FromStringAndSize((char)pwbuffer, (int)(pwptr - pwbuffer));
| ^
cpyrit/_cpyrit_cpu.c:1993:10: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
1993 | item = PyString_FromStringAndSize((char)pmkbuffer, itemcount32);
| ^
cpyrit/_cpyrit_cpu.c: At top level:
cpyrit/_cpyrit_cpu.c:2027:38: warning: missing braces around initializer [-Wmissing-braces]
2027 | static PyTypeObject CPUDevice_type = {
| ^
cpyrit/_cpyrit_cpu.c:2030:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion]
2030 | "_cpyrit_cpu.CPUDevice", /tp_name/
| ^~~~~~~
cpyrit/_cpyrit_cpu.c:2030:5: note: (near initialization for ‘CPUDevice_type.tp_basicsize’)
In file included from /usr/include/python3.9/pytime.h:6,
from /usr/include/python3.9/Python.h:81,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.9/object.h:350:29: warning: initialization of ‘const char ’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
350 | #define Py_TPFLAGS_DEFAULT ( \
| ^
cpyrit/_cpyrit_cpu.c:2048:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2048 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~
/usr/include/python3.9/object.h:350:29: note: (near initialization for ‘CPUDevice_type.tp_doc’)
350 | #define Py_TPFLAGS_DEFAULT ( \
| ^
cpyrit/_cpyrit_cpu.c:2048:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2048 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2057:5: warning: initialization of ‘struct PyMemberDef ’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types]
2057 | CPUDevice_methods, /tp_methods/
| ^~~~~
cpyrit/_cpyrit_cpu.c:2057:5: note: (near initialization for ‘CPUDevice_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2027:38: warning: missing braces around initializer [-Wmissing-braces]
2027 | static PyTypeObject CPUDevice_type = {
| ^
cpyrit/_cpyrit_cpu.c:2078:41: warning: missing braces around initializer [-Wmissing-braces]
2078 | static PyTypeObject EAPOLCracker_type = {
| ^
cpyrit/_cpyrit_cpu.c:2081:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion]
2081 | "_cpyrit_cpu.EAPOLCracker", /tp_name/
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2081:5: note: (near initialization for ‘EAPOLCracker_type.tp_basicsize’)
cpyrit/_cpyrit_cpu.c:2084:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object )’} makes integer from pointer without a cast [-Wint-conversion]
2084 | (destructor)EAPOLCracker_dealloc, /tp_dealloc/
| ^
cpyrit/_cpyrit_cpu.c:2084:5: note: (near initialization for ‘EAPOLCracker_type.tp_vectorcall_offset’)
In file included from /usr/include/python3.9/pytime.h:6,
from /usr/include/python3.9/Python.h:81,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.9/object.h:350:29: warning: initialization of ‘const char ’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
350 | #define Py_TPFLAGS_DEFAULT ( \
| ^
cpyrit/_cpyrit_cpu.c:2099:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2099 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~
/usr/include/python3.9/object.h:350:29: note: (near initialization for ‘EAPOLCracker_type.tp_doc’)
350 | #define Py_TPFLAGS_DEFAULT ( \
| ^
cpyrit/_cpyrit_cpu.c:2099:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2099 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2108:5: warning: initialization of ‘struct PyMemberDef ’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types]
2108 | EAPOLCracker_methods, /tp_methods/
| ^~~~~~~~
cpyrit/_cpyrit_cpu.c:2108:5: note: (near initialization for ‘EAPOLCracker_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2116:5: warning: initialization of ‘PyObject ()(PyTypeObject , Py_ssize_t)’ {aka ‘struct _object ()(struct _typeobject , long int)’} from incompatible pointer type ‘int ()(PyObject , PyObject , PyObject )’ {aka ‘int ()(struct _object , struct _object , struct _object )’} [-Wincompatible-pointer-types]
2116 | (initproc)EAPOLCracker_init,/tp_init/
| ^
cpyrit/_cpyrit_cpu.c:2116:5: note: (near initialization for ‘EAPOLCracker_type.tp_alloc’)
cpyrit/_cpyrit_cpu.c:2078:41: warning: missing braces around initializer [-Wmissing-braces]
2078 | static PyTypeObject EAPOLCracker_type = {
| ^
cpyrit/_cpyrit_cpu.c:2129:40: warning: missing braces around initializer [-Wmissing-braces]
2129 | static PyTypeObject CCMPCracker_type = {
| ^
cpyrit/_cpyrit_cpu.c:2132:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion]
2132 | "_cpyrit_cpu.CCMPCracker", /tp_name/
| ^~~~~~~~~
cpyrit/_cpyrit_cpu.c:2132:5: note: (near initialization for ‘CCMPCracker_type.tp_basicsize’)
cpyrit/_cpyrit_cpu.c:2135:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object )’} makes integer from pointer without a cast [-Wint-conversion]
2135 | (destructor)CCMPCracker_dealloc, /tp_dealloc/
| ^
cpyrit/_cpyrit_cpu.c:2135:5: note: (near initialization for ‘CCMPCracker_type.tp_vectorcall_offset’)
In file included from /usr/include/python3.9/pytime.h:6,
from /usr/include/python3.9/Python.h:81,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.9/object.h:350:29: warning: initialization of ‘const char ’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
350 | #define Py_TPFLAGS_DEFAULT ( \
| ^
cpyrit/_cpyrit_cpu.c:2150:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2150 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~
/usr/include/python3.9/object.h:350:29: note: (near initialization for ‘CCMPCracker_type.tp_doc’)
350 | #define Py_TPFLAGS_DEFAULT ( \
| ^
cpyrit/_cpyrit_cpu.c:2150:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2150 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2159:5: warning: initialization of ‘struct PyMemberDef ’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types]
2159 | CCMPCracker_methods, /tp_methods/
| ^~~~~~~
cpyrit/_cpyrit_cpu.c:2159:5: note: (near initialization for ‘CCMPCracker_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2167:5: warning: initialization of ‘PyObject ()(PyTypeObject , Py_ssize_t)’ {aka ‘struct _object ()(struct _typeobject , long int)’} from incompatible pointer type ‘int ()(PyObject , PyObject , PyObject )’ {aka ‘int ()(struct _object , struct _object , struct _object )’} [-Wincompatible-pointer-types]
2167 | (initproc)CCMPCracker_init, /tp_init/
| ^
cpyrit/_cpyrit_cpu.c:2167:5: note: (near initialization for ‘CCMPCracker_type.tp_alloc’)
cpyrit/_cpyrit_cpu.c:2129:40: warning: missing braces around initializer [-Wmissing-braces]
2129 | static PyTypeObject CCMPCracker_type = {
| ^
cpyrit/_cpyrit_cpu.c:2181:6: error: ‘readbufferproc’ undeclared here (not in a function); did you mean ‘getbufferproc’?
2181 | (readbufferproc)CowpattyResult_bf_getreadbuffer, / bf_getreadbuffer /
| ^~~~~~
| getbufferproc
cpyrit/_cpyrit_cpu.c:2181:21: error: expected ‘}’ before ‘CowpattyResult_bf_getreadbuffer’
2181 | (readbufferproc)CowpattyResult_bf_getreadbuffer, / bf_getreadbuffer /
| ^~~~~~~
cpyrit/_cpyrit_cpu.c:2180:53: note: to match this ‘{’
2180 | static PyBufferProcs CowpattyResults_buffer_procs = {
| ^
cpyrit/_cpyrit_cpu.c:2198:43: warning: missing braces around initializer [-Wmissing-braces]
2198 | static PyTypeObject CowpattyResult_type = {
| ^
cpyrit/_cpyrit_cpu.c:2201:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion]
2201 | "_cpyrit_cpu.CowpattyResult", /tp_name/
| ^~~~~~~~
cpyrit/_cpyrit_cpu.c:2201:5: note: (near initialization for ‘CowpattyResult_type.tp_basicsize’)
cpyrit/_cpyrit_cpu.c:2204:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object )’} makes integer from pointer without a cast [-Wint-conversion]
2204 | (destructor)CowpattyResult_dealloc, /tp_dealloc/
| ^
cpyrit/_cpyrit_cpu.c:2204:5: note: (near initialization for ‘CowpattyResult_type.tp_vectorcall_offset’)
In file included from /usr/include/python3.9/pytime.h:6,
from /usr/include/python3.9/Python.h:81,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.9/object.h:350:29: warning: initialization of ‘const char ’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
350 | #define Py_TPFLAGS_DEFAULT ( \
| ^
cpyrit/_cpyrit_cpu.c:2219:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2219 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~
/usr/include/python3.9/object.h:350:29: note: (near initialization for ‘CowpattyResult_type.tp_doc’)
350 | #define Py_TPFLAGS_DEFAULT ( \
| ^
cpyrit/_cpyrit_cpu.c:2219:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2219 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2227:5: warning: initialization of ‘struct PyMethodDef ’ from incompatible pointer type ‘PyObject ()(PyObject )’ {aka ‘struct _object ()(struct _object )’} [-Wincompatible-pointer-types]
2227 | (iternextfunc)CowpattyResult_iternext, /tp_iternext/
| ^
cpyrit/_cpyrit_cpu.c:2227:5: note: (near initialization for ‘CowpattyResult_type.tp_methods’)
cpyrit/_cpyrit_cpu.c:2228:5: warning: initialization of ‘struct PyMemberDef ’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types]
2228 | CowpattyResult_methods, /tp_methods/
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2228:5: note: (near initialization for ‘CowpattyResult_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2198:43: warning: missing braces around initializer [-Wmissing-braces]
2198 | static PyTypeObject CowpattyResult_type = {
| ^
cpyrit/_cpyrit_cpu.c:2250:41: warning: missing braces around initializer [-Wmissing-braces]
2250 | static PyTypeObject CowpattyFile_type = {
| ^
cpyrit/_cpyrit_cpu.c:2253:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion]
2253 | "_cpyrit_cpu.CowpattyFile", /tp_name/
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2253:5: note: (near initialization for ‘CowpattyFile_type.tp_basicsize’)
In file included from /usr/include/python3.9/pytime.h:6,
from /usr/include/python3.9/Python.h:81,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.9/object.h:350:29: warning: initialization of ‘const char ’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
350 | #define Py_TPFLAGS_DEFAULT ( \
| ^
cpyrit/_cpyrit_cpu.c:2271:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2271 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~
/usr/include/python3.9/object.h:350:29: note: (near initialization for ‘CowpattyFile_type.tp_doc’)
350 | #define Py_TPFLAGS_DEFAULT ( \
| ^
cpyrit/_cpyrit_cpu.c:2271:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2271 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2280:5: warning: initialization of ‘struct PyMemberDef ’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types]
2280 | CowpattyFile_methods, /tp_methods/
| ^~~~~~~~
cpyrit/_cpyrit_cpu.c:2280:5: note: (near initialization for ‘CowpattyFile_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2250:41: warning: missing braces around initializer [-Wmissing-braces]
2250 | static PyTypeObject CowpattyFile_type = {
| ^
cpyrit/_cpyrit_cpu.c:2315:39: warning: missing braces around initializer [-Wmissing-braces]
2315 | static PyTypeObject PcapDevice_type = {
| ^
cpyrit/_cpyrit_cpu.c:2318:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion]
2318 | "_cpyrit_cpu.PcapDevice", /tp_name/
| ^~~~~~~~
cpyrit/_cpyrit_cpu.c:2318:5: note: (near initialization for ‘PcapDevice_type.tp_basicsize’)
cpyrit/_cpyrit_cpu.c:2321:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object )’} makes integer from pointer without a cast [-Wint-conversion]
2321 | (destructor)PcapDevice_dealloc, /tp_dealloc/
| ^
cpyrit/_cpyrit_cpu.c:2321:5: note: (near initialization for ‘PcapDevice_type.tp_vectorcall_offset’)
In file included from /usr/include/python3.9/pytime.h:6,
from /usr/include/python3.9/Python.h:81,
from cpyrit/_cpyrit_cpu.c:32:
/usr/include/python3.9/object.h:350:29: warning: initialization of ‘const char ’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion]
350 | #define Py_TPFLAGS_DEFAULT ( \
| ^
cpyrit/_cpyrit_cpu.c:2336:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2336 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~
/usr/include/python3.9/object.h:350:29: note: (near initialization for ‘PcapDevice_type.tp_doc’)
350 | #define Py_TPFLAGS_DEFAULT ( \
| ^
cpyrit/_cpyrit_cpu.c:2336:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’
2336 | Py_TPFLAGS_DEFAULT /tp_flags/
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2345:5: warning: initialization of ‘struct PyMemberDef ’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types]
2345 | PcapDevice_methods, /tp_methods/
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2345:5: note: (near initialization for ‘PcapDevice_type.tp_members’)
cpyrit/_cpyrit_cpu.c:2346:5: warning: initialization of ‘struct PyGetSetDef ’ from incompatible pointer type ‘PyMemberDef ’ [-Wincompatible-pointer-types]
2346 | PcapDevice_members, /tp_members/
| ^~~~~~
cpyrit/_cpyrit_cpu.c:2346:5: note: (near initialization for ‘PcapDevice_type.tp_getset’)
cpyrit/_cpyrit_cpu.c:2353:5: warning: initialization of ‘PyObject ()(PyTypeObject , Py_ssize_t)’ {aka ‘struct _object ()(struct _typeobject , long int)’} from incompatible pointer type ‘int ()(PyObject , PyObject , PyObject )’ {aka ‘int ()(struct _object , struct _object , struct _object )’} [-Wincompatible-pointer-types]
2353 | (initproc)PcapDevice_init, /tp_init/
| ^
cpyrit/_cpyrit_cpu.c:2353:5: note: (near initialization for ‘PcapDevice_type.tp_alloc’)
cpyrit/_cpyrit_cpu.c:2315:39: warning: missing braces around initializer [-Wmissing-braces]
2315 | static PyTypeObject PcapDevice_type = {
| ^
cpyrit/_cpyrit_cpu.c: In function ‘pathconfig’:
cpyrit/_cpyrit_cpu.c:2401:28: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2401 | PlatformString = PyString_FromString("SSE2");
| ^
cpyrit/_cpyrit_cpu.c:2431:24: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2431 | PlatformString = PyString_FromString("Default");
| ^
cpyrit/_cpyrit_cpu.c: In function ‘init_cpyrit_cpu’:
cpyrit/_cpyrit_cpu.c:2510:30: error: ‘_PyObject_Del’ undeclared (first use in this function); did you mean ‘PyObject_Del’?
2510 | CPUDevice_type.tp_free = _PyObject_Del;
| ^~~~~
| PyObject_Del
cpyrit/_cpyrit_cpu.c:2512:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2512 | return;
| ^~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~
cpyrit/_cpyrit_cpu.c:2520:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2520 | return;
| ^~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~
cpyrit/_cpyrit_cpu.c:2528:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2528 | return;
| ^~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~
cpyrit/_cpyrit_cpu.c:2536:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2536 | return;
| ^~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~
cpyrit/_cpyrit_cpu.c:2546:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2546 | return;
| ^~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~
cpyrit/_cpyrit_cpu.c:2554:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type]
2554 | return;
| ^~
cpyrit/_cpyrit_cpu.c:2460:1: note: declared here
2460 | init_cpyrit_cpu(void)
| ^~~~~~~
cpyrit/_cpyrit_cpu.c:2556:9: warning: implicit declaration of function ‘Py_InitModule’ [-Wimplicit-function-declaration]
2556 | m = Py_InitModule("_cpyrit_cpu", CPyritCPUMethods);
| ^~~~~
cpyrit/_cpyrit_cpu.c:2556:7: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion]
2556 | m = Py_InitModule("_cpyrit_cpu", CPyritCPUMethods);
| ^
cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_getpmkbuffer’:
cpyrit/_cpyrit_cpu.c:1347:1: warning: control reaches end of non-void function [-Wreturn-type]
1347 | }
| ^
At top level:
cpyrit/_cpyrit_cpu.c:1263:1: warning: ‘CowpattyResult_bf_getsegcount’ defined but not used [-Wunused-function]
1263 | CowpattyResult_bf_getsegcount(CowpattyResult self, Py_ssize_t lenp)
| ^~~~~~~~~
cpyrit/_cpyrit_cpu.c:1251:1: warning: ‘CowpattyResult_bf_getreadbuffer’ defined but not used [-Wunused-function]
1251 | CowpattyResult_bf_getreadbuffer(CowpattyResult* self, Py_ssize_t segment, void **ptrptr)
| ^~~~~~~
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
~~~~ cpyrit/_cpyrit_cpu.c:247:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 247~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cpyrit/_cpyrit_cpu.c: In function ‘Cracker_unpack’: cpyrit/_cpyrit_cpu.c:360:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 360~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cpyrit/_cpyrit_cpu.c:1301:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion] 1301~~~~~~~~~~~~~~~~~~ cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_iternext’: cpyrit/_cpyrit_cpu.c:1330:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion] 1330~~~~~~~~~~~~~~~~~~~~~~ cpyrit/_cpyrit_cpu.c:1331:32: warning: passing argument 3 of ‘PyTuple_SetItem’ makes pointer from integer without a cast [-Wint-conversion] 1331~~~~~~~~~~~~~~~~~~~~ cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_getpmkbuffer’: cpyrit/_cpyrit_cpu.c:1346:12: warning: implicit declaration of function ‘PyBuffer_FromObject’; did you mean ‘PyBytes_FromObject’? [-Wimplicit-function-declaration] 1346~~~~~~~~~cpyrit/_cpyrit_cpu.c:1346:41: note: each undeclared identifier is reported only once for each function it appears in cpyrit/_cpyrit_cpu.c: In function ‘CowpattyFile_gencowpentries’: cpyrit/_cpyrit_cpu.c:1401:16: warning: assignment to ‘char *’ from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 1401~~~~~~~~~~~~~~~~~~~~ cpyrit/_cpyrit_cpu.c: In function ‘PcapDevice_dealloc’: cpyrit/_cpyrit_cpu.c:1562:9: error: ‘PcapDevice’ has no member named ‘ob_type’ 1562~~~~~~~~~~~~~~~~~~~~~~~~~In file included from /usr/include/python3.9/Python.h:101, from cpyrit/_cpyrit_cpu.c:32: /usr/include/python3.9/tupleobject.h:33:57: note: expected ‘PyObject ’ {aka ‘struct _object ’} but argument is of type ‘int’ 33 | PyAPI_FUNC(int) PyTuple_SetItem(PyObject , Py_ssize_t, PyObject ); | ^
~~~~~ cpyrit/_cpyrit_cpu.c: In function ‘cpyrit_pyr2halfpack’: cpyrit/_cpyrit_cpu.c:1939:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1939 | t = (unsigned char)PyString_AsString(item); | ^ cpyrit/_cpyrit_cpu.c:1960:13: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1960 | t = (unsigned char)PyString_AsString(item); | ^ cpyrit/_cpyrit_cpu.c:1984:10: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 1984 | item = PyString_FromStringAndSize((char)pwbuffer, (int)(pwptr - pwbuffer)); | ^ cpyrit/_cpyrit_cpu.c:1993:10: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 1993 | item = PyString_FromStringAndSize((char)pmkbuffer, itemcount32); | ^ cpyrit/_cpyrit_cpu.c: At top level: cpyrit/_cpyrit_cpu.c:2027:38: warning: missing braces around initializer [-Wmissing-braces] 2027 | static PyTypeObject CPUDevice_type = { | ^ cpyrit/_cpyrit_cpu.c:2030:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion] 2030 | "_cpyrit_cpu.CPUDevice", /tp_name/ | ^~~~~~~ cpyrit/_cpyrit_cpu.c:2030:5: note: (near initialization for ‘CPUDevice_type.tp_basicsize’) In file included from /usr/include/python3.9/pytime.h:6, from /usr/include/python3.9/Python.h:81, from cpyrit/_cpyrit_cpu.c:32: /usr/include/python3.9/object.h:350:29: warning: initialization of ‘const char ’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion] 350 | #define Py_TPFLAGS_DEFAULT ( \ | ^ cpyrit/_cpyrit_cpu.c:2048:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’ 2048 | Py_TPFLAGS_DEFAULT /tp_flags/ | ^~~~~~ /usr/include/python3.9/object.h:350:29: note: (near initialization for ‘CPUDevice_type.tp_doc’) 350 | #define Py_TPFLAGS_DEFAULT ( \ | ^ cpyrit/_cpyrit_cpu.c:2048:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’ 2048 | Py_TPFLAGS_DEFAULT /tp_flags/ | ^~~~~~ cpyrit/_cpyrit_cpu.c:2057:5: warning: initialization of ‘struct PyMemberDef ’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types] 2057 | CPUDevice_methods, /tp_methods/ | ^~~~~ cpyrit/_cpyrit_cpu.c:2057:5: note: (near initialization for ‘CPUDevice_type.tp_members’) cpyrit/_cpyrit_cpu.c:2027:38: warning: missing braces around initializer [-Wmissing-braces] 2027 | static PyTypeObject CPUDevice_type = { | ^ cpyrit/_cpyrit_cpu.c:2078:41: warning: missing braces around initializer [-Wmissing-braces] 2078 | static PyTypeObject EAPOLCracker_type = { | ^ cpyrit/_cpyrit_cpu.c:2081:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion] 2081 | "_cpyrit_cpu.EAPOLCracker", /tp_name/ | ^~~~~~cpyrit/_cpyrit_cpu.c:2081:5: note: (near initialization for ‘EAPOLCracker_type.tp_basicsize’) cpyrit/_cpyrit_cpu.c:2084:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object )’} makes integer from pointer without a cast [-Wint-conversion] 2084 | (destructor)EAPOLCracker_dealloc, /tp_dealloc/ | ^ cpyrit/_cpyrit_cpu.c:2084:5: note: (near initialization for ‘EAPOLCracker_type.tp_vectorcall_offset’) In file included from /usr/include/python3.9/pytime.h:6, from /usr/include/python3.9/Python.h:81, from cpyrit/_cpyrit_cpu.c:32: /usr/include/python3.9/object.h:350:29: warning: initialization of ‘const char ’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion] 350 | #define Py_TPFLAGS_DEFAULT ( \ | ^ cpyrit/_cpyrit_cpu.c:2099:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’ 2099 | Py_TPFLAGS_DEFAULT /tp_flags/ | ^~~~~~ /usr/include/python3.9/object.h:350:29: note: (near initialization for ‘EAPOLCracker_type.tp_doc’) 350 | #define Py_TPFLAGS_DEFAULT ( \ | ^ cpyrit/_cpyrit_cpu.c:2099:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’ 2099 | Py_TPFLAGS_DEFAULT /tp_flags/ | ^~~~~~ cpyrit/_cpyrit_cpu.c:2108:5: warning: initialization of ‘struct PyMemberDef ’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types] 2108 | EAPOLCracker_methods, /tp_methods/ | ^~~~~~~~ cpyrit/_cpyrit_cpu.c:2108:5: note: (near initialization for ‘EAPOLCracker_type.tp_members’) cpyrit/_cpyrit_cpu.c:2116:5: warning: initialization of ‘PyObject ()(PyTypeObject , Py_ssize_t)’ {aka ‘struct _object ()(struct _typeobject , long int)’} from incompatible pointer type ‘int ()(PyObject , PyObject , PyObject )’ {aka ‘int ()(struct _object , struct _object , struct _object )’} [-Wincompatible-pointer-types] 2116 | (initproc)EAPOLCracker_init,/tp_init/ | ^ cpyrit/_cpyrit_cpu.c:2116:5: note: (near initialization for ‘EAPOLCracker_type.tp_alloc’) cpyrit/_cpyrit_cpu.c:2078:41: warning: missing braces around initializer [-Wmissing-braces] 2078 | static PyTypeObject EAPOLCracker_type = { | ^ cpyrit/_cpyrit_cpu.c:2129:40: warning: missing braces around initializer [-Wmissing-braces] 2129 | static PyTypeObject CCMPCracker_type = { | ^ cpyrit/_cpyrit_cpu.c:2132:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion] 2132 | "_cpyrit_cpu.CCMPCracker", /tp_name/ | ^~~~~~~~~ cpyrit/_cpyrit_cpu.c:2132:5: note: (near initialization for ‘CCMPCracker_type.tp_basicsize’) cpyrit/_cpyrit_cpu.c:2135:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object )’} makes integer from pointer without a cast [-Wint-conversion] 2135 | (destructor)CCMPCracker_dealloc, /tp_dealloc/ | ^ cpyrit/_cpyrit_cpu.c:2135:5: note: (near initialization for ‘CCMPCracker_type.tp_vectorcall_offset’) In file included from /usr/include/python3.9/pytime.h:6, from /usr/include/python3.9/Python.h:81, from cpyrit/_cpyrit_cpu.c:32: /usr/include/python3.9/object.h:350:29: warning: initialization of ‘const char ’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion] 350 | #define Py_TPFLAGS_DEFAULT ( \ | ^ cpyrit/_cpyrit_cpu.c:2150:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’ 2150 | Py_TPFLAGS_DEFAULT /tp_flags/ | ^~~~~~ /usr/include/python3.9/object.h:350:29: note: (near initialization for ‘CCMPCracker_type.tp_doc’) 350 | #define Py_TPFLAGS_DEFAULT ( \ | ^ cpyrit/_cpyrit_cpu.c:2150:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’ 2150 | Py_TPFLAGS_DEFAULT /tp_flags/ | ^~~~~~ cpyrit/_cpyrit_cpu.c:2159:5: warning: initialization of ‘struct PyMemberDef ’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types] 2159 | CCMPCracker_methods, /tp_methods/ | ^~~~~~~ cpyrit/_cpyrit_cpu.c:2159:5: note: (near initialization for ‘CCMPCracker_type.tp_members’) cpyrit/_cpyrit_cpu.c:2167:5: warning: initialization of ‘PyObject ()(PyTypeObject , Py_ssize_t)’ {aka ‘struct _object ()(struct _typeobject , long int)’} from incompatible pointer type ‘int ()(PyObject , PyObject , PyObject )’ {aka ‘int ()(struct _object , struct _object , struct _object )’} [-Wincompatible-pointer-types] 2167 | (initproc)CCMPCracker_init, /tp_init/ | ^ cpyrit/_cpyrit_cpu.c:2167:5: note: (near initialization for ‘CCMPCracker_type.tp_alloc’) cpyrit/_cpyrit_cpu.c:2129:40: warning: missing braces around initializer [-Wmissing-braces] 2129 | static PyTypeObject CCMPCracker_type = { | ^ cpyrit/_cpyrit_cpu.c:2181:6: error: ‘readbufferproc’ undeclared here (not in a function); did you mean ‘getbufferproc’? 2181 | (readbufferproc)CowpattyResult_bf_getreadbuffer, / bf_getreadbuffer / | ^~~~~~ | getbufferproc cpyrit/_cpyrit_cpu.c:2181:21: error: expected ‘}’ before ‘CowpattyResult_bf_getreadbuffer’ 2181 | (readbufferproc)CowpattyResult_bf_getreadbuffer, / bf_getreadbuffer / | ^~~~~~~cpyrit/_cpyrit_cpu.c:2180:53: note: to match this ‘{’ 2180 | static PyBufferProcs CowpattyResults_buffer_procs = { | ^ cpyrit/_cpyrit_cpu.c:2198:43: warning: missing braces around initializer [-Wmissing-braces] 2198 | static PyTypeObject CowpattyResult_type = { | ^ cpyrit/_cpyrit_cpu.c:2201:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion] 2201 | "_cpyrit_cpu.CowpattyResult", /tp_name/ | ^~~~~~~~ cpyrit/_cpyrit_cpu.c:2201:5: note: (near initialization for ‘CowpattyResult_type.tp_basicsize’) cpyrit/_cpyrit_cpu.c:2204:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object )’} makes integer from pointer without a cast [-Wint-conversion] 2204 | (destructor)CowpattyResult_dealloc, /tp_dealloc/ | ^ cpyrit/_cpyrit_cpu.c:2204:5: note: (near initialization for ‘CowpattyResult_type.tp_vectorcall_offset’) In file included from /usr/include/python3.9/pytime.h:6, from /usr/include/python3.9/Python.h:81, from cpyrit/_cpyrit_cpu.c:32: /usr/include/python3.9/object.h:350:29: warning: initialization of ‘const char ’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion] 350 | #define Py_TPFLAGS_DEFAULT ( \ | ^ cpyrit/_cpyrit_cpu.c:2219:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’ 2219 | Py_TPFLAGS_DEFAULT /tp_flags/ | ^~~~~~ /usr/include/python3.9/object.h:350:29: note: (near initialization for ‘CowpattyResult_type.tp_doc’) 350 | #define Py_TPFLAGS_DEFAULT ( \ | ^ cpyrit/_cpyrit_cpu.c:2219:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’ 2219 | Py_TPFLAGS_DEFAULT /tp_flags/ | ^~~~~~ cpyrit/_cpyrit_cpu.c:2227:5: warning: initialization of ‘struct PyMethodDef ’ from incompatible pointer type ‘PyObject ()(PyObject )’ {aka ‘struct _object ()(struct _object )’} [-Wincompatible-pointer-types] 2227 | (iternextfunc)CowpattyResult_iternext, /tp_iternext/ | ^ cpyrit/_cpyrit_cpu.c:2227:5: note: (near initialization for ‘CowpattyResult_type.tp_methods’) cpyrit/_cpyrit_cpu.c:2228:5: warning: initialization of ‘struct PyMemberDef ’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types] 2228 | CowpattyResult_methods, /tp_methods/ | ^~~~~~ cpyrit/_cpyrit_cpu.c:2228:5: note: (near initialization for ‘CowpattyResult_type.tp_members’) cpyrit/_cpyrit_cpu.c:2198:43: warning: missing braces around initializer [-Wmissing-braces] 2198 | static PyTypeObject CowpattyResult_type = { | ^ cpyrit/_cpyrit_cpu.c:2250:41: warning: missing braces around initializer [-Wmissing-braces] 2250 | static PyTypeObject CowpattyFile_type = { | ^ cpyrit/_cpyrit_cpu.c:2253:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion] 2253 | "_cpyrit_cpu.CowpattyFile", /tp_name/ | ^~~~~~cpyrit/_cpyrit_cpu.c:2253:5: note: (near initialization for ‘CowpattyFile_type.tp_basicsize’) In file included from /usr/include/python3.9/pytime.h:6, from /usr/include/python3.9/Python.h:81, from cpyrit/_cpyrit_cpu.c:32: /usr/include/python3.9/object.h:350:29: warning: initialization of ‘const char ’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion] 350 | #define Py_TPFLAGS_DEFAULT ( \ | ^ cpyrit/_cpyrit_cpu.c:2271:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’ 2271 | Py_TPFLAGS_DEFAULT /tp_flags/ | ^~~~~~ /usr/include/python3.9/object.h:350:29: note: (near initialization for ‘CowpattyFile_type.tp_doc’) 350 | #define Py_TPFLAGS_DEFAULT ( \ | ^ cpyrit/_cpyrit_cpu.c:2271:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’ 2271 | Py_TPFLAGS_DEFAULT /tp_flags/ | ^~~~~~ cpyrit/_cpyrit_cpu.c:2280:5: warning: initialization of ‘struct PyMemberDef ’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types] 2280 | CowpattyFile_methods, /tp_methods/ | ^~~~~~~~ cpyrit/_cpyrit_cpu.c:2280:5: note: (near initialization for ‘CowpattyFile_type.tp_members’) cpyrit/_cpyrit_cpu.c:2250:41: warning: missing braces around initializer [-Wmissing-braces] 2250 | static PyTypeObject CowpattyFile_type = { | ^ cpyrit/_cpyrit_cpu.c:2315:39: warning: missing braces around initializer [-Wmissing-braces] 2315 | static PyTypeObject PcapDevice_type = { | ^ cpyrit/_cpyrit_cpu.c:2318:5: warning: initialization of ‘long int’ from ‘char ’ makes integer from pointer without a cast [-Wint-conversion] 2318 | "_cpyrit_cpu.PcapDevice", /tp_name/ | ^~~~~~~~ cpyrit/_cpyrit_cpu.c:2318:5: note: (near initialization for ‘PcapDevice_type.tp_basicsize’) cpyrit/_cpyrit_cpu.c:2321:5: warning: initialization of ‘long int’ from ‘void ()(PyObject )’ {aka ‘void ()(struct _object )’} makes integer from pointer without a cast [-Wint-conversion] 2321 | (destructor)PcapDevice_dealloc, /tp_dealloc/ | ^ cpyrit/_cpyrit_cpu.c:2321:5: note: (near initialization for ‘PcapDevice_type.tp_vectorcall_offset’) In file included from /usr/include/python3.9/pytime.h:6, from /usr/include/python3.9/Python.h:81, from cpyrit/_cpyrit_cpu.c:32: /usr/include/python3.9/object.h:350:29: warning: initialization of ‘const char ’ from ‘long unsigned int’ makes pointer from integer without a cast [-Wint-conversion] 350 | #define Py_TPFLAGS_DEFAULT ( \ | ^ cpyrit/_cpyrit_cpu.c:2336:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’ 2336 | Py_TPFLAGS_DEFAULT /tp_flags/ | ^~~~~~ /usr/include/python3.9/object.h:350:29: note: (near initialization for ‘PcapDevice_type.tp_doc’) 350 | #define Py_TPFLAGS_DEFAULT ( \ | ^ cpyrit/_cpyrit_cpu.c:2336:5: note: in expansion of macro ‘Py_TPFLAGS_DEFAULT’ 2336 | Py_TPFLAGS_DEFAULT /tp_flags/ | ^~~~~~ cpyrit/_cpyrit_cpu.c:2345:5: warning: initialization of ‘struct PyMemberDef ’ from incompatible pointer type ‘PyMethodDef ’ [-Wincompatible-pointer-types] 2345 | PcapDevice_methods, /tp_methods/ | ^~~~~~ cpyrit/_cpyrit_cpu.c:2345:5: note: (near initialization for ‘PcapDevice_type.tp_members’) cpyrit/_cpyrit_cpu.c:2346:5: warning: initialization of ‘struct PyGetSetDef ’ from incompatible pointer type ‘PyMemberDef ’ [-Wincompatible-pointer-types] 2346 | PcapDevice_members, /tp_members/ | ^~~~~~ cpyrit/_cpyrit_cpu.c:2346:5: note: (near initialization for ‘PcapDevice_type.tp_getset’) cpyrit/_cpyrit_cpu.c:2353:5: warning: initialization of ‘PyObject ()(PyTypeObject , Py_ssize_t)’ {aka ‘struct _object ()(struct _typeobject , long int)’} from incompatible pointer type ‘int ()(PyObject , PyObject , PyObject )’ {aka ‘int ()(struct _object , struct _object , struct _object )’} [-Wincompatible-pointer-types] 2353 | (initproc)PcapDevice_init, /tp_init/ | ^ cpyrit/_cpyrit_cpu.c:2353:5: note: (near initialization for ‘PcapDevice_type.tp_alloc’) cpyrit/_cpyrit_cpu.c:2315:39: warning: missing braces around initializer [-Wmissing-braces] 2315 | static PyTypeObject PcapDevice_type = { | ^ cpyrit/_cpyrit_cpu.c: In function ‘pathconfig’: cpyrit/_cpyrit_cpu.c:2401:28: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 2401 | PlatformString = PyString_FromString("SSE2"); | ^ cpyrit/_cpyrit_cpu.c:2431:24: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 2431 | PlatformString = PyString_FromString("Default"); | ^ cpyrit/_cpyrit_cpu.c: In function ‘init_cpyrit_cpu’: cpyrit/_cpyrit_cpu.c:2510:30: error: ‘_PyObject_Del’ undeclared (first use in this function); did you mean ‘PyObject_Del’? 2510 | CPUDevice_type.tp_free = _PyObject_Del; | ^~~~~ | PyObject_Del cpyrit/_cpyrit_cpu.c:2512:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 2512 | return; | ^~cpyrit/_cpyrit_cpu.c:2460:1: note: declared here 2460 | init_cpyrit_cpu(void) | ^~~~~~~ cpyrit/_cpyrit_cpu.c:2520:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 2520 | return; | ^~cpyrit/_cpyrit_cpu.c:2460:1: note: declared here 2460 | init_cpyrit_cpu(void) | ^~~~~~~ cpyrit/_cpyrit_cpu.c:2528:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 2528 | return; | ^~cpyrit/_cpyrit_cpu.c:2460:1: note: declared here 2460 | init_cpyrit_cpu(void) | ^~~~~~~ cpyrit/_cpyrit_cpu.c:2536:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 2536 | return; | ^~cpyrit/_cpyrit_cpu.c:2460:1: note: declared here 2460 | init_cpyrit_cpu(void) | ^~~~~~~ cpyrit/_cpyrit_cpu.c:2546:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 2546 | return; | ^~cpyrit/_cpyrit_cpu.c:2460:1: note: declared here 2460 | init_cpyrit_cpu(void) | ^~~~~~~ cpyrit/_cpyrit_cpu.c:2554:13: warning: ‘return’ with no value, in function returning non-void [-Wreturn-type] 2554 | return; | ^~cpyrit/_cpyrit_cpu.c:2460:1: note: declared here 2460 | init_cpyrit_cpu(void) | ^~~~~~~ cpyrit/_cpyrit_cpu.c:2556:9: warning: implicit declaration of function ‘Py_InitModule’ [-Wimplicit-function-declaration] 2556 | m = Py_InitModule("_cpyrit_cpu", CPyritCPUMethods); | ^~~~~ cpyrit/_cpyrit_cpu.c:2556:7: warning: assignment to ‘PyObject ’ {aka ‘struct _object ’} from ‘int’ makes pointer from integer without a cast [-Wint-conversion] 2556 | m = Py_InitModule("_cpyrit_cpu", CPyritCPUMethods); | ^ cpyrit/_cpyrit_cpu.c: In function ‘CowpattyResult_getpmkbuffer’: cpyrit/_cpyrit_cpu.c:1347:1: warning: control reaches end of non-void function [-Wreturn-type] 1347 | } | ^ At top level: cpyrit/_cpyrit_cpu.c:1263:1: warning: ‘CowpattyResult_bf_getsegcount’ defined but not used [-Wunused-function] 1263 | CowpattyResult_bf_getsegcount(CowpattyResult self, Py_ssize_t lenp) | ^~~~~~~~~ cpyrit/_cpyrit_cpu.c:1251:1: warning: ‘CowpattyResult_bf_getreadbuffer’ defined but not used [-Wunused-function] 1251 | CowpattyResult_bf_getreadbuffer(CowpattyResult* self, Py_ssize_t segment, void **ptrptr) | ^~~~~~~error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1