D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/checkinstall-1.6.2.16-18.mga9.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.Fso6b9 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf checkinstall-1.6.2 + /usr/bin/gzip -dc /home/pterjan/rpmbuild/SOURCES/checkinstall-1.6.2.tar.gz + /usr/bin/tar -xof - + STATUS=0 + '[' 0 -ne 0 ']' + cd checkinstall-1.6.2 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/checkinstall-mdv-fix-paths.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/checkinstall-1.6.1-mdv-rpm-version-check.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/installwatch-glibc_minor.patch + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/checkinstall-mdv-rpm-set-buildroot.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/checkinstall-1.6.1-deb-mdv-build-with-new-glibc.patch + /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/bin/cat /home/pterjan/rpmbuild/SOURCES/checkinstall-1.6.2-cflags.patch + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.yXrw9U + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd checkinstall-1.6.2 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j12 V=1 VERBOSE=1 'CFLAGS=-O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables' LD=gcc 'LDFLAGS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags -nostdlib' for file in locale/checkinstall-*.po ; do \ case ${file} in \ locale/checkinstall-template.po) ;; \ *) \ out=`echo $file | sed -s 's/po/mo/'` ; \ msgfmt -o ${out} ${file} ; \ if [ $? != 0 ] ; then \ exit 1 ; \ fi ; \ ;; \ esac ; \ done /usr/bin/make -C installwatch make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/checkinstall-1.6.2/installwatch' ./create-localdecls Checking truncate argument type... off_t Checking readlinkat result type... ssize_t Checking libc version... libc.so.6 Checking glibc subversion... make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/checkinstall-1.6.2/installwatch' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/checkinstall-1.6.2/installwatch' cc -O2 -g -pipe -Wformat -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -DVERSION=\"0.7.0beta7\" -c installwatch.c installwatch.c: In function 'true_stat': installwatch.c:152:27: error: '_STAT_VER' undeclared (first use in this function) 152 | return true_xstat(_STAT_VER,pathname,info); | ^~~~~~~~~ installwatch.c:152:27: note: each undeclared identifier is reported only once for each function it appears in installwatch.c: In function 'true_mknod': installwatch.c:156:28: error: '_MKNOD_VER' undeclared (first use in this function) 156 | return true_xmknod(_MKNOD_VER,pathname,mode,&dev); | ^~~~~~~~~~ installwatch.c: In function 'true_lstat': installwatch.c:160:28: error: '_STAT_VER' undeclared (first use in this function) 160 | return true_lxstat(_STAT_VER,pathname,info); | ^~~~~~~~~ installwatch.c: In function 'true_fstatat': installwatch.c:165:30: error: '_STAT_VER' undeclared (first use in this function) 165 | return true_fxstatat(_STAT_VER, dirfd, pathname, info, flags); | ^~~~~~~~~ installwatch.c: In function 'true_fstatat64': installwatch.c:169:32: error: '_STAT_VER' undeclared (first use in this function) 169 | return true_fxstatat64(_STAT_VER, dirfd, pathname, info, flags); | ^~~~~~~~~ installwatch.c: In function 'true_mknodat': installwatch.c:173:30: error: '_MKNOD_VER' undeclared (first use in this function) 173 | return true_xmknodat(_MKNOD_VER, dirfd, pathname, mode, &dev); | ^~~~~~~~~~ installwatch.c: In function 'scandir': installwatch.c:3095:57: warning: passing argument 4 of 'true_scandir' from incompatible pointer type [-Wincompatible-pointer-types] 3095 | result=true_scandir(dir,namelist,select,compar); | ^~~~~~ | | | int (*)(const struct dirent **, const struct dirent **) installwatch.c:3095:57: note: expected 'int (*)(const void *, const void *)' but argument is of type 'int (*)(const struct dirent **, const struct dirent **)' installwatch.c:3099:49: warning: passing argument 4 of 'true_scandir' from incompatible pointer type [-Wincompatible-pointer-types] 3099 | result=true_scandir(dir,namelist,select,compar); | ^~~~~~ | | | int (*)(const struct dirent **, const struct dirent **) installwatch.c:3099:49: note: expected 'int (*)(const void *, const void *)' but argument is of type 'int (*)(const struct dirent **, const struct dirent **)' installwatch.c: In function 'scandir64': installwatch.c:3707:59: warning: passing argument 4 of 'true_scandir64' from incompatible pointer type [-Wincompatible-pointer-types] 3707 | result=true_scandir64(dir,namelist,select,compar); | ^~~~~~ | | | int (*)(const struct dirent64 **, const struct dirent64 **) installwatch.c:3707:59: note: expected 'int (*)(const void *, const void *)' but argument is of type 'int (*)(const struct dirent64 **, const struct dirent64 **)' installwatch.c:3711:51: warning: passing argument 4 of 'true_scandir64' from incompatible pointer type [-Wincompatible-pointer-types] 3711 | result=true_scandir64(dir,namelist,select,compar); | ^~~~~~ | | | int (*)(const struct dirent64 **, const struct dirent64 **) installwatch.c:3711:51: note: expected 'int (*)(const void *, const void *)' but argument is of type 'int (*)(const struct dirent64 **, const struct dirent64 **)' installwatch.c: In function 'instw_init': installwatch.c:1210:17: warning: ignoring return value of 'realpath' declared with attribute 'warn_unused_result' [-Wunused-result] 1210 | realpath(proot,wrkpath); | ^~~~~~~~~~~~~~~~~~~~~~~ installwatch.c:1329:17: warning: ignoring return value of 'realpath' declared with attribute 'warn_unused_result' [-Wunused-result] 1329 | realpath(__instw.root,wrkpath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ installwatch.c:1347:25: warning: ignoring return value of 'realpath' declared with attribute 'warn_unused_result' [-Wunused-result] 1347 | realpath(pexclude,wrkpath); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ installwatch.c: In function 'copy_path': installwatch.c:756:33: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result] 756 | write(translfd,buffer,bytes); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:27: installwatch.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/checkinstall-1.6.2/installwatch' make: *** [Makefile:11: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.yXrw9U (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.yXrw9U (%build) I: [iurt_root_command] ERROR: chroot