+ exec
+ rm -rf /rpmbuild
+ mkdir -p /rpmbuild
+ su -c 'rpmbuild -ba /builddir/build/SPECS/SocketW.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.XilITJ
+ umask 022
+ cd /builddir/build/BUILD
+ cd /builddir/build/BUILD
+ rm -rf SocketW031026
+ /usr/bin/gzip -dc /builddir/build/SOURCES/SocketW031026.tar.gz
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd SocketW031026
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ echo 'Patch #0 (SocketW031026-path.patch):'
Patch #0 (SocketW031026-path.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .path --fuzz=0
patching file src/Makefile
+ echo 'Patch #1 (SocketW031026-include.patch):'
Patch #1 (SocketW031026-include.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p0 -b --suffix .include --fuzz=0 -d src
patching file sw_base.cxx
+ echo 'Patch #2 (SocketW031026.honor-Fedora-flags.patch):'
Patch #2 (SocketW031026.honor-Fedora-flags.patch):
+ /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .fedora-flags --fuzz=0
patching file Makefile.conf
patching file src/Makefile
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.3If2cx
+ umask 022
+ cd /builddir/build/BUILD
+ cd SocketW031026
+ make -j4 shared 'CXXFLAGS=-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[1]: Entering directory '/builddir/build/BUILD/SocketW031026/src'
g++ -Wall -O3 -ffast-math  -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./ -c sw_base.cxx
g++ -Wall -O3 -ffast-math  -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./ -c sw_unix.cxx
g++ -Wall -O3 -ffast-math  -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./ -c sw_inet.cxx
g++ -Wall -O3 -ffast-math  -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./ -c sw_ssl.cxx
sw_ssl.cxx: In function 'RSA* generate_rsakey(int, int)':
sw_ssl.cxx:40:43: warning: 'RSA* RSA_generate_key(int, long unsigned int, void (*)(int, int, void*), void*)' is deprecated [-Wdeprecated-declarations]
  return RSA_generate_key(len,exp,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 sw_ssl.h:26,
                 from sw_ssl.cxx:16:
/usr/include/openssl/rsa.h:193:1: note: declared here
 DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void
 ^
sw_ssl.cxx: In member function 'bool SWSSLSocket::get_peerCert_info(SWSSLSocket::peerCert_info*, SWBaseSocket::SWBaseError*)':
sw_ssl.cxx:560:29: error: invalid use of incomplete type 'X509 {aka struct x509_st}'
   int nid = OBJ_obj2nid(peer->sig_alg->algorithm);
                             ^~
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/comp.h:16,
                 from /usr/include/openssl/ssl.h:47,
                 from sw_ssl.h:26,
                 from sw_ssl.cxx:16:
/usr/include/openssl/ossl_typ.h:119:16: note: forward declaration of 'X509 {aka struct x509_st}'
 typedef struct x509_st X509;
                ^~~~~~~
sw_ssl.cxx:560:31: error: invalid use of incomplete type 'X509 {aka struct x509_st}'
   int nid = OBJ_obj2nid(peer->sig_alg->algorithm);
                               ^~~~~~~
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/comp.h:16,
                 from /usr/include/openssl/ssl.h:47,
                 from sw_ssl.h:26,
                 from sw_ssl.cxx:16:
/usr/include/openssl/ossl_typ.h:119:16: note: forward declaration of 'X509 {aka struct x509_st}'
 typedef struct x509_st X509;
                ^~~~~~~
sw_ssl.cxx:569:40: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}'
    info->keyAlgorithm = OBJ_nid2sn(pkey->type);
                                        ^~
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/comp.h:16,
                 from /usr/include/openssl/ssl.h:47,
                 from sw_ssl.h:26,
                 from sw_ssl.cxx:16:
/usr/include/openssl/ossl_typ.h:93:16: note: forward declaration of 'EVP_PKEY {aka struct evp_pkey_st}'
 typedef struct evp_pkey_st EVP_PKEY;
                ^~~~~~~~~~~
sw_ssl.cxx:569:42: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}'
    info->keyAlgorithm = OBJ_nid2sn(pkey->type);
                                          ^~~~
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/comp.h:16,
                 from /usr/include/openssl/ssl.h:47,
                 from sw_ssl.h:26,
                 from sw_ssl.cxx:16:
/usr/include/openssl/ossl_typ.h:93:16: note: forward declaration of 'EVP_PKEY {aka struct evp_pkey_st}'
 typedef struct evp_pkey_st EVP_PKEY;
                ^~~~~~~~~~~
sw_ssl.cxx: In member function 'virtual bool SWSSLSocket::check_cert(SWBaseSocket::SWBaseError*)':
sw_ssl.cxx:692:77: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   if( !(cert = BuildCertificate("SocketW session cert", NULL, NULL, evp_pkey)) ){
                                                                             ^
sw_ssl.cxx: In member function 'virtual SWBaseSocket* SWSSLSocket::create(int, SWBaseSocket::SWBaseError*)':
sw_ssl.cxx:721:6: error: invalid use of incomplete type 'SSL_CTX {aka struct ssl_ctx_st}'
   ctx->references++;  // We don't want our destructor to delete ctx if still in use
      ^~
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/comp.h:16,
                 from /usr/include/openssl/ssl.h:47,
                 from sw_ssl.h:26,
                 from sw_ssl.cxx:16:
/usr/include/openssl/ossl_typ.h:145:16: note: forward declaration of 'SSL_CTX {aka struct ssl_ctx_st}'
 typedef struct ssl_ctx_st SSL_CTX;
                ^~~~~~~~~~
sw_ssl.cxx:721:8: error: invalid use of incomplete type 'SSL_CTX {aka struct ssl_ctx_st}'
   ctx->references++;  // We don't want our destructor to delete ctx if still in use
        ^~~~~~~~~~
In file included from /usr/include/openssl/crypto.h:31:0,
                 from /usr/include/openssl/comp.h:16,
                 from /usr/include/openssl/ssl.h:47,
                 from sw_ssl.h:26,
                 from sw_ssl.cxx:16:
/usr/include/openssl/ossl_typ.h:145:16: note: forward declaration of 'SSL_CTX {aka struct ssl_ctx_st}'
 typedef struct ssl_ctx_st SSL_CTX;
                ^~~~~~~~~~
make[1]: *** [Makefile:19: sw_ssl.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/builddir/build/BUILD/SocketW031026/src'
make: *** [Makefile:4: shared] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.3If2cx (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.3If2cx (%build)
++ cleanup
++ set +e
++ sync
++ sleep 5
++ sync
++ poweroff
Terminated
+++ cleanup
+++ set +e
+++ sync
Terminated
++++ cleanup
++++ set +e
++++ sync
++++ sleep 5
++++ sync
++++ poweroff