brktrksvr / pyrit

Automatically exported from code.google.com/p/pyrit
0 stars 0 forks source link

error: command 'gcc' failed with exit status 1 #399

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. tar xvzf pyrit-0.3.0.tar.gz
   tar xvzf cpyrit-cuda-0.3.0.tar.gz
2. svn checkout http://pyrit.googlecode.com/svn/trunk/ pyrit_svn
3. cd pyrit-0.3.0
   python setup.py build

What is the expected output? What do you see instead?

root@bt:~/pyrit-0.3.0# python setup.py build
svn: '.' is not a working copy
running build
running build_py
running build_ext
building 'cpyrit._cpyrit_cpu' extension
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 -DVERSION="0.3.0"
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:45: error: expected specifier-qualifier-list before 
‘SHA_CTX’
cpyrit/_cpyrit_cpu.c:185: error: expected declaration specifiers or ‘...’ 
before ‘SHA_CTX’
cpyrit/_cpyrit_cpu.c: In function ‘padlock_xsha1_prepare’:
cpyrit/_cpyrit_cpu.c:213: error: ‘output’ undeclared (first use in this 
function)
cpyrit/_cpyrit_cpu.c:213: error: (Each undeclared identifier is reported only 
once
cpyrit/_cpyrit_cpu.c:213: error: for each function it appears in.)
cpyrit/_cpyrit_cpu.c: At top level:
cpyrit/_cpyrit_cpu.c:224: error: expected ‘)’ before ‘*’ token
cpyrit/_cpyrit_cpu.c: In function ‘prepare_pmk_padlock’:
cpyrit/_cpyrit_cpu.c:261: error: ‘struct pmk_ctr’ has no member named 
‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:261: error: too many arguments to function 
‘padlock_xsha1_prepare’
cpyrit/_cpyrit_cpu.c:264: error: ‘struct pmk_ctr’ has no member named 
‘ctx_opad’
cpyrit/_cpyrit_cpu.c:264: error: too many arguments to function 
‘padlock_xsha1_prepare’
cpyrit/_cpyrit_cpu.c:267: warning: implicit declaration of function ‘HMAC’
cpyrit/_cpyrit_cpu.c:267: warning: implicit declaration of function 
‘EVP_sha1’
cpyrit/_cpyrit_cpu.c:267: error: ‘struct pmk_ctr’ has no member named 
‘e1’
cpyrit/_cpyrit_cpu.c:270: error: ‘struct pmk_ctr’ has no member named 
‘e2’
cpyrit/_cpyrit_cpu.c: In function ‘finalize_pmk_padlock’:
cpyrit/_cpyrit_cpu.c:279: error: ‘struct pmk_ctr’ has no member named 
‘e1’
cpyrit/_cpyrit_cpu.c:280: error: ‘struct pmk_ctr’ has no member named 
‘e2’
cpyrit/_cpyrit_cpu.c:283: warning: implicit declaration of function 
‘padlock_xsha1_finalize’
cpyrit/_cpyrit_cpu.c:283: error: ‘struct pmk_ctr’ has no member named 
‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:284: error: ‘struct pmk_ctr’ has no member named 
‘ctx_opad’
cpyrit/_cpyrit_cpu.c:286: error: ‘struct pmk_ctr’ has no member named 
‘e1’
cpyrit/_cpyrit_cpu.c:288: error: ‘struct pmk_ctr’ has no member named 
‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:289: error: ‘struct pmk_ctr’ has no member named 
‘ctx_opad’
cpyrit/_cpyrit_cpu.c:291: error: ‘struct pmk_ctr’ has no member named 
‘e2’
cpyrit/_cpyrit_cpu.c: In function ‘finalize_pmk_sse2’:
cpyrit/_cpyrit_cpu.c:327: error: ‘struct pmk_ctr’ has no member named 
‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:328: error: ‘struct pmk_ctr’ has no member named 
‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:329: error: ‘struct pmk_ctr’ has no member named 
‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:330: error: ‘struct pmk_ctr’ has no member named 
‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:331: error: ‘struct pmk_ctr’ has no member named 
‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:333: error: ‘struct pmk_ctr’ has no member named 
‘ctx_opad’
cpyrit/_cpyrit_cpu.c:334: error: ‘struct pmk_ctr’ has no member named 
‘ctx_opad’
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:337: error: ‘struct pmk_ctr’ has no member named 
‘ctx_opad’
cpyrit/_cpyrit_cpu.c:343: error: ‘struct pmk_ctr’ has no member named 
‘e1’
cpyrit/_cpyrit_cpu.c:344: error: ‘struct pmk_ctr’ has no member named 
‘e2’
cpyrit/_cpyrit_cpu.c:371: error: ‘struct pmk_ctr’ has no member named 
‘e1’
cpyrit/_cpyrit_cpu.c:372: error: ‘struct pmk_ctr’ has no member named 
‘e2’
cpyrit/_cpyrit_cpu.c: In function ‘prepare_pmk_openssl’:
cpyrit/_cpyrit_cpu.c:397: warning: implicit declaration of function 
‘SHA1_Init’
cpyrit/_cpyrit_cpu.c:397: error: ‘struct pmk_ctr’ has no member named 
‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:398: warning: implicit declaration of function 
‘SHA1_Update’
cpyrit/_cpyrit_cpu.c:398: error: ‘struct pmk_ctr’ has no member named 
‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:401: error: ‘struct pmk_ctr’ has no member named 
‘ctx_opad’
cpyrit/_cpyrit_cpu.c:402: error: ‘struct pmk_ctr’ has no member named 
‘ctx_opad’
cpyrit/_cpyrit_cpu.c:405: error: ‘struct pmk_ctr’ has no member named 
‘e1’
cpyrit/_cpyrit_cpu.c:408: error: ‘struct pmk_ctr’ has no member named 
‘e2’
cpyrit/_cpyrit_cpu.c: In function ‘finalize_pmk_openssl’:
cpyrit/_cpyrit_cpu.c:415: error: ‘SHA_CTX’ undeclared (first use in this 
function)
cpyrit/_cpyrit_cpu.c:415: error: expected ‘;’ before ‘ctx’
cpyrit/_cpyrit_cpu.c:418: error: ‘struct pmk_ctr’ has no member named 
‘e1’
cpyrit/_cpyrit_cpu.c:419: error: ‘struct pmk_ctr’ has no member named 
‘e2’
cpyrit/_cpyrit_cpu.c:422: error: ‘ctx’ undeclared (first use in this 
function)
cpyrit/_cpyrit_cpu.c:422: error: ‘struct pmk_ctr’ has no member named 
‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:424: warning: implicit declaration of function 
‘SHA1_Final’
cpyrit/_cpyrit_cpu.c:426: error: ‘struct pmk_ctr’ has no member named 
‘ctx_opad’
cpyrit/_cpyrit_cpu.c:431: error: ‘struct pmk_ctr’ has no member named 
‘e1’
cpyrit/_cpyrit_cpu.c:433: error: ‘struct pmk_ctr’ has no member named 
‘ctx_ipad’
cpyrit/_cpyrit_cpu.c:437: error: ‘struct pmk_ctr’ has no member named 
‘ctx_opad’
cpyrit/_cpyrit_cpu.c:442: error: ‘struct pmk_ctr’ has no member named 
‘e2’
cpyrit/_cpyrit_cpu.c: In function ‘CPUDevice_solve’:
cpyrit/_cpyrit_cpu.c:518: error: ‘struct pmk_ctr’ has no member named 
‘e1’
cpyrit/_cpyrit_cpu.c: In function ‘fourwise_md5hmac_openssl’:
cpyrit/_cpyrit_cpu.c:809: warning: implicit declaration of function 
‘EVP_md5’
error: command 'gcc' failed with exit status 1

