+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/znc.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.RoVYY7 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf znc-1.6.3 + /usr/bin/gzip -dc /builddir/build/SOURCES/znc-1.6.3.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd znc-1.6.3 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/perl -pi.add_release -e 's|(?<="ZNC \%1\.3f)|-5.fc28|' znc.cpp Can't open znc.cpp: No such file or directory. + chmod -x modules/q.cpp + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.leBUZ8 + umask 022 + cd /builddir/build/BUILD + cd znc-1.6.3 + 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 + 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 ' + export CXXFLAGS + FFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-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 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/redhat/config.sub ']' + /usr/bin/rm -f ./config.sub ++ basename ./config.sub + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.sub ./config.sub '/usr/lib/rpm/redhat/config.sub' -> './config.sub' + for i in $(find $(dirname ./configure) -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/redhat/config.guess ']' + /usr/bin/rm -f ./config.guess ++ basename ./config.guess + /usr/bin/cp -fv /usr/lib/rpm/redhat/config.guess ./config.guess '/usr/lib/rpm/redhat/config.guess' -> './config.guess' + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-module-prefix=/usr/lib64/znc --with-systemdsystemunitdir=/usr/lib/systemd/system --enable-perl --enable-python --enable-ipv6 --enable-cyrus --enable-tcl configure: WARNING: unrecognized options: --disable-dependency-tracking checking for riscv64-redhat-linux-gnu-g++... no checking for riscv64-redhat-linux-gnu-c++... no checking for riscv64-redhat-linux-gnu-gpp... no checking for riscv64-redhat-linux-gnu-aCC... no checking for riscv64-redhat-linux-gnu-CC... no checking for riscv64-redhat-linux-gnu-cxx... no checking for riscv64-redhat-linux-gnu-cc++... no checking for riscv64-redhat-linux-gnu-cl.exe... no checking for riscv64-redhat-linux-gnu-FCC... no checking for riscv64-redhat-linux-gnu-KCC... no checking for riscv64-redhat-linux-gnu-RCC... no checking for riscv64-redhat-linux-gnu-xlC_r... no checking for riscv64-redhat-linux-gnu-xlC... no checking for g++... g++ checking whether the C++ compiler works... yes checking for C++ compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking whether g++ supports C++11 features by default... yes checking for a BSD-compatible install... /usr/bin/install -c checking for grep that handles long lines and -e... /usr/bin/grep checking for a sed that does not truncate output... /usr/bin/sed checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu checking for special C compiler options needed for large files... no checking for _FILE_OFFSET_BITS value needed for large files... no checking whether the -Werror option is usable... yes checking for simple visibility declarations... yes checking for git... no checking for riscv64-redhat-linux-gnu-pkg-config... /usr/bin/riscv64-redhat-linux-gnu-pkg-config checking pkg-config is at least version 0.9.0... yes checking whether compiler predefines _FORTIFY_SOURCE... yes checking for getopt_long in -lgnugetopt... no checking for lstat... yes checking for getopt_long... yes checking for getpassphrase... no checking for library containing dlopen... -ldl checking for the pthreads library -lpthreads... no checking whether pthreads work without any flags... no checking whether pthreads work with -Kthread... no checking whether pthreads work with -kthread... no checking for the pthreads library -llthread... no checking whether pthreads work with -pthread... yes checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE checking if more special flags are required for pthreads... no checking for PTHREAD_PRIO_INHERIT... yes checking whether getaddrinfo() supports AI_ADDRCONFIG... yes checking for openssl... yes checking whether openssl is usable... yes checking whether zlib is usable... yes checking for icu... yes checking for SWIG >= 3.0.0... /usr/bin/swig configure: Following SWIG versions are found: 3.0.12 configure: modperl/modpython files are found, disabling SWIG configure: modperl/modpython files are found, no SWIG needed checking for perl... /usr/bin/perl checking for perl_alloc in -lperl... yes checking for python... yes checking for Py_Initialize... yes checking for perl... (cached) /usr/bin/perl checking for sasl_server_init in -lsasl2... yes checking for /usr/lib/tclConfig.sh... no checking for /usr/lib/tcl8.4/tclConfig.sh... no checking for /usr/lib/tcl8.5/tclConfig.sh... no configure: WARNING: Could not find tclConfig.sh, using some sane defaults. checking for Tcl_CreateInterp... yes checking for GNU make... /usr/bin/make configure: creating ./config.status config.status: creating Makefile config.status: creating znc-buildmod config.status: creating man/Makefile config.status: creating znc.pc config.status: creating znc-uninstalled.pc config.status: creating modules/Makefile config.status: creating include/znc/zncconfig.h configure: WARNING: unrecognized options: --disable-dependency-tracking ZNC 1.6.3 configured prefix: /usr debug: no ipv6: yes openssl: yes dns: threads perl: yes python: yes swig: not needed cyrus: yes tcl: yes charset: yes zlib: yes run from src: no Now you can run "make" to compile ZNC + /usr/bin/make -j4 Building core object main... Building core object ZNCString... Packing man page znc.1.gz... Packing man page znc-buildmod.1.gz... Building core object Csocket... Building ZNC Perl bindings library... src/Csocket.cpp: In function 'void ShutdownCsocket()': src/Csocket.cpp:533:22: warning: 'void ERR_remove_state(long unsigned int)' is deprecated [-Wdeprecated-declarations] ERR_remove_state( 0 ); ^ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /usr/include/openssl/err.h:248:1: note: declared here DEPRECATEDIN_1_0_0(void ERR_remove_state(unsigned long pid)) ^ src/Csocket.cpp: In function 'bool InitSSL(ECompType)': src/Csocket.cpp:587:8: error: 'COMP_rle' was not declared in this scope cm = COMP_rle(); ^~~~~~~~ src/Csocket.cpp:587:8: note: suggested alternative: 'COMP_zlib' cm = COMP_rle(); ^~~~~~~~ COMP_zlib src/Csocket.cpp: In member function 'virtual bool Csock::SSLClientSetup()': src/Csocket.cpp:1470:48: warning: 'const SSL_METHOD* SSLv3_client_method()' is deprecated [-Wdeprecated-declarations] m_ssl_ctx = SSL_CTX_new( SSLv3_client_method() ); ^ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /usr/include/openssl/ssl.h:1616:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_client_method(void)) /* SSLv3 */ ^ src/Csocket.cpp:1481:50: warning: 'const SSL_METHOD* TLSv1_2_client_method()' is deprecated [-Wdeprecated-declarations] m_ssl_ctx = SSL_CTX_new( TLSv1_2_client_method() ); ^ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /usr/include/openssl/ssl.h:1643:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_client_method(void)) /* TLSv1.2 */ ^ src/Csocket.cpp:1491:50: warning: 'const SSL_METHOD* TLSv1_1_client_method()' is deprecated [-Wdeprecated-declarations] m_ssl_ctx = SSL_CTX_new( TLSv1_1_client_method() ); ^ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /usr/include/openssl/ssl.h:1637:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_client_method(void)) /* TLSv1.1 */ ^ src/Csocket.cpp:1500:48: warning: 'const SSL_METHOD* TLSv1_client_method()' is deprecated [-Wdeprecated-declarations] m_ssl_ctx = SSL_CTX_new( TLSv1_client_method() ); ^ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /usr/include/openssl/ssl.h:1631:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_client_method(void)) /* TLSv1.0 */ ^ src/Csocket.cpp:1509:28: error: 'SSLv2_client_method' was not declared in this scope m_ssl_ctx = SSL_CTX_new( SSLv2_client_method() ); ^~~~~~~~~~~~~~~~~~~ src/Csocket.cpp:1509:28: note: suggested alternative: 'SSLv3_client_method' m_ssl_ctx = SSL_CTX_new( SSLv2_client_method() ); ^~~~~~~~~~~~~~~~~~~ SSLv3_client_method src/Csocket.cpp: In member function 'SSL_CTX* Csock::SetupServerCTX()': src/Csocket.cpp:1595:43: warning: 'const SSL_METHOD* SSLv3_server_method()' is deprecated [-Wdeprecated-declarations] pCTX = SSL_CTX_new( SSLv3_server_method() ); ^ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /usr/include/openssl/ssl.h:1615:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_server_method(void)) /* SSLv3 */ ^ src/Csocket.cpp:1606:45: warning: 'const SSL_METHOD* TLSv1_2_server_method()' is deprecated [-Wdeprecated-declarations] pCTX = SSL_CTX_new( TLSv1_2_server_method() ); ^ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /usr/include/openssl/ssl.h:1642:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_server_method(void)) /* TLSv1.2 */ ^ src/Csocket.cpp:1616:45: warning: 'const SSL_METHOD* TLSv1_1_server_method()' is deprecated [-Wdeprecated-declarations] pCTX = SSL_CTX_new( TLSv1_1_server_method() ); ^ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /usr/include/openssl/ssl.h:1636:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_server_method(void)) /* TLSv1.1 */ ^ src/Csocket.cpp:1625:43: warning: 'const SSL_METHOD* TLSv1_server_method()' is deprecated [-Wdeprecated-declarations] pCTX = SSL_CTX_new( TLSv1_server_method() ); ^ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /usr/include/openssl/ssl.h:1630:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_server_method(void)) /* TLSv1.0 */ ^ src/Csocket.cpp:1634:23: error: 'SSLv2_server_method' was not declared in this scope pCTX = SSL_CTX_new( SSLv2_server_method() ); ^~~~~~~~~~~~~~~~~~~ src/Csocket.cpp:1634:23: note: suggested alternative: 'SSLv3_server_method' pCTX = SSL_CTX_new( SSLv2_server_method() ); ^~~~~~~~~~~~~~~~~~~ SSLv3_server_method src/Csocket.cpp: In member function 'CString Csock::GetPeerPubKey() const': src/Csocket.cpp:2616:26: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' if( pSession && pSession->peer ) ^~ In file included from ./include/znc/Csocket.h:93:0, from src/Csocket.cpp:41: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ src/Csocket.cpp:2616:28: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' if( pSession && pSession->peer ) ^~~~ In file included from ./include/znc/Csocket.h:93:0, from src/Csocket.cpp:41: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ src/Csocket.cpp:2618:46: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' EVP_PKEY * pKey = X509_get_pubkey( pSession->peer ); ^~ In file included from ./include/znc/Csocket.h:93:0, from src/Csocket.cpp:41: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ src/Csocket.cpp:2618:48: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' EVP_PKEY * pKey = X509_get_pubkey( pSession->peer ); ^~~~ In file included from ./include/znc/Csocket.h:93:0, from src/Csocket.cpp:41: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ src/Csocket.cpp:2622:16: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' switch( 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 ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /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; ^~~~~~~~~~~ src/Csocket.cpp:2622:18: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' switch( 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 ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /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; ^~~~~~~~~~~ src/Csocket.cpp:2626:28: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' hxKey = BN_bn2hex( pKey->pkey.rsa->n ); ^~ 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 ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /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; ^~~~~~~~~~~ src/Csocket.cpp:2626:30: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' hxKey = BN_bn2hex( pKey->pkey.rsa->n ); ^~~~ 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 ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /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; ^~~~~~~~~~~ src/Csocket.cpp:2631:28: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' hxKey = BN_bn2hex( pKey->pkey.dsa->pub_key ); ^~ 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 ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /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; ^~~~~~~~~~~ src/Csocket.cpp:2631:30: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' hxKey = BN_bn2hex( pKey->pkey.dsa->pub_key ); ^~~~ 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 ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /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; ^~~~~~~~~~~ In file included from ./include/znc/defines.h:24:0, from ./include/znc/Csocket.h:43, from src/Csocket.cpp:41: src/Csocket.cpp:2636:59: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' CS_DEBUG( "Not Prepared for Public Key Type [" << pKey->type << "]" ); ^ ./include/znc/ZNCDebug.h:38:13: note: in definition of macro 'DEBUG' sDebug << f;\ ^ src/Csocket.cpp:2636:5: note: in expansion of macro 'CS_DEBUG' CS_DEBUG( "Not Prepared for Public Key Type [" << 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 ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /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; ^~~~~~~~~~~ In file included from ./include/znc/defines.h:24:0, from ./include/znc/Csocket.h:43, from src/Csocket.cpp:41: src/Csocket.cpp:2636:61: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' CS_DEBUG( "Not Prepared for Public Key Type [" << pKey->type << "]" ); ^ ./include/znc/ZNCDebug.h:38:13: note: in definition of macro 'DEBUG' sDebug << f;\ ^ src/Csocket.cpp:2636:5: note: in expansion of macro 'CS_DEBUG' CS_DEBUG( "Not Prepared for Public Key Type [" << 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 ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /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; ^~~~~~~~~~~ src/Csocket.cpp: In member function 'long int Csock::GetPeerFingerprint(CString&) const': src/Csocket.cpp:2666:35: error: invalid use of incomplete type 'X509 {aka struct x509_st}' snprintf( buf, 3, "%02x", pCert->sha1_hash[i] ); ^~ 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 ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /usr/include/openssl/ossl_typ.h:119:16: note: forward declaration of 'X509 {aka struct x509_st}' typedef struct x509_st X509; ^~~~~~~ src/Csocket.cpp:2666:37: error: invalid use of incomplete type 'X509 {aka struct x509_st}' snprintf( buf, 3, "%02x", pCert->sha1_hash[i] ); ^~~~~~~~~ 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 ./include/znc/Csocket.h:93, from src/Csocket.cpp:41: /usr/include/openssl/ossl_typ.h:119:16: note: forward declaration of 'X509 {aka struct x509_st}' typedef struct x509_st X509; ^~~~~~~ make: *** [Makefile:118: src/Csocket.o] Error 1 make: *** Waiting for unfinished jobs.... Building module modperl... src/main.cpp:39:8: error: 'CRYPTO_dynlock_value' does not name a type; did you mean 'CRYPTO_dynlock'? static CRYPTO_dynlock_value *dyn_create_callback(const char *file, int line) { ^~~~~~~~~~~~~~~~~~~~ CRYPTO_dynlock src/main.cpp:43:41: error: 'CRYPTO_dynlock_value' has not been declared static void dyn_lock_callback(int mode, CRYPTO_dynlock_value *dlock, const char *file, int line) { ^~~~~~~~~~~~~~~~~~~~ src/main.cpp:53:34: error: variable or field 'dyn_destroy_callback' declared void static void dyn_destroy_callback(CRYPTO_dynlock_value *dlock, const char *file, int line) { ^~~~~~~~~~~~~~~~~~~~ src/main.cpp:53:34: error: 'CRYPTO_dynlock_value' was not declared in this scope src/main.cpp:53:34: note: suggested alternative: 'CRYPTO_dynlock' static void dyn_destroy_callback(CRYPTO_dynlock_value *dlock, const char *file, int line) { ^~~~~~~~~~~~~~~~~~~~ CRYPTO_dynlock src/main.cpp:53:56: error: 'dlock' was not declared in this scope static void dyn_destroy_callback(CRYPTO_dynlock_value *dlock, const char *file, int line) { ^~~~~ src/main.cpp:53:56: note: suggested alternative: 'flock' static void dyn_destroy_callback(CRYPTO_dynlock_value *dlock, const char *file, int line) { ^~~~~ flock src/main.cpp:53:63: error: expected primary-expression before 'const' static void dyn_destroy_callback(CRYPTO_dynlock_value *dlock, const char *file, int line) { ^~~~~ src/main.cpp:53:81: error: expected primary-expression before 'int' static void dyn_destroy_callback(CRYPTO_dynlock_value *dlock, const char *file, int line) { ^~~ src/main.cpp:43:13: warning: 'void dyn_lock_callback(int, int*, const char*, int)' defined but not used [-Wunused-function] static void dyn_lock_callback(int mode, CRYPTO_dynlock_value *dlock, const char *file, int line) { ^~~~~~~~~~~~~~~~~ src/main.cpp:35:22: warning: 'long unsigned int thread_id_callback()' defined but not used [-Wunused-function] static unsigned long thread_id_callback() { ^~~~~~~~~~~~~~~~~~ src/main.cpp:27:13: warning: 'void locking_callback(int, int, const char*, int)' defined but not used [-Wunused-function] static void locking_callback(int mode, int type, const char *file, int line) { ^~~~~~~~~~~~~~~~ make: *** [Makefile:118: src/main.o] Error 1 Building ZNC python bindings library... Building module modpython... Building module autocycle... Building module webadmin... Building module partyline... Building module notify_connect... Building module sasl... Building module sample... Building module controlpanel... Building module chansaver... Building module bouncedcc... Building module shell... Building module awaynick... Building module kickrejoin... Building module clientnotify... Building module keepnick... Building module disconkick... Building module block_motd... Building module ctcpflood... Building module cyrusauth... Building module send_raw... Building module watch... Building module simple_away... Building module notes... Building module cert... Building module stickychan... Linking module modpython... Building module autoattach... Building module adminlog... Building module imapauth... Building module fail2ban... Building module crypt... Building module autovoice... Building module q... Building module route_replies... Building module buffextras... Building module savebuff... Building module schat... Building module blockuser... Building module log... schat.cpp: In member function 'virtual void CSChat::OnModCommand(const CString&)': schat.cpp:229:30: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' if (pSession && pSession->cipher && pSession->cipher->name) ^~ In file included from ./../include/znc/Csocket.h:93:0, from ./../include/znc/Socket.h:21, from ./../include/znc/Client.h:21, from ./../include/znc/znc.h:21, from ./../include/znc/IRCNetwork.h:24, from schat.cpp:26: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ schat.cpp:229:32: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' if (pSession && pSession->cipher && pSession->cipher->name) ^~~~~~ In file included from ./../include/znc/Csocket.h:93:0, from ./../include/znc/Socket.h:21, from ./../include/znc/Client.h:21, from ./../include/znc/znc.h:21, from ./../include/znc/IRCNetwork.h:24, from schat.cpp:26: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ schat.cpp:229:50: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' if (pSession && pSession->cipher && pSession->cipher->name) ^~ In file included from ./../include/znc/Csocket.h:93:0, from ./../include/znc/Socket.h:21, from ./../include/znc/Client.h:21, from ./../include/znc/znc.h:21, from ./../include/znc/IRCNetwork.h:24, from schat.cpp:26: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ schat.cpp:229:52: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' if (pSession && pSession->cipher && pSession->cipher->name) ^~~~~~ In file included from ./../include/znc/Csocket.h:93:0, from ./../include/znc/Socket.h:21, from ./../include/znc/Client.h:21, from ./../include/znc/znc.h:21, from ./../include/znc/IRCNetwork.h:24, from schat.cpp:26: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ schat.cpp:230:39: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' Table.SetCell("Cipher", pSession->cipher->name); ^~ In file included from ./../include/znc/Csocket.h:93:0, from ./../include/znc/Socket.h:21, from ./../include/znc/Client.h:21, from ./../include/znc/znc.h:21, from ./../include/znc/IRCNetwork.h:24, from schat.cpp:26: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ schat.cpp:230:41: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' Table.SetCell("Cipher", pSession->cipher->name); ^~~~~~ In file included from ./../include/znc/Csocket.h:93:0, from ./../include/znc/Socket.h:21, from ./../include/znc/Client.h:21, from ./../include/znc/znc.h:21, from ./../include/znc/IRCNetwork.h:24, from schat.cpp:26: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ schat.cpp:289:30: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' if (pSession && pSession->cipher && pSession->cipher->name) ^~ In file included from ./../include/znc/Csocket.h:93:0, from ./../include/znc/Socket.h:21, from ./../include/znc/Client.h:21, from ./../include/znc/znc.h:21, from ./../include/znc/IRCNetwork.h:24, from schat.cpp:26: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ schat.cpp:289:32: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' if (pSession && pSession->cipher && pSession->cipher->name) ^~~~~~ In file included from ./../include/znc/Csocket.h:93:0, from ./../include/znc/Socket.h:21, from ./../include/znc/Client.h:21, from ./../include/znc/znc.h:21, from ./../include/znc/IRCNetwork.h:24, from schat.cpp:26: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ schat.cpp:289:50: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' if (pSession && pSession->cipher && pSession->cipher->name) ^~ In file included from ./../include/znc/Csocket.h:93:0, from ./../include/znc/Socket.h:21, from ./../include/znc/Client.h:21, from ./../include/znc/znc.h:21, from ./../include/znc/IRCNetwork.h:24, from schat.cpp:26: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ schat.cpp:289:52: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' if (pSession && pSession->cipher && pSession->cipher->name) ^~~~~~ In file included from ./../include/znc/Csocket.h:93:0, from ./../include/znc/Socket.h:21, from ./../include/znc/Client.h:21, from ./../include/znc/znc.h:21, from ./../include/znc/IRCNetwork.h:24, from schat.cpp:26: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ schat.cpp:290:39: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' Table.SetCell("Cipher", pSession->cipher->name); ^~ In file included from ./../include/znc/Csocket.h:93:0, from ./../include/znc/Socket.h:21, from ./../include/znc/Client.h:21, from ./../include/znc/znc.h:21, from ./../include/znc/IRCNetwork.h:24, from schat.cpp:26: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ schat.cpp:290:41: error: invalid use of incomplete type 'SSL_SESSION {aka struct ssl_session_st}' Table.SetCell("Cipher", pSession->cipher->name); ^~~~~~ In file included from ./../include/znc/Csocket.h:93:0, from ./../include/znc/Socket.h:21, from ./../include/znc/Client.h:21, from ./../include/znc/znc.h:21, from ./../include/znc/IRCNetwork.h:24, from schat.cpp:26: /usr/include/openssl/ssl.h:233:16: note: forward declaration of 'SSL_SESSION {aka struct ssl_session_st}' typedef struct ssl_session_st SSL_SESSION; ^~~~~~~~~~~~~~ make[1]: *** [Makefile:118: schat.o] Error 1 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:105: modules] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.leBUZ8 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.leBUZ8 (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff