+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/osslsigncode.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.Nv7hhd + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf osslsigncode-1.7.1 + /usr/bin/gzip -dc /builddir/build/SOURCES/osslsigncode-1.7.1.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd osslsigncode-1.7.1 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tS6Ei5 + umask 022 + cd /builddir/build/BUILD + cd osslsigncode-1.7.1 + 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 --with-curl --with-gsf checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for riscv64-redhat-linux-gnu-gcc... no checking for gcc... gcc 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 gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether gcc understands -c and -o together... yes 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 grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/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 minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes 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 how to run the C preprocessor... gcc -E checking whether ln -s works... yes checking for a sed that does not truncate output... /usr/bin/sed checking whether make sets $(MAKE)... (cached) yes checking for an ANSI C-conforming const... yes checking for ANSI C header files... (cached) yes checking whether time.h and sys/time.h may both be included... yes checking sys/mman.h usability... yes checking sys/mman.h presence... yes checking for sys/mman.h... yes checking for mmap... yes checking windows.h usability... no checking windows.h presence... no checking for windows.h... no checking for dlopen in -ldl... yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for getpass... yes checking for GSF... yes checking for OPENSSL... yes checking for LIBCURL... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating config.h config.status: executing depfiles commands + make -j4 (CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/sh /builddir/build/BUILD/osslsigncode-1.7.1/missing autoheader) rm -f stamp-h1 touch config.h.in cd . && /bin/sh ./config.status config.h config.status: creating config.h config.status: config.h is unchanged make all-am make[1]: Entering directory '/builddir/build/BUILD/osslsigncode-1.7.1' gcc -DHAVE_CONFIG_H -I. -I/usr/include/libgsf-1 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/libxml2 -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 osslsigncode.o osslsigncode.c osslsigncode.c: In function 'createOpus': osslsigncode.c:432:36: warning: implicit declaration of function 'M_ASN1_IA5STRING_new'; did you mean 'ASN1_IA5STRING_new'? [-Wimplicit-function-declaration] info->programName->value.ascii = M_ASN1_IA5STRING_new(); ^~~~~~~~~~~~~~~~~~~~ ASN1_IA5STRING_new osslsigncode.c:432:34: warning: assignment makes pointer from integer without a cast [-Wint-conversion] info->programName->value.ascii = M_ASN1_IA5STRING_new(); ^ osslsigncode.c:440:29: warning: assignment makes pointer from integer without a cast [-Wint-conversion] info->moreInfo->value.url = M_ASN1_IA5STRING_new(); ^ osslsigncode.c: In function 'add_timestamp': osslsigncode.c:544:14: error: storage size of 'mdctx' isn't known EVP_MD_CTX mdctx; ^~~~~ osslsigncode.c:556:3: warning: implicit declaration of function 'M_ASN1_OCTET_STRING_set'; did you mean 'ASN1_OCTET_STRING_set'? [-Wimplicit-function-declaration] M_ASN1_OCTET_STRING_set(req->messageImprint->digest, mdbuf, EVP_MD_size(md)); ^~~~~~~~~~~~~~~~~~~~~~~ ASN1_OCTET_STRING_set osslsigncode.c:544:14: warning: unused variable 'mdctx' [-Wunused-variable] EVP_MD_CTX mdctx; ^~~~~ osslsigncode.c: In function 'cleanup_lib_state': osslsigncode.c:744:2: warning: 'ERR_remove_thread_state' is deprecated [-Wdeprecated-declarations] ERR_remove_thread_state(NULL); ^~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/crypto.h:32:0, from /usr/include/openssl/bio.h:20, from /usr/include/openssl/err.h:21, from osslsigncode.c:98: /usr/include/openssl/err.h:247:1: note: declared here DEPRECATEDIN_1_1_0(void ERR_remove_thread_state(void *)) ^ osslsigncode.c: At top level: osslsigncode.c:841:1: warning: return type defaults to 'int' [-Wimplicit-int] DECLARE_STACK_OF(ASN1_OCTET_STRING) ^~~~~~~~~~~~~~~~ osslsigncode.c: In function 'DECLARE_STACK_OF': osslsigncode.c:850:1: error: expected declaration specifiers before 'DECLARE_STACK_OF' DECLARE_STACK_OF(SpcAttributeTypeAndOptionalValue) ^~~~~~~~~~~~~~~~ osslsigncode.c:916:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:996:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:1018:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:1028:47: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token static unsigned char nib2val(unsigned char c) { ^ osslsigncode.c:1041:63: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token static int verify_leaf_hash(X509 *leaf, const char *leafhash) { ^ osslsigncode.c:1133:67: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token static PKCS7 *pkcs7_get_nested_signature(PKCS7 *p7, int *has_sig) { ^ osslsigncode.c:1149:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token static int pkcs7_set_nested_signature(PKCS7 *p7, PKCS7 *p7nest) { ^ osslsigncode.c:1172:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:1185:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:1225:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:1249:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:1277:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:1301:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:1383:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:1435:133: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token static int msi_verify_pkcs7(PKCS7 *p7, GsfInfile *infile, unsigned char *exdata, unsigned int exlen, char *leafhash, int allownest) { ^ osslsigncode.c:1622:63: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token static int msi_verify_file(GsfInfile *infile, char *leafhash) { ^ osslsigncode.c:1678:108: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token static int msi_extract_dse(GsfInfile *infile, unsigned char **dsebuf, unsigned long *dselen, int *has_dse) { ^ osslsigncode.c:1724:76: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token static int msi_extract_signature_to_file(GsfInfile *infile, char *outfile) { ^ osslsigncode.c:1791:65: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token static PKCS7 *msi_extract_signature_to_pkcs7(GsfInfile *infile) { ^ osslsigncode.c:1828:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:1863:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:1917:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:1970:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:2102:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:2149:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:2170:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:2184:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:2193:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:2214:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:2238:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:2276:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token { ^ osslsigncode.c:841:1: error: parameter name omitted DECLARE_STACK_OF(ASN1_OCTET_STRING) ^~~~~~~~~~~~~~~~ osslsigncode.c:3157:1: error: expected '{' at end of input } ^ osslsigncode.c: At top level: osslsigncode.c:838:23: warning: 'calc_page_hash' declared 'static' but never defined [-Wunused-function] static unsigned char *calc_page_hash(char *indata, unsigned int peheader, int pe32plus, ^~~~~~~~~~~~~~ osslsigncode.c: In function 'DECLARE_STACK_OF': osslsigncode.c:3157:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ At top level: osslsigncode.c:833:28: warning: 'classid_page_hash' defined but not used [-Wunused-const-variable=] static const unsigned char classid_page_hash[] = { ^~~~~~~~~~~~~~~~~ osslsigncode.c:817:17: warning: 'get_obsolete_link' defined but not used [-Wunused-function] static SpcLink *get_obsolete_link(void) ^~~~~~~~~~~~~~~~~ osslsigncode.c:749:13: warning: 'usage' defined but not used [-Wunused-function] static void usage(const char *argv0) ^~~~~ osslsigncode.c:714:12: warning: 'add_timestamp_rfc3161' defined but not used [-Wunused-function] static int add_timestamp_rfc3161(PKCS7 *sig, char **url, int nurls, char *proxy, const EVP_MD *md) ^~~~~~~~~~~~~~~~~~~~~ osslsigncode.c:704:12: warning: 'add_timestamp_authenticode' defined but not used [-Wunused-function] static int add_timestamp_authenticode(PKCS7 *sig, char **url, int nurls, char *proxy) ^~~~~~~~~~~~~~~~~~~~~~~~~~ osslsigncode.c:454:13: warning: 'tohex' defined but not used [-Wunused-function] static void tohex(const unsigned char *v, unsigned char *b, int len) ^~~~~ osslsigncode.c:448:21: warning: 'asn1_simple_hdr_len' defined but not used [-Wunused-function] static unsigned int asn1_simple_hdr_len(const unsigned char *p, unsigned int len) { ^~~~~~~~~~~~~~~~~~~ osslsigncode.c:425:23: warning: 'createOpus' defined but not used [-Wunused-function] static SpcSpOpusInfo* createOpus(const char *desc, const char *url) ^~~~~~~~~~ osslsigncode.c:34:20: warning: 'rcsid' defined but not used [-Wunused-variable] static const char *rcsid = "$Id: osslsigncode.c,v 1.7.1 2014/07/11 14:14:14 mfive Exp $"; ^~~~~ make[1]: *** [Makefile:403: osslsigncode.o] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/osslsigncode-1.7.1' make: *** [Makefile:290: all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.tS6Ei5 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.tS6Ei5 (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff