D: [iurt_root_command] chroot warning: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) Installing /home/pterjan/rpmbuild/SRPMS/resource-agents-4.11.0-1.mga10.src.rpm Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.j1OK4F + umask 022 + cd /home/pterjan/rpmbuild/BUILD + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD + rm -rf resource-agents-4.11.0 + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/v4.11.0.zip + STATUS=0 + '[' 0 -ne 0 ']' + cd resource-agents-4.11.0 + rm -rf /home/pterjan/rpmbuild/BUILD/resource-agents-4.11.0-SPECPARTS + /usr/bin/mkdir -p /home/pterjan/rpmbuild/BUILD/resource-agents-4.11.0-SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (resource-agents-3.9.2-automake-1.13.patch):' Patch #0 (resource-agents-3.9.2-automake-1.13.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file configure.ac + echo 'Patch #3 (v4.11.0-fix-python-shebang.patch):' Patch #3 (v4.11.0-fix-python-shebang.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0 patching file heartbeat/azure-events.in patching file heartbeat/dummypy.in patching file heartbeat/gcp-pd-move.in patching file heartbeat/gcp-vpc-move-route.in patching file heartbeat/gcp-vpc-move-vip.in patching file tools/nfsconvert.in + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.G85d5P + umask 022 + cd /home/pterjan/rpmbuild/BUILD + cd resource-agents-4.11.0 + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + autoreconf -vfi autoreconf: export WARNINGS= autoreconf: Entering directory '.' autoreconf: configure.ac: not using Gettext autoreconf: running: aclocal --force -I m4 autoreconf: configure.ac: tracing autoreconf: configure.ac: not using Libtool autoreconf: configure.ac: not using Intltool autoreconf: configure.ac: not using Gtkdoc autoreconf: running: /usr/bin/autoconf --force configure.ac:83: warning: The macro 'AC_PROG_CC_STDC' is obsolete. configure.ac:83: You should run autoupdate. ./lib/autoconf/c.m4:1669: AC_PROG_CC_STDC is expanded from... configure.ac:83: the top level configure.ac:623: warning: The macro 'AC_HEADER_STDC' is obsolete. configure.ac:623: You should run autoupdate. ./lib/autoconf/headers.m4:663: AC_HEADER_STDC is expanded from... configure.ac:623: the top level autoreconf: running: /usr/bin/autoheader --force autoreconf: running: automake --add-missing --copy --force-missing configure.ac:26: installing './compile' configure.ac:33: installing './config.guess' configure.ac:33: installing './config.sub' configure.ac:63: installing './install-sh' configure.ac:63: installing './missing' heartbeat/Makefile.am: installing './depcomp' 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 --disable-fatal-warnings --with-initdir=/etc/rc.d/init.d 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 for stdio.h... yes checking for stdlib.h... yes checking for string.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for strings.h... yes checking for sys/stat.h... yes checking for sys/types.h... yes checking for unistd.h... yes checking for wchar.h... yes checking for minix/config.h... no checking for vfork.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether _XOPEN_SOURCE should be defined... no checking build system type... x86_64-mageia-linux-gnu checking host 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 the include directive... yes (GNU style) checking whether make supports nested variables... yes checking dependency style of gcc... none checking for x86_64-mageia-linux-gnu-gcc... (cached) gcc checking whether the compiler supports GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking for gcc option to enable C11 features... (cached) none needed checking whether gcc understands -c and -o together... (cached) yes checking for gawk... (cached) gawk checking whether ln -s works... yes checking whether make sets $(MAKE)... (cached) yes checking for inline... inline checking for size_t... yes checking for ssize_t... yes checking for uid_t... yes checking for gid_t... yes checking for uint16_t... yes checking for uint8_t... yes checking for uint32_t... yes checking size of char... 1 checking size of short... 2 checking size of int... 4 checking size of long... 8 checking size of long long... 8 checking whether struct tm is in sys/time.h or time.h... time.h checking for gcc options needed to detect all undeclared functions... none needed checking for struct tm.tm_zone... yes configure: Sanitizing prefix: /usr checking for x86_64-mageia-linux-gnu-pkg-config... /usr/bin/x86_64-mageia-linux-gnu-pkg-config checking pkg-config is at least version 0.18... yes checking for systemd... yes Our Host OS: linux-gnu/x86_64-mageia-linux-gnu configure: Sanitizing exec_prefix: /usr configure: Sanitizing INITDIR: /etc/rc.d/init.d configure: Sanitizing libdir: /usr/lib64 configure: WARNING: docdir directory (/usr/share/doc/resource-agents) does not exist! configure: Host CPU: x86_64 checking which format is needed to print uint64_t... %lu checking for heartbeat/glue_config.h... yes checking for gmake... gmake checking for shellcheck... no checking for bash... /usr/bin/bash checking for xsltproc... /usr/bin/xsltproc checking for xmlcatalog... /usr/bin/xmlcatalog checking for ssh... no checking for scp... no checking for tar... /usr/bin/tar checking for md5... no checking for test... /usr/bin/test checking for ping... /usr/bin/ping checking for ifconfig... no checking for mailx... no checking for mail... no checking for egrep... /usr/bin/egrep checking for rm... /usr/bin/rm checking for ... no checking for python... /usr/bin/python checking for python version... 3.12 checking for python platform... linux checking for GNU default python prefix... ${prefix} checking for GNU default python exec_prefix... ${exec_prefix} checking for python script directory (pythondir)... ${PYTHON_PREFIX}/lib/python3.12/site-packages checking for python extension module directory (pyexecdir)... ${PYTHON_EXEC_PREFIX}/lib64/python3.12/site-packages checking python module: googleapiclient... no checking python module: json... yes checking python module: pyroute2... no configure: WARNING: "Not building gcp-pd-move" configure: WARNING: "Not building gcp-vpc-move-route" configure: WARNING: "Not building gcp-vpc-move-vip" checking for route... no checking ifconfig option to list interfaces... checking docbook to manpage transform... /usr/share/sgml/docbook/xsl-stylesheets-1.79.2 checking for socket in -lsocket... no checking for getopt_long in -lgnugetopt... no checking for GLIB... yes checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... (cached) /usr/bin/egrep checking for sys/socket.h... yes checking for sys/sockio.h... no checking for arpa/inet.h... yes checking for fcntl.h... yes checking for limits.h... yes checking for malloc.h... yes checking for netdb.h... yes checking for netinet/in.h... yes checking for sys/file.h... yes checking for sys/ioctl.h... yes checking for sys/param.h... yes checking for sys/time.h... yes checking for syslog.h... yes checking for pid_t... yes checking for fork... yes checking for vfork... yes checking for working fork... yes checking for working vfork... (cached) yes checking for working strnlen... yes checking for alarm... yes checking for gettimeofday... yes checking for inet_ntoa... yes checking for memset... yes checking for mkdir... yes checking for socket... yes checking for uname... yes checking for strcasecmp... yes checking for strchr... yes checking for strdup... yes checking for strerror... yes checking for strrchr... yes checking for strspn... yes checking for strstr... yes checking for strtol... yes checking for strtoul... yes checking for reboot... /usr/bin/reboot checking for poweroff... /usr/bin/poweroff checking for pod2man... /usr/bin/pod2man checking for getopt... yes checking for struct iphdr.saddr... yes checking if libnet is required... no checking for libnet-config... no checking for t_open in -lnsl... no checking for socket in -lsocket... (cached) no checking for libnet_get_hwaddr in -lnet... no checking for libnet... found none checking for /etc/redhat-release... yes checking for netinet/icmp6.h... yes fgrep: warning: fgrep is obsolescent; using grep -F checking whether gcc supports "-fgnu89-inline"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-fstack-protector-all"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wall"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wbad-function-cast"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wcast-qual"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wdeclaration-after-statement"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wendif-labels"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wfloat-equal"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wformat=2"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wformat-security"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wformat-nonliteral"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Winline"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wmissing-prototypes"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wmissing-declarations"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wmissing-format-attribute"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wnested-externs"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wno-long-long"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wno-strict-aliasing"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wpointer-arith"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wstrict-prototypes"... checking how to run the C preprocessor... gcc -E yes checking whether gcc supports "-Wunsigned-char"... checking how to run the C preprocessor... gcc -E configure: error: in '/home/pterjan/rpmbuild/BUILD/resource-agents-4.11.0': configure: error: C preprocessor "gcc -E" fails sanity check See 'config.log' for more details error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.G85d5P (%build) RPM build warnings: %patchN is deprecated (2 usages found), use %patch N (or %patch -P N) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.G85d5P (%build) I: [iurt_root_command] ERROR: chroot