D: [iurt_root_command] chroot warning: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/luvcview-0.2.6-12.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.yRiIrh + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf luvcview-0.2.6 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/luvcview-0.2.6.tar.lzma + STATUS=0 + '[' 0 -ne 0 ']' + cd luvcview-0.2.6 + rm -rf /home/pterjan/rpmbuild/BUILD/luvcview-0.2.6-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/luvcview-0.2.6-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp /home/pterjan/rpmbuild/SOURCES/dynctrl-logitech.h . + cp /home/pterjan/rpmbuild/SOURCES/uvcvideo.h . + cp /home/pterjan/rpmbuild/SOURCES/uvc_compat.h . + echo 'Patch #0 (linuxvideodev2.patch):' Patch #0 (linuxvideodev2.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p0 --fuzz=0 patching file luvcview.c patching file v4l2uvc.h + perl -pi -e 's/^(CFLAGS.*)-O2(.*)/$1\$\(RPM_OPT_FLAGS\)$2/' Makefile + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.jKNwcA + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd luvcview-0.2.6 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j8 V=1 VERBOSE=1 gcc -DUSE_SDL -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 -DLINUX -DVERSION=\"0.2.6\" -I-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_SDL -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 -DLINUX -DVERSION=\"0.2.6\" -I-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o gui.o gui.c gcc -DUSE_SDL -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 -DLINUX -DVERSION=\"0.2.6\" -I-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_SDL -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 -DLINUX -DVERSION=\"0.2.6\" -I-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o v4l2uvc.o v4l2uvc.c v4l2uvc.c: In function 'enumerate_menu': v4l2uvc.c:203:9: error: implicit declaration of function 'SDL_Delay' [-Wimplicit-function-declaration] 203 | SDL_Delay(10); | ^~~~~~~~~ v4l2uvc.c: In function 'load_controls': v4l2uvc.c:333:5: warning: ignoring return value of 'fgets' declared with attribute 'warn_unused_result' [-Wunused-result] 333 | fgets(buffer, sizeof(buffer), configfile); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ make: *** [: v4l2uvc.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -DUSE_SDL -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 -DLINUX -DVERSION=\"0.2.6\" -I-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_SDL -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 -DLINUX -DVERSION=\"0.2.6\" -I-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o color.o color.c gcc -DUSE_SDL -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 -DLINUX -DVERSION=\"0.2.6\" -I-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_SDL -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 -DLINUX -DVERSION=\"0.2.6\" -I-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o luvcview.o luvcview.c luvcview.c: In function 'main': luvcview.c:428:17: error: implicit declaration of function 'check_videoIn' [-Wimplicit-function-declaration] 428 | check_videoIn(videoIn,(char *) videodevice); | ^~~~~~~~~~~~~ luvcview.c: In function 'eventThread': luvcview.c:689:45: error: implicit declaration of function 'v4l2ResetPan'; did you mean 'v4l2ResetPanTilt'? [-Wimplicit-function-declaration] 689 | if (v4l2ResetPan(videoIn) < 0) | ^~~~~~~~~~~~ | v4l2ResetPanTilt luvcview.c:693:45: error: implicit declaration of function 'v4l2ResetTilt'; did you mean 'v4l2ResetPanTilt'? [-Wimplicit-function-declaration] 693 | if (v4l2ResetTilt(videoIn) < 0) | ^~~~~~~~~~~~~ | v4l2ResetPanTilt make: *** [: luvcview.o] Error 1 gcc -DUSE_SDL -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 -DLINUX -DVERSION=\"0.2.6\" -I-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_SDL -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 -DLINUX -DVERSION=\"0.2.6\" -I-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o utils.o utils.c utils.c: In function 'getPictureName': utils.c:1208:58: warning: embedded '\0' in format [-Wformat-contains-nul] 1208 | snprintf (temp, 26, "P-%02d:%02d:%04d-%02d:%02d:%02d.%s\0", | ^~ utils.c:1208:36: warning: '%04d' directive output may be truncated writing between 4 and 11 bytes into a region of size between 0 and 18 [-Wformat-truncation=] 1208 | snprintf (temp, 26, "P-%02d:%02d:%04d-%02d:%02d:%02d.%s\0", | ^~~~ utils.c:1208:23: note: directive argument in the range [-2147481748, 2147483647] 1208 | snprintf (temp, 26, "P-%02d:%02d:%04d-%02d:%02d:%02d.%s\0", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:980, from utils.c:26: In function 'snprintf', inlined from 'getPictureName' at utils.c:1208:3: /usr/include/bits/stdio2.h:54:10: note: '__builtin___snprintf_chk' output 23 or more bytes (assuming 39) into a destination of size 26 54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 55 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 56 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ gcc -DUSE_SDL -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 -DLINUX -DVERSION=\"0.2.6\" -I-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -DUSE_SDL -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 -DLINUX -DVERSION=\"0.2.6\" -I-I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -c -o avilib.o avilib.c avilib.c: In function 'AVI_write_frame': avilib.c:923:28: warning: '%1d' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] 923 | sprintf((char *)astr, "0%1dwb", (int)(AVI->aptr+1)); | ^~~ In function 'avi_write_data', inlined from 'AVI_write_frame' at avilib.c:952:6: avilib.c:923:26: note: directive argument in the range [-2147483647, 2147483647] 923 | sprintf((char *)astr, "0%1dwb", (int)(AVI->aptr+1)); | ^~~~~~~~ In file included from /usr/include/stdio.h:980, from avilib.h:30, from avilib.c:40: In function 'sprintf', inlined from 'avi_write_data' at avilib.c:923:4, inlined from 'AVI_write_frame' at avilib.c:952:6: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 5 and 15 bytes into a destination of size 5 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ avilib.c: In function 'AVI_write_audio': avilib.c:923:28: warning: '%1d' directive writing between 1 and 11 bytes into a region of size 4 [-Wformat-overflow=] 923 | sprintf((char *)astr, "0%1dwb", (int)(AVI->aptr+1)); | ^~~ In function 'avi_write_data', inlined from 'AVI_write_audio' at avilib.c:975:8: avilib.c:923:26: note: directive argument in the range [-2147483647, 2147483647] 923 | sprintf((char *)astr, "0%1dwb", (int)(AVI->aptr+1)); | ^~~~~~~~ In function 'sprintf', inlined from 'avi_write_data' at avilib.c:923:4, inlined from 'AVI_write_audio' at avilib.c:975:8: /usr/include/bits/stdio2.h:30:10: note: '__builtin___sprintf_chk' output between 5 and 15 bytes into a destination of size 5 30 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 32 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.jKNwcA (%build) RPM build warnings: %patchN is deprecated (1 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.jKNwcA (%build) I: [iurt_root_command] ERROR: chroot