D: [iurt_root_command] chroot warning: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend. Installing /home/iurt/rpmbuild/SRPMS/mysqludf_json-0.0.2-9.mga9.src.rpm Building target platforms: aarch64 Building for target aarch64 Executing(%prep): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.n8uJ8P + umask 022 + cd /home/iurt/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/iurt/rpmbuild/BUILD + rm -rf lib_mysqludf_json-master + /usr/bin/unzip -qq /home/iurt/rpmbuild/SOURCES/master.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd lib_mysqludf_json-master + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/iurt/rpmbuild/tmp/rpm-tmp.FYeeiv + umask 022 + cd /home/iurt/rpmbuild/BUILD + cd lib_mysqludf_json-master + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + gcc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -fPIC -I/usr/include/mysql/server -I/usr/include/mysql/server/private -shared -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -o lib_mysqludf_json.so lib_mysqludf_json.c lib_mysqludf_json.c:65:8: error: attempt to use poisoned "__WIN__" 65 | #ifdef __WIN__ | ^ lib_mysqludf_json.c: In function 'prepare_json': lib_mysqludf_json.c:322:49: warning: passing argument 1 of 'is_valid_json_member_name' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 322 | args->attributes[i] | ~~~~~~~~~~~~~~~~^~~ lib_mysqludf_json.c:217:15: note: expected 'char *' but argument is of type 'const char *' 217 | char* name //name (identifier) (in/out) | ~~~~~~^~~~ lib_mysqludf_json.c: In function 'json_init': lib_mysqludf_json.c:537:57: warning: passing argument 1 of 'is_valid_json_member_name' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 537 | args->attributes[i] | ~~~~~~~~~~~~~~~~^~~ lib_mysqludf_json.c:217:15: note: expected 'char *' but argument is of type 'const char *' 217 | char* name //name (identifier) (in/out) | ~~~~~~^~~~ error: Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.FYeeiv (%build) RPM build errors: Found bdb_ro Packages database while attempting sqlite backend: using bdb_ro backend. Bad exit status from /home/iurt/rpmbuild/tmp/rpm-tmp.FYeeiv (%build) I: [iurt_root_command] ERROR: chroot