+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/sscep.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.9mfndu + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sscep-2052ee1c834973879ad319778890f1cedd692821 + /usr/bin/tar -xof - + /usr/bin/gzip -dc /builddir/build/SOURCES/sscep-2052ee1c834973879ad319778890f1cedd692821.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd sscep-2052ee1c834973879ad319778890f1cedd692821 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp /builddir/build/SOURCES/sscep-Makefile Makefile + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.lJXdvS + umask 022 + cd /builddir/build/BUILD + cd sscep-2052ee1c834973879ad319778890f1cedd692821 + /usr/bin/make -O -j4 'CFLAGS=-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 ' 'LDFLAGS=-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' gcc -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 net.o net.c net.c: In function 'send_msg': net.c:200:1: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (v_flag) ^~ net.c:202:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' return (1); ^~~~~~ gcc -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 sceputils.o sceputils.c sceputils.c: In function 'new_selfsigned': sceputils.c:102:40: warning: passing argument 2 of 'c2i_ASN1_INTEGER' from incompatible pointer type [-Wincompatible-pointer-types] if (!(serial = c2i_ASN1_INTEGER(NULL, &ptr, 32))) { ^ In file included from /usr/include/openssl/objects.h:965:0, from /usr/include/openssl/evp.h:94, from sscep.h:50, from sceputils.c:9: /usr/include/openssl/asn1.h:837:15: note: expected 'const unsigned char **' but argument is of type 'unsigned char **' ASN1_INTEGER *c2i_ASN1_INTEGER(ASN1_INTEGER **a, const unsigned char **pp, ^~~~~~~~~~~~~~~~ sceputils.c: In function 'key_fingerprint': sceputils.c:233:6: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] str = (unsigned char *)malloc(2 * MD5_DIGEST_LENGTH + 1); ^ gcc -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 init.o init.c init.c: In function 'init_config': init.c:18:6: warning: variable 'k' set but not used [-Wunused-but-set-variable] int k, i, lines; ^ gcc -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 sscep.o sscep.c sscep.c: In function 'main': sscep.c:688:27: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] scep_t.reply_payload = reply.payload; ^ sscep.c:79:8: warning: variable 'p7' set but not used [-Wunused-but-set-variable] PKCS7 p7; ^~ gcc -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 ias.o ias.c gcc -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 fileutils.o fileutils.c fileutils.c: In function 'compare_subject': fileutils.c:66:58: warning: format '%s' expects argument of type 'char *', but argument 3 has type 'X509_NAME * {aka struct X509_name_st *}' [-Wformat=] fprintf(stderr, "Subject of the returned certificate: %s\n", X509_get_subject_name(cert)); ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ gcc -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 pkcs7.o pkcs7.c In file included from pkcs7.c:10:0: pkcs7.c: In function 'pkcs7_wrap': ias.h:11:15: warning: passing argument 1 of 'ASN1_i2d_bio' from incompatible pointer type [-Wincompatible-pointer-types] ASN1_i2d_bio(i2d_pkcs7_issuer_and_subject, bp, (unsigned char *)ias) ^ pkcs7.c:89:14: note: in expansion of macro 'i2d_pkcs7_issuer_and_subject_bio' if ((rc = i2d_pkcs7_issuer_and_subject_bio(databio, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/objects.h:965:0, from /usr/include/openssl/evp.h:94, from sscep.h:50, from pkcs7.c:9: /usr/include/openssl/asn1.h:1022:5: note: expected 'int (*)(void *, unsigned char **)' but argument is of type 'int (*)(pkcs7_issuer_and_subject *, unsigned char **) {aka int (*)(struct *, unsigned char **)}' int ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x); ^~~~~~~~~~~~ In file included from pkcs7.c:10:0: ias.h:13:15: warning: passing argument 1 of 'ASN1_i2d_bio' from incompatible pointer type [-Wincompatible-pointer-types] ASN1_i2d_bio(i2d_PKCS7_ISSUER_AND_SERIAL, bp, (unsigned char *)ias) ^ pkcs7.c:108:14: note: in expansion of macro 'i2d_PKCS7_ISSUER_AND_SERIAL_bio' if ((rc = i2d_PKCS7_ISSUER_AND_SERIAL_bio(databio, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/objects.h:965:0, from /usr/include/openssl/evp.h:94, from sscep.h:50, from pkcs7.c:9: /usr/include/openssl/asn1.h:1022:5: note: expected 'int (*)(void *, unsigned char **)' but argument is of type 'int (*)(PKCS7_ISSUER_AND_SERIAL *, unsigned char **) {aka int (*)(struct pkcs7_issuer_and_serial_st *, unsigned char **)}' int ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x); ^~~~~~~~~~~~ In file included from pkcs7.c:10:0: ias.h:13:15: warning: passing argument 1 of 'ASN1_i2d_bio' from incompatible pointer type [-Wincompatible-pointer-types] ASN1_i2d_bio(i2d_PKCS7_ISSUER_AND_SERIAL, bp, (unsigned char *)ias) ^ pkcs7.c:127:14: note: in expansion of macro 'i2d_PKCS7_ISSUER_AND_SERIAL_bio' if ((rc = i2d_PKCS7_ISSUER_AND_SERIAL_bio(databio, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/objects.h:965:0, from /usr/include/openssl/evp.h:94, from sscep.h:50, from pkcs7.c:9: /usr/include/openssl/asn1.h:1022:5: note: expected 'int (*)(void *, unsigned char **)' but argument is of type 'int (*)(PKCS7_ISSUER_AND_SERIAL *, unsigned char **) {aka int (*)(struct pkcs7_issuer_and_serial_st *, unsigned char **)}' int ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x); ^~~~~~~~~~~~ pkcs7.c:185:10: warning: too many arguments for format [-Wformat-extra-args] printf("\n %s: hexdump request payload \n", pname , i); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pkcs7.c:262:51: warning: pointer targets in passing argument 3 of 'add_attribute_octet' differ in signedness [-Wpointer-sign] add_attribute_octet(attributes, nid_senderNonce, s->sender_nonce, ^ In file included from pkcs7.c:9:0: sscep.h:340:5: note: expected 'char *' but argument is of type 'unsigned char *' int add_attribute_octet(STACK_OF(X509_ATTRIBUTE) *, int, char *, int); ^~~~~~~~~~~~~~~~~~~ pkcs7.c:34:12: warning: unused variable 'reqcsr' [-Wunused-variable] X509_REQ *reqcsr = NULL; ^~~~~~ pkcs7.c: In function 'pkcs7_verify_unwrap': pkcs7.c:472:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation] if (d_flag) ^~ pkcs7.c:475:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if' if (PEM_write_X509(fp, signercert) != 1) { ^~ pkcs7.c:344:14: warning: unused variable 'recipientkey' [-Wunused-variable] EVP_PKEY *recipientkey; ^~~~~~~~~~~~ pkcs7.c:343:11: warning: unused variable 'recipientcert' [-Wunused-variable] X509 *recipientcert; ^~~~~~~~~~~~~ pkcs7.c:341:11: warning: unused variable 'p' [-Wunused-variable] char *p; ^ pkcs7.c:340:28: warning: unused variable 'attribs' [-Wunused-variable] STACK_OF(X509_ATTRIBUTE) *attribs; ^~~~~~~ pkcs7.c:338:12: warning: unused variable 'p7' [-Wunused-variable] PKCS7 *p7; ^~ pkcs7.c:336:9: warning: unused variable 'i' [-Wunused-variable] int i, len, bytes, used; ^ pkcs7.c: In function 'pkcs7_unwrap': pkcs7.c:628:24: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] s->reply_sender_nonce = p; ^ pkcs7.c:641:27: warning: pointer targets in assignment differ in signedness [-Wpointer-sign] s->reply_recipient_nonce = p; ^ gcc -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 engine.o engine.c gcc -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 configuration.o configuration.c configuration.c: In function 'scep_conf_load': configuration.c:159:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(var = NCONF_get_string(conf, engine_section, SCEP_CONFIGURATION_ENGINE_ID)) { ^~~ configuration.c:182:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(var = NCONF_get_string(conf, engine_special_section, SCEP_CONFIGURATION_ENGINE_CAPI_NEWKEYLOCATION)) { ^~~ configuration.c:192:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(var = NCONF_get_string(conf, engine_special_section, SCEP_CONFIGURATION_ENGINE_CAPI_STORELOCATION)) { ^~~ configuration.c:215:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(var = NCONF_get_string(conf, engine_special_section, SCEP_CONFIGURATION_ENGINE_JKSENGINE_KEYSTOREPASS)) { ^~~ configuration.c:221:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(var = NCONF_get_string(conf, engine_special_section, SCEP_CONFIGURATION_ENGINE_JKSENGINE_JCONNPATH)) { ^~~ configuration.c:227:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(var = NCONF_get_string(conf, engine_special_section, SCEP_CONFIGURATION_ENGINE_JKSENGINE_PROVIDER)) { ^~~ configuration.c:233:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(var = NCONF_get_string(conf, engine_special_section, SCEP_CONFIGURATION_ENGINE_JKSENGINE_JAVAPATH)) { ^~~ configuration.c:244:7: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(var = NCONF_get_string(conf, engine_special_section, SCEP_CONFIGURATION_ENGINE_PKCS11_PIN)) { ^~~ configuration.c:252:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(var = NCONF_get_string(conf, engine_section, SCEP_CONFIGURATION_ENGINE_DYNPATH)) { ^~~ configuration.c:273:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(var = NCONF_get_string(conf, engine_section, SCEP_CONFIGURATION_ENGINE_MODULEPATH)) { ^~~ configuration.c:285:6: warning: suggest parentheses around assignment used as truth value [-Wparentheses] if(cmds_section = NCONF_get_string(conf, engine_section, SCEP_CONFIGURATION_ENGINE_CMDS)) { ^~~~~~~~~~~~ configuration.c:57:6: warning: variable 'ret' set but not used [-Wunused-but-set-variable] int ret; ^~~ configuration.c: In function 'scep_dump_conf': configuration.c:555:61: warning: format '%i' expects argument of type 'int', but argument 3 has type 'long unsigned int' [-Wformat=] fprintf(stderr, "Length of Arrays does not match! Flags: %i, Chars: %i, Names: %i\n", ~^ %li configuration.c:555:72: warning: format '%i' expects argument of type 'int', but argument 4 has type 'long unsigned int' [-Wformat=] fprintf(stderr, "Length of Arrays does not match! Flags: %i, Chars: %i, Names: %i\n", ~^ %li configuration.c:555:83: warning: format '%i' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=] fprintf(stderr, "Length of Arrays does not match! Flags: %i, Chars: %i, Names: %i\n", ~^ %li gcc -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 -o sscep sscep.o init.o net.o sceputils.o pkcs7.o ias.o fileutils.o configuration.o engine.o -lcrypto -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.bjNOyK + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64 ++ dirname /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64 + cd sscep-2052ee1c834973879ad319778890f1cedd692821 + install -pm 755 -d /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64/usr/share/doc/sscep + install -pm 755 -d /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64/etc/sscep/ + install -pm 755 -d /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64/usr/bin + install -pm 644 sscep.conf /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64/etc/sscep + install -pm 755 sscep mkrequest /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64/usr/bin + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64/etc/ld.so.conf: No such file or directory + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 + /usr/lib/rpm/brp-python-hardlink + /usr/lib/rpm/redhat/brp-mangle-shebangs Processing files: sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.jAoGbl + umask 022 + cd /builddir/build/BUILD + cd sscep-2052ee1c834973879ad319778890f1cedd692821 + DOCDIR=/builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64/usr/share/doc/sscep + export LC_ALL=C + LC_ALL=C + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64/usr/share/doc/sscep + cp -pr COPYRIGHT /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64/usr/share/doc/sscep + cp -pr HISTORY /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64/usr/share/doc/sscep + cp -pr TODO /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64/usr/share/doc/sscep + cp -pr README /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64/usr/share/doc/sscep + cp -pr draft-nourse-scep-06.txt /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64/usr/share/doc/sscep + cp -pr draft-nourse-scep-11.txt /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64/usr/share/doc/sscep + exit 0 Provides: config(sscep) = 0.6.1-6.20160525git2052ee1.fc28 sscep = 0.6.1-6.20160525git2052ee1.fc28 sscep(riscv-64) = 0.6.1-6.20160525git2052ee1.fc28 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /bin/sh ld-linux-riscv64-lp64d.so.1()(64bit) ld-linux-riscv64-lp64d.so.1(GLIBC_2.27)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.27)(64bit) libcrypto.so.10()(64bit) libcrypto.so.10(libcrypto.so.10)(64bit) rtld(GNU_HASH) Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64 Wrote: /builddir/build/SRPMS/sscep-0.6.1-6.20160525git2052ee1.fc28.src.rpm Wrote: /builddir/build/RPMS/riscv64/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.lKtlam + umask 022 + cd /builddir/build/BUILD + cd sscep-2052ee1c834973879ad319778890f1cedd692821 + /usr/bin/rm -rf /builddir/build/BUILDROOT/sscep-0.6.1-6.20160525git2052ee1.fc28.riscv64 + exit 0 + touch /buildok + cleanup + set +e + sync + sleep 5 + sync + poweroff Terminated ++ cleanup ++ set +e ++ sync ++ sleep 5 +++ cleanup +++ set +e +++ sync +++ sleep 5 +++ sync +++ poweroff