+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/sslsplit.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.aOST9J + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sslsplit-0.5.0 + /usr/bin/bzip2 -dc /builddir/build/SOURCES/sslsplit-0.5.0.tar.bz2 + /usr/bin/tar -xof - /usr/bin/tar: Ignoring unknown extended header keyword 'SCHILY.dev' /usr/bin/tar: Ignoring unknown extended header keyword 'SCHILY.ino' /usr/bin/tar: Ignoring unknown extended header keyword 'SCHILY.nlink' + STATUS=0 + '[' 0 -ne 0 ']' + cd sslsplit-0.5.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + sed -i 's/rsa dsa ec/rsa dsa /' extra/pki/GNUmakefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.VYk1vZ + umask 022 + cd /builddir/build/BUILD + cd sslsplit-0.5.0 + export '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 ' + 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 'DEBUG_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 ' + DEBUG_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 ' + make -j4 ------------------------------------------------------------------------------ SSLsplit 0.5.0 ------------------------------------------------------------------------------ Report bugs at https://github.com/droe/sslsplit/issues/new Before reporting bugs, make sure to try the latest develop branch first: % git clone -b develop https://github.com/droe/sslsplit.git ------------------------------------------------------------------------------ Via pkg-config: openssl libevent libevent_openssl libevent_pthreads check Build options: -DHAVE_NETFILTER uname -a: Linux stage4-builder 4.16.0-rc5-01493-g7f82cffaad50 #6 SMP Fri Mar 16 00:38:51 UTC 2018 riscv64 riscv64 riscv64 GNU/Linux ------------------------------------------------------------------------------ cc -c -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.5.0\"" -D"BUILD_DATE=\"2018-03-27\"" -D"FEATURES=\"-DHAVE_NETFILTER\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_NETFILTER -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 -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o logbuf.o logbuf.c cc -c -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.5.0\"" -D"BUILD_DATE=\"2018-03-27\"" -D"FEATURES=\"-DHAVE_NETFILTER\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_NETFILTER -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 -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o ssl.o ssl.c cc -c -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.5.0\"" -D"BUILD_DATE=\"2018-03-27\"" -D"FEATURES=\"-DHAVE_NETFILTER\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_NETFILTER -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 -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cert.o cert.c cc -c -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.5.0\"" -D"BUILD_DATE=\"2018-03-27\"" -D"FEATURES=\"-DHAVE_NETFILTER\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_NETFILTER -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 -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cache.o cache.c cc -c -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.5.0\"" -D"BUILD_DATE=\"2018-03-27\"" -D"FEATURES=\"-DHAVE_NETFILTER\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_NETFILTER -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 -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o cachefkcrt.o cachefkcrt.c ssl.c: In function 'ssl_thr_id_cb': ssl.c:302:32: warning: unused parameter 'id' [-Wunused-parameter] ssl_thr_id_cb(CRYPTO_THREADID *id) ^~ ssl.c: In function 'ssl_fini': ssl.c:417:2: warning: 'ERR_remove_state' is deprecated [-Wdeprecated-declarations] ERR_remove_state(0); /* current thread */ ^~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl.h:34, from ssl.c:28: /usr/include/openssl/err.h:248:1: note: declared here DEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid)) ^ ssl.c: In function 'ssl_ssl_state_to_str': ssl.c:480:19: error: dereferencing pointer to incomplete type 'SSL {aka struct ssl_st}' ssl->state, ^~ ssl.c:483:30: error: 'SSL_ST_BEFORE' undeclared (first use in this function); did you mean 'TLS_ST_BEFORE'? (ssl->state & SSL_ST_BEFORE) ? "SSL_ST_BEFORE|" : "", ^~~~~~~~~~~~~ TLS_ST_BEFORE ssl.c:483:30: note: each undeclared identifier is reported only once for each function it appears in ssl.c: In function 'ssl_tmp_dh_callback': ssl.c:597:6: error: dereferencing pointer to incomplete type 'DH {aka struct dh_st}' dh->p = BN_bin2bn(dh512_p, sizeof(dh512_p), NULL); ^~ cc -c -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.5.0\"" -D"BUILD_DATE=\"2018-03-27\"" -D"FEATURES=\"-DHAVE_NETFILTER\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_NETFILTER -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 -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o pxysslshut.o pxysslshut.c ssl.c: In function 'ssl_rand': ssl.c:720:2: warning: 'RAND_pseudo_bytes' is deprecated [-Wdeprecated-declarations] rv = RAND_pseudo_bytes((unsigned char*)p, sz); ^~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl.h:34, from ssl.c:28: /usr/include/openssl/rand.h:47:1: note: declared here DEPRECATEDIN_1_1_0(int RAND_pseudo_bytes(unsigned char *buf, int num)) ^ ssl.c: In function 'ssl_x509_forge': ssl.c:844:20: warning: implicit declaration of function 'M_ASN1_IA5STRING_new'; did you mean 'ASN1_IA5STRING_new'? [-Wimplicit-function-declaration] gn->d.dNSName = M_ASN1_IA5STRING_new(); ^~~~~~~~~~~~~~~~~~~~ ASN1_IA5STRING_new ssl.c:844:18: warning: assignment makes pointer from integer without a cast [-Wint-conversion] gn->d.dNSName = M_ASN1_IA5STRING_new(); ^ ssl.c:868:29: error: dereferencing pointer to incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' switch (EVP_PKEY_type(cakey->type)) { ^~ ssl.c:871:30: error: dereferencing pointer to incomplete type 'X509 {aka struct x509_st}' switch (OBJ_obj2nid(origcrt->sig_alg->algorithm)) { ^~ ssl.c:900:8: warning: implicit declaration of function 'EVP_dss1'; did you mean 'EVP_sha1'? [-Wimplicit-function-declaration] md = EVP_dss1(); ^~~~~~~~ EVP_sha1 ssl.c:900:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion] md = EVP_dss1(); ^ ssl.c:905:8: warning: implicit declaration of function 'EVP_ecdsa'; did you mean 'EVP_rc4'? [-Wimplicit-function-declaration] md = EVP_ecdsa(); ^~~~~~~~~ EVP_rc4 ssl.c:905:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion] md = EVP_ecdsa(); ^ ssl.c: In function 'ssl_x509chain_use': ssl.c:1018:22: error: dereferencing pointer to incomplete type 'SSL_CTX {aka struct ssl_ctx_st}' sk_X509_push(sslctx->extra_certs, tmpcrt); ^~ ssl.c: In function 'ssl_key_genrsa': ssl.c:1103:2: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] rsa = RSA_generate_key(keysize, 3, NULL, NULL); ^~~ In file included from /usr/include/openssl/rsa.h:13:0, from /usr/include/openssl/x509.h:31, from /usr/include/openssl/ssl.h:50, from ssl.h:34, from ssl.c:28: /usr/include/openssl/rsa.h:193:1: note: declared here DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void ^ ssl.c: In function 'ssl_key_identifier_sha1': ssl.c:1125:19: error: dereferencing pointer to incomplete type 'X509_PUBKEY {aka struct X509_pubkey_st}' if (!(pk = pubkey->public_key)) ^~ ssl.c: In function 'ssl_dh_refcount_inc': ssl.c:1225:2: warning: implicit declaration of function 'CRYPTO_add'; did you mean 'CRYPTO_free'? [-Wimplicit-function-declaration] CRYPTO_add(&dh->references, 1, CRYPTO_LOCK_DH); ^~~~~~~~~~ CRYPTO_free ssl.c:1225:33: error: 'CRYPTO_LOCK_DH' undeclared (first use in this function); did you mean 'CRYPTO_LOCK'? CRYPTO_add(&dh->references, 1, CRYPTO_LOCK_DH); ^~~~~~~~~~~~~~ CRYPTO_LOCK ssl.c: In function 'ssl_key_refcount_inc': ssl.c:1240:34: error: 'CRYPTO_LOCK_EVP_PKEY' undeclared (first use in this function); did you mean 'CRYPTO_LOCK'? CRYPTO_add(&key->references, 1, CRYPTO_LOCK_EVP_PKEY); ^~~~~~~~~~~~~~~~~~~~ CRYPTO_LOCK ssl.c: In function 'ssl_x509_refcount_inc': ssl.c:1255:34: error: 'CRYPTO_LOCK_X509' undeclared (first use in this function); did you mean 'CRYPTO_LOCK'? CRYPTO_add(&crt->references, 1, CRYPTO_LOCK_X509); ^~~~~~~~~~~~~~~~ CRYPTO_LOCK cc -c -D_GNU_SOURCE -D"BNAME=\"sslsplit\"" -D"PNAME=\"SSLsplit\"" -D"VERSION=\"0.5.0\"" -D"BUILD_DATE=\"2018-03-27\"" -D"FEATURES=\"-DHAVE_NETFILTER\"" -D"BUILD_INFO=\"V:FILE\"" -DHAVE_NETFILTER -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 -pthread -std=c99 -Wall -Wextra -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all -pthread -o opts.o opts.c At top level: ssl.c:302:1: warning: 'ssl_thr_id_cb' defined but not used [-Wunused-function] ssl_thr_id_cb(CRYPTO_THREADID *id) ^~~~~~~~~~~~~ ssl.c:282:1: warning: 'ssl_thr_dyn_destroy_cb' defined but not used [-Wunused-function] ssl_thr_dyn_destroy_cb(struct CRYPTO_dynlock_value *dl, ^~~~~~~~~~~~~~~~~~~~~~ ssl.c:268:1: warning: 'ssl_thr_dyn_lock_cb' defined but not used [-Wunused-function] ssl_thr_dyn_lock_cb(int mode, struct CRYPTO_dynlock_value *dl, ^~~~~~~~~~~~~~~~~~~ ssl.c:254:1: warning: 'ssl_thr_dyn_create_cb' defined but not used [-Wunused-function] ssl_thr_dyn_create_cb(UNUSED const char *file, UNUSED int line) ^~~~~~~~~~~~~~~~~~~~~ ssl.c:240:1: warning: 'ssl_thr_locking_cb' defined but not used [-Wunused-function] ssl_thr_locking_cb(int mode, int type, UNUSED const char *file, ^~~~~~~~~~~~~~~~~~ make: *** [GNUmakefile:398: ssl.o] Error 1 make: *** Waiting for unfinished jobs.... opts.c: In function 'opts_proto_force': opts.c:172:3: warning: 'SSLv3_method' is deprecated [-Wdeprecated-declarations] opts->sslmethod = SSLv3_method; ^~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl.h:34, from opts.h:33, from opts.c:28: /usr/include/openssl/ssl.h:1614:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_method(void)) /* SSLv3 */ ^ opts.c:177:3: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations] opts->sslmethod = TLSv1_method; ^~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl.h:34, from opts.h:33, from opts.c:28: /usr/include/openssl/ssl.h:1629:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */ ^ opts.c:182:3: warning: 'TLSv1_1_method' is deprecated [-Wdeprecated-declarations] opts->sslmethod = TLSv1_1_method; ^~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl.h:34, from opts.h:33, from opts.c:28: /usr/include/openssl/ssl.h:1635:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */ ^ opts.c:187:3: warning: 'TLSv1_2_method' is deprecated [-Wdeprecated-declarations] opts->sslmethod = TLSv1_2_method; ^~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl.h:34, from opts.h:33, from opts.c:28: /usr/include/openssl/ssl.h:1641:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */ ^ opts.c: In function 'opts_proto_dbg_dump': opts.c:247:17: warning: 'SSLv3_method' is deprecated [-Wdeprecated-declarations] (opts->sslmethod == SSLv3_method) ? "ssl3" : ^ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl.h:34, from opts.h:33, from opts.c:28: /usr/include/openssl/ssl.h:1614:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_method(void)) /* SSLv3 */ ^ opts.c:250:17: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations] (opts->sslmethod == TLSv1_method) ? "tls10" : ^ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl.h:34, from opts.h:33, from opts.c:28: /usr/include/openssl/ssl.h:1629:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */ ^ opts.c:253:17: warning: 'TLSv1_1_method' is deprecated [-Wdeprecated-declarations] (opts->sslmethod == TLSv1_1_method) ? "tls11" : ^ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl.h:34, from opts.h:33, from opts.c:28: /usr/include/openssl/ssl.h:1635:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */ ^ opts.c:256:17: warning: 'TLSv1_2_method' is deprecated [-Wdeprecated-declarations] (opts->sslmethod == TLSv1_2_method) ? "tls12" : ^ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ssl.h:34, from opts.h:33, from opts.c:28: /usr/include/openssl/ssl.h:1641:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */ ^ error: Bad exit status from /var/tmp/rpm-tmp.VYk1vZ (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.VYk1vZ (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff