D: [iurt_root_command] chroot Installing /home/pterjan/rpmbuild/SRPMS/wmwebcam-0.3.5-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.qLDIi5 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf wmwebcam-0.3.5 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/wmwebcam-0.3.5.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd wmwebcam-0.3.5 + rm -rf /home/pterjan/rpmbuild/BUILD/wmwebcam-0.3.5-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/wmwebcam-0.3.5-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/wmwebcam-0.3.5-libv4l1.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/wmwebcam-0.3.5-script.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.M6KTDt + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd wmwebcam-0.3.5 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j8 V=1 VERBOSE=1 'CFLAGS=-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 -DVIDEO_DEV='\''"/dev/video0"'\''' 'LDFLAGS= -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' 'LIBS=-lX11 -lXext -lm -ljpeg -lv4l1' gcc -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 -DVIDEO_DEV='"/dev/video0"' -c -o minirgb.o minirgb.c minirgb.c: In function 'minirgb_copy': minirgb.c:123:9: error: implicit declaration of function 'memcpy' [-Wimplicit-function-declaration] 123 | memcpy(dest, src, w * 3); | ^~~~~~ minirgb.c:23:1: note: include '' or provide a declaration of 'memcpy' 22 | #include "minirgb.h" +++ |+#include 23 | minirgb.c:123:9: warning: incompatible implicit declaration of built-in function 'memcpy' [-Wbuiltin-declaration-mismatch] 123 | memcpy(dest, src, w * 3); | ^~~~~~ minirgb.c:123:9: note: include '' or provide a declaration of 'memcpy' make: *** [: minirgb.o] Error 1 make: *** Waiting for unfinished jobs.... gcc -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 -DVIDEO_DEV='"/dev/video0"' -c -o wmwebcam.o wmwebcam.c wmwebcam.c: In function 'main': wmwebcam.c:350:38: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result] 350 | if (delay == SENDINGDELAY) { system (CUSTOMSCRIPT); delay = 0; } | ^~~~~~~~~~~~~~~~~~~~~ error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.M6KTDt (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.M6KTDt (%build) I: [iurt_root_command] ERROR: chroot