+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/bti.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.QZz4qi + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf bti-034 + /usr/bin/xz -dc /builddir/build/SOURCES/bti-034.tar.xz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd bti-034 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.tW3hm0 + umask 022 + cd /builddir/build/BUILD + cd bti-034 + 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 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 whether make supports nested variables... (cached) 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 for xsltproc... no 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 for LIBOAUTH... yes checking for LIBPCRE... yes checking for LIBCURL... yes checking for XML... yes checking for JSON... yes checking for library containing dlopen... -ldl checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: executing depfiles commands bti 034 ======= prefix: /usr datarootdir: ${prefix}/share mandir: /usr/share/man compiler: gcc 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 xsltproc: + make -j4 LDFLAGS=-L/usr/lib64/readline5 CC bti-config.o CC bti-bti.o bti.c: In function 'json_parse': bti.c:457:19: warning: implicit declaration of function 'is_error'; did you mean 'mc_error'? [-Wimplicit-function-declaration] ({ if(entry && !is_error(entry)) { \ ^ bti.c:615:2: note: in expansion of macro 'json_object_object_foreach_alt' json_object_object_foreach_alt(jobj, key, val) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ bti.c: In function 'request_access_token': bti.c:808:2: warning: 'oauth_http_get' is deprecated [-Wdeprecated-declarations] reply = oauth_http_get(request_url, post_params); ^~~~~ In file included from bti.c:39:0: /usr/include/oauth.h:572:7: note: declared here char *oauth_http_get (const char *u, const char *q) attribute_deprecated; ^~~~~~~~~~~~~~ bti.c:844:2: warning: 'oauth_http_get' is deprecated [-Wdeprecated-declarations] reply = oauth_http_get(request_url, post_params); ^~~~~ In file included from bti.c:39:0: /usr/include/oauth.h:572:7: note: declared here char *oauth_http_get (const char *u, const char *q) attribute_deprecated; ^~~~~~~~~~~~~~ bti.c: In function 'send_request': bti.c:1121:5: warning: 'oauth_http_post' is deprecated [-Wdeprecated-declarations] reply = oauth_http_post(req_url, postarg); ^~~~~ In file included from bti.c:39:0: /usr/include/oauth.h:629:7: note: declared here char *oauth_http_post (const char *u, const char *p) attribute_deprecated; ^~~~~~~~~~~~~~~ bti.c:1128:5: warning: 'oauth_http_get' is deprecated [-Wdeprecated-declarations] reply = oauth_http_get(req_url, postarg); ^~~~~ In file included from bti.c:39:0: /usr/include/oauth.h:572:7: note: declared here char *oauth_http_get (const char *u, const char *q) attribute_deprecated; ^~~~~~~~~~~~~~ bti.c: In function 'read_password': bti.c:1261:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result] (void)scanf("%79s", pwd); ^~~~~~~~~~~~~~~~~~~~~~~~ bti.c: In function 'json_parse': bti.c:618:9: warning: 'val' may be used uninitialized in this function [-Wmaybe-uninitialized] type = json_object_get_type(val); ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ bti.c:639:36: warning: 'key' may be used uninitialized in this function [-Wmaybe-uninitialized] keystack[nestlevel%MAXKEYSTACK] = key; ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ CCLD bti bti-bti.o: In function `json_parse_array': /builddir/build/BUILD/bti-034/bti.c:536: undefined reference to `is_error' bti-bti.o: In function `fprintf': /usr/include/bits/stdio2.h:97: undefined reference to `is_error' bti-bti.o: In function `send_request': /builddir/build/BUILD/bti-034/bti.c:996: undefined reference to `is_error' collect2: error: ld returned 1 exit status make: *** [Makefile:434: bti] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.tW3hm0 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.tW3hm0 (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff