Install python-mcrypt on Ubuntu

lsolesen lsolesen at gmail.com
Tue Sep 14 10:26:44 EDT 2010


Tried on another machine, but with this error:

lsolesen at lsolesen-toshiba:~/Desktop/python-mcrypt-1.1$ python setup.py
install
running install
running build
running build_ext
building 'mcrypt' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -
Wstrict-prototypes -fPIC -DVERSION="1.1" -I/usr/include/python2.6 -c
mcrypt.c -o build/temp.linux-i686-2.6/mcrypt.o
mcrypt.c:23:20: error: mcrypt.h: No such file or directory
mcrypt.c:55: error: expected specifier-qualifier-list before ‘MCRYPT’
mcrypt.c:70: error: ‘MCRYPTObject’ has no member named ‘algorithm’
mcrypt.c:71: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c: In function ‘catch_mcrypt_error’:
mcrypt.c:86: warning: implicit declaration of function
‘mcrypt_strerror’
mcrypt.c:86: warning: assignment makes pointer from integer without a
cast
mcrypt.c: In function ‘get_iv_from_obj’:
mcrypt.c:110: error: ‘MCRYPTObject’ has no member named ‘iv_size’
mcrypt.c:110: warning: comparison between pointer and integer
mcrypt.c:113: error: ‘MCRYPTObject’ has no member named ‘iv_size’
mcrypt.c:113: warning: format ‘%d’ expects type ‘int’, but argument 3
has type ‘struct PyMemberDef *’
mcrypt.c: In function ‘check_algorithm’:
mcrypt.c:130: warning: implicit declaration of function
‘mcrypt_list_algorithms’
mcrypt.c:130: warning: assignment makes pointer from integer without a
cast
mcrypt.c:134: warning: implicit declaration of function
‘mcrypt_free_p’
mcrypt.c: In function ‘check_mode’:
mcrypt.c:147: warning: implicit declaration of function
‘mcrypt_list_modes’
mcrypt.c:147: warning: assignment makes pointer from integer without a
cast
mcrypt.c: In function ‘check_key’:
mcrypt.c:171: warning: implicit declaration of function
‘mcrypt_enc_get_key_size’
mcrypt.c:171: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:180: warning: implicit declaration of function
‘mcrypt_enc_get_supported_key_sizes’
mcrypt.c:180: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:180: warning: assignment makes pointer from integer without a
cast
mcrypt.c:188: warning: implicit declaration of function ‘mcrypt_free’
mcrypt.c: In function ‘init_mcrypt’:
mcrypt.c:208: error: ‘MCRYPTObject’ has no member named ‘init’
mcrypt.c:208: warning: initialization makes integer from pointer
without a cast
mcrypt.c:225: error: ‘MCRYPTObject’ has no member named ‘init’
mcrypt.c:225: warning: statement with no effect
mcrypt.c:258: warning: implicit declaration of function
‘mcrypt_enc_set_state’
mcrypt.c:258: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:258: error: ‘MCRYPTObject’ has no member named ‘init_iv’
mcrypt.c:259: error: ‘MCRYPTObject’ has no member named ‘iv_size’
mcrypt.c:261: error: ‘MCRYPTObject’ has no member named ‘init’
mcrypt.c:261: warning: statement with no effect
mcrypt.c:263: warning: implicit declaration of function
‘mcrypt_generic_deinit’
mcrypt.c:263: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:266: warning: implicit declaration of function
‘mcrypt_generic_init’
mcrypt.c:266: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:267: error: ‘MCRYPTObject’ has no member named ‘init_key’
mcrypt.c:268: error: ‘MCRYPTObject’ has no member named
‘init_key_size’
mcrypt.c:269: error: ‘MCRYPTObject’ has no member named ‘init_iv’
mcrypt.c:271: error: ‘MCRYPTObject’ has no member named ‘init’
mcrypt.c:271: warning: statement with no effect
mcrypt.c:272: error: ‘MCRYPTObject’ has no member named ‘init_iv’
mcrypt.c:273: error: ‘MCRYPTObject’ has no member named ‘init_key’
mcrypt.c:274: error: ‘MCRYPTObject’ has no member named ‘init_iv’
mcrypt.c:274: warning: statement with no effect
mcrypt.c:275: error: ‘MCRYPTObject’ has no member named ‘init_key’
mcrypt.c:275: warning: statement with no effect
mcrypt.c:276: error: ‘MCRYPTObject’ has no member named
‘init_key_size’
mcrypt.c:276: warning: statement with no effect
mcrypt.c:279: error: ‘MCRYPTObject’ has no member named ‘init’
mcrypt.c:279: warning: statement with no effect
mcrypt.c:282: error: ‘MCRYPTObject’ has no member named ‘init’
mcrypt.c:282: warning: statement with no effect
mcrypt.c:283: error: ‘MCRYPTObject’ has no member named ‘init_iv’
mcrypt.c:284: error: ‘MCRYPTObject’ has no member named ‘init_key’
mcrypt.c:285: error: ‘MCRYPTObject’ has no member named ‘init_iv’
mcrypt.c:285: warning: statement with no effect
mcrypt.c:286: error: ‘MCRYPTObject’ has no member named ‘init_key’
mcrypt.c:286: warning: statement with no effect
mcrypt.c:287: error: ‘MCRYPTObject’ has no member named
‘init_key_size’
mcrypt.c:287: warning: statement with no effect
mcrypt.c:290: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:297: error: ‘MCRYPTObject’ has no member named ‘init_key’
mcrypt.c:297: warning: statement with no effect
mcrypt.c:298: error: ‘MCRYPTObject’ has no member named ‘init_key’
mcrypt.c:302: error: ‘MCRYPTObject’ has no member named ‘init_key’
mcrypt.c:303: error: ‘MCRYPTObject’ has no member named ‘init_iv’
mcrypt.c:303: error: ‘MCRYPTObject’ has no member named ‘iv_size’
mcrypt.c:303: warning: passing argument 1 of ‘PyMem_Malloc’ makes
integer from pointer without a cast
/usr/include/python2.6/pymem.h:52: note: expected ‘size_t’ but
argument is of type ‘struct PyMemberDef *’
mcrypt.c:303: warning: statement with no effect
mcrypt.c:304: error: ‘MCRYPTObject’ has no member named ‘init_iv’
mcrypt.c:309: error: ‘MCRYPTObject’ has no member named ‘init_iv’
mcrypt.c:309: error: ‘MCRYPTObject’ has no member named ‘iv_size’
mcrypt.c:309: warning: passing argument 3 of ‘memcpy’ makes integer
from pointer without a cast
/usr/include/bits/string3.h:49: note: expected ‘size_t’ but argument
is of type ‘struct PyMemberDef *’
mcrypt.c:311: error: ‘MCRYPTObject’ has no member named ‘init_iv’
mcrypt.c:311: error: ‘MCRYPTObject’ has no member named ‘iv_size’
mcrypt.c:311: warning: passing argument 3 of ‘memset’ makes integer
from pointer without a cast
/usr/include/bits/string3.h:78: note: expected ‘size_t’ but argument
is of type ‘struct PyMemberDef *’
mcrypt.c:313: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:316: error: ‘MCRYPTObject’ has no member named ‘init_iv’
mcrypt.c:317: error: ‘MCRYPTObject’ has no member named ‘init_key’
mcrypt.c:318: error: ‘MCRYPTObject’ has no member named ‘init_iv’
mcrypt.c:318: warning: statement with no effect
mcrypt.c:319: error: ‘MCRYPTObject’ has no member named ‘init_key’
mcrypt.c:319: warning: statement with no effect
mcrypt.c:322: error: ‘MCRYPTObject’ has no member named
‘init_key_size’
mcrypt.c:322: warning: statement with no effect
mcrypt.c:323: error: ‘MCRYPTObject’ has no member named ‘init’
mcrypt.c:323: warning: statement with no effect
mcrypt.c: In function ‘MCRYPT_dealloc’:
mcrypt.c:332: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:333: error: ‘MCRYPTObject’ has no member named ‘init’
mcrypt.c:337: warning: implicit declaration of function
‘mcrypt_module_close’
mcrypt.c:337: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:338: error: ‘MCRYPTObject’ has no member named ‘algorithm’
mcrypt.c:339: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c: In function ‘MCRYPT__init__’:
mcrypt.c:397: warning: implicit declaration of function
‘mcrypt_module_is_block_algorithm’
mcrypt.c:400: warning: implicit declaration of function
‘mcrypt_module_is_block_algorithm_mode’
mcrypt.c:411: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:411: warning: implicit declaration of function
‘mcrypt_module_open’
mcrypt.c:411: warning: statement with no effect
mcrypt.c:413: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:413: error: ‘MCRYPT_FAILED’ undeclared (first use in this
function)
mcrypt.c:413: error: (Each undeclared identifier is reported only once
mcrypt.c:413: error: for each function it appears in.)
mcrypt.c:418: error: ‘MCRYPTObject’ has no member named ‘block_mode’
mcrypt.c:418: warning: implicit declaration of function
‘mcrypt_enc_is_block_mode’
mcrypt.c:418: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:418: warning: statement with no effect
mcrypt.c:419: error: ‘MCRYPTObject’ has no member named ‘block_mode’
mcrypt.c:419: warning: passing argument 1 of ‘catch_mcrypt_error’
makes integer from pointer without a cast
mcrypt.c:80: note: expected ‘int’ but argument is of type ‘struct
PyMemberDef *’
mcrypt.c:420: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:423: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:423: warning: implicit declaration of function
‘mcrypt_enc_get_block_size’
mcrypt.c:423: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:423: warning: statement with no effect
mcrypt.c:424: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:424: warning: passing argument 1 of ‘catch_mcrypt_error’
makes integer from pointer without a cast
mcrypt.c:80: note: expected ‘int’ but argument is of type ‘struct
PyMemberDef *’
mcrypt.c:425: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:428: error: ‘MCRYPTObject’ has no member named ‘iv_size’
mcrypt.c:428: warning: implicit declaration of function
‘mcrypt_enc_get_iv_size’
mcrypt.c:428: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:428: warning: statement with no effect
mcrypt.c:429: error: ‘MCRYPTObject’ has no member named ‘iv_size’
mcrypt.c:429: warning: passing argument 1 of ‘catch_mcrypt_error’
makes integer from pointer without a cast
mcrypt.c:80: note: expected ‘int’ but argument is of type ‘struct
PyMemberDef *’
mcrypt.c:430: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:434: error: ‘MCRYPTObject’ has no member named ‘algorithm’
mcrypt.c:434: warning: statement with no effect
mcrypt.c:435: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:435: warning: statement with no effect
mcrypt.c: In function ‘MCRYPT_encrypt’:
mcrypt.c:551: error: ‘MCRYPTObject’ has no member named ‘block_mode’
mcrypt.c:552: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:552: warning: assignment makes integer from pointer without a
cast
mcrypt.c:575: warning: implicit declaration of function
‘mcrypt_generic’
mcrypt.c:575: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c: In function ‘MCRYPT_decrypt’:
mcrypt.c:614: error: ‘MCRYPTObject’ has no member named ‘block_mode’
mcrypt.c:615: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:615: warning: assignment makes integer from pointer without a
cast
mcrypt.c:632: warning: implicit declaration of function
‘mdecrypt_generic’
mcrypt.c:632: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c: In function ‘MCRYPT_encrypt_file’:
mcrypt.c:700: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:700: error: invalid operands to binary * (have ‘int’ and
‘struct PyMemberDef *’)
mcrypt.c:700: warning: assignment makes integer from pointer without a
cast
mcrypt.c:738: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:738: error: invalid operands to binary / (have ‘int’ and
‘struct PyMemberDef *’)
mcrypt.c:738: warning: assignment makes integer from pointer without a
cast
mcrypt.c:739: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:739: error: invalid operands to binary % (have ‘int’ and
‘struct PyMemberDef *’)
mcrypt.c:739: warning: assignment makes integer from pointer without a
cast
mcrypt.c:745: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:745: error: invalid operands to binary * (have ‘int’ and
‘struct PyMemberDef *’)
mcrypt.c:745: warning: assignment makes integer from pointer without a
cast
mcrypt.c:751: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:751: error: invalid operands to binary * (have ‘int’ and
‘struct PyMemberDef *’)
mcrypt.c:751: warning: assignment makes integer from pointer without a
cast
mcrypt.c:757: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c: In function ‘MCRYPT_decrypt_file’:
mcrypt.c:841: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:841: error: invalid operands to binary * (have ‘int’ and
‘struct PyMemberDef *’)
mcrypt.c:841: warning: assignment makes integer from pointer without a
cast
mcrypt.c:887: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:887: error: invalid operands to binary / (have ‘int’ and
‘struct PyMemberDef *’)
mcrypt.c:887: warning: assignment makes integer from pointer without a
cast
mcrypt.c:888: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:888: error: invalid operands to binary * (have ‘int’ and
‘struct PyMemberDef *’)
mcrypt.c:888: warning: assignment makes integer from pointer without a
cast
mcrypt.c:893: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:902: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:902: warning: assignment makes integer from pointer without a
cast
mcrypt.c:905: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:905: warning: comparison between pointer and integer
mcrypt.c:907: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:907: warning: assignment makes integer from pointer without a
cast
mcrypt.c:913: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:913: error: invalid operands to binary - (have ‘int’ and
‘struct PyMemberDef *’)
mcrypt.c:919: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:919: warning: comparison between pointer and integer
mcrypt.c: In function ‘MCRYPT_get_block_size’:
mcrypt.c:943: error: ‘MCRYPTObject’ has no member named ‘block_size’
mcrypt.c:943: warning: passing argument 1 of ‘PyInt_FromLong’ makes
integer from pointer without a cast
/usr/include/python2.6/intobject.h:38: note: expected ‘long int’ but
argument is of type ‘struct PyMemberDef *’
mcrypt.c: In function ‘MCRYPT_get_key_size’:
mcrypt.c:957: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c: In function ‘MCRYPT_get_key_sizes’:
mcrypt.c:979: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c:979: warning: assignment makes pointer from integer without a
cast
mcrypt.c: In function ‘MCRYPT_has_iv’:
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: warning: passing argument 1 of ‘strlen’ from
incompatible pointer type
/usr/include/string.h:397: note: expected ‘const char *’ but argument
is of type ‘struct PyMemberDef *’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: warning: passing argument 2 of ‘__builtin_strcmp’ from
incompatible pointer type
mcrypt.c:1008: note: expected ‘const char *’ but argument is of type
‘struct PyMemberDef *’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: warning: passing argument 2 of ‘__builtin_strcmp’ from
incompatible pointer type
mcrypt.c:1008: note: expected ‘const char *’ but argument is of type
‘struct PyMemberDef *’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: warning: passing argument 1 of ‘strlen’ from
incompatible pointer type
/usr/include/string.h:397: note: expected ‘const char *’ but argument
is of type ‘struct PyMemberDef *’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: warning: passing argument 2 of ‘__builtin_strcmp’ from
incompatible pointer type
mcrypt.c:1008: note: expected ‘const char *’ but argument is of type
‘struct PyMemberDef *’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: error: ‘MCRYPTObject’ has no member named ‘mode’
mcrypt.c:1008: warning: passing argument 2 of ‘__builtin_strcmp’ from
incompatible pointer type
mcrypt.c:1008: note: expected ‘const char *’ but argument is of type
‘struct PyMemberDef *’
mcrypt.c:1010: warning: implicit declaration of function
‘mcrypt_enc_mode_has_iv’
mcrypt.c:1010: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c: In function ‘MCRYPT_get_iv_size’:
mcrypt.c:1026: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c: In function ‘MCRYPT_is_block_algorithm’:
mcrypt.c:1042: warning: implicit declaration of function
‘mcrypt_enc_is_block_algorithm’
mcrypt.c:1042: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c: In function ‘MCRYPT_is_block_mode’:
mcrypt.c:1059: error: ‘MCRYPTObject’ has no member named ‘block_mode’
mcrypt.c:1059: warning: passing argument 1 of ‘PyInt_FromLong’ makes
integer from pointer without a cast
/usr/include/python2.6/intobject.h:38: note: expected ‘long int’ but
argument is of type ‘struct PyMemberDef *’
mcrypt.c: In function ‘MCRYPT_is_block_algorithm_mode’:
mcrypt.c:1073: warning: implicit declaration of function
‘mcrypt_enc_is_block_algorithm_mode’
mcrypt.c:1073: error: ‘MCRYPTObject’ has no member named ‘thread’
mcrypt.c: In function ‘_mcrypt_list_algorithms’:
mcrypt.c:1316: warning: assignment makes pointer from integer without
a cast
mcrypt.c: In function ‘_mcrypt_list_modes’:
mcrypt.c:1364: warning: assignment makes pointer from integer without
a cast
mcrypt.c: In function ‘_mcrypt_is_block_mode’:
mcrypt.c:1445: warning: implicit declaration of function
‘mcrypt_module_is_block_mode’
mcrypt.c: In function ‘_mcrypt_get_block_size’:
mcrypt.c:1512: warning: implicit declaration of function
‘mcrypt_module_get_algo_block_size’
mcrypt.c: In function ‘_mcrypt_get_key_size’:
mcrypt.c:1547: warning: implicit declaration of function
‘mcrypt_module_get_algo_key_size’
mcrypt.c: In function ‘_mcrypt_get_key_sizes’:
mcrypt.c:1585: warning: implicit declaration of function
‘mcrypt_module_get_algo_supported_key_sizes’
mcrypt.c:1586: warning: assignment makes pointer from integer without
a cast
error: command 'gcc' failed with exit status 1



More information about the Python-list mailing list