D: [iurt_root_command] chroot
Building target platforms: x86_64
Building for target x86_64
Installing /home/pterjan/rpmbuild/SRPMS/sendip-2.5-17.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.wlXVUo
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.d5c84b
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/sendip-2.5-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/sendip-2.5-build
+ rm -rf sendip-2.5
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/sendip-2.5.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd sendip-2.5
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/sendip_2.5-2.diff.gz
+ /usr/bin/patch -p1 -s --fuzz=0 --no-backup-if-mismatch -f
+ /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/sendip-2.5-mga-no-Werror.patch
+ /usr/bin/patch -p1 -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.PfCtzR
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/sendip-2.5-build
+ CFLAGS='-O2 -g -pipe -Wformat -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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=3 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -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 -Cstrip=none --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 -specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ export LDFLAGS
+ LT_SYS_LIBRARY_PATH=/usr/lib64:
+ export LT_SYS_LIBRARY_PATH
+ CC=gcc
+ export CC
+ CXX=g++
+ export CXX
+ cd sendip-2.5
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ /usr/bin/make -O -j16 V=1 VERBOSE=1 PREFIX=/usr
echo -n '%define ver ' >sendip.spec
cat VERSION >>sendip.spec
cat sendip.spec.in >>sendip.spec
gcc -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wnested-externs -Winline -g -Wcast-align -DSENDIP_LIBS=\"/usr/lib/sendip\"   -c -o csum.o csum.c
In file included from /usr/include/sys/types.h:25,
                 from csum.c:10:
/usr/include/features.h:199:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
  199 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
      |   ^~~~~~~
In file included from csum.c:15:
types.h:11:13: error: 'bool' cannot be defined via 'typedef'
   11 | typedef int bool;
      |             ^~~~
types.h:11:13: note: 'bool' is a keyword with '-std=c23' onwards
types.h:11:1: warning: useless type name in empty declaration
   11 | typedef int bool;
      | ^~~~~~~
make: *** [<builtin>: csum.o] Error 1
make: *** Waiting for unfinished jobs....
gcc -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wnested-externs -Winline -g -Wcast-align -DSENDIP_LIBS=\"/usr/lib/sendip\"   -c -o gnugetopt1.o gnugetopt1.c
gcc -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wnested-externs -Winline -g -Wcast-align -DSENDIP_LIBS=\"/usr/lib/sendip\"   -c -o compact.o compact.c
gcc -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wnested-externs -Winline -g -Wcast-align -DSENDIP_LIBS=\"/usr/lib/sendip\"   -c -o sendip.o sendip.c
In file included from sendip_module.h:6,
                 from sendip.c:37:
types.h:11:13: error: 'bool' cannot be defined via 'typedef'
   11 | typedef int bool;
      |             ^~~~
types.h:11:13: note: 'bool' is a keyword with '-std=c23' onwards
types.h:11:1: warning: useless type name in empty declaration
   11 | typedef int bool;
      | ^~~~~~~
make: *** [<builtin>: sendip.o] Error 1
gcc -fPIC -fsigned-char -pipe -Wall -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wnested-externs -Winline -g -Wcast-align -DSENDIP_LIBS=\"/usr/lib/sendip\"   -c -o gnugetopt.o gnugetopt.c
gnugetopt.c: In function 'exchange':
gnugetopt.c:303:1: warning: old-style function definition [-Wold-style-definition]
  303 | exchange (argv)
      | ^~~~~~~~
gnugetopt.c: In function '_getopt_initialize':
gnugetopt.c:388:1: warning: old-style function definition [-Wold-style-definition]
  388 | _getopt_initialize (argc, argv, optstring)
      | ^~~~~~~~~~~~~~~~~~
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.PfCtzR (%build)

RPM build errors:
    Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.PfCtzR (%build)
I: [iurt_root_command] ERROR: chroot