Source: m2crypto
Version: 0.24.0-1
Severity: important
Control: block 827061 by -1

m2crypto currently fails to run with OpenSSL 1.1[1]:

<cut>
x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes 
-fno-strict-aliasing -g -O2 -fstack-protector-strong -Wformat 
-Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC 
-I/usr/include/python2.7 -I/usr/include -I/usr/include/x86_64-linux-gnu 
-I/<<PKGBUILDDIR>>/SWIG -c SWIG/_m2crypto_wrap.c -o 
build/temp.linux-x86_64-2.7/SWIG/_m2crypto_wrap.o -DTHREADING
SWIG/_m2crypto_wrap.c:3889:35: error: 'CRYPTO_NUM_LOCKS' undeclared here (not 
in a function)
 static PyThread_type_lock lock_cs[CRYPTO_NUM_LOCKS];
                                   ^
SWIG/_m2crypto_wrap.c: In function 'threading_locking_callback':
SWIG/_m2crypto_wrap.c:3896:20: error: 'CRYPTO_LOCK' undeclared (first use in 
this function)
         if (mode & CRYPTO_LOCK) {
                    ^
SWIG/_m2crypto_wrap.c:3896:20: note: each undeclared identifier is reported 
only once for each function it appears in
SWIG/_m2crypto_wrap.c: In function 'lib_init':
SWIG/_m2crypto_wrap.c:4270:5: warning: implicit declaration of function 
'SSLeay_add_all_algorithms' [-Wimplicit-function-declaration]
     SSLeay_add_all_algorithms();
     ^
SWIG/_m2crypto_wrap.c: In function 'bn_rand':
SWIG/_m2crypto_wrap.c:4628:12: error: storage size of 'rnd' isn't known
     BIGNUM rnd;
            ^
SWIG/_m2crypto_wrap.c:4632:5: warning: implicit declaration of function 
'BN_init' [-Wimplicit-function-declaration]
     BN_init(&rnd);
     ^
SWIG/_m2crypto_wrap.c:4628:12: warning: unused variable 'rnd' 
[-Wunused-variable]
     BIGNUM rnd;
            ^
SWIG/_m2crypto_wrap.c: In function 'bn_rand_range':
SWIG/_m2crypto_wrap.c:4657:12: error: storage size of 'rnd' isn't known
     BIGNUM rnd;
            ^
SWIG/_m2crypto_wrap.c:4657:12: warning: unused variable 'rnd' 
[-Wunused-variable]
SWIG/_m2crypto_wrap.c: In function 'rand_pseudo_bytes':
SWIG/_m2crypto_wrap.c:4788:5: warning: 'RAND_pseudo_bytes' is deprecated 
[-Wdeprecated-declarations]
     ret = RAND_pseudo_bytes(blob, n);
     ^
In file included from /usr/include/openssl/crypto.h:32:0,
                 from /usr/include/openssl/bio.h:20,
                 from /usr/include/openssl/err.h:21,
                 from SWIG/_m2crypto_wrap.c:3579:
/usr/include/openssl/rand.h:51:1: note: declared here
 DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num))
 ^
