+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/tqsllib.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.MpC4V7 + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf tqsllib-2.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/tqsllib-2.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd tqsllib-2.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (tqsllib-openssl-asn-header.patch):' Patch #0 (tqsllib-openssl-asn-header.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .openssl-asn-header --fuzz=0 patching file openssl_cert.cpp + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.PbGbti + umask 022 + cd /builddir/build/BUILD + cd tqsllib-2.2 + export OPENSSL=/usr + OPENSSL=/usr + export EXPAT=/usr + EXPAT=/usr + export ZLIB=/usr + ZLIB=/usr + 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 + for i in $(find . -name ltmain.sh) + /usr/bin/sed -i.backup -e 's~compiler_flags=$~compiler_flags="-specs=/usr/lib/rpm/redhat/redhat-hardened-ld"~' ./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-docs --without-openssl --without-expat --without-zlib --disable-rpath --disable-static checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking build system type... riscv64-redhat-linux-gnu checking host system type... riscv64-redhat-linux-gnu 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 ISO C89... none needed checking for style of include used by make... GNU checking dependency style of gcc... none checking how to run the C preprocessor... gcc -E 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 we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... none checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by gcc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert riscv64-redhat-linux-gnu file names to riscv64-redhat-linux-gnu format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for riscv64-redhat-linux-gnu-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for riscv64-redhat-linux-gnu-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... printf %s\n checking for riscv64-redhat-linux-gnu-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for riscv64-redhat-linux-gnu-strip... no checking for strip... strip checking for riscv64-redhat-linux-gnu-ranlib... no checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from gcc object... ok checking for sysroot... no checking for riscv64-redhat-linux-gnu-mt... no checking for mt... no checking if : is a manifest tool... no 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 for dlfcn.h... yes checking for objdir... .libs checking if gcc supports -fno-rtti -fno-exceptions... no checking for gcc option to produce PIC... -fPIC -DPIC checking if gcc PIC flag -fPIC -DPIC works... yes checking if gcc static flag -static works... no checking if gcc supports -c -o file.o... yes checking if gcc supports -c -o file.o... (cached) yes checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking for g++ option to produce PIC... -fPIC -DPIC checking if g++ PIC flag -fPIC -DPIC works... yes checking if g++ static flag -static works... no checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... (cached) GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking for --enable-docs... no checking for OpenSSL library (libcrypto.a)... /usr checking for OpenSSL headers in /usr/include... yes checking for expat library (libexpat.a)... /usr checking for zlib library (libz.a)... /usr checking for expat headers in /usr/include... yes checking for main in -lgdi32... no checking for MD5_Init in -lcrypto... yes checking for XML_ParserCreate in -lexpat... yes checking for gzopen in -lz... yes checking for an ANSI C-conforming const... yes checking for size_t... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking for mkdir... yes checking for strerror... yes checking for snprintf... yes configure: creating ./config.status config.status: creating Makefile config.status: creating tqsllib.rc config.status: creating tqsllib.spec config.status: creating sysconfig.h config.status: executing depfiles commands config.status: executing libtool commands + sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool + sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool + sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool + make make all-am make[1]: Entering directory '/builddir/build/BUILD/tqsllib-2.2' /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -I/usr/include -I/usr/include -g3 -O -Wall -DCONFDIR=\"/usr/share/tqsl\" -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 tqsllib.lo tqsllib.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -I/usr/include -I/usr/include -g3 -O -Wall -DCONFDIR=\"/usr/share/tqsl\" -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 tqsllib.cpp -fPIC -DPIC -o .libs/tqsllib.o /bin/sh ./libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -I/usr/include -I/usr/include -g3 -O -Wall -DCONFDIR=\"/usr/share/tqsl\" -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 openssl_cert.lo openssl_cert.cpp libtool: compile: g++ -DHAVE_CONFIG_H -I. -I. -I. -I/usr/include -I/usr/include -I/usr/include -g3 -O -Wall -DCONFDIR=\"/usr/share/tqsl\" -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 openssl_cert.cpp -fPIC -DPIC -o .libs/openssl_cert.o openssl_cert.cpp: In function 'int tqsl_createCertRequest(const char*, TQSL_CERT_REQ*, int (*)(char*, int, void*), void*)': openssl_cert.cpp:590:11: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' rsa = key->pkey.rsa; /* Assume RSA */ ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /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; ^~~~~~~~~~~ openssl_cert.cpp: In function 'int tqsl_selectCertificates(void***, int*, const char*, int, const tQSL_Date*, const TQSL_PROVIDER*, int)': openssl_cert.cpp:694:20: error: invalid use of incomplete type 'RSA {aka struct rsa_st}' if (BN_cmp(rsa->n, pubkey->pkey.rsa->n) == 0) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}' typedef struct rsa_st RSA; ^~~~~~ openssl_cert.cpp:694:31: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' if (BN_cmp(rsa->n, pubkey->pkey.rsa->n) == 0) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /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; ^~~~~~~~~~~ openssl_cert.cpp:695:21: error: invalid use of incomplete type 'RSA {aka struct rsa_st}' if (BN_cmp(rsa->e, pubkey->pkey.rsa->e) == 0) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}' typedef struct rsa_st RSA; ^~~~~~ openssl_cert.cpp:695:32: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' if (BN_cmp(rsa->e, pubkey->pkey.rsa->e) == 0) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /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; ^~~~~~~~~~~ openssl_cert.cpp: In function 'int tqsl_signDataBlock(tQSL_Cert, const unsigned char*, int, unsigned char*, int*)': openssl_cert.cpp:1250:13: error: aggregate 'EVP_MD_CTX ctx' has incomplete type and cannot be defined EVP_MD_CTX ctx; ^~~ openssl_cert.cpp: In function 'int tqsl_verifyDataBlock(tQSL_Cert, const unsigned char*, int, unsigned char*, int)': openssl_cert.cpp:1275:13: error: aggregate 'EVP_MD_CTX ctx' has incomplete type and cannot be defined EVP_MD_CTX ctx; ^~~ openssl_cert.cpp:1290:69: warning: logical not is only applied to the left hand side of comparison [-Wlogical-not-parentheses] if (!EVP_VerifyFinal(&ctx, sig, slen, TQSL_API_TO_CERT(cert)->key) <= 0) { ^~ openssl_cert.cpp: In function 'int tqsl_add_bag_attribute(PKCS12_SAFEBAG*, const char*, const string&)': openssl_cert.cpp:1388:15: error: 'M_ASN1_BMPSTRING_new' was not declared in this scope if ((bmp = M_ASN1_BMPSTRING_new()) != 0) { ^~~~~~~~~~~~~~~~~~~~ openssl_cert.cpp:1388:15: note: suggested alternative: 'ASN1_BMPSTRING_new' if ((bmp = M_ASN1_BMPSTRING_new()) != 0) { ^~~~~~~~~~~~~~~~~~~~ ASN1_BMPSTRING_new openssl_cert.cpp:1395:13: error: invalid use of incomplete type 'X509_ATTRIBUTE {aka struct x509_attributes_st}' attrib->object = OBJ_nid2obj(nid); ^~ In file included from openssl_cert.h:48:0, from openssl_cert.cpp:177: /usr/include/openssl/x509.h:85:16: note: forward declaration of 'X509_ATTRIBUTE {aka struct x509_attributes_st}' typedef struct x509_attributes_st X509_ATTRIBUTE; ^~~~~~~~~~~~~~~~~~ openssl_cert.cpp:1396:18: error: invalid use of incomplete type 'X509_ATTRIBUTE {aka struct x509_attributes_st}' if ((attrib->value.set = sk_ASN1_TYPE_new_null()) != 0) { ^~ In file included from openssl_cert.h:48:0, from openssl_cert.cpp:177: /usr/include/openssl/x509.h:85:16: note: forward declaration of 'X509_ATTRIBUTE {aka struct x509_attributes_st}' typedef struct x509_attributes_st X509_ATTRIBUTE; ^~~~~~~~~~~~~~~~~~ openssl_cert.cpp:1397:32: error: invalid use of incomplete type 'X509_ATTRIBUTE {aka struct x509_attributes_st}' sk_ASN1_TYPE_push(attrib->value.set, val); ^~ In file included from openssl_cert.h:48:0, from openssl_cert.cpp:177: /usr/include/openssl/x509.h:85:16: note: forward declaration of 'X509_ATTRIBUTE {aka struct x509_attributes_st}' typedef struct x509_attributes_st X509_ATTRIBUTE; ^~~~~~~~~~~~~~~~~~ openssl_cert.cpp:1401:14: error: invalid use of incomplete type 'X509_ATTRIBUTE {aka struct x509_attributes_st}' attrib->single = 0; ^~ In file included from openssl_cert.h:48:0, from openssl_cert.cpp:177: /usr/include/openssl/x509.h:85:16: note: forward declaration of 'X509_ATTRIBUTE {aka struct x509_attributes_st}' typedef struct x509_attributes_st X509_ATTRIBUTE; ^~~~~~~~~~~~~~~~~~ openssl_cert.cpp:1405:15: error: invalid use of incomplete type 'PKCS12_SAFEBAG {aka struct PKCS12_SAFEBAG_st}' if (bag->attrib) { ^~ In file included from openssl_cert.cpp:183:0: /usr/include/openssl/pkcs12.h:46:16: note: forward declaration of 'PKCS12_SAFEBAG {aka struct PKCS12_SAFEBAG_st}' typedef struct PKCS12_SAFEBAG_st PKCS12_SAFEBAG; ^~~~~~~~~~~~~~~~~ openssl_cert.cpp:1406:35: error: invalid use of incomplete type 'PKCS12_SAFEBAG {aka struct PKCS12_SAFEBAG_st}' sk_X509_ATTRIBUTE_push(bag->attrib, attrib); ^~ In file included from openssl_cert.cpp:183:0: /usr/include/openssl/pkcs12.h:46:16: note: forward declaration of 'PKCS12_SAFEBAG {aka struct PKCS12_SAFEBAG_st}' typedef struct PKCS12_SAFEBAG_st PKCS12_SAFEBAG; ^~~~~~~~~~~~~~~~~ openssl_cert.cpp: In function 'int tqsl_exportPKCS12File(tQSL_Cert, const char*, const char*)': openssl_cert.cpp:1592:79: error: invalid use of incomplete type 'PKCS12 {aka struct PKCS12_st}' ASN1_seq_pack_PKCS7(safes, (int(*)(PKCS7*, unsigned char**))i2d_PKCS7, &(p12)->authsafes->d.data->data, ^~ In file included from openssl_cert.cpp:183:0: /usr/include/openssl/pkcs12.h:44:16: note: forward declaration of 'PKCS12 {aka struct PKCS12_st}' typedef struct PKCS12_st PKCS12; ^~~~~~~~~ openssl_cert.cpp:1596:9: error: invalid use of incomplete type 'PKCS12 {aka struct PKCS12_st}' &(p12)->authsafes->d.data->length); ^~ In file included from openssl_cert.cpp:183:0: /usr/include/openssl/pkcs12.h:44:16: note: forward declaration of 'PKCS12 {aka struct PKCS12_st}' typedef struct PKCS12_st PKCS12; ^~~~~~~~~ openssl_cert.cpp:1592:2: error: 'ASN1_seq_pack_PKCS7' was not declared in this scope ASN1_seq_pack_PKCS7(safes, (int(*)(PKCS7*, unsigned char**))i2d_PKCS7, &(p12)->authsafes->d.data->data, ^~~~~~~~~~~~~~~~~~~ openssl_cert.cpp:1592:2: note: suggested alternative: 'ASN1_seq_pack' ASN1_seq_pack_PKCS7(safes, (int(*)(PKCS7*, unsigned char**))i2d_PKCS7, &(p12)->authsafes->d.data->data, ^~~~~~~~~~~~~~~~~~~ ASN1_seq_pack openssl_cert.cpp: In function 'int tqsl_get_bag_attribute(PKCS12_SAFEBAG*, const char*, std::__cxx11::string&)': openssl_cert.cpp:1655:63: warning: 'ASN1_TYPE* PKCS12_get_attr(const PKCS12_SAFEBAG*, int)' is deprecated [-Wdeprecated-declarations] if ((attr = PKCS12_get_attr(bag, OBJ_txt2nid((char *)oidname))) != 0) { ^ In file included from /usr/include/openssl/x509_vfy.h:20:0, from /usr/include/openssl/x509.h:309, from openssl_cert.h:48, from openssl_cert.cpp:177: /usr/include/openssl/pkcs12.h:74:1: note: declared here DEPRECATEDIN_1_1_0(ASN1_TYPE *PKCS12_get_attr(const PKCS12_SAFEBAG *bag, int attr_nid)) ^ openssl_cert.cpp: In function 'int tqsl_importPKCS12File(const char*, const char*, const char*, int (*)(char*, int, void*), int (*)(int, const char*, void*), void*)': openssl_cert.cpp:1722:15: error: 'M_PKCS12_unpack_authsafes' was not declared in this scope if ((safes = M_PKCS12_unpack_authsafes(p12)) == 0) ^~~~~~~~~~~~~~~~~~~~~~~~~ openssl_cert.cpp:1722:15: note: suggested alternative: 'PKCS12_unpack_authsafes' if ((safes = M_PKCS12_unpack_authsafes(p12)) == 0) ^~~~~~~~~~~~~~~~~~~~~~~~~ PKCS12_unpack_authsafes openssl_cert.cpp:1730:11: error: 'M_PKCS12_unpack_p7data' was not declared in this scope bags = M_PKCS12_unpack_p7data(p7); ^~~~~~~~~~~~~~~~~~~~~~ openssl_cert.cpp:1730:11: note: suggested alternative: 'PKCS12_unpack_p7data' bags = M_PKCS12_unpack_p7data(p7); ^~~~~~~~~~~~~~~~~~~~~~ PKCS12_unpack_p7data openssl_cert.cpp:1732:11: error: 'M_PKCS12_unpack_p7encdata' was not declared in this scope bags = M_PKCS12_unpack_p7encdata(p7, p12password, strlen(p12password)); ^~~~~~~~~~~~~~~~~~~~~~~~~ openssl_cert.cpp:1732:11: note: suggested alternative: 'PKCS12_unpack_p7encdata' bags = M_PKCS12_unpack_p7encdata(p7, p12password, strlen(p12password)); ^~~~~~~~~~~~~~~~~~~~~~~~~ PKCS12_unpack_p7encdata openssl_cert.cpp:1747:15: error: 'M_PKCS12_certbag2x509' was not declared in this scope if ((x = M_PKCS12_certbag2x509(bag)) == 0) ^~~~~~~~~~~~~~~~~~~~~ openssl_cert.cpp:1747:15: note: suggested alternative: 'PKCS12_certbag2x509' if ((x = M_PKCS12_certbag2x509(bag)) == 0) ^~~~~~~~~~~~~~~~~~~~~ PKCS12_certbag2x509 openssl_cert.cpp:1755:53: warning: 'ASN1_TYPE* PKCS12_get_attr(const PKCS12_SAFEBAG*, int)' is deprecated [-Wdeprecated-declarations] if ((attr = PKCS12_get_attr(bag, NID_localKeyID)) != 0) { ^ In file included from /usr/include/openssl/x509_vfy.h:20:0, from /usr/include/openssl/x509.h:309, from openssl_cert.h:48, from openssl_cert.cpp:177: /usr/include/openssl/pkcs12.h:74:1: note: declared here DEPRECATEDIN_1_1_0(ASN1_TYPE *PKCS12_get_attr(const PKCS12_SAFEBAG *bag, int attr_nid)) ^ openssl_cert.cpp:1795:53: warning: 'ASN1_TYPE* PKCS12_get_attr(const PKCS12_SAFEBAG*, int)' is deprecated [-Wdeprecated-declarations] if ((attr = PKCS12_get_attr(bag, NID_localKeyID)) != 0) { ^ In file included from /usr/include/openssl/x509_vfy.h:20:0, from /usr/include/openssl/x509.h:309, from openssl_cert.h:48, from openssl_cert.cpp:177: /usr/include/openssl/pkcs12.h:74:1: note: declared here DEPRECATEDIN_1_1_0(ASN1_TYPE *PKCS12_get_attr(const PKCS12_SAFEBAG *bag, int attr_nid)) ^ openssl_cert.cpp:1824:16: error: 'M_PKCS12_decrypt_skey' was not declared in this scope if ((p8 = M_PKCS12_decrypt_skey(bag, p12password, strlen(p12password))) == 0) ^~~~~~~~~~~~~~~~~~~~~ openssl_cert.cpp:1824:16: note: suggested alternative: 'PKCS12_decrypt_skey' if ((p8 = M_PKCS12_decrypt_skey(bag, p12password, strlen(p12password))) == 0) ^~~~~~~~~~~~~~~~~~~~~ PKCS12_decrypt_skey openssl_cert.cpp:1853:45: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' if (!PEM_write_bio_RSA_PUBKEY(bio, pkey->pkey.rsa)) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /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; ^~~~~~~~~~~ openssl_cert.cpp: In function 'int tqsl_deleteCertificate(tQSL_Cert)': openssl_cert.cpp:1988:41: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' if (!PEM_write_bio_RSA_PUBKEY(bio, key->pkey.rsa)) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /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; ^~~~~~~~~~~ openssl_cert.cpp: In function 'const char* tqsl_ssl_verify_cert(X509*, stack_st_X509*, stack_st_X509*, int, int (*)(int, X509_STORE_CTX*), stack_st_X509**)': openssl_cert.cpp:2434:42: error: invalid use of incomplete type 'X509_STORE_CTX {aka struct x509_store_ctx_st}' errm = X509_verify_cert_error_string(ctx->error); ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /usr/include/openssl/ossl_typ.h:127:16: note: forward declaration of 'X509_STORE_CTX {aka struct x509_store_ctx_st}' typedef struct x509_store_ctx_st X509_STORE_CTX; ^~~~~~~~~~~~~~~~~ openssl_cert.cpp:2436:18: error: invalid use of incomplete type 'X509_STORE_CTX {aka struct x509_store_ctx_st}' if (rval && ctx->chain) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /usr/include/openssl/ossl_typ.h:127:16: note: forward declaration of 'X509_STORE_CTX {aka struct x509_store_ctx_st}' typedef struct x509_store_ctx_st X509_STORE_CTX; ^~~~~~~~~~~~~~~~~ openssl_cert.cpp:2437:28: error: invalid use of incomplete type 'X509_STORE_CTX {aka struct x509_store_ctx_st}' *chain = sk_X509_dup(ctx->chain); ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /usr/include/openssl/ossl_typ.h:127:16: note: forward declaration of 'X509_STORE_CTX {aka struct x509_store_ctx_st}' typedef struct x509_store_ctx_st X509_STORE_CTX; ^~~~~~~~~~~~~~~~~ openssl_cert.cpp: In function 'int tqsl_get_name_stuff(X509_NAME_ENTRY*, TQSL_X509_NAME_ITEM*)': openssl_cert.cpp:2482:45: warning: 'unsigned char* ASN1_STRING_data(ASN1_STRING*)' is deprecated [-Wdeprecated-declarations] val = (const char *)ASN1_STRING_data(value); ^ In file included from /usr/include/openssl/bn.h:31:0, from /usr/include/openssl/asn1.h:24, from openssl_cert.cpp:149: /usr/include/openssl/asn1.h:553:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^ In file included from /usr/include/openssl/x509.h:23:0, from openssl_cert.h:48, from openssl_cert.cpp:177: openssl_cert.cpp: In function 'EVP_PKEY* tqsl_new_rsa_key(int)': openssl_cert.cpp:2642:76: warning: 'RSA* RSA_generate_key(int, long unsigned int, void (*)(int, int, void*), void*)' is deprecated [-Wdeprecated-declarations] if (!EVP_PKEY_assign_RSA(pkey, RSA_generate_key(nbits, 0x10001, NULL, NULL))) { ^ In file included from /usr/include/openssl/rsa.h:13:0, from /usr/include/openssl/x509.h:31, from openssl_cert.h:48, from openssl_cert.cpp:177: /usr/include/openssl/rsa.h:193:1: note: declared here DEPRECATEDIN_0_9_8(RSA *RSA_generate_key(int bits, unsigned long e, void ^ openssl_cert.cpp: In function 'int tqsl_self_signed_is_ok(int, X509_STORE_CTX*)': openssl_cert.cpp:2684:9: error: invalid use of incomplete type 'X509_STORE_CTX {aka struct x509_store_ctx_st}' if (ctx->error == X509_V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /usr/include/openssl/ossl_typ.h:127:16: note: forward declaration of 'X509_STORE_CTX {aka struct x509_store_ctx_st}' typedef struct x509_store_ctx_st X509_STORE_CTX; ^~~~~~~~~~~~~~~~~ openssl_cert.cpp:2686:9: error: invalid use of incomplete type 'X509_STORE_CTX {aka struct x509_store_ctx_st}' if (ctx->error == X509_V_ERR_CERT_UNTRUSTED) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /usr/include/openssl/ossl_typ.h:127:16: note: forward declaration of 'X509_STORE_CTX {aka struct x509_store_ctx_st}' typedef struct x509_store_ctx_st X509_STORE_CTX; ^~~~~~~~~~~~~~~~~ openssl_cert.cpp: In function 'int tqsl_expired_is_ok(int, X509_STORE_CTX*)': openssl_cert.cpp:2693:9: error: invalid use of incomplete type 'X509_STORE_CTX {aka struct x509_store_ctx_st}' if (ctx->error == X509_V_ERR_CERT_HAS_EXPIRED) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /usr/include/openssl/ossl_typ.h:127:16: note: forward declaration of 'X509_STORE_CTX {aka struct x509_store_ctx_st}' typedef struct x509_store_ctx_st X509_STORE_CTX; ^~~~~~~~~~~~~~~~~ openssl_cert.cpp: In function 'int tqsl_replace_key(const char*, const char*, std::map, std::__cxx11::basic_string >&, int (*)(int, const char*, void*), void*)': openssl_cert.cpp:3115:17: error: invalid use of incomplete type 'RSA {aka struct rsa_st}' if (BN_cmp(rsa->n, new_rsa->n) == 0) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}' typedef struct rsa_st RSA; ^~~~~~ openssl_cert.cpp:3115:29: error: invalid use of incomplete type 'RSA {aka struct rsa_st}' if (BN_cmp(rsa->n, new_rsa->n) == 0) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}' typedef struct rsa_st RSA; ^~~~~~ openssl_cert.cpp:3116:18: error: invalid use of incomplete type 'RSA {aka struct rsa_st}' if (BN_cmp(rsa->e, new_rsa->e) == 0) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}' typedef struct rsa_st RSA; ^~~~~~ openssl_cert.cpp:3116:30: error: invalid use of incomplete type 'RSA {aka struct rsa_st}' if (BN_cmp(rsa->e, new_rsa->e) == 0) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}' typedef struct rsa_st RSA; ^~~~~~ openssl_cert.cpp: In function 'int tqsl_find_matching_key(X509*, EVP_PKEY**, TQSL_CERT_REQ**, const char*, int (*)(char*, int, void*), void*)': openssl_cert.cpp:3262:17: error: invalid use of incomplete type 'RSA {aka struct rsa_st}' if (BN_cmp(rsa->n, cert_key->pkey.rsa->n) == 0) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}' typedef struct rsa_st RSA; ^~~~~~ openssl_cert.cpp:3262:30: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' if (BN_cmp(rsa->n, cert_key->pkey.rsa->n) == 0) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /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; ^~~~~~~~~~~ openssl_cert.cpp:3263:18: error: invalid use of incomplete type 'RSA {aka struct rsa_st}' if (BN_cmp(rsa->e, cert_key->pkey.rsa->e) == 0) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /usr/include/openssl/ossl_typ.h:110:16: note: forward declaration of 'RSA {aka struct rsa_st}' typedef struct rsa_st RSA; ^~~~~~ openssl_cert.cpp:3263:31: error: invalid use of incomplete type 'EVP_PKEY {aka struct evp_pkey_st}' if (BN_cmp(rsa->e, cert_key->pkey.rsa->e) == 0) ^~ In file included from /usr/include/openssl/crypto.h:31:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/asn1.h:16, from openssl_cert.cpp:149: /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; ^~~~~~~~~~~ openssl_cert.cpp: In function 'int tqsl_get_cert_ext(X509*, const char*, unsigned char*, int*, int*)': openssl_cert.cpp:3389:42: warning: 'unsigned char* ASN1_STRING_data(ASN1_STRING*)' is deprecated [-Wdeprecated-declarations] memcpy(userbuf, ASN1_STRING_data(data), datasiz); ^ In file included from /usr/include/openssl/bn.h:31:0, from /usr/include/openssl/asn1.h:24, from openssl_cert.cpp:149: /usr/include/openssl/asn1.h:553:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^ make[1]: *** [Makefile:515: openssl_cert.lo] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/tqsllib-2.2' make: *** [Makefile:310: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.PbGbti (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.PbGbti (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff