+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/python-rhsm.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.PkAEXS + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf python-rhsm-1.18.2 + /usr/bin/gzip -dc /builddir/build/SOURCES/python-rhsm-1.18.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd python-rhsm-1.18.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.7xNavo + umask 022 + cd /builddir/build/BUILD + cd python-rhsm-1.18.2 + PYTHON_RHSM_VERSION=1.18.2 + PYTHON_RHSM_RELEASE=1.fc28 + 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' + /usr/bin/python setup.py build DEPRECATION WARNING: python2 invoked with /usr/bin/python. Use /usr/bin/python3 or /usr/bin/python2 /usr/bin/python will be removed or switched to Python 3 in the future. If you cannot make the switch now, please follow instructions at https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Quick_Opt-Out running build running build_py creating build creating build/lib.linux-riscv64-2.7 creating build/lib.linux-riscv64-2.7/rhsm copying src/rhsm/pathtree.py -> build/lib.linux-riscv64-2.7/rhsm copying src/rhsm/huffman.py -> build/lib.linux-riscv64-2.7/rhsm copying src/rhsm/certificate.py -> build/lib.linux-riscv64-2.7/rhsm copying src/rhsm/connection.py -> build/lib.linux-riscv64-2.7/rhsm copying src/rhsm/config.py -> build/lib.linux-riscv64-2.7/rhsm copying src/rhsm/profile.py -> build/lib.linux-riscv64-2.7/rhsm copying src/rhsm/ourjson.py -> build/lib.linux-riscv64-2.7/rhsm copying src/rhsm/certificate2.py -> build/lib.linux-riscv64-2.7/rhsm copying src/rhsm/__init__.py -> build/lib.linux-riscv64-2.7/rhsm copying src/rhsm/utils.py -> build/lib.linux-riscv64-2.7/rhsm copying src/rhsm/bitstream.py -> build/lib.linux-riscv64-2.7/rhsm running egg_info creating rhsm.egg-info writing rhsm.egg-info/PKG-INFO writing top-level names to rhsm.egg-info/top_level.txt writing dependency_links to rhsm.egg-info/dependency_links.txt writing manifest file 'rhsm.egg-info/SOURCES.txt' reading manifest file 'rhsm.egg-info/SOURCES.txt' writing manifest file 'rhsm.egg-info/SOURCES.txt' running build_ext building 'rhsm._certificate' extension creating build/temp.linux-riscv64-2.7 creating build/temp.linux-riscv64-2.7/src gcc -pthread -fno-strict-aliasing -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 -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -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 -D_GNU_SOURCE -fPIC -fwrapv -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 -D_GNU_SOURCE -fPIC -fwrapv -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 -fPIC -I/usr/include/python2.7 -c src/certificate.c -o build/temp.linux-riscv64-2.7/src/certificate.o src/certificate.c: In function 'get_extension_by_object': src/certificate.c:153:30: error: dereferencing pointer to incomplete type 'X509_EXTENSION {aka struct X509_extension_st}' const unsigned char *p = ext->value->data; ^~ src/certificate.c:166:10: warning: 'ASN1_STRING_data' is deprecated [-Wdeprecated-declarations] ASN1_STRING_data (str), ^~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/bn.h:31:0, from /usr/include/openssl/asn1.h:24, from src/certificate.c:46: /usr/include/openssl/asn1.h:553:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^ src/certificate.c: In function 'get_subject': src/certificate.c:381:14: warning: 'ASN1_STRING_data' is deprecated [-Wdeprecated-declarations] ASN1_STRING_data (data)); ^~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/bn.h:31:0, from /usr/include/openssl/asn1.h:24, from src/certificate.c:46: /usr/include/openssl/asn1.h:553:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^ src/certificate.c: In function 'get_issuer': src/certificate.c:411:14: warning: 'ASN1_STRING_data' is deprecated [-Wdeprecated-declarations] ASN1_STRING_data (data)); ^~~~~~~~~~~~~~~~ In file included from /usr/include/openssl/bn.h:31:0, from /usr/include/openssl/asn1.h:24, from src/certificate.c:46: /usr/include/openssl/asn1.h:553:1: note: declared here DEPRECATEDIN_1_1_0(unsigned char *ASN1_STRING_data(ASN1_STRING *x)) ^ error: command 'gcc' failed with exit status 1 error: Bad exit status from /var/tmp/rpm-tmp.7xNavo (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.7xNavo (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff