As following to man install, i ran $ python setup.py build
&get this: th1ng@HELLRAIZER ~/Downloads/Pyrit-0.2.4 $ python setup.py build running build running build_py creating build creating build/lib.linux-i686-2.6 copying pyrit_cli.py -> build/lib.linux-i686-2.6 creating build/lib.linux-i686-2.6/cpyrit copying cpyrit/init.py -> build/lib.linux-i686-2.6/cpyrit copying cpyrit/cpyrit.py -> build/lib.linux-i686-2.6/cpyrit copying cpyrit/util.py -> build/lib.linux-i686-2.6/cpyrit copying cpyrit/pckttools.py -> build/lib.linux-i686-2.6/cpyrit running build_ext building 'cpyrit._cpyrit_cpu' extension creating build/temp.linux-i686-2.6 creating build/temp.linux-i686-2.6/cpyrit gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict- prototypes -fPIC -I/usr/include/python2.6 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-i686-2.6/cpyrit/_cpyrit_cpu.o cpyrit/_cpyrit_cpu.c:21:20: error: Python.h: No such file or directory cpyrit/_cpyrit_cpu.c:23:26: error: openssl/hmac.h: No such file or directory cpyrit/_cpyrit_cpu.c:24:25: error: openssl/sha.h: No such file or directory cpyrit/_cpyrit_cpu.c:29: error: expected specifier-qualifier-list before ‘SHA_CTX’ cpyrit/_cpyrit_cpu.c:37: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ cpyrit/_cpyrit_cpu.c:40: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token cpyrit/_cpyrit_cpu.c:41: error: ‘NULL’ undeclared here (not in a function) cpyrit/_cpyrit_cpu.c: In function ‘detect_padlock’: cpyrit/_cpyrit_cpu.c:74: warning: implicit declaration of function ‘strcmp’ cpyrit/_cpyrit_cpu.c: In function ‘segv_action’: cpyrit/_cpyrit_cpu.c:116: error: ‘REG_EIP’ undeclared (first use in this function) cpyrit/_cpyrit_cpu.c:116: error: (Each undeclared identifier is reported only once cpyrit/_cpyrit_cpu.c:116: error: for each function it appears in.) cpyrit/_cpyrit_cpu.c: At top level: cpyrit/_cpyrit_cpu.c:122: error: expected declaration specifiers or ‘...’ before ‘SHA_CTX’ cpyrit/_cpyrit_cpu.c: In function ‘padlock_xsha1_prepare’: cpyrit/_cpyrit_cpu.c:124: warning: implicit declaration of function ‘getpagesize’ cpyrit/_cpyrit_cpu.c:140: warning: implicit declaration of function ‘memcpy’ cpyrit/_cpyrit_cpu.c:140: warning: incompatible implicit declaration of built-in function ‘memcpy’ cpyrit/_cpyrit_cpu.c:141: warning: implicit declaration of function ‘memset’ cpyrit/_cpyrit_cpu.c:141: warning: incompatible implicit declaration of built-in function ‘memset’ cpyrit/_cpyrit_cpu.c:150: error: ‘output’ undeclared (first use in this function) cpyrit/_cpyrit_cpu.c: At top level: cpyrit/_cpyrit_cpu.c:161: error: expected ‘)’ before ‘’ token cpyrit/_cpyrit_cpu.c: In function ‘prepare_pmk_padlock’: cpyrit/_cpyrit_cpu.c:191: warning: incompatible implicit declaration of built-in function ‘memcpy’ cpyrit/_cpyrit_cpu.c:192: warning: incompatible implicit declaration of built-in function ‘memset’ cpyrit/_cpyrit_cpu.c:198: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’ cpyrit/_cpyrit_cpu.c:198: error: too many arguments to function ‘padlock_xsha1_prepare’ cpyrit/_cpyrit_cpu.c:201: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’ cpyrit/_cpyrit_cpu.c:201: error: too many arguments to function ‘padlock_xsha1_prepare’ cpyrit/_cpyrit_cpu.c:204: warning: implicit declaration of function ‘HMAC’ cpyrit/_cpyrit_cpu.c:204: warning: implicit declaration of function ‘EVP_sha1’ cpyrit/_cpyrit_cpu.c:204: error: ‘struct pmk_ctr’ has no member named ‘e1’ cpyrit/_cpyrit_cpu.c:207: error: ‘struct pmk_ctr’ has no member named ‘e2’ cpyrit/_cpyrit_cpu.c: In function ‘finalize_pmk_padlock’: cpyrit/_cpyrit_cpu.c:216: warning: incompatible implicit declaration of built-in function ‘memcpy’ cpyrit/_cpyrit_cpu.c:216: error: ‘struct pmk_ctr’ has no member named ‘e1’ cpyrit/_cpyrit_cpu.c:217: error: ‘struct pmk_ctr’ has no member named ‘e2’ cpyrit/_cpyrit_cpu.c:220: warning: implicit declaration of function ‘padlock_xsha1_finalize’ cpyrit/_cpyrit_cpu.c:220: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’ cpyrit/_cpyrit_cpu.c:221: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’ cpyrit/_cpyrit_cpu.c:223: error: ‘struct pmk_ctr’ has no member named ‘e1’ cpyrit/_cpyrit_cpu.c:225: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’ cpyrit/_cpyrit_cpu.c:226: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’ cpyrit/_cpyrit_cpu.c:228: error: ‘struct pmk_ctr’ has no member named ‘e2’ cpyrit/_cpyrit_cpu.c: In function ‘finalize_pmk_sse2’: cpyrit/_cpyrit_cpu.c:253: warning: incompatible implicit declaration of built-in function ‘memset’ cpyrit/_cpyrit_cpu.c:255: warning: incompatible implicit declaration of built-in function ‘memcpy’ cpyrit/_cpyrit_cpu.c:260: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’ cpyrit/_cpyrit_cpu.c:261: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’ cpyrit/_cpyrit_cpu.c:262: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’ cpyrit/_cpyrit_cpu.c:263: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’ cpyrit/_cpyrit_cpu.c:264: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’ cpyrit/_cpyrit_cpu.c:266: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’ cpyrit/_cpyrit_cpu.c:267: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’ cpyrit/_cpyrit_cpu.c:268: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’ cpyrit/_cpyrit_cpu.c:269: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’ cpyrit/_cpyrit_cpu.c:270: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’ cpyrit/_cpyrit_cpu.c:276: error: ‘struct pmk_ctr’ has no member named ‘e1’ cpyrit/_cpyrit_cpu.c:277: error: ‘struct pmk_ctr’ has no member named ‘e2’ cpyrit/_cpyrit_cpu.c:304: error: ‘struct pmk_ctr’ has no member named ‘e1’ cpyrit/_cpyrit_cpu.c:305: error: ‘struct pmk_ctr’ has no member named ‘e2’ cpyrit/_cpyrit_cpu.c: In function ‘prepare_pmk_openssl’: cpyrit/_cpyrit_cpu.c:324: warning: incompatible implicit declaration of built-in function ‘memcpy’ cpyrit/_cpyrit_cpu.c:325: warning: incompatible implicit declaration of built-in function ‘memset’ cpyrit/_cpyrit_cpu.c:331: warning: implicit declaration of function ‘SHA1_Init’ cpyrit/_cpyrit_cpu.c:331: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’ cpyrit/_cpyrit_cpu.c:332: warning: implicit declaration of function ‘SHA1_Update’ cpyrit/_cpyrit_cpu.c:332: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’ cpyrit/_cpyrit_cpu.c:335: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’ cpyrit/_cpyrit_cpu.c:336: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’ cpyrit/_cpyrit_cpu.c:339: error: ‘struct pmk_ctr’ has no member named ‘e1’ cpyrit/_cpyrit_cpu.c:342: error: ‘struct pmk_ctr’ has no member named ‘e2’ cpyrit/_cpyrit_cpu.c: In function ‘finalize_pmk_openssl’: cpyrit/_cpyrit_cpu.c:349: error: ‘SHA_CTX’ undeclared (first use in this function) cpyrit/_cpyrit_cpu.c:349: error: expected ‘;’ before ‘ctx’ cpyrit/_cpyrit_cpu.c:352: warning: incompatible implicit declaration of built-in function ‘memcpy’ cpyrit/_cpyrit_cpu.c:352: error: ‘struct pmk_ctr’ has no member named ‘e1’ cpyrit/_cpyrit_cpu.c:353: error: ‘struct pmk_ctr’ has no member named ‘e2’ cpyrit/_cpyrit_cpu.c:356: error: ‘ctx’ undeclared (first use in this function) cpyrit/_cpyrit_cpu.c:356: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’ cpyrit/_cpyrit_cpu.c:358: warning: implicit declaration of function ‘SHA1_Final’ cpyrit/_cpyrit_cpu.c:360: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’ cpyrit/_cpyrit_cpu.c:365: error: ‘struct pmk_ctr’ has no member named ‘e1’ cpyrit/_cpyrit_cpu.c:367: error: ‘struct pmk_ctr’ has no member named ‘ctx_ipad’ cpyrit/_cpyrit_cpu.c:371: error: ‘struct pmk_ctr’ has no member named ‘ctx_opad’ cpyrit/_cpyrit_cpu.c:376: error: ‘struct pmk_ctr’ has no member named ‘e2’ cpyrit/_cpyrit_cpu.c: At top level: cpyrit/_cpyrit_cpu.c:382: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token cpyrit/_cpyrit_cpu.c:391: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘’ token cpyrit/_cpyrit_cpu.c:467: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘CPUDevice_methods’ cpyrit/_cpyrit_cpu.c:473: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘CPUDevice_type’ cpyrit/_cpyrit_cpu.c:518: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘CPyritCPUMethods’ cpyrit/_cpyrit_cpu.c: In function ‘pathconfig’: cpyrit/_cpyrit_cpu.c:528: error: ‘PlatformString’ undeclared (first use in this function) cpyrit/_cpyrit_cpu.c:528: warning: implicit declaration of function ‘PyString_FromString’ cpyrit/_cpyrit_cpu.c: At top level: cpyrit/_cpyrit_cpu.c:550: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘attribute’ before ‘init_cpyrit_cpu’ error: command 'gcc' failed with exit status 1
Comment #1
Posted on Feb 8, 2010 by Massive Rhinoth1ng@HELLRAIZER ~/Downloads/Pyrit-0.2.4 $ ls build cpyrit MANIFEST PKG-INFO pyrit pyrit_cli.py setup.py th1ng@HELLRAIZER ~/Downloads/Pyrit-0.2.4 $ uname -a Linux HELLRAIZER 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux th1ng@HELLRAIZER ~/Downloads/Pyrit-0.2.4 $ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2
Comment #2
Posted on Feb 8, 2010 by Quick Camelplease read the error message and follow the installation instructions.
you need the python headers (e.g. python-devel)
Comment #3
Posted on Feb 8, 2010 by Massive Rhinoafter installing python-dev & libssl-dev build success =) 10x
Status: Invalid
Labels:
Type-Defect
Priority-Medium