+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/m2crypto.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.58yF2O + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf M2Crypto-0.25.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/M2Crypto-0.25.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd M2Crypto-0.25.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (m2crypto-0.21.1-gcc_macros.patch):' Patch #0 (m2crypto-0.21.1-gcc_macros.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .gcc_macros --fuzz=0 patching file SWIG/_m2crypto.i + gcc -E -dM - + grep -v __STDC__ + grep -v __REGISTER_PREFIX__ + sed 's/^\(#define \([^ ]*\) .*\)$/#undef \2\n\1/' + grep -v __GNUC__ + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.V5XmGL + umask 022 + cd /builddir/build/BUILD + cd M2Crypto-0.25.1 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CFLAGS + pkg-config openssl ++ pkg-config --cflags openssl + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' + export CFLAGS ++ pkg-config --libs-only-L openssl + LDFLAGS= + export LDFLAGS + /usr/bin/python setup.py build DEPRECATION WARNING: python2 invoked with /usr/bin/python. Use /usr/bin/python3 or /usr/bin/python2 /usr/bin/python will be removed or switched to Python 3 in the future. If you cannot make the switch now, please follow instructions at https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Quick_Opt-Out running build running build_py creating build creating build/lib.linux-riscv64-2.7 creating build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/DSA.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/Rand.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/_m2crypto.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/ftpslib.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/m2xmlrpclib.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/m2.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/threading.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/six.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/httpslib.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/Err.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/DH.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/m2urllib2.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/SMIME.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/callback.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/AuthCookie.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/util.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/RSA.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/m2urllib.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/EC.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/BIO.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/X509.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/Engine.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/__init__.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/ASN1.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/RC4.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/EVP.py -> build/lib.linux-riscv64-2.7/M2Crypto copying M2Crypto/BN.py -> build/lib.linux-riscv64-2.7/M2Crypto creating build/lib.linux-riscv64-2.7/M2Crypto/SSL copying M2Crypto/SSL/Context.py -> build/lib.linux-riscv64-2.7/M2Crypto/SSL copying M2Crypto/SSL/Connection.py -> build/lib.linux-riscv64-2.7/M2Crypto/SSL copying M2Crypto/SSL/cb.py -> build/lib.linux-riscv64-2.7/M2Crypto/SSL copying M2Crypto/SSL/Cipher.py -> build/lib.linux-riscv64-2.7/M2Crypto/SSL copying M2Crypto/SSL/__init__.py -> build/lib.linux-riscv64-2.7/M2Crypto/SSL copying M2Crypto/SSL/Session.py -> build/lib.linux-riscv64-2.7/M2Crypto/SSL copying M2Crypto/SSL/SSLServer.py -> build/lib.linux-riscv64-2.7/M2Crypto/SSL copying M2Crypto/SSL/TwistedProtocolWrapper.py -> build/lib.linux-riscv64-2.7/M2Crypto/SSL copying M2Crypto/SSL/timeout.py -> build/lib.linux-riscv64-2.7/M2Crypto/SSL copying M2Crypto/SSL/ssl_dispatcher.py -> build/lib.linux-riscv64-2.7/M2Crypto/SSL copying M2Crypto/SSL/Checker.py -> build/lib.linux-riscv64-2.7/M2Crypto/SSL creating build/lib.linux-riscv64-2.7/M2Crypto/PGP copying M2Crypto/PGP/PublicKeyRing.py -> build/lib.linux-riscv64-2.7/M2Crypto/PGP copying M2Crypto/PGP/PublicKey.py -> build/lib.linux-riscv64-2.7/M2Crypto/PGP copying M2Crypto/PGP/RSA.py -> build/lib.linux-riscv64-2.7/M2Crypto/PGP copying M2Crypto/PGP/constants.py -> build/lib.linux-riscv64-2.7/M2Crypto/PGP copying M2Crypto/PGP/packet.py -> build/lib.linux-riscv64-2.7/M2Crypto/PGP copying M2Crypto/PGP/__init__.py -> build/lib.linux-riscv64-2.7/M2Crypto/PGP running build_ext building 'M2Crypto.__m2crypto' extension swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c swig -python -D__riscv64__ -I/usr/include/python2.7 -I/usr/include -I/usr/include/openssl -includeall -modern -builtin -outdir build/lib.linux-riscv64-2.7/M2Crypto -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i SWIG/gcc_macros.h:94: Warning 305: Bad constant value (ignored). SWIG/gcc_macros.h:180: Warning 305: Bad constant value (ignored). SWIG/gcc_macros.h:234: Warning 305: Bad constant value (ignored). SWIG/gcc_macros.h:268: Warning 305: Bad constant value (ignored). SWIG/gcc_macros.h:290: Warning 305: Bad constant value (ignored). SWIG/gcc_macros.h:422: Warning 305: Bad constant value (ignored). SWIG/gcc_macros.h:440: Warning 305: Bad constant value (ignored). SWIG/gcc_macros.h:514: Warning 305: Bad constant value (ignored). SWIG/gcc_macros.h:530: Warning 305: Bad constant value (ignored). SWIG/gcc_macros.h:554: Warning 305: Bad constant value (ignored). SWIG/gcc_macros.h:592: Warning 305: Bad constant value (ignored). SWIG/gcc_macros.h:638: Warning 305: Bad constant value (ignored). /usr/include/sys/cdefs.h:143: Warning 305: Bad constant value (ignored). SWIG/_bio.i:64: Warning 454: Setting a pointer/reference variable may leak memory. SWIG/_rand.i:23: Warning 454: Setting a pointer/reference variable may leak memory. SWIG/_evp.i:180: Warning 454: Setting a pointer/reference variable may leak memory. SWIG/_dh.i:36: Warning 454: Setting a pointer/reference variable may leak memory. SWIG/_rsa.i:43: Warning 454: Setting a pointer/reference variable may leak memory. SWIG/_dsa.i:31: Warning 454: Setting a pointer/reference variable may leak memory. SWIG/_ssl.i:241: Warning 454: Setting a pointer/reference variable may leak memory. SWIG/_ssl.i:242: Warning 454: Setting a pointer/reference variable may leak memory. SWIG/_x509.i:332: Warning 454: Setting a pointer/reference variable may leak memory. SWIG/_pkcs7.i:44: Warning 454: Setting a pointer/reference variable may leak memory. SWIG/_pkcs7.i:44: Warning 454: Setting a pointer/reference variable may leak memory. SWIG/_util.i:11: Warning 454: Setting a pointer/reference variable may leak memory. SWIG/_ec.i:111: Warning 454: Setting a pointer/reference variable may leak memory. SWIG/_engine.i:168: Warning 454: Setting a pointer/reference variable may leak memory. creating build/temp.linux-riscv64-2.7 creating build/temp.linux-riscv64-2.7/SWIG gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -D_GNU_SOURCE -fPIC -fwrapv -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fPIC -I/usr/include/python2.7 -I/usr/include -I/usr/include/openssl -I/builddir/build/BUILD/M2Crypto-0.25.1/SWIG -c SWIG/_m2crypto_wrap.c -o build/temp.linux-riscv64-2.7/SWIG/_m2crypto_wrap.o -DTHREADING SWIG/_m2crypto_wrap.c:4188:35: error: 'CRYPTO_NUM_LOCKS' undeclared here (not in a function); did you mean 'CRYPTO_UNLOCK'? static PyThread_type_lock lock_cs[CRYPTO_NUM_LOCKS]; ^~~~~~~~~~~~~~~~ CRYPTO_UNLOCK SWIG/_m2crypto_wrap.c: In function 'lib_init': SWIG/_m2crypto_wrap.c:4593:5: warning: implicit declaration of function 'SSLeay_add_all_algorithms'; did you mean 'SSLeay_add_ssl_algorithms'? [-Wimplicit-function-declaration] SSLeay_add_all_algorithms(); ^~~~~~~~~~~~~~~~~~~~~~~~~ SSLeay_add_ssl_algorithms SWIG/_m2crypto_wrap.c: In function 'bn_rand': SWIG/_m2crypto_wrap.c:5032:12: error: storage size of 'rnd' isn't known BIGNUM rnd; ^~~ SWIG/_m2crypto_wrap.c:5036:5: warning: implicit declaration of function 'BN_init'; did you mean 'bio_init'? [-Wimplicit-function-declaration] BN_init(&rnd); ^~~~~~~ bio_init SWIG/_m2crypto_wrap.c:5032:12: warning: unused variable 'rnd' [-Wunused-variable] BIGNUM rnd; ^~~ SWIG/_m2crypto_wrap.c: In function 'bn_rand_range': SWIG/_m2crypto_wrap.c:5061:12: error: storage size of 'rnd' isn't known BIGNUM rnd; ^~~ SWIG/_m2crypto_wrap.c:5061:12: warning: unused variable 'rnd' [-Wunused-variable] SWIG/_m2crypto_wrap.c: In function 'rand_pseudo_bytes': SWIG/_m2crypto_wrap.c:5212: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:3831: /usr/include/openssl/rand.h:47: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:5356: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:5379: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:5383:5: warning: implicit declaration of function 'HMAC_CTX_init'; did you mean 'HMAC_CTX_new'? [-Wimplicit-function-declaration] HMAC_CTX_init(ctx); ^~~~~~~~~~~~~ HMAC_CTX_new SWIG/_m2crypto_wrap.c: In function 'hmac_ctx_free': SWIG/_m2crypto_wrap.c:5388:5: warning: implicit declaration of function 'HMAC_CTX_cleanup'; did you mean 'HMAC_CTX_get_md'? [-Wimplicit-function-declaration] HMAC_CTX_cleanup(ctx); ^~~~~~~~~~~~~~~~ HMAC_CTX_get_md SWIG/_m2crypto_wrap.c: In function 'hmac_init': SWIG/_m2crypto_wrap.c:5399: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:4249: /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:5427: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:5479: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:5572: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:5738:17: error: dereferencing pointer to incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' switch (pkey->type) { ^~ SWIG/_m2crypto_wrap.c:5749:35: error: dereferencing pointer to incomplete type 'RSA {aka struct rsa_st}' if (!BN_print(bio, rsa->n)) { ^~ SWIG/_m2crypto_wrap.c:5781: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:5994: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:4245: /usr/include/openssl/dh.h:136: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:6046: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:6537: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:4248: /usr/include/openssl/rsa.h:193: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:6566: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:6596: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:4249: /usr/include/openssl/dsa.h:123:1: note: declared here DEPRECATEDIN_0_9_8(DSA *DSA_generate_parameters(int bits, ^ SWIG/_m2crypto_wrap.c: In function 'sk_ssl_cipher_value': SWIG/_m2crypto_wrap.c:7517: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:7716: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: In function 'make_stack_from_der_sequence': SWIG/_m2crypto_wrap.c:7889:13: warning: implicit declaration of function 'ASN1_seq_unpack_X509'; did you mean 'ASN1_item_unpack'? [-Wimplicit-function-declaration] certs = ASN1_seq_unpack_X509((unsigned char *)encoded_string, encoded_string_len, d2i_X509, X509_free ); ^~~~~~~~~~~~~~~~~~~~ ASN1_item_unpack SWIG/_m2crypto_wrap.c:7889: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:7905:16: warning: implicit declaration of function 'ASN1_seq_pack_X509'; did you mean 'ASN1_item_pack'? [-Wimplicit-function-declaration] encoding = ASN1_seq_pack_X509(stack, i2d_X509, NULL, &len); ^~~~~~~~~~~~~~~~~~ ASN1_item_pack SWIG/_m2crypto_wrap.c:7905: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:8531: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:19118:26: warning: implicit declaration of function 'SSLv2_method'; did you mean 'SSLv3_method'? [-Wimplicit-function-declaration] result = (SSL_METHOD *)SSLv2_method(); ^~~~~~~~~~~~ SSLv3_method SWIG/_m2crypto_wrap.c:19118: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_sslv3_method': SWIG/_m2crypto_wrap.c:19131:3: warning: 'SSLv3_method' is deprecated [-Wdeprecated-declarations] result = (SSL_METHOD *)SSLv3_method(); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from SWIG/_m2crypto_wrap.c:4249: /usr/include/openssl/ssl.h:1614:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_method(void)) /* SSLv3 */ ^ SWIG/_m2crypto_wrap.c: In function '_wrap_tlsv1_method': SWIG/_m2crypto_wrap.c:19157: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:4249: /usr/include/openssl/ssl.h:1629: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:26569:27: warning: implicit declaration of function 'c2i_ASN1_OBJECT'; did you mean 'd2i_ASN1_OBJECT'? [-Wimplicit-function-declaration] result = (ASN1_OBJECT *)c2i_ASN1_OBJECT(arg1,(unsigned char const **)arg2,arg3); ^~~~~~~~~~~~~~~ d2i_ASN1_OBJECT SWIG/_m2crypto_wrap.c:26569: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:32979:112: error: 'SSL_ST_INIT' undeclared (first use in this function); did you mean 'SSL_CB_EXIT'? SWIG_Python_SetConstant(d, d == md ? public_interface : NULL, "SSL_ST_RENEGOTIATE",SWIG_From_int((int)((0x04|SSL_ST_INIT)))); ^~~~~~~~~~~ SSL_CB_EXIT SWIG/_m2crypto_wrap.c:32979:112: note: each undeclared identifier is reported only once for each function it appears in SWIG/_m2crypto_wrap.c: In function 'dh_get_p': SWIG/_m2crypto_wrap.c:6051:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ SWIG/_m2crypto_wrap.c: In function 'dh_get_g': SWIG/_m2crypto_wrap.c:6059:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ SWIG/_m2crypto_wrap.c: In function 'dh_get_pub': SWIG/_m2crypto_wrap.c:6067:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ SWIG/_m2crypto_wrap.c: In function 'dh_get_priv': SWIG/_m2crypto_wrap.c:6075:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ SWIG/_m2crypto_wrap.c: In function 'rsa_get_e': SWIG/_m2crypto_wrap.c:6184:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ SWIG/_m2crypto_wrap.c: In function 'rsa_get_n': SWIG/_m2crypto_wrap.c:6192: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:6552: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:6567: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:6571:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ SWIG/_m2crypto_wrap.c: In function 'dsa_get_p': SWIG/_m2crypto_wrap.c:6609:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ SWIG/_m2crypto_wrap.c: In function 'dsa_get_q': SWIG/_m2crypto_wrap.c:6617:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ SWIG/_m2crypto_wrap.c: In function 'dsa_get_g': SWIG/_m2crypto_wrap.c:6625:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ SWIG/_m2crypto_wrap.c: In function 'dsa_get_pub': SWIG/_m2crypto_wrap.c:6633:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ SWIG/_m2crypto_wrap.c: In function 'dsa_get_priv': SWIG/_m2crypto_wrap.c:6641:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ SWIG/_m2crypto_wrap.c: In function 'dsa_check_key': SWIG/_m2crypto_wrap.c:6894: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:6898:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ SWIG/_m2crypto_wrap.c: In function 'dsa_keylen': SWIG/_m2crypto_wrap.c:6902: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:7718: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:8532: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:8536:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ At top level: SWIG/_m2crypto_wrap.c:4189:13: warning: 'lock_count' defined but not used [-Wunused-variable] static long lock_count[CRYPTO_NUM_LOCKS]; ^~~~~~~~~~ SWIG/_m2crypto_wrap.c:4188:27: warning: 'lock_cs' defined but not used [-Wunused-variable] static PyThread_type_lock lock_cs[CRYPTO_NUM_LOCKS]; ^~~~~~~ error: command 'gcc' failed with exit status 1 error: Bad exit status from /var/tmp/rpm-tmp.V5XmGL (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.V5XmGL (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff