D: [iurt_root_command] chroot
Building target platforms: x86_64
Building for target x86_64
Installing /home/pterjan/rpmbuild/SRPMS/mgetty-1.2.1-6.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.YCQLv1
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.bQcsyr
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/mgetty-1.2.1-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/mgetty-1.2.1-build
+ rm -rf mgetty-1.2.1
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/mgetty-1.2.1.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd mgetty-1.2.1
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ cp policy.h-dist policy.h
+ echo 'Patch #0 (mgetty-1.1.14-config.patch):'
Patch #0 (mgetty-1.1.14-config.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .config --fuzz=0
patching file Makefile
Hunk #1 succeeded at 109 (offset 7 lines).
Hunk #2 succeeded at 171 (offset 7 lines).
Hunk #3 succeeded at 179 (offset 7 lines).
Hunk #4 succeeded at 199 (offset 7 lines).
+ echo 'Patch #1 (mgetty-1.1.5-makekvg.patch):'
Patch #1 (mgetty-1.1.5-makekvg.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .makekvg --fuzz=0
patching file Makefile
Hunk #1 succeeded at 658 (offset 57 lines).
+ echo 'Patch #2 (mgetty-1.1.14-policy.patch):'
Patch #2 (mgetty-1.1.14-policy.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p0 -b --suffix .policy --fuzz=0
patching file policy.h
Hunk #1 succeeded at 94 (offset 9 lines).
Hunk #2 succeeded at 123 (offset 9 lines).
Hunk #3 succeeded at 157 (offset 10 lines).
Hunk #4 succeeded at 182 (offset 10 lines).
Hunk #5 succeeded at 204 (offset 10 lines).
Hunk #6 succeeded at 573 (offset 9 lines).
Hunk #7 succeeded at 588 (offset 2 lines).
+ echo 'Patch #3 (mgetty-1.1.5-strip.patch):'
Patch #3 (mgetty-1.1.5-strip.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .strip --fuzz=0
patching file voice/Makefile
Hunk #1 succeeded at 83 (offset 2 lines).
+ echo 'Patch #5 (mgetty-1.1.14-logrotate.patch):'
Patch #5 (mgetty-1.1.14-logrotate.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file logrotate.mgetty
patching file logrotate.sendfax
+ echo 'Patch #8 (mgetty-1.1.35-noroot.patch):'
Patch #8 (mgetty-1.1.35-noroot.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .noroot --fuzz=0
patching file callback/Makefile
Hunk #1 succeeded at 37 (offset -3 lines).
patching file contrib/next-login/Makefile
patching file fax/Makefile
Hunk #1 succeeded at 58 (offset -3 lines).
patching file frontends/www/Makefile
Hunk #1 succeeded at 96 (offset 1 line).
patching file Makefile
Hunk #1 succeeded at 171 (offset 7 lines).
Hunk #2 succeeded at 610 (offset 8 lines).
Hunk #3 succeeded at 636 (offset 8 lines).
+ echo 'Patch #9 (mgetty-1.1.21-linkman.patch):'
Patch #9 (mgetty-1.1.21-linkman.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 --fuzz=0
patching file voice/Makefile
Hunk #1 succeeded at 95 (offset 2 lines).
+ echo 'Patch #13 (mgetty-1.1.35-force_detect.patch):'
Patch #13 (mgetty-1.1.35-force_detect.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .force_detect --fuzz=0
patching file voice/contrib/Pat_Deegan/README
patching file voice/contrib/Pat_Deegan/vgetty-test.pl
patching file voice/include/default.h
patching file voice/include/version.h
patching file voice/libvoice/detect.c
Hunk #2 succeeded at 176 (offset 1 line).
Hunk #3 succeeded at 294 (offset 1 line).
Hunk #4 succeeded at 302 (offset 1 line).
patching file voice/voice.conf-dist
+ echo 'Patch #14 (mgetty-1.1.30-mktemp.patch):'
Patch #14 (mgetty-1.1.30-mktemp.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .mktemp --fuzz=0
patching file fax/faxspool.in
Hunk #1 succeeded at 708 (offset 71 lines).
+ echo 'Patch #15 (mgetty-1.1.37-aarch64.patch):'
Patch #15 (mgetty-1.1.37-aarch64.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .aarch64 --fuzz=0
patching file mgetty.h
Hunk #1 succeeded at 220 (offset 22 lines).
+ echo 'Patch #16 (mgetty-1.2.1-162174_tcflush.patch):'
Patch #16 (mgetty-1.2.1-162174_tcflush.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .162174_tcflush --fuzz=0
patching file logfile.c
patching file logname.c
Hunk #1 succeeded at 360 (offset -21 lines).
patching file mgetty.c
+ echo 'Patch #29 (mgetty-sys_nerr-removed.patch):'
Patch #29 (mgetty-sys_nerr-removed.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .sys_nerr-removed --fuzz=0
patching file logfile.c
+ echo 'Patch #30 (mgetty-manpage-typos.patch):'
Patch #30 (mgetty-manpage-typos.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .manpage-typos --fuzz=0
patching file doc/callback.8in
patching file doc/g32pbm.1in
patching file doc/g3cat.1in
patching file doc/mgettydefs.4in
+ echo 'Patch #31 (mgetty-c99.patch):'
Patch #31 (mgetty-c99.patch):
+ /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .c99 --fuzz=0
patching file frontends/X11/viewfax/viewfax.c
patching file login.c
+ /usr/bin/chmod +x /home/pterjan/rpmbuild/BUILD/mgetty-1.2.1-build/mgetty-1.2.1/mkidirs
+ RPM_EC=0
++ jobs -p
+ exit 0
Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.6fUR6w
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/mgetty-1.2.1-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 mgetty-1.2.1
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ make
cc -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 -Wall -pipe -DAUTO_PPP -DVARRUNDIR=\"/var/run\" -c mgetty.c
mgetty.c: In function 'sig_pick_phone':
mgetty.c:137:22: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
  137 |     signal( SIGUSR1, sig_pick_phone );
      |                      ^~~~~~~~~~~~~~
      |                      |
      |                      RETSIGTYPE (*)(void) {aka void (*)(void)}
In file included from mgetty.c:59:
/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'RETSIGTYPE (*)(void)' {aka 'void (*)(void)'}
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
mgetty.c:135:19: note: 'sig_pick_phone' declared here
  135 | static RETSIGTYPE sig_pick_phone(SIG_HDLR_ARGS)
      |                   ^~~~~~~~~~~~~~
/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
mgetty.c: In function 'sig_new_config':
mgetty.c:194:22: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
  194 |     signal( SIGUSR2, sig_new_config );
      |                      ^~~~~~~~~~~~~~
      |                      |
      |                      RETSIGTYPE (*)(void) {aka void (*)(void)}
/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'RETSIGTYPE (*)(void)' {aka 'void (*)(void)'}
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
mgetty.c:192:19: note: 'sig_new_config' declared here
  192 | static RETSIGTYPE sig_new_config(SIG_HDLR_ARGS)
      |                   ^~~~~~~~~~~~~~
/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
mgetty.c: In function 'main':
mgetty.c:361:22: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
  361 |     signal( SIGUSR1, sig_pick_phone );
      |                      ^~~~~~~~~~~~~~
      |                      |
      |                      RETSIGTYPE (*)(void) {aka void (*)(void)}
/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'RETSIGTYPE (*)(void)' {aka 'void (*)(void)'}
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
mgetty.c:135:19: note: 'sig_pick_phone' declared here
  135 | static RETSIGTYPE sig_pick_phone(SIG_HDLR_ARGS)
      |                   ^~~~~~~~~~~~~~
/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
mgetty.c:366:22: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
  366 |     signal( SIGUSR2, sig_new_config );
      |                      ^~~~~~~~~~~~~~
      |                      |
      |                      RETSIGTYPE (*)(void) {aka void (*)(void)}
/usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'RETSIGTYPE (*)(void)' {aka 'void (*)(void)'}
   88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
mgetty.c:192:19: note: 'sig_new_config' declared here
  192 | static RETSIGTYPE sig_new_config(SIG_HDLR_ARGS)
      |                   ^~~~~~~~~~~~~~
/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
mgetty.c:372:5: warning: 'siginterrupt' is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
  372 |     siginterrupt( SIGINT,  TRUE );
      |     ^~~~~~~~~~~~
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
mgetty.c:373:5: warning: 'siginterrupt' is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
  373 |     siginterrupt( SIGALRM, TRUE );
      |     ^~~~~~~~~~~~
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
mgetty.c:374:5: warning: 'siginterrupt' is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
  374 |     siginterrupt( SIGHUP,  TRUE );
      |     ^~~~~~~~~~~~
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
mgetty.c:375:5: warning: 'siginterrupt' is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
  375 |     siginterrupt( SIGUSR1, TRUE );
      |     ^~~~~~~~~~~~
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
mgetty.c:376:5: warning: 'siginterrupt' is deprecated: Use sigaction with SA_RESTART instead [-Wdeprecated-declarations]
  376 |     siginterrupt( SIGUSR2, TRUE );
      |     ^~~~~~~~~~~~
/usr/include/signal.h:324:12: note: declared here
  324 | extern int siginterrupt (int __sig, int __interrupt) __THROW
      |            ^~~~~~~~~~~~
mgetty.c:471:5: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result]
  471 |     chown( devname, uid, gid );
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
mgetty.c:1117:17: warning: ignoring return value of 'system' declared with attribute 'warn_unused_result' [-Wunused-result]
 1117 |                 system( c_string(issue_file)+1 );
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make: *** [Makefile:334: mgetty.o] Error 1
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.6fUR6w (%build)

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