D: [iurt_root_command] chroot warning: %patchN is deprecated (3 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/autologin-1.0.0-40.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.dgyHXP + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf autologin-1.0.0 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/autologin-1.0.0.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd autologin-1.0.0 + rm -rf /home/pterjan/rpmbuild/BUILD/autologin-1.0.0-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/autologin-1.0.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (autologin-1.0.0-mga.patch):' Patch #0 (autologin-1.0.0-mga.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .fred --fuzz=0 patching file src/autologin.c patching file src/autologin.pam patching file README + echo 'Patch #1 (autologin-glibc28_fix.diff):' Patch #1 (autologin-glibc28_fix.diff): + /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .glibc28_fix --fuzz=0 patching file src/autologin.c + echo 'Patch #2 (autologin-1.0.0-tty1.patch):' Patch #2 (autologin-1.0.0-tty1.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .tty --fuzz=0 patching file src/autologin.c + sed -i -e s,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g configure.in + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.J8baR2 + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd autologin-1.0.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + autoreconf -fiv autoreconf: export WARNINGS= autoreconf: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf: Entering directory '.' autoreconf: configure.in: not using Gettext autoreconf: running: aclocal --force aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf: configure.in: tracing autoreconf: configure.in: not using Libtool autoreconf: configure.in: not using Intltool autoreconf: configure.in: not using Gtkdoc autoreconf: running: /usr/bin/autoconf --force configure.in:2: warning: The macro 'AC_CANONICAL_SYSTEM' is obsolete. configure.in:2: You should run autoupdate. ./lib/autoconf/general.m4:2081: AC_CANONICAL_SYSTEM is expanded from... configure.in:2: the top level configure.in:3: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. ./lib/autoconf/general.m4:2434: AC_DIAGNOSE is expanded from... aclocal.m4:429: AM_INIT_AUTOMAKE is expanded from... configure.in:3: the top level configure.in:18: warning: AC_OUTPUT should be used without arguments. configure.in:18: You should run autoupdate. autoreconf: running: /usr/bin/autoheader --force autoheader: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoheader: warning: WARNING: Using auxiliary files such as 'acconfig.h', 'config.h.bot' autoheader: WARNING: and 'config.h.top', to define templates for 'config.h.in' autoheader: WARNING: is deprecated and discouraged. autoheader: autoheader: WARNING: Using the third argument of 'AC_DEFINE_UNQUOTED' and autoheader: WARNING: 'AC_DEFINE' allows one to define a template without autoheader: WARNING: 'acconfig.h': autoheader: autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1, autoheader: [Define if a function 'main' is needed.]) autoheader: autoheader: WARNING: More sophisticated templates can also be produced, see the autoheader: WARNING: documentation. autoreconf: running: automake --add-missing --copy --force-missing automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' configure.in:3: warning: AM_INIT_AUTOMAKE: two- and three-arguments forms are deprecated. For more info, see: configure.in:3: https://www.gnu.org/software/automake/manual/automake.html#Modernize-AM_005fINIT_005fAUTOMAKE-invocation configure.in:12: installing './compile' src/Makefile.am: installing './depcomp' automake: warning: autoconf input should be named 'configure.ac', not 'configure.in' autoreconf: './install-sh' is updated autoreconf: Leaving directory '.' + 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' + export CFLAGS + CXXFLAGS='-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' + export CXXFLAGS + FFLAGS='-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 ' + export FFLAGS + FCFLAGS='-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 ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn' + export RUSTFLAGS + LDFLAGS=' -Wl,--as-needed -Wl,--no-undefined -Wl,-z,relro -Wl,-z,now -Wl,-O1 -Wl,--build-id=sha1 -Wl,--enable-new-dtags' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + CONFIGURE_TOP=. + '[' 1 = 1 ']' ++ find . -name config.guess -o -name config.sub + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.guess + '[' -f /usr/lib/rpm/mageia/config.guess ']' ++ basename ./config.guess + cp -af /usr/lib/rpm/mageia/config.guess ./config.guess + for i in $(find ${CONFIGURE_TOP} -name config.guess -o -name config.sub) ++ basename ./config.sub + '[' -f /usr/lib/rpm/mageia/config.sub ']' ++ basename ./config.sub + cp -af /usr/lib/rpm/mageia/config.sub ./config.sub + /usr/lib/rpm/mageia/force-as-needed-for-shared-lib-in-libtool Forcing -Wl,--as-needed in configure/libtool to workaround libtool bug (cf http://lists.gnu.org/archive/html/libtool-patches/2004-06/msg00002.html) + /usr/lib/rpm/mageia/drop-ld-no-undefined-for-shared-lib-modules-in-libtool + /usr/lib/rpm/mageia/fix-libtool-ltmain-from-overlinking + /usr/lib/rpm/mageia/fix-libtool-from-moving-options-after-libs . + /usr/lib/rpm/mageia/fix-dlsearch-path-in-libtool-for-multilib . lib64 + ./configure --host=x86_64-mageia-linux-gnu --build=x86_64-mageia-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info checking build system type... x86_64-mageia-linux-gnu checking host system type... x86_64-mageia-linux-gnu checking target system type... x86_64-mageia-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a race-free mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking for x86_64-mageia-linux-gnu-gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... o checking whether the compiler supports GNU C... yes checking whether gcc accepts -g... yes checking for gcc option to enable C11 features... none needed checking whether gcc understands -c and -o together... yes checking whether make supports the include directive... yes (GNU style) checking dependency style of gcc... none checking for setuid... yes checking for seteuid... yes checking for setreuid... yes checking for setgid... yes checking for setegid... yes checking for setregid... yes checking for dlopen in -ldl... yes checking for pam_start in -lpam... yes checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating src/Makefile config.status: creating config.h config.status: executing depfiles commands + /usr/bin/make -O -j16 V=1 VERBOSE=1 /usr/bin/make all-recursive Making all in src make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/autologin-1.0.0/src' gcc -DHAVE_CONFIG_H -I. -I.. -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 -c -o autologin.o autologin.c autologin.c: In function 'main': autologin.c:88:22: error: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] 88 | cfg=(char *) malloc(st.st_size+1); | ^~~~~~ autologin.c:21:1: note: include '' or provide a declaration of 'malloc' 20 | #include +++ |+#include 21 | #include autologin.c:88:22: warning: incompatible implicit declaration of built-in function 'malloc' [-Wbuiltin-declaration-mismatch] 88 | cfg=(char *) malloc(st.st_size+1); | ^~~~~~ autologin.c:88:22: note: include '' or provide a declaration of 'malloc' autologin.c:96:31: error: implicit declaration of function 'isspace' [-Wimplicit-function-declaration] 96 | while(isspace(cfg[0])) | ^~~~~~~ autologin.c:21:1: note: include '' or provide a declaration of 'isspace' 20 | #include +++ |+#include 21 | #include autologin.c:118:9: error: implicit declaration of function 'free' [-Wimplicit-function-declaration] 118 | free(cfg); | ^~~~ autologin.c:118:9: note: include '' or provide a declaration of 'free' autologin.c:118:9: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] autologin.c:118:9: note: include '' or provide a declaration of 'free' autologin.c:159:9: error: implicit declaration of function 'initgroups'; did you mean 'getgroups'? [-Wimplicit-function-declaration] 159 | initgroups(user, pw->pw_gid); | ^~~~~~~~~~ | getgroups autologin.c:199:9: error: implicit declaration of function 'setenv'; did you mean 'setpwent'? [-Wimplicit-function-declaration] 199 | setenv("HOME", dir, 1); | ^~~~~~ | setpwent autologin.c:178:9: warning: ignoring return value of 'setregid' declared with attribute 'warn_unused_result' [-Wunused-result] 178 | setregid(gid, gid); | ^~~~~~~~~~~~~~~~~~ autologin.c:189:9: warning: ignoring return value of 'setreuid' declared with attribute 'warn_unused_result' [-Wunused-result] 189 | setreuid(uid, uid); | ^~~~~~~~~~~~~~~~~~ autologin.c:205:9: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 205 | chdir(dir); | ^~~~~~~~~~ make[2]: *** [Makefile:365: autologin.o] Error 1 make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/autologin-1.0.0/src' make[1]: *** [Makefile:367: all-recursive] Error 1 make: *** [Makefile:308: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.J8baR2 (%build) RPM build warnings: %patchN is deprecated (3 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.J8baR2 (%build) I: [iurt_root_command] ERROR: chroot