D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/mysqludf_json-0.0.2-9.mga9.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.girVvV + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf lib_mysqludf_json-master + /usr/lib/rpm/rpmuncompress -x /home/pterjan/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/pterjan/rpmbuild/tmp/rpm-tmp.Lam5G9 + umask 022 + cd /home/pterjan/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=sha1 -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/pterjan/rpmbuild/tmp/rpm-tmp.Lam5G9 (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.Lam5G9 (%build) I: [iurt_root_command] ERROR: chroot