D: [iurt_root_command] chroot warning: %patchN is deprecated (4 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/zip-3.0-14.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.rpoZoI + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf zip30 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/zip30.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd zip30 + rm -rf /home/pterjan/rpmbuild/BUILD/zip30-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/zip30-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (zip-2.3-unforce-cflags.patch):' Patch #0 (zip-2.3-unforce-cflags.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .cflags --fuzz=0 patching file unix/Makefile Hunk #1 succeeded at 58 (offset 11 lines). + echo 'Patch #1 (zip-2.3-noninteractivepassword+testencrypedfile.patch):' Patch #1 (zip-2.3-noninteractivepassword+testencrypedfile.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .pass --fuzz=0 patching file zipcloak.c + echo 'Patch #2 (zip-3.0-format_not_a_string_literal_and_no_format_arguments.diff):' Patch #2 (zip-3.0-format_not_a_string_literal_and_no_format_arguments.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .format_not_a_string_literal_and_no_format_arguments --fuzz=0 patching file zip.c + echo 'Patch #3 (zip-3.0-LDFLAGS.diff):' Patch #3 (zip-3.0-LDFLAGS.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .LDFLAGS --fuzz=0 patching file unix/Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.xDewcQ + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd zip30 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + make -ef unix/Makefile 'prefix=%{prefix}' 'CFLAGS_NOOPT=-I. -DUNIX -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -D_FILE_OFFSET_BITS=64' 'LDFLAGS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' generic_gcc make -f unix/Makefile generic CC=gcc CPP="gcc -E" make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/zip30' sh unix/configure "gcc" "-I. -DUNIX -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -D_FILE_OFFSET_BITS=64" "" Check C compiler type (optimization options) GNU C (-O3) Check bzip2 support Check for bzip2 in bzip2 directory Check if OS already has bzip2 library installed -- OS supports bzip2 - linking in bzip2 Check for the C preprocessor Check if we can use asm code Check for ANSI options Check for prototypes Check the handling of const Check for time_t Check for size_t Check for off_t Check size of UIDs and GIDs (Now zip stores variable size UIDs/GIDs using a new extra field. This tests if this OS uses 16-bit UIDs/GIDs and so if the old 16-bit storage should also be used for backward compatibility.) s.st_uid is 4 bytes s.st_gid is 4 bytes -- UID not 2 bytes - disabling old 16-bit UID/GID support Check for Large File Support off_t is 8 bytes -- yes we have Large File Support! Check for wide char support -- have wchar_t - enabling Unicode support Check for gcc no-builtin flag Check for rmdir Check for strchr Check for strrchr Check for rename Check for mktemp Check for mktime Check for mkstemp Check for memset Check for memmove Check for strerror Check for errno declaration Check for directory libraries Check for readlink Check for directory include file Check for nonexistent include files Check for term I/O include file Check for valloc Check for /usr/local/bin and /usr/local/man Check for OS-specific flags Check for symbolic links eval make -f unix/Makefile zips `cat flags` make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/zip30' gcc -c -I. -DUNIX -O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=2 -fstack-protector-strong -m64 -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection=full -D_FILE_OFFSET_BITS=64 -O3 -DBZIP2_SUPPORT -DUIDGID_NOT_16BIT -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DNO_RMDIR -DNO_STRCHR -DNO_STRRCHR -DNO_RENAME -DNO_MKTEMP -DNO_MKTIME -DNO_MKSTEMP -DZMEM -DNO_ERRNO -DNO_DIR -DHAVE_DIRENT_H -DHAVE_TERMIOS_H -DNO_VALLOC zip.c In file included from zip.c:16: zip.h:726:10: error: conflicting types for 'memset'; have 'char *(char *, int, unsigned int)' 726 | char *memset OF((char *, int, unsigned int)); | ^~~~~~ In file included from /usr/include/features.h:503, from /usr/include/sys/types.h:25, from unix/osdep.h:30, from tailor.h:93, from zip.h:88: /usr/include/bits/string_fortified.h:57:1: note: previous definition of 'memset' with type 'void *(void *, int, long unsigned int)' 57 | __NTH (memset (void *__dest, int __ch, size_t __len)) | ^~~~~ zip.h:727:10: error: conflicting types for 'memcpy'; have 'char *(char *, char *, unsigned int)' 727 | char *memcpy OF((char *, char *, unsigned int)); | ^~~~~~ /usr/include/bits/string_fortified.h:26:1: note: previous definition of 'memcpy' with type 'void *(void *, const void *, long unsigned int)' 26 | __NTH (memcpy (void *__restrict __dest, const void *__restrict __src, | ^~~~~ zip.h:728:8: error: conflicting types for 'memcmp'; have 'int(char *, char *, unsigned int)' 728 | int memcmp OF((char *, char *, unsigned int)); | ^~~~~~ In file included from tailor.h:238: /usr/include/string.h:64:12: note: previous declaration of 'memcmp' with type 'int(const void *, const void *, long unsigned int)' 64 | extern int memcmp (const void *__s1, const void *__s2, size_t __n) | ^~~~~~ make[2]: *** [unix/Makefile:87: zip.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/zip30' make[1]: *** [unix/Makefile:203: generic] Error 2 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/zip30' make: *** [unix/Makefile:206: generic_gcc] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.xDewcQ (%build) RPM build warnings: %patchN is deprecated (4 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.xDewcQ (%build) I: [iurt_root_command] ERROR: chroot