Can't compile M2Crypto

Florent greenpenguinNOSPAM at free.fr
Fri Sep 28 10:24:37 EDT 2001


Hi !

I want to use the last version of M2Crypto on my Debian Linux 2.2 system to
encrypt and decrypt s/mime emails.

I have installed from the source Python-1.5.2, SWIG-1.3.6 and
openssl-0.9.6b.

When I want to compile M2Crypto, the following message is shown.

Thank you by advance for your help.

Florent



# make -f Makefile.py1
swig -shadow -python _m2crypto.i

cc -c -fpic -DTHREADING -g -I/usr/local/include -I. -DHAVE_CONFIG_H -I/usr/l
ocal/include/python1.5 -I/usr/local/lib/python1.5/config _m2crypto_wrap.c

_m2crypto_wrap.c: In function `rand_bytes':

_m2crypto_wrap.c:1053: void value not ignored as it ought to be

_m2crypto_wrap.c: In function `hmac_update':

_m2crypto_wrap.c:1264: warning: passing arg 2 of `HMAC_Update' discards
qualifiers from pointer target type

_m2crypto_wrap.c: In function `hmac':

_m2crypto_wrap.c:1328: warning: passing arg 4 of `HMAC' discards qualifiers
from pointer target type

_m2crypto_wrap.c: In function `rc4_set_key':

_m2crypto_wrap.c:1593: warning: passing arg 3 of `RC4_set_key' discards
qualifiers from pointer target type

_m2crypto_wrap.c: In function `rc4_update':

_m2crypto_wrap.c:1618: warning: passing arg 3 of `RC4' discards qualifiers
from pointer target type

_m2crypto_wrap.c: At top level:

_m2crypto_wrap.c:1635: conflicting types for `DHparams_print'

/usr/include/openssl/dh.h:132: previous declaration of `DHparams_print'

_m2crypto_wrap.c: In function `rsa_read_pub_key':

_m2crypto_wrap.c:1846: warning: return makes pointer from integer without a
cast

_m2crypto_wrap.c: At top level:

_m2crypto_wrap.c:2544: conflicting types for `SSL_CTX_set_cipher_list'

/usr/include/openssl/ssl.h:870: previous declaration of
`SSL_CTX_set_cipher_list'

_m2crypto_wrap.c:2568: conflicting types for `SSL_set_cipher_list'

/usr/include/openssl/ssl.h:902: previous declaration of
`SSL_set_cipher_list'

_m2crypto_wrap.c: In function `bio_set_ssl':

_m2crypto_wrap.c:2678: `SSL_MODE_AUTO_RETRY' undeclared (first use in this
function)

_m2crypto_wrap.c:2678: (Each undeclared identifier is reported only once

_m2crypto_wrap.c:2678: for each function it appears in.)

_m2crypto_wrap.c: In function `pkcs7_encrypt':

_m2crypto_wrap.c:3145: warning: return makes pointer from integer without a
cast

_m2crypto_wrap.c: In function `pkcs7_sign0':

_m2crypto_wrap.c:3173: warning: return makes pointer from integer without a
cast

_m2crypto_wrap.c: In function `pkcs7_sign1':

_m2crypto_wrap.c:3177: warning: return makes pointer from integer without a
cast

_m2crypto_wrap.c: In function `smime_write_pkcs7_multi':

_m2crypto_wrap.c:3210: `PKCS7_DETACHED' undeclared (first use in this
function)

_m2crypto_wrap.c: In function `smime_read_pkcs7':

_m2crypto_wrap.c:3222: warning: assignment makes pointer from integer
without a cast

_m2crypto_wrap.c: In function `smime_crlf_copy':

_m2crypto_wrap.c:3265: `PKCS7_TEXT' undeclared (first use in this function)

make: *** [_m2crypto] Error 1






More information about the Python-list mailing list