+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/tcltls.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.iXEDih + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf tls1.6.7 + /usr/bin/gzip -dc /builddir/build/SOURCES/tls1.6.7-src.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd tls1.6.7 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.UctjZC + umask 022 + cd /builddir/build/BUILD + cd tls1.6.7 + 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 + '[' 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 --disable-rpath --with-ssl-dir=/usr checking for correct TEA configuration... ok (TEA 3.8) checking for Tcl configuration... found /usr/lib64/tclConfig.sh checking for existence of /usr/lib64/tclConfig.sh... loading checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking how to run the C preprocessor... gcc -E checking for a BSD-compatible install... /usr/bin/install -c checking whether make sets $(MAKE)... yes checking for riscv64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking if the compiler understands -pipe... yes checking whether byte ordering is bigendian... no checking for sin... no checking for main in -lieee... no checking for main in -linet... no checking net/errno.h usability... no checking net/errno.h presence... no checking for net/errno.h... no checking for connect... yes checking for gethostbyname... yes checking dirent.h... yes checking errno.h usability... yes checking errno.h presence... yes checking for errno.h... yes checking float.h usability... yes checking float.h presence... yes checking for float.h... yes checking values.h usability... yes checking values.h presence... yes checking for values.h... yes checking limits.h usability... yes checking limits.h presence... yes checking for limits.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking sys/wait.h usability... yes checking sys/wait.h presence... yes checking for sys/wait.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking sys/param.h usability... yes checking sys/param.h presence... yes checking for sys/param.h... yes checking for Tcl public headers... /usr/include checking for pthread_mutex_init in -lpthread... yes checking for building with threads... yes (default) checking how to build libraries... shared checking if 64bit support is requested... no checking if 64bit Sparc VIS support is requested... no checking if compiler supports visibility "hidden"... yes checking if rpath support is requested... no checking system version... Linux-4.16.0-rc2-00328-gebea62367bc4 checking for dlopen in -ldl... yes checking for ar... ar checking for required early compiler flags... _LARGEFILE64_SOURCE checking for 64-bit integer type... using long checking for build with symbols... no checking for SSL directory... /usr checking if libgcc is needed to resolve openssl symbols... no checking for tclsh... /usr/bin/tclsh8.6 configure: creating ./config.status config.status: creating Makefile + make -j4 gcc -DPACKAGE_NAME=\"tls\" -DPACKAGE_TARNAME=\"tls\" -DPACKAGE_VERSION=\"1.6.7\" -DPACKAGE_STRING=\"tls\ 1.6.7\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DNO_IDEA=1 -DNO_RC5=1 -I"/usr/include" -I"/usr/include" -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 -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo tls.c` -o tls.o gcc -DPACKAGE_NAME=\"tls\" -DPACKAGE_TARNAME=\"tls\" -DPACKAGE_VERSION=\"1.6.7\" -DPACKAGE_STRING=\"tls\ 1.6.7\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DNO_IDEA=1 -DNO_RC5=1 -I"/usr/include" -I"/usr/include" -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 -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo tlsIO.c` -o tlsIO.o gcc -DPACKAGE_NAME=\"tls\" -DPACKAGE_TARNAME=\"tls\" -DPACKAGE_VERSION=\"1.6.7\" -DPACKAGE_STRING=\"tls\ 1.6.7\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DNO_IDEA=1 -DNO_RC5=1 -I"/usr/include" -I"/usr/include" -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 -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo tlsBIO.c` -o tlsBIO.o gcc -DPACKAGE_NAME=\"tls\" -DPACKAGE_TARNAME=\"tls\" -DPACKAGE_VERSION=\"1.6.7\" -DPACKAGE_STRING=\"tls\ 1.6.7\" -DPACKAGE_BUGREPORT=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DUSE_TCL_STUBS=1 -DNO_IDEA=1 -DNO_RC5=1 -I"/usr/include" -I"/usr/include" -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 -pipe -O2 -fomit-frame-pointer -Wall -fPIC -c `echo tlsX509.c` -o tlsX509.o tlsIO.c: In function 'TlsCloseProc': tlsIO.c:289:44: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] dprintf(stderr,"\nTlsCloseProc(0x%x)", (unsigned int) statePtr); ^ tlsIO.c: In function 'TlsOutputProc': tlsIO.c:426:45: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] dprintf(stderr,"\nBIO_write(0x%x, %d)", (unsigned int) statePtr, toWrite); ^ tlsIO.c:464:3: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (unsigned int) statePtr, toWrite, written); ^ tlsIO.c: In function 'TlsGetOptionProc': tlsIO.c:556:9: warning: variable 'len' set but not used [-Wunused-but-set-variable] size_t len = 0; ^~~ tlsX509.c: In function 'Tls_NewX509Obj': tlsX509.c:144:42: error: dereferencing pointer to incomplete type 'X509 {aka struct x509_st}' sha_hash[shai * 2]=shachars[(cert->sha1_hash[shai] & 0xF0) >> 4]; ^~ tlsIO.c: In function 'Tls_WaitForConnect': tlsIO.c:890:46: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] dprintf(stderr,"\nWaitForConnect(0x%x)", (unsigned int) statePtr); ^ tlsX509.c:106:17: warning: variable 'shachars' set but not used [-Wunused-but-set-variable] const char *shachars="0123456789ABCDEF"; ^~~~~~~~ tls.c: In function 'get_dh2048': tls.c:121:7: error: dereferencing pointer to incomplete type 'DH {aka struct dh_st}' dh->p=BN_bin2bn(dh2048_p,sizeof(dh2048_p),NULL); ^~ make: *** [Makefile:252: tlsX509.o] Error 1 make: *** Waiting for unfinished jobs.... tls.c: At top level: tls.c:171:24: error: 'CRYPTO_NUM_LOCKS' undeclared here (not in a function); did you mean 'CRYPTO_UNLOCK'? static Tcl_Mutex locks[CRYPTO_NUM_LOCKS]; ^~~~~~~~~~~~~~~~ CRYPTO_UNLOCK tls.c: In function 'VerifyCallback': tls.c:311:20: warning: variable 'string' set but not used [-Wunused-but-set-variable] char *errStr, *string; ^~~~~~ tls.c: In function 'CiphersObjCmd': tls.c:561:21: warning: implicit declaration of function 'SSLv2_method'; did you mean 'SSLv3_method'? [-Wimplicit-function-declaration] ctx = SSL_CTX_new(SSLv2_method()); break; ^~~~~~~~~~~~ SSLv3_method tls.c:561:21: warning: passing argument 1 of 'SSL_CTX_new' makes pointer from integer without a cast [-Wint-conversion] In file included from tlsInt.h:52:0, from tls.c:26: /usr/include/openssl/ssl.h:1338:17: note: expected 'const SSL_METHOD * {aka const struct ssl_method_st *}' but argument is of type 'int' __owur SSL_CTX *SSL_CTX_new(const SSL_METHOD *meth); ^~~~~~~~~~~ tls.c:568:3: warning: 'SSLv3_method' is deprecated [-Wdeprecated-declarations] ctx = SSL_CTX_new(SSLv3_method()); break; ^~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/ssl.h:1614:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_method(void)) /* SSLv3 */ ^ tls.c:575:3: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations] ctx = SSL_CTX_new(TLSv1_method()); break; ^~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/ssl.h:1629:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */ ^ tls.c:582:3: warning: 'TLSv1_1_method' is deprecated [-Wdeprecated-declarations] ctx = SSL_CTX_new(TLSv1_1_method()); break; ^~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/ssl.h:1635:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */ ^ tls.c:589:3: warning: 'TLSv1_2_method' is deprecated [-Wdeprecated-declarations] ctx = SSL_CTX_new(TLSv1_2_method()); break; ^~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/ssl.h:1641:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */ ^ tls.c: In function 'CTX_Init': tls.c:1106:9: warning: assignment makes pointer from integer without a cast [-Wint-conversion] method = SSLv2_method (); ^ tls.c:1111:2: warning: 'SSLv3_method' is deprecated [-Wdeprecated-declarations] method = SSLv3_method (); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/ssl.h:1614:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *SSLv3_method(void)) /* SSLv3 */ ^ tls.c:1116:2: warning: 'TLSv1_method' is deprecated [-Wdeprecated-declarations] method = TLSv1_method (); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/ssl.h:1629:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_method(void)) /* TLSv1.0 */ ^ tls.c:1121:2: warning: 'TLSv1_1_method' is deprecated [-Wdeprecated-declarations] method = TLSv1_1_method (); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/ssl.h:1635:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_1_method(void)) /* TLSv1.1 */ ^ tls.c:1126:2: warning: 'TLSv1_2_method' is deprecated [-Wdeprecated-declarations] method = TLSv1_2_method (); ^~~~~~ In file included from /usr/include/openssl/ct.h:13:0, from /usr/include/openssl/ssl.h:61, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/ssl.h:1641:1: note: declared here DEPRECATEDIN_1_1_0(__owur const SSL_METHOD *TLSv1_2_method(void)) /* TLSv1.2 */ ^ tls.c: In function 'MiscObjCmd': tls.c:1503:3: warning: 'RSA_generate_key' is deprecated [-Wdeprecated-declarations] if (!EVP_PKEY_assign_RSA(pkey, ^~ 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 tlsInt.h:52, from tls.c:26: /usr/include/openssl/rsa.h:193:1: note: declared here DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void ^ tls.c:1528:54: warning: pointer targets in passing argument 4 of 'X509_NAME_add_entry_by_txt' differ in signedness [-Wpointer-sign] X509_NAME_add_entry_by_txt(name,"C", MBSTRING_ASC, k_C, -1, -1, 0); ^~~ In file included from /usr/include/openssl/ssl.h:50:0, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/x509.h:811:5: note: expected 'const unsigned char *' but argument is of type 'char *' int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type, ^~~~~~~~~~~~~~~~~~~~~~~~~~ tlsBIO.c:23:1: error: variable 'BioMethods' has initializer but incomplete type static BIO_METHOD BioMethods = { ^~~~~~ tls.c:1529:55: warning: pointer targets in passing argument 4 of 'X509_NAME_add_entry_by_txt' differ in signedness [-Wpointer-sign] X509_NAME_add_entry_by_txt(name,"ST", MBSTRING_ASC, k_ST, -1, -1, 0); ^~~~ In file included from tlsBIO.c:9:0: tlsInt.h:92:22: warning: excess elements in struct initializer #define BIO_TYPE_TCL (19|0x0400) ^ tlsBIO.c:24:5: note: in expansion of macro 'BIO_TYPE_TCL' BIO_TYPE_TCL, "tcl", ^~~~~~~~~~~~ In file included from /usr/include/openssl/ssl.h:50:0, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/x509.h:811:5: note: expected 'const unsigned char *' but argument is of type 'char *' int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type, ^~~~~~~~~~~~~~~~~~~~~~~~~~ tlsInt.h:92:22: note: (near initialization for 'BioMethods') #define BIO_TYPE_TCL (19|0x0400) ^ tlsBIO.c:24:5: note: in expansion of macro 'BIO_TYPE_TCL' BIO_TYPE_TCL, "tcl", ^~~~~~~~~~~~ tlsBIO.c:24:19: warning: excess elements in struct initializer BIO_TYPE_TCL, "tcl", ^~~~~ tls.c:1530:54: warning: pointer targets in passing argument 4 of 'X509_NAME_add_entry_by_txt' differ in signedness [-Wpointer-sign] X509_NAME_add_entry_by_txt(name,"L", MBSTRING_ASC, k_L, -1, -1, 0); ^~~ tlsBIO.c:24:19: note: (near initialization for 'BioMethods') In file included from /usr/include/openssl/ssl.h:50:0, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/x509.h:811:5: note: expected 'const unsigned char *' but argument is of type 'char *' int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type, ^~~~~~~~~~~~~~~~~~~~~~~~~~ tlsBIO.c:25:5: warning: excess elements in struct initializer BioWrite, ^~~~~~~~ tlsBIO.c:25:5: note: (near initialization for 'BioMethods') tlsBIO.c:26:5: warning: excess elements in struct initializer BioRead, ^~~~~~~ tlsBIO.c:26:5: note: (near initialization for 'BioMethods') tlsBIO.c:27:5: warning: excess elements in struct initializer BioPuts, ^~~~~~~ tls.c:1531:54: warning: pointer targets in passing argument 4 of 'X509_NAME_add_entry_by_txt' differ in signedness [-Wpointer-sign] X509_NAME_add_entry_by_txt(name,"O", MBSTRING_ASC, k_O, -1, -1, 0); ^~~ tlsBIO.c:27:5: note: (near initialization for 'BioMethods') In file included from /usr/include/openssl/ssl.h:50:0, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/x509.h:811:5: note: expected 'const unsigned char *' but argument is of type 'char *' int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type, ^~~~~~~~~~~~~~~~~~~~~~~~~~ tlsBIO.c:28:5: warning: excess elements in struct initializer NULL, /* BioGets */ ^~~~ tlsBIO.c:28:5: note: (near initialization for 'BioMethods') tlsBIO.c:29:5: warning: excess elements in struct initializer BioCtrl, ^~~~~~~ tlsBIO.c:29:5: note: (near initialization for 'BioMethods') tlsBIO.c:30:5: warning: excess elements in struct initializer BioNew, ^~~~~~ tls.c:1532:55: warning: pointer targets in passing argument 4 of 'X509_NAME_add_entry_by_txt' differ in signedness [-Wpointer-sign] X509_NAME_add_entry_by_txt(name,"OU", MBSTRING_ASC, k_OU, -1, -1, 0); ^~~~ tlsBIO.c:30:5: note: (near initialization for 'BioMethods') In file included from /usr/include/openssl/ssl.h:50:0, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/x509.h:811:5: note: expected 'const unsigned char *' but argument is of type 'char *' int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type, ^~~~~~~~~~~~~~~~~~~~~~~~~~ tlsBIO.c:31:5: warning: excess elements in struct initializer BioFree, ^~~~~~~ tlsBIO.c:31:5: note: (near initialization for 'BioMethods') tlsBIO.c: In function 'BIO_new_tcl': tlsBIO.c:42:8: error: dereferencing pointer to incomplete type 'BIO {aka struct bio_st}' bio->ptr = (char*)statePtr; ^~ tls.c:1533:55: warning: pointer targets in passing argument 4 of 'X509_NAME_add_entry_by_txt' differ in signedness [-Wpointer-sign] X509_NAME_add_entry_by_txt(name,"CN", MBSTRING_ASC, k_CN, -1, -1, 0); ^~~~ In file included from /usr/include/openssl/ssl.h:50:0, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/x509.h:811:5: note: expected 'const unsigned char *' but argument is of type 'char *' int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type, ^~~~~~~~~~~~~~~~~~~~~~~~~~ tls.c:1534:58: warning: pointer targets in passing argument 4 of 'X509_NAME_add_entry_by_txt' differ in signedness [-Wpointer-sign] X509_NAME_add_entry_by_txt(name,"Email", MBSTRING_ASC, k_Email, -1, -1, 0); ^~~~~~~ In file included from /usr/include/openssl/ssl.h:50:0, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/x509.h:811:5: note: expected 'const unsigned char *' but argument is of type 'char *' int X509_NAME_add_entry_by_txt(X509_NAME *name, const char *field, int type, ^~~~~~~~~~~~~~~~~~~~~~~~~~ tlsBIO.c: In function 'BioWrite': tlsBIO.c:65:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (unsigned int) bio, bufLen, (unsigned int) chan); ^ tlsBIO.c:65:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (unsigned int) bio, bufLen, (unsigned int) chan); ^ tlsBIO.c:74:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (unsigned int) chan, bufLen, ret, Tcl_Eof(chan), Tcl_GetErrno()); ^ tlsBIO.c: In function 'BioRead': tlsBIO.c:100:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (unsigned int) bio, bufLen, (unsigned int) chan); ^ tlsBIO.c:100:34: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (unsigned int) bio, bufLen, (unsigned int) chan); ^ tls.c: In function 'TlsLibInit': tls.c:1785:35: warning: passing argument 1 of 'CRYPTO_set_mem_functions' from incompatible pointer type [-Wincompatible-pointer-types] if (CRYPTO_set_mem_functions((void *(*)(size_t))Tcl_Alloc, ^ In file included from /usr/include/openssl/comp.h:16:0, from /usr/include/openssl/ssl.h:47, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/crypto.h:264:5: note: expected 'void * (*)(size_t, const char *, int) {aka void * (*)(long unsigned int, const char *, int)}' but argument is of type 'void * (*)(size_t) {aka void * (*)(long unsigned int)}' int CRYPTO_set_mem_functions( ^~~~~~~~~~~~~~~~~~~~~~~~ tlsBIO.c:111:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (unsigned int) chan, bufLen, ret, Tcl_Eof(chan), Tcl_GetErrno()); ^ tls.c:1786:7: warning: passing argument 2 of 'CRYPTO_set_mem_functions' from incompatible pointer type [-Wincompatible-pointer-types] (void *(*)(void *, size_t))Tcl_Realloc, ^ In file included from /usr/include/openssl/comp.h:16:0, from /usr/include/openssl/ssl.h:47, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/crypto.h:264:5: note: expected 'void * (*)(void *, size_t, const char *, int) {aka void * (*)(void *, long unsigned int, const char *, int)}' but argument is of type 'void * (*)(void *, size_t) {aka void * (*)(void *, long unsigned int)}' int CRYPTO_set_mem_functions( ^~~~~~~~~~~~~~~~~~~~~~~~ tls.c:1787:7: warning: passing argument 3 of 'CRYPTO_set_mem_functions' from incompatible pointer type [-Wincompatible-pointer-types] (void(*)(void *))Tcl_Free) == 0) { ^ In file included from /usr/include/openssl/comp.h:16:0, from /usr/include/openssl/ssl.h:47, from tlsInt.h:52, from tls.c:26: /usr/include/openssl/crypto.h:264:5: note: expected 'void (*)(void *, const char *, int)' but argument is of type 'void (*)(void *)' int CRYPTO_set_mem_functions( ^~~~~~~~~~~~~~~~~~~~~~~~ tlsBIO.c: In function 'BioCtrl': tlsBIO.c:147:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (unsigned int) bio, (unsigned int) cmd, (unsigned int) num, ^ tlsBIO.c:148:6: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] (unsigned int) ptr); ^ tlsBIO.c: At top level: tlsBIO.c:23:19: error: storage size of 'BioMethods' isn't known static BIO_METHOD BioMethods = { ^~~~~~~~~~ make: *** [Makefile:252: tlsBIO.o] Error 1 At top level: tls.c:189:1: warning: 'CryptoThreadIdCallback' defined but not used [-Wunused-function] CryptoThreadIdCallback(void) ^~~~~~~~~~~~~~~~~~~~~~ tls.c:179:1: warning: 'CryptoThreadLockCallback' defined but not used [-Wunused-function] CryptoThreadLockCallback(int mode, int n, const char *file, int line) ^~~~~~~~~~~~~~~~~~~~~~~~ tls.c:171:18: warning: 'locks' defined but not used [-Wunused-variable] static Tcl_Mutex locks[CRYPTO_NUM_LOCKS]; ^~~~~ make: *** [Makefile:252: tls.o] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.UctjZC (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.UctjZC (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff