+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/peervpn.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.VyIxSv + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf peervpn-0-044 + /usr/bin/gzip -dc /builddir/build/SOURCES/peervpn-0-044.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd peervpn-0-044 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.hMxppY + umask 022 + cd /builddir/build/BUILD + cd peervpn-0-044 ++ pkg-config --cflags libcrypto ++ pkg-config --libs libcrypto + make -j4 '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 ' 'LDFLAGS=-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' 'LIBS=-lcrypto ' cc -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 -c -o peervpn.o peervpn.c In file included from libp2psec/rsa.c:24:0, from libp2psec/nodeid.c:24, from libp2psec/nodedb.c:26, from libp2psec/peermgt.c:24, from libp2psec/p2psec.c:25, from peervpn.c:28: libp2psec/crypto.c:50:17: error: field 'enc_ctx' has incomplete type EVP_CIPHER_CTX enc_ctx; ^~~~~~~ libp2psec/crypto.c:51:17: error: field 'dec_ctx' has incomplete type EVP_CIPHER_CTX dec_ctx; ^~~~~~~ libp2psec/crypto.c:52:11: error: field 'hmac_ctx' has incomplete type HMAC_CTX hmac_ctx; ^~~~~~~~ In file included from libp2psec/rsa.c:24:0, from libp2psec/nodeid.c:24, from libp2psec/nodedb.c:26, from libp2psec/peermgt.c:24, from libp2psec/p2psec.c:25, from peervpn.c:28: libp2psec/crypto.c: In function 'cryptoSetKeys': libp2psec/crypto.c:172:11: error: storage size of 'hmac_ctx' isn't known HMAC_CTX hmac_ctx; ^~~~~~~~ libp2psec/crypto.c:178:2: warning: implicit declaration of function 'HMAC_CTX_init'; did you mean 'HMAC_CTX_new'? [-Wimplicit-function-declaration] HMAC_CTX_init(&hmac_ctx); ^~~~~~~~~~~~~ HMAC_CTX_new libp2psec/crypto.c:224:2: warning: implicit declaration of function 'HMAC_CTX_cleanup'; did you mean 'HMAC_CTX_get_md'? [-Wimplicit-function-declaration] HMAC_CTX_cleanup(&hmac_ctx); ^~~~~~~~~~~~~~~~ HMAC_CTX_get_md libp2psec/crypto.c:172:11: warning: unused variable 'hmac_ctx' [-Wunused-variable] HMAC_CTX hmac_ctx; ^~~~~~~~ In file included from libp2psec/auth.c:29:0, from libp2psec/authmgt.c:24, from libp2psec/peermgt.c:25, from libp2psec/p2psec.c:25, from peervpn.c:28: libp2psec/dh.c: In function 'dhGenKey': libp2psec/dh.c:87:19: error: dereferencing pointer to incomplete type 'DH {aka struct dh_st}' bn = dhstate->dh->pub_key; ^~ In file included from libp2psec/nodedb.c:26:0, from libp2psec/peermgt.c:24, from libp2psec/p2psec.c:25, from peervpn.c:28: At top level: libp2psec/nodeid.c:84:12: warning: 'nodekeyLoadPEM' defined but not used [-Wunused-function] static int nodekeyLoadPEM(struct s_nodekey *nodekey, unsigned char *pubkey, const int pubkey_size) { ^~~~~~~~~~~~~~ make: *** [: peervpn.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.hMxppY (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.hMxppY (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff