1. Magnus Hallin
  2. py-scrypt
Issue #4 new

windows 7 -- issues -- python 2.x

Anonymous created an issue

When download the .tar.gz script2.c is not included in the src file. The tests files are not included as well.

After copy/paste the additions and run:

python setup.py install

I get the following error:

{{{ running install running build running build_ext building 'scrypt' extension C:\MinGW32-xy\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DHAVE_CONFIG_H -Iscrypt-1.1.6 -Iscrypt-1.1. 6/lib -Iscrypt-1.1.6/lib/scryptenc -Iscrypt-1.1.6/lib/crypto -Iscrypt-1.1.6/lib/util -Ic:\OpenSSL -Win32\include -IC:\Python27\include -IC:\Python27\PC -c src/scrypt2.c -o build\temp.win32-2.7\Re lease\src\scrypt2.o C:\MinGW32-xy\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DHAVE_CONFIG_H -Iscrypt-1.1.6 -Iscrypt-1.1. 6/lib -Iscrypt-1.1.6/lib/scryptenc -Iscrypt-1.1.6/lib/crypto -Iscrypt-1.1.6/lib/util -Ic:\OpenSSL -Win32\include -IC:\Python27\include -IC:\Python27\PC -c scrypt-1.1.6/lib/crypto/crypto_aesctr.c -o build\temp.win32-2.7\Release\scrypt-1.1.6\lib\crypto\crypto_aesctr.o scrypt-1.1.6/lib/crypto/crypto_aesctr.c:34:25: fatal error: openssl/aes.h: No such file or direct ory compilation terminated. error: command 'gcc' failed with exit status 1 }}}

Where is openssl/aeh.h suppose to come from?

Any suggestions?

Comments (5)

  1. Magnus Hallin repo owner

    openssl/aes.h is a part of the OpenSSL distribution. You can get a binary distribution for Windows here: http://slproweb.com/products/Win32OpenSSL.html, but I'm not sure if those contain the necessary headers.

    If those are missing, the source distribution is available over att http://www.openssl.org/source/, which should be possible to build inside MinGW just as an ordinary project.

    Please try to install the binary distribution and report if the header is still missing. By the look of your error report, it should be installed in C:\OpenSSL-Win32

  2. Anonymous

    Thanks for the response. I added the openssl/aes.h headers and it appears to work.

    When I run it again I get the following different error:

    running install
    running build
    running build_ext
    building 'scrypt' extension
    C:\MinGW32-xy\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DHAVE_CONFIG_H -Iscrypt-1.1.6 -Iscrypt-1.1.
    6/lib -Iscrypt-1.1.6/lib/scryptenc -Iscrypt-1.1.6/lib/crypto -Iscrypt-1.1.6/lib/util -Ic:\OpenSSL
    -Win32\include -IC:\Python27\include -IC:\Python27\PC -c src/scrypt2.c -o build\temp.win32-2.7\Re
    lease\src\scrypt2.o
    C:\MinGW32-xy\bin\gcc.exe -mno-cygwin -mdll -O -Wall -DHAVE_CONFIG_H -Iscrypt-1.1.6 -Iscrypt-1.1.
    6/lib -Iscrypt-1.1.6/lib/scryptenc -Iscrypt-1.1.6/lib/crypto -Iscrypt-1.1.6/lib/util -Ic:\OpenSSL
    -Win32\include -IC:\Python27\include -IC:\Python27\PC -c scrypt-1.1.6/lib/crypto/crypto_aesctr.c
    -o build\temp.win32-2.7\Release\scrypt-1.1.6\lib\crypto\crypto_aesctr.o
    In file included from scrypt-1.1.6/lib/crypto/crypto_aesctr.c:38:0:
    scrypt-1.1.6/lib/crypto/crypto_aesctr.h:42:51: error: expected ')' before '*' token
    scrypt-1.1.6/lib/crypto/crypto_aesctr.c:41:2: error: expected specifier-qualifier-list before 'AE
    S_KEY'
    scrypt-1.1.6/lib/crypto/crypto_aesctr.c:54:28: error: expected ')' before '*' token
    scrypt-1.1.6/lib/crypto/crypto_aesctr.c: In function 'crypto_aesctr_stream':
    scrypt-1.1.6/lib/crypto/crypto_aesctr.c:91:19: error: 'struct crypto_aesctr' has no member named
    'bytectr'
    scrypt-1.1.6/lib/crypto/crypto_aesctr.c:95:24: error: 'struct crypto_aesctr' has no member named
    'nonce'
    scrypt-1.1.6/lib/crypto/crypto_aesctr.c:96:28: error: 'struct crypto_aesctr' has no member named
    'bytectr'
    scrypt-1.1.6/lib/crypto/crypto_aesctr.c:97:4: warning: implicit declaration of function 'AES_encr
    ypt'
    scrypt-1.1.6/lib/crypto/crypto_aesctr.c:97:28: error: 'struct crypto_aesctr' has no member named
    'buf'
    scrypt-1.1.6/lib/crypto/crypto_aesctr.c:97:41: error: 'struct crypto_aesctr' has no member named
    'key'
    scrypt-1.1.6/lib/crypto/crypto_aesctr.c:101:36: error: 'struct crypto_aesctr' has no member named
     'buf'
    scrypt-1.1.6/lib/crypto/crypto_aesctr.c:104:9: error: 'struct crypto_aesctr' has no member named
    'bytectr'
    scrypt-1.1.6/lib/crypto/crypto_aesctr.c: In function 'crypto_aesctr_free':
    scrypt-1.1.6/lib/crypto/crypto_aesctr.c:119:9: error: 'struct crypto_aesctr' has no member named
    'buf'
    scrypt-1.1.6/lib/crypto/crypto_aesctr.c:120:8: error: 'struct crypto_aesctr' has no member named
    'bytectr'
    scrypt-1.1.6/lib/crypto/crypto_aesctr.c:120:26: error: 'struct crypto_aesctr' has no member named
     'nonce'
    error: command 'gcc' failed with exit status 1
    

    Any suggestions?

  3. Rémy Roy

    Last time I managed to build py-scrypt on Windows, I had to use Visual Studio instead of gcc. I tried hard to use gcc but it did not work in the end. You can download a free working version of Visual Studio, for this purpose, by downloading one of their Express edition.

    I hope this help.

  4. Log in to comment