-I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/include -I/usr/include/mysql -I/usr/include/mysql -I/include -DNP_VERSION='"2.2.1.git"' -I/usr/include/mysql -I/usr/include/mysql -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o check_mysql-check_mysql.o `test -f 'check_mysql.c' || echo './'`check_mysql.c gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I.. -I.. -I../lib -I../gl -I../intl -I/usr/include/ldap -I/include -I/include -I/usr/include/mysql -I/usr/include/mysql -I/include -DNP_VERSION='"2.2.1.git"' -I/usr/include/mysql -I/usr/include/mysql -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 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -c -o check_mysql_query-check_mysql_query.o `test -f 'check_mysql_query.c' || echo './'`check_mysql_query.c BUILDSTDERR: check_mysql.c:44:10: fatal error: server/mysql.h: No such file or directory BUILDSTDERR: #include BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: compilation terminated. BUILDSTDERR: make[2]: *** [Makefile:2267: check_mysql-check_mysql.o] Error 1 BUILDSTDERR: make[2]: *** Waiting for unfinished jobs.... BUILDSTDERR: check_uptime.c: In function 'process_arguments': BUILDSTDERR: check_uptime.c:133:8: warning: unused variable 'temp' [-Wunused-variable] BUILDSTDERR: char *temp; BUILDSTDERR: ^~~~ BUILDSTDERR: check_uptime.c:132:6: warning: unused variable 'escape' [-Wunused-variable] BUILDSTDERR: int escape = 0; BUILDSTDERR: ^~~~~~ BUILDSTDERR: In file included from check_uptime.c:29: BUILDSTDERR: check_uptime.c: In function 'print_help': BUILDSTDERR: utils.h:128:19: warning: too many arguments for format [-Wformat-extra-args] BUILDSTDERR: #define COPYRIGHT "Copyright (c) %s Nagios Plugin Development Team\n\ BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: \t<%s>\n\n" BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: utils.h:128:19: note: in definition of macro 'COPYRIGHT' BUILDSTDERR: #define COPYRIGHT "Copyright (c) %s Nagios Plugin Development Team\n\ BUILDSTDERR: ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ BUILDSTDERR: \t<%s>\n\n" BUILDSTDERR: ~~~~~~~~~~~ BUILDSTDERR: check_mysql_query.c:41:10: fatal error: server/mysql.h: No such file or directory BUILDSTDERR: #include BUILDSTDERR: ^~~~~~~~~~~~~~~~ BUILDSTDERR: compilation terminated. make[2]: Leaving directory '/builddir/build/BUILD/nagios-plugins-5c7eb5b9d5a7ed20ce27dcd81f23ecdb6720c2d6/plugins' BUILDSTDERR: make[2]: *** [Makefile:2281: check_mysql_query-check_mysql_query.o] Error 1 BUILDSTDERR: make[1]: *** [Makefile:1540: all-recursive] Error 1 make[1]: Leaving directory '/builddir/build/BUILD/nagios-plugins-5c7eb5b9d5a7ed20ce27dcd81f23ecdb6720c2d6' BUILDSTDERR: make: *** [Makefile:1464: all] Error 2 BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.3yXgWB (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.3yXgWB (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, in do raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/nagios-plugins.spec