What version of the product are you using? On what operating system?

UBUNTU 10.04 (lucid)
Kernel Linux 3.2.6
GNOME 2.30.2          \\\BackTrack5 R2

Original issue reported on code.google.com by adsahdja...@gmail.com on 20 Jul 2012 at 10:50

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
ubuntu 11.10 pyrit-0.3.0 and pyrit-0.4.0
meme probleme

Original comment by hery...@gmail.com on 19 Aug 2012 at 3:34

GoogleCodeExporter commented 8 years ago
ubuntu 12.04 LTS
Tried pyrit-0.4.0

With pyrit-0.3.0, I'm able to build the setup.py but when I install, I get this 
error: 

ERROR:root:code for hash sha224 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha224
ERROR:root:code for hash sha256 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha256
ERROR:root:code for hash sha384 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha384
ERROR:root:code for hash sha512 was not found.
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/hashlib.py", line 139, in <module>
    globals()[__func_name] = __get_hash(__func_name)
  File "/usr/local/lib/python2.7/hashlib.py", line 91, in __get_builtin_constructor
    raise ValueError('unsupported hash type %s' % name)
ValueError: unsupported hash type sha512
writing byte-compilation script '/tmp/tmprm0Fcw.py'
/usr/local/bin/python -O /tmp/tmprm0Fcw.py
removing /tmp/tmprm0Fcw.py
running install_scripts
copying build/scripts-2.7/pyrit -> /usr/local/bin
changing mode of /usr/local/bin/pyrit to 755
running install_egg_info
Writing /usr/local/lib/python2.7/site-packages/pyrit-0.3.0-py2.7.egg-info

 When I do a which pyrit command: 
/usr/local/bin/pyrit

 When I run ./pyrit from /usr/local/bin: Traceback (most recent call last):
  File "./pyrit", line 4, in <module>
    import pyrit_cli
  File "/usr/local/lib/python2.7/site-packages/pyrit_cli.py", line 24, in <module>
    import gzip
  File "/usr/local/lib/python2.7/gzip.py", line 9, in <module>
    import zlib
ImportError: No module named zlib

Original comment by alan.vau...@gmail.com on 7 Sep 2012 at 4:19

GoogleCodeExporter commented 8 years ago
Did you install build-essential, python-dev, libpcap-dev, libssl-dev ?

Original comment by virus421...@gmail.com on 18 Oct 2012 at 9:05

GoogleCodeExporter commented 8 years ago
I've got the error after the command python setup.py build

running build
running build_py
running build_ext
building 'cpyrit._cpyrit_cpu' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall 
-Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o 
build/temp.linux-x86_64-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing 
-DVERSION="0.4.0"
cpyrit/_cpyrit_cpu.c:32:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

Please can someone help me to fix this error??? i've tried to install a lot of 
drivers but seems not working my system is ubuntu 12.04 ...thanks.....

Original comment by themrz...@gmail.com on 20 Aug 2014 at 9:34