SWIG/_m2crypto_wrap.c: In function 'digest_final':
SWIG/_m2crypto_wrap.c:4906:34: error: dereferencing pointer to incomplete type 
'EVP_MD_CTX {aka struct evp_md_ctx_st}'
     if (!(blob = PyMem_Malloc(ctx->digest->md_size))) {
                                  ^
SWIG/_m2crypto_wrap.c: In function 'hmac_ctx_new':
SWIG/_m2crypto_wrap.c:4923:49: error: invalid application of 'sizeof' to 
incomplete type 'HMAC_CTX {aka struct hmac_ctx_st}'
     if (!(ctx = (HMAC_CTX *)PyMem_Malloc(sizeof(HMAC_CTX)))) {
                                                 ^
SWIG/_m2crypto_wrap.c:4927:5: warning: implicit declaration of function 
'HMAC_CTX_init' [-Wimplicit-function-declaration]
     HMAC_CTX_init(ctx);
     ^
SWIG/_m2crypto_wrap.c: In function 'hmac_ctx_free':
SWIG/_m2crypto_wrap.c:4932:5: warning: implicit declaration of function 
'HMAC_CTX_cleanup' [-Wimplicit-function-declaration]
     HMAC_CTX_cleanup(ctx);
     ^
SWIG/_m2crypto_wrap.c: In function 'hmac_init':
SWIG/_m2crypto_wrap.c:4943:5: warning: 'HMAC_Init' is deprecated 
[-Wdeprecated-declarations]
     if (!HMAC_Init(ctx, kbuf, klen, md)) {
     ^
In file included from /usr/include/openssl/hmac.h:13:0,
                 from /usr/include/openssl/ssl.h:56,
                 from SWIG/_m2crypto_wrap.c:3950:
/usr/include/openssl/hmac.h:28:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur int HMAC_Init(HMAC_CTX *ctx, const void *key, int 
len,
 ^
SWIG/_m2crypto_wrap.c: In function 'hmac_final':
SWIG/_m2crypto_wrap.c:4971:34: error: dereferencing pointer to incomplete type 
'HMAC_CTX {aka struct hmac_ctx_st}'
     if (!(blob = PyMem_Malloc(ctx->md->md_size))) {
                                  ^
SWIG/_m2crypto_wrap.c: In function 'cipher_ctx_new':
SWIG/_m2crypto_wrap.c:5010:55: error: invalid application of 'sizeof' to 
incomplete type 'EVP_CIPHER_CTX {aka struct evp_cipher_ctx_st}'
     if (!(ctx = (EVP_CIPHER_CTX *)PyMem_Malloc(sizeof(EVP_CIPHER_CTX)))) {
                                                       ^
SWIG/_m2crypto_wrap.c: In function 'cipher_final':
SWIG/_m2crypto_wrap.c:5091:34: error: dereferencing pointer to incomplete type 
'EVP_CIPHER_CTX {aka struct evp_cipher_ctx_st}'
     if (!(obuf = PyMem_Malloc(ctx->cipher->block_size))) {
                                  ^
SWIG/_m2crypto_wrap.c: In function 'pkey_get_modulus':
SWIG/_m2crypto_wrap.c:5239:17: error: dereferencing pointer to incomplete type 
'EVP_PKEY {aka struct evp_pkey_st}'
     switch (pkey->type) {
                 ^
SWIG/_m2crypto_wrap.c:5250:35: error: dereferencing pointer to incomplete type 
'RSA {aka struct rsa_st}'
             if (!BN_print(bio, rsa->n)) {
                                   ^
SWIG/_m2crypto_wrap.c:5275:35: error: dereferencing pointer to incomplete type 
'DSA {aka struct dsa_st}'
             if (!BN_print(bio, dsa->pub_key)) {
                                   ^
SWIG/_m2crypto_wrap.c: In function 'dh_generate_parameters':
SWIG/_m2crypto_wrap.c:5472:5: warning: 'DH_generate_parameters' is deprecated 
[-Wdeprecated-declarations]
     dh = DH_generate_parameters(plen, g, gendh_callback, (void *)pyfunc);
     ^
In file included from /usr/include/openssl/bn.h:31:0,
                 from /usr/include/openssl/asn1.h:24,
                 from /usr/include/openssl/dh.h:18,
                 from SWIG/_m2crypto_wrap.c:3946:
/usr/include/openssl/dh.h:112:1: note: declared here
 DEPRECATEDIN_0_9_8(DH *DH_generate_parameters(int prime_len, int generator,
 ^
SWIG/_m2crypto_wrap.c: In function 'dh_get_p':
SWIG/_m2crypto_wrap.c:5518:12: error: dereferencing pointer to incomplete type 
'DH {aka struct dh_st}'
     if (!dh->p) {
            ^
SWIG/_m2crypto_wrap.c: In function 'rsa_generate_key':
SWIG/_m2crypto_wrap.c:5976:5: warning: 'RSA_generate_key' is deprecated 
[-Wdeprecated-declarations]
     rsa = RSA_generate_key(bits, e, genrsa_callback, (void *)pyfunc);
     ^
In file included from /usr/include/openssl/rsa.h:13:0,
                 from SWIG/_m2crypto_wrap.c:3949:
/usr/include/openssl/rsa.h:197:1: note: declared here
 DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
 ^
SWIG/_m2crypto_wrap.c: In function 'dsa_sig_get_r':
SWIG/_m2crypto_wrap.c:6005:29: error: dereferencing pointer to incomplete type 
'DSA_SIG {aka struct DSA_SIG_st}'
     return bn_to_mpi(dsa_sig->r);
                             ^
SWIG/_m2crypto_wrap.c: In function 'dsa_generate_parameters':
SWIG/_m2crypto_wrap.c:6035:5: warning: 'DSA_generate_parameters' is deprecated 
[-Wdeprecated-declarations]
     dsa = DSA_generate_parameters(bits, NULL, 0, NULL, NULL, 
genparam_callback, (void *)pyfunc);
     ^
In file included from /usr/include/openssl/dsa.h:28:0,
                 from /usr/include/openssl/x509.h:32,
                 from /usr/include/openssl/ssl.h:50,
                 from SWIG/_m2crypto_wrap.c:3950:
/usr/include/openssl/dsa.h:120:1: note: declared here
 DEPRECATEDIN_0_9_8(DSA *DSA_generate_parameters(int bits,
 ^
SWIG/_m2crypto_wrap.c: In function 'ssl_ctx_set_tmp_rsa':
SWIG/_m2crypto_wrap.c:6488:12: warning: implicit declaration of function 
'SSL_CTX_set_tmp_rsa' [-Wimplicit-function-declaration]
     return SSL_CTX_set_tmp_rsa(ctx, rsa);
            ^
SWIG/_m2crypto_wrap.c: In function 'ssl_ctx_set_tmp_rsa_callback':
SWIG/_m2crypto_wrap.c:6495:5: warning: implicit declaration of function 
'SSL_CTX_set_tmp_rsa_callback' [-Wimplicit-function-declaration]
     SSL_CTX_set_tmp_rsa_callback(ctx, ssl_set_tmp_rsa_callback);
     ^
SWIG/_m2crypto_wrap.c: In function 'sk_ssl_cipher_value':
SWIG/_m2crypto_wrap.c:6941:12: warning: return discards 'const' qualifier from 
pointer target type [-Wdiscarded-qualifiers]
     return sk_SSL_CIPHER_value(stack, idx);
            ^
SWIG/_m2crypto_wrap.c: In function 'x509_name_get_der':
SWIG/_m2crypto_wrap.c:7120:43: error: dereferencing pointer to incomplete type 
'X509_NAME {aka struct X509_name_st}'
     return PyString_FromStringAndSize(name->bytes->data, name->bytes->length);
                                           ^
SWIG/_m2crypto_wrap.c: At top level:
SWIG/_m2crypto_wrap.c:7180:2: warning: function declaration isn't a prototype 
[-Wstrict-prototypes]
 *x509v3_lhash() { 
  ^
SWIG/_m2crypto_wrap.c: In function 'x509v3_lhash':
SWIG/_m2crypto_wrap.c:7181:12: warning: return makes pointer from integer 
without a cast [-Wint-conversion]
     return lh_new(NULL, NULL); /* Should probably be lh_CONF_VALUE_new but 
won't compile. */
            ^
SWIG/_m2crypto_wrap.c: In function 'make_stack_from_der_sequence':
SWIG/_m2crypto_wrap.c:7297:13: warning: implicit declaration of function 
'ASN1_seq_unpack_X509' [-Wimplicit-function-declaration]
     certs = ASN1_seq_unpack_X509((unsigned char *)encoded_string, 
encoded_string_len, d2i_X509, X509_free ); 
             ^
SWIG/_m2crypto_wrap.c:7297:11: warning: assignment makes pointer from integer 
without a cast [-Wint-conversion]
     certs = ASN1_seq_unpack_X509((unsigned char *)encoded_string, 
encoded_string_len, d2i_X509, X509_free ); 
           ^
SWIG/_m2crypto_wrap.c: In function 'get_der_encoding_stack':
SWIG/_m2crypto_wrap.c:7313:16: warning: implicit declaration of function 
'ASN1_seq_pack_X509' [-Wimplicit-function-declaration]
     encoding = ASN1_seq_pack_X509(stack, i2d_X509, NULL, &len); 
                ^
SWIG/_m2crypto_wrap.c:7313:14: warning: assignment makes pointer from integer 
without a cast [-Wint-conversion]
     encoding = ASN1_seq_pack_X509(stack, i2d_X509, NULL, &len); 
              ^
SWIG/_m2crypto_wrap.c: In function 'ecdsa_sig_get_r':
SWIG/_m2crypto_wrap.c:7843:31: error: dereferencing pointer to incomplete type 
'ECDSA_SIG {aka struct ECDSA_SIG_st}'
     return bn_to_mpi(ecdsa_sig->r);
                               ^
SWIG/_m2crypto_wrap.c: In function '_wrap_sslv2_method':
SWIG/_m2crypto_wrap.c:17258:26: warning: implicit declaration of function 
'SSLv2_method' [-Wimplicit-function-declaration]
   result = (SSL_METHOD *)SSLv2_method();
                          ^
SWIG/_m2crypto_wrap.c:17258:12: warning: cast to pointer from integer of 
different size [-Wint-to-pointer-cast]
   result = (SSL_METHOD *)SSLv2_method();
            ^
SWIG/_m2crypto_wrap.c: In function '_wrap_tlsv1_method':
SWIG/_m2crypto_wrap.c:17284:3: warning: 'TLSv1_method' is deprecated 
[-Wdeprecated-declarations]
   result = (SSL_METHOD *)TLSv1_method();
   ^
In file included from /usr/include/openssl/ct.h:13:0,
                 from /usr/include/openssl/ssl.h:61,
                 from SWIG/_m2crypto_wrap.c:3950:
/usr/include/openssl/ssl.h:1556:1: note: declared here
 DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */
 ^
SWIG/_m2crypto_wrap.c: In function '_wrap_c2i_asn1_object':
SWIG/_m2crypto_wrap.c:24718:27: warning: implicit declaration of function 
'c2i_ASN1_OBJECT' [-Wimplicit-function-declaration]
   result = (ASN1_OBJECT *)c2i_ASN1_OBJECT(arg1,(unsigned char const 
**)arg2,arg3);
                           ^
SWIG/_m2crypto_wrap.c:24718:12: warning: cast to pointer from integer of 
different size [-Wint-to-pointer-cast]
   result = (ASN1_OBJECT *)c2i_ASN1_OBJECT(arg1,(unsigned char const 
**)arg2,arg3);
            ^
SWIG/_m2crypto_wrap.c: In function 'init__m2crypto':
SWIG/_m2crypto_wrap.c:30267:79: warning: implicit declaration of function 
'SWIG_From_wchar_t' [-Wimplicit-function-declaration]
   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, 
"__WCHAR_MAX",SWIG_From_wchar_t((wchar_t)((0x7fffffff+\\0))));
                                                                               ^
SWIG/_m2crypto_wrap.c:30267:3: error: stray '\' in program
   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, 
"__WCHAR_MAX",SWIG_From_wchar_t((wchar_t)((0x7fffffff+\\0))));
   ^
SWIG/_m2crypto_wrap.c:30267:3: error: stray '\' in program
SWIG/_m2crypto_wrap.c:30267:79: warning: passing argument 4 of 
'SWIG_Python_SetConstant' makes pointer from integer without a cast 
[-Wint-conversion]
   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, 
"__WCHAR_MAX",SWIG_From_wchar_t((wchar_t)((0x7fffffff+\\0))));
                                                                               ^
SWIG/_m2crypto_wrap.c:1234:1: note: expected 'PyObject * {aka struct _object 
*}' but argument is of type 'int'
 SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char 
*name, PyObject *obj) {   
 ^
SWIG/_m2crypto_wrap.c:30268:3: error: stray '\' in program
   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, 
"__WCHAR_MIN",SWIG_From_int((int)((-(0x7fffffff+\\0) -1))));
   ^
SWIG/_m2crypto_wrap.c:30268:3: error: stray '\' in program
SWIG/_m2crypto_wrap.c:30316:3: error: stray '\' in program
   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, 
"WCHAR_MIN",SWIG_From_int((int)((-(0x7fffffff+\\0) -1))));
   ^
SWIG/_m2crypto_wrap.c:30316:3: error: stray '\' in program
SWIG/_m2crypto_wrap.c:30317:3: error: stray '\' in program
   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, 
"WCHAR_MAX",SWIG_From_wchar_t((wchar_t)((0x7fffffff+\\0))));
   ^
SWIG/_m2crypto_wrap.c:30317:3: error: stray '\' in program
SWIG/_m2crypto_wrap.c:30317:77: warning: passing argument 4 of 
'SWIG_Python_SetConstant' makes pointer from integer without a cast 
[-Wint-conversion]
   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, 
"WCHAR_MAX",SWIG_From_wchar_t((wchar_t)((0x7fffffff+\\0))));
                                                                             ^
SWIG/_m2crypto_wrap.c:1234:1: note: expected 'PyObject * {aka struct _object 
*}' but argument is of type 'int'
 SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char 
*name, PyObject *obj) {   
 ^
SWIG/_m2crypto_wrap.c:30375:112: error: 'SSL_ST_INIT' undeclared (first use in 
this function)
   SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, 
"SSL_ST_RENEGOTIATE",SWIG_From_int((int)((0x04|SSL_ST_INIT))));
                                                                                
                                ^
SWIG/_m2crypto_wrap.c: At top level:
SWIG/_m2crypto_wrap.c:3889:27: warning: 'lock_cs' defined but not used 
[-Wunused-variable]
 static PyThread_type_lock lock_cs[CRYPTO_NUM_LOCKS];
                           ^
SWIG/_m2crypto_wrap.c:3890:13: warning: 'lock_count' defined but not used 
[-Wunused-variable]
 static long lock_count[CRYPTO_NUM_LOCKS];
             ^
SWIG/_m2crypto_wrap.c: In function 'dh_get_p':
SWIG/_m2crypto_wrap.c:5523:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'dh_get_g':
SWIG/_m2crypto_wrap.c:5531:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'dh_get_pub':
SWIG/_m2crypto_wrap.c:5539:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'dh_get_priv':
SWIG/_m2crypto_wrap.c:5547:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'rsa_get_e':
SWIG/_m2crypto_wrap.c:5656:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'rsa_get_n':
SWIG/_m2crypto_wrap.c:5664:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'rsa_check_pub_key':
SWIG/_m2crypto_wrap.c:5991:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'dsa_sig_get_r':
SWIG/_m2crypto_wrap.c:6006:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'dsa_sig_get_s':
SWIG/_m2crypto_wrap.c:6010:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'dsa_get_p':
SWIG/_m2crypto_wrap.c:6048:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'dsa_get_q':
SWIG/_m2crypto_wrap.c:6056:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'dsa_get_g':
SWIG/_m2crypto_wrap.c:6064:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'dsa_get_pub':
SWIG/_m2crypto_wrap.c:6072:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'dsa_get_priv':
SWIG/_m2crypto_wrap.c:6080:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'dsa_check_key':
SWIG/_m2crypto_wrap.c:6327:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'dsa_check_pub_key':
SWIG/_m2crypto_wrap.c:6331:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'dsa_keylen':
SWIG/_m2crypto_wrap.c:6335:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'x509_name_get_der':
SWIG/_m2crypto_wrap.c:7121:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'ecdsa_sig_get_r':
SWIG/_m2crypto_wrap.c:7844:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
SWIG/_m2crypto_wrap.c: In function 'ecdsa_sig_get_s':
SWIG/_m2crypto_wrap.c:7848:1: warning: control reaches end of non-void function 
[-Wreturn-type]
 }
 ^
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
E: pybuild pybuild:274: build: plugin distutils failed with: exit code=1: 
/usr/bin/python setup.py build 
dh_auto_build: pybuild --build --test-pytest -i python{version} -p 2.7 --dir . 
returned exit code 13
debian/rules:8: recipe for target 'build-arch' failed
make: *** [build-arch] Error 25
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2
</cut>

See https://lists.debian.org/debian-devel/2016/06/msg00205.html.

Thanks for test builds,
DS

[1] 
https://breakpoint.cc/openssl-1.1-rebuild-2016-05-29/Attempted/m2crypto_0.24.0-1_amd64-20160529-1448

-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.5.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Reply via email to