D: [iurt_root_command] chroot
Building target platforms: x86_64
Building for target x86_64
sh: line 4: [: -j8: integer expression expected
Installing /home/pterjan/rpmbuild/SRPMS/dcfldd-1.9.1-1.mga10.src.rpm
Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.5tdwDS
sh: line 4: [: -j8: integer expression expected
Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.87KQdb
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ cd /home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build
+ rm -rf dcfldd-1.9.1
+ /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/dcfldd-1.9.1.tar.gz
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd dcfldd-1.9.1
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ RPM_EC=0
++ jobs -p
+ exit 0
sh: line 4: [: -j8: integer expression expected
Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.bLFwJH
+ umask 022
+ cd /home/pterjan/rpmbuild/BUILD/dcfldd-1.9.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 dcfldd-1.9.1
+ '[' 1 -eq 1 ']'
+ '[' 1 -eq 1 ']'
+ 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
+ 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 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 build system type... x86_64-mageia-linux-gnu
checking host system type... x86_64-mageia-linux-gnu
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 how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking whether gcc needs -traditional... no
checking whether ln -s works... yes
checking whether make sets $(MAKE)... (cached) yes
checking for x86_64-mageia-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for egrep... (cached) /usr/bin/grep -E
checking for an ANSI C-conforming const... 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 whether byte ordering is bigendian... no
checking for off_t... yes
checking for size_t... yes
checking for gcc options needed to detect all undeclared functions... none needed
checking whether strtol is declared... yes
checking whether strtoul is declared... yes
checking whether strtoumax is declared... yes
checking whether strndup is declared... 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 -j48 V=1 VERBOSE=1
/usr/bin/make  all-recursive
Making all in src
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o long-options.o long-options.c
long-options.c:51:1: error: conflicting types for 'parse_long_options'; have 'void(int,  char **, const char *, const char *, const char *, const char *, void (*)(void))'
   51 | parse_long_options (int argc,
      | ^~~~~~~~~~~~~~~~~~
In file included from long-options.c:30:
long-options.h:29:3: note: previous declaration of 'parse_long_options' with type 'void(int,  char **, const char *, const char *, const char *, const char *, void (*)(int))'
   29 |   parse_long_options PARAMS ((int _argc,
      |   ^~~~~~~~~~~~~~~~~~
long-options.c: In function 'parse_long_options':
long-options.c:73:12: error: too many arguments to function 'usage_func'; expected 0, have 1
   73 |           (*usage_func) (0);
      |           ~^~~~~~~~~~~~  ~
make[2]: *** [Makefile:453: long-options.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: *** Waiting for unfinished jobs....
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o xstrtoul.o xstrtoul.c
In file included from xstrtoul.c:9:
xstrtol.c:82:10: error: conflicting types for 'strtol'; have 'long int(void)'
   82 | long int strtol ();
      |          ^~~~~~
In file included from /usr/include/features.h:524,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from xstrtol.c:32:
/usr/include/stdlib.h:215:17: note: previous declaration of 'strtol' with type 'long int(const char * restrict,  char ** restrict,  int)'
  215 | extern long int __REDIRECT_NTH (strtol, (const char *__restrict __nptr,
      |                 ^~~~~~~~~~~~~~
xstrtol.c:86:19: error: conflicting types for 'strtoul'; have 'long unsigned int(void)'
   86 | unsigned long int strtoul ();
      |                   ^~~~~~~
/usr/include/stdlib.h:219:26: note: previous declaration of 'strtoul' with type 'long unsigned int(const char * restrict,  char ** restrict,  int)'
  219 | extern unsigned long int __REDIRECT_NTH (strtoul,
      |                          ^~~~~~~~~~~~~~
xstrtol.c:90:11: error: conflicting types for 'strtoumax'; have 'uintmax_t(void)' {aka 'long unsigned int(void)'}
   90 | uintmax_t strtoumax ();
      |           ^~~~~~~~~
/usr/include/inttypes.h:382:18: note: previous declaration of 'strtoumax' with type 'uintmax_t(const char * restrict,  char ** restrict,  int)' {aka 'long unsigned int(const char * restrict,  char ** restrict,  int)'}
  382 | extern uintmax_t __REDIRECT_NTH (strtoumax, (const char *__restrict __nptr,
      |                  ^~~~~~~~~~~~~~
xstrtol.c: In function 'xstrtoul':
xstrtoul.c:6:18: error: too many arguments to function 'strtoul'; expected 0, have 3
    6 | #define __strtol strtoul
      |                  ^~~~~~~
xstrtol.c:137:9: note: in expansion of macro '__strtol'
  137 |   tmp = __strtol (s, p, strtol_base);
      |         ^~~~~~~~
xstrtol.c:86:19: note: declared here
   86 | unsigned long int strtoul ();
      |                   ^~~~~~~
make[2]: *** [Makefile:453: xstrtoul.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o xstrtol.o xstrtol.c
xstrtol.c:82:10: error: conflicting types for 'strtol'; have 'long int(void)'
   82 | long int strtol ();
      |          ^~~~~~
In file included from /usr/include/features.h:524,
                 from /usr/include/bits/libc-header-start.h:33,
                 from /usr/include/stdio.h:28,
                 from xstrtol.c:32:
/usr/include/stdlib.h:215:17: note: previous declaration of 'strtol' with type 'long int(const char * restrict,  char ** restrict,  int)'
  215 | extern long int __REDIRECT_NTH (strtol, (const char *__restrict __nptr,
      |                 ^~~~~~~~~~~~~~
xstrtol.c:86:19: error: conflicting types for 'strtoul'; have 'long unsigned int(void)'
   86 | unsigned long int strtoul ();
      |                   ^~~~~~~
/usr/include/stdlib.h:219:26: note: previous declaration of 'strtoul' with type 'long unsigned int(const char * restrict,  char ** restrict,  int)'
  219 | extern unsigned long int __REDIRECT_NTH (strtoul,
      |                          ^~~~~~~~~~~~~~
xstrtol.c:90:11: error: conflicting types for 'strtoumax'; have 'uintmax_t(void)' {aka 'long unsigned int(void)'}
   90 | uintmax_t strtoumax ();
      |           ^~~~~~~~~
/usr/include/inttypes.h:382:18: note: previous declaration of 'strtoumax' with type 'uintmax_t(const char * restrict,  char ** restrict,  int)' {aka 'long unsigned int(const char * restrict,  char ** restrict,  int)'}
  382 | extern uintmax_t __REDIRECT_NTH (strtoumax, (const char *__restrict __nptr,
      |                  ^~~~~~~~~~~~~~
xstrtol.c: In function 'xstrtol':
xstrtol.c:25:19: error: too many arguments to function 'strtol'; expected 0, have 3
   25 | # define __strtol strtol
      |                   ^~~~~~
xstrtol.c:137:9: note: in expansion of macro '__strtol'
  137 |   tmp = __strtol (s, p, strtol_base);
      |         ^~~~~~~~
xstrtol.c:82:10: note: declared here
   82 | long int strtol ();
      |          ^~~~~~
make[2]: *** [Makefile:453: xstrtol.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o version-etc.o version-etc.c
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o xstrtoumax.o xstrtoumax.c
In file included from xstrtoumax.c:32:
xstrtol.c:82:10: error: conflicting types for 'strtol'; have 'long int(void)'
   82 | long int strtol ();
      |          ^~~~~~
In file included from /usr/include/features.h:524,
                 from /usr/include/inttypes.h:25,
                 from xstrtoumax.c:25:
/usr/include/stdlib.h:215:17: note: previous declaration of 'strtol' with type 'long int(const char * restrict,  char ** restrict,  int)'
  215 | extern long int __REDIRECT_NTH (strtol, (const char *__restrict __nptr,
      |                 ^~~~~~~~~~~~~~
xstrtol.c:86:19: error: conflicting types for 'strtoul'; have 'long unsigned int(void)'
   86 | unsigned long int strtoul ();
      |                   ^~~~~~~
/usr/include/stdlib.h:219:26: note: previous declaration of 'strtoul' with type 'long unsigned int(const char * restrict,  char ** restrict,  int)'
  219 | extern unsigned long int __REDIRECT_NTH (strtoul,
      |                          ^~~~~~~~~~~~~~
xstrtol.c:90:11: error: conflicting types for 'strtoumax'; have 'uintmax_t(void)' {aka 'long unsigned int(void)'}
   90 | uintmax_t strtoumax ();
      |           ^~~~~~~~~
/usr/include/inttypes.h:382:18: note: previous declaration of 'strtoumax' with type 'uintmax_t(const char * restrict,  char ** restrict,  int)' {aka 'long unsigned int(const char * restrict,  char ** restrict,  int)'}
  382 | extern uintmax_t __REDIRECT_NTH (strtoumax, (const char *__restrict __nptr,
      |                  ^~~~~~~~~~~~~~
xstrtol.c: In function 'xstrtoumax':
xstrtoumax.c:29:18: error: too many arguments to function 'strtoumax'; expected 0, have 3
   29 | #define __strtol strtoumax
      |                  ^~~~~~~~~
xstrtol.c:137:9: note: in expansion of macro '__strtol'
  137 |   tmp = __strtol (s, p, strtol_base);
      |         ^~~~~~~~
xstrtol.c:90:11: note: declared here
   90 | uintmax_t strtoumax ();
      |           ^~~~~~~~~
make[2]: *** [Makefile:453: xstrtoumax.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o safe-read.o safe-read.c
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o md5.o md5.c
In file included from system.h:268,
                 from dcfldd.h:42,
                 from hash.h:28,
                 from md5.h:49,
                 from md5.c:35:
sys2.h:297:7: error: conflicting types for 'ttyname'; have 'char *(void)'
  297 | char *ttyname ();
      |       ^~~~~~~
In file included from system.h:33:
/usr/include/unistd.h:799:14: note: previous declaration of 'ttyname' with type 'char *(int)'
  799 | extern char *ttyname (int __fd) __THROW;
      |              ^~~~~~~
md5.c: In function 'MD5Init':
md5.c:83:6: warning: old-style function definition [-Wold-style-definition]
   83 | void MD5Init (mdContext)
      |      ^~~~~~~
md5.c: In function 'MD5Update':
md5.c:96:6: warning: old-style function definition [-Wold-style-definition]
   96 | void MD5Update (mdContext, inBuf, inLen)
      |      ^~~~~~~~~
md5.c:125:7: error: too many arguments to function 'Transform'; expected 0, have 2
  125 |       Transform (mdContext->buf, in);
      |       ^~~~~~~~~  ~~~~~~~~~~~~~~
md5.c:38:13: note: declared here
   38 | static void Transform ();
      |             ^~~~~~~~~
md5.c: In function 'MD5Final':
md5.c:131:6: warning: old-style function definition [-Wold-style-definition]
  131 | void MD5Final (mdContext, buf)
      |      ^~~~~~~~
md5.c:157:3: error: too many arguments to function 'Transform'; expected 0, have 2
  157 |   Transform (mdContext->buf, in);
      |   ^~~~~~~~~  ~~~~~~~~~~~~~~
md5.c:38:13: note: declared here
   38 | static void Transform ();
      |             ^~~~~~~~~
md5.c: In function 'MD5Sprint':
md5.c:175:6: warning: old-style function definition [-Wold-style-definition]
  175 | void MD5Sprint (mdContext, buf)
      |      ^~~~~~~~~
md5.c: In function 'Transform':
md5.c:187:13: warning: old-style function definition [-Wold-style-definition]
  187 | static void Transform (buf, in)
      |             ^~~~~~~~~
make[2]: *** [Makefile:453: md5.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o full-write.o full-write.c
In file included from system.h:268,
                 from dcfldd.h:42,
                 from full-write.c:23:
sys2.h:297:7: error: conflicting types for 'ttyname'; have 'char *(void)'
  297 | char *ttyname ();
      |       ^~~~~~~
In file included from system.h:33:
/usr/include/unistd.h:799:14: note: previous declaration of 'ttyname' with type 'char *(int)'
  799 | extern char *ttyname (int __fd) __THROW;
      |              ^~~~~~~
full-write.c: In function 'full_write':
full-write.c:57:22: error: too many arguments to function 'safe_read'; expected 0, have 3
   57 |           int rlen = safe_read(desc, rptr, len);
      |                      ^~~~~~~~~ ~~~~
In file included from full-write.c:30:
safe-read.h:10:1: note: declared here
   10 | safe_read PARAMS ((int desc, void *ptr, size_t len));
      | ^~~~~~~~~
make[2]: *** [Makefile:453: full-write.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o argmatch.o argmatch.c
In file included from system.h:268,
                 from dcfldd.h:42,
                 from argmatch.c:22:
sys2.h:297:7: error: conflicting types for 'ttyname'; have 'char *(void)'
  297 | char *ttyname ();
      |       ^~~~~~~
In file included from system.h:33:
/usr/include/unistd.h:799:14: note: previous declaration of 'ttyname' with type 'char *(int)'
  799 | extern char *ttyname (int __fd) __THROW;
      |              ^~~~~~~
argmatch.c:136:1: error: conflicting types for 'argmatch'; have 'int(const char *, const char * const*, const char *, size_t)' {aka 'int(const char *, const char * const*, const char *, long unsigned int)'}
  136 | argmatch (const char *arg, const char *const *arglist,
      | ^~~~~~~~
In file included from argmatch.c:23:
argmatch.h:54:5: note: previous declaration of 'argmatch' with type 'int(void)'
   54 | int argmatch
      |     ^~~~~~~~
argmatch.c:144:1: error: conflicting types for 'argcasematch'; have 'int(const char *, const char * const*, const char *, size_t)' {aka 'int(const char *, const char * const*, const char *, long unsigned int)'}
  144 | argcasematch (const char *arg, const char *const *arglist,
      | ^~~~~~~~~~~~
argmatch.h:57:5: note: previous declaration of 'argcasematch' with type 'int(void)'
   57 | int argcasematch
      |     ^~~~~~~~~~~~
argmatch.c:156:1: error: conflicting types for 'argmatch_invalid'; have 'void(const char *, const char *, int)'
  156 | argmatch_invalid (const char *context, const char *value, int problem)
      | ^~~~~~~~~~~~~~~~
argmatch.h:75:6: note: previous declaration of 'argmatch_invalid' with type 'void(void)'
   75 | void argmatch_invalid
      |      ^~~~~~~~~~~~~~~~
argmatch.c:170:1: error: conflicting types for 'argmatch_valid'; have 'void(const char * const*, const char *, size_t)' {aka 'void(const char * const*, const char *, long unsigned int)'}
  170 | argmatch_valid (const char *const *arglist,
      | ^~~~~~~~~~~~~~
argmatch.h:87:6: note: previous declaration of 'argmatch_valid' with type 'void(void)'
   87 | void argmatch_valid
      |      ^~~~~~~~~~~~~~
argmatch.c:200:1: error: conflicting types for '__xargmatch_internal'; have 'int(const char *, const char *, const char * const*, const char *, size_t,  int,  void (*)(void))' {aka 'int(const char *, const char *, const char * const*, const char *, long unsigned int,  int,  void (*)(void))'}
  200 | __xargmatch_internal (const char *context,
      | ^~~~~~~~~~~~~~~~~~~~
argmatch.h:99:5: note: previous declaration of '__xargmatch_internal' with type 'int(void)'
   99 | int __xargmatch_internal
      |     ^~~~~~~~~~~~~~~~~~~~
argmatch.c:224:1: error: conflicting types for 'argmatch_to_argument'; have 'const char *(const char *, const char * const*, const char *, size_t)' {aka 'const char *(const char *, const char * const*, const char *, long unsigned int)'}
  224 | argmatch_to_argument (const char *value,
      | ^~~~~~~~~~~~~~~~~~~~
argmatch.h:121:13: note: previous declaration of 'argmatch_to_argument' with type 'const char *(void)'
  121 | const char *argmatch_to_argument
      |             ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:453: argmatch.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o copy.o copy.c
In file included from system.h:268,
                 from dcfldd.h:42,
                 from copy.c:25:
sys2.h:297:7: error: conflicting types for 'ttyname'; have 'char *(void)'
  297 | char *ttyname ();
      |       ^~~~~~~
In file included from system.h:33:
/usr/include/unistd.h:799:14: note: previous declaration of 'ttyname' with type 'char *(int)'
  799 | extern char *ttyname (int __fd) __THROW;
      |              ^~~~~~~
copy.c: In function 'dd_copy':
copy.c:260:21: error: too many arguments to function 'safe_read'; expected 0, have 3
  260 |             nread = safe_read(STDIN_FILENO, ibuf, input_blocksize);
      |                     ^~~~~~~~~ ~~~~~~~~~~~~
In file included from copy.c:31:
safe-read.h:10:1: note: declared here
   10 | safe_read PARAMS ((int desc, void *ptr, size_t len));
      | ^~~~~~~~~
make[2]: *** [Makefile:453: copy.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o hashformat.o hashformat.c
In file included from system.h:268,
                 from dcfldd.h:42,
                 from hashformat.c:24:
sys2.h:297:7: error: conflicting types for 'ttyname'; have 'char *(void)'
  297 | char *ttyname ();
      |       ^~~~~~~
In file included from system.h:33:
/usr/include/unistd.h:799:14: note: previous declaration of 'ttyname' with type 'char *(int)'
  799 | extern char *ttyname (int __fd) __THROW;
      |              ^~~~~~~
make[2]: *** [Makefile:453: hashformat.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o translate.o translate.c
In file included from system.h:268,
                 from dcfldd.h:42,
                 from translate.c:25:
sys2.h:297:7: error: conflicting types for 'ttyname'; have 'char *(void)'
  297 | char *ttyname ();
      |       ^~~~~~~
In file included from system.h:33:
/usr/include/unistd.h:799:14: note: previous declaration of 'ttyname' with type 'char *(int)'
  799 | extern char *ttyname (int __fd) __THROW;
      |              ^~~~~~~
make[2]: *** [Makefile:453: translate.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o log.o log.c
In file included from system.h:268,
                 from dcfldd.h:42,
                 from log.c:25:
sys2.h:297:7: error: conflicting types for 'ttyname'; have 'char *(void)'
  297 | char *ttyname ();
      |       ^~~~~~~
In file included from system.h:33:
/usr/include/unistd.h:799:14: note: previous declaration of 'ttyname' with type 'char *(int)'
  799 | extern char *ttyname (int __fd) __THROW;
      |              ^~~~~~~
make[2]: *** [Makefile:453: log.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o output.o output.c
In file included from system.h:268,
                 from dcfldd.h:42,
                 from output.c:26:
sys2.h:297:7: error: conflicting types for 'ttyname'; have 'char *(void)'
  297 | char *ttyname ();
      |       ^~~~~~~
In file included from system.h:33:
/usr/include/unistd.h:799:14: note: previous declaration of 'ttyname' with type 'char *(int)'
  799 | extern char *ttyname (int __fd) __THROW;
      |              ^~~~~~~
make[2]: *** [Makefile:453: output.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o hash.o hash.c
In file included from system.h:268,
                 from dcfldd.h:42,
                 from hash.c:24:
sys2.h:297:7: error: conflicting types for 'ttyname'; have 'char *(void)'
  297 | char *ttyname ();
      |       ^~~~~~~
In file included from system.h:33:
/usr/include/unistd.h:799:14: note: previous declaration of 'ttyname' with type 'char *(int)'
  799 | extern char *ttyname (int __fd) __THROW;
      |              ^~~~~~~
make[2]: *** [Makefile:453: hash.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o sizeprobe.o sizeprobe.c
In file included from system.h:268,
                 from dcfldd.h:42,
                 from sizeprobe.c:26:
sys2.h:297:7: error: conflicting types for 'ttyname'; have 'char *(void)'
  297 | char *ttyname ();
      |       ^~~~~~~
In file included from system.h:33:
/usr/include/unistd.h:799:14: note: previous declaration of 'ttyname' with type 'char *(int)'
  799 | extern char *ttyname (int __fd) __THROW;
      |              ^~~~~~~
make[2]: *** [Makefile:453: sizeprobe.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o pattern.o pattern.c
In file included from system.h:268,
                 from dcfldd.h:42,
                 from pattern.c:24:
sys2.h:297:7: error: conflicting types for 'ttyname'; have 'char *(void)'
  297 | char *ttyname ();
      |       ^~~~~~~
In file included from system.h:33:
/usr/include/unistd.h:799:14: note: previous declaration of 'ttyname' with type 'char *(int)'
  799 | extern char *ttyname (int __fd) __THROW;
      |              ^~~~~~~
make[2]: *** [Makefile:453: pattern.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o verify.o verify.c
In file included from system.h:268,
                 from dcfldd.h:42,
                 from verify.c:26:
sys2.h:297:7: error: conflicting types for 'ttyname'; have 'char *(void)'
  297 | char *ttyname ();
      |       ^~~~~~~
In file included from system.h:33:
/usr/include/unistd.h:799:14: note: previous declaration of 'ttyname' with type 'char *(int)'
  799 | extern char *ttyname (int __fd) __THROW;
      |              ^~~~~~~
verify.c: In function 'dd_verify':
verify.c:221:19: error: too many arguments to function 'safe_read'; expected 0, have 3
  221 |         v_nread = safe_read(verify_fd, vbuf, input_blocksize);
      |                   ^~~~~~~~~ ~~~~~~~~~
In file included from verify.c:33:
safe-read.h:10:1: note: declared here
   10 | safe_read PARAMS ((int desc, void *ptr, size_t len));
      | ^~~~~~~~~
verify.c:233:23: error: too many arguments to function 'safe_read'; expected 0, have 3
  233 |             i_nread = safe_read(STDIN_FILENO, ibuf, input_blocksize);
      |                       ^~~~~~~~~ ~~~~~~~~~~~~
safe-read.h:10:1: note: declared here
   10 | safe_read PARAMS ((int desc, void *ptr, size_t len));
      | ^~~~~~~~~
make[2]: *** [Makefile:453: verify.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o util.o util.c
In file included from system.h:268,
                 from dcfldd.h:42,
                 from util.c:35:
sys2.h:297:7: error: conflicting types for 'ttyname'; have 'char *(void)'
  297 | char *ttyname ();
      |       ^~~~~~~
In file included from system.h:33:
/usr/include/unistd.h:799:14: note: previous declaration of 'ttyname' with type 'char *(int)'
  799 | extern char *ttyname (int __fd) __THROW;
      |              ^~~~~~~
util.c: In function 'skip2':
util.c:89:29: error: too many arguments to function 'safe_read'; expected 0, have 3
   89 |             ssize_t nread = safe_read(fdesc, buf, blocksize);
      |                             ^~~~~~~~~ ~~~~~
In file included from util.c:46:
safe-read.h:10:1: note: declared here
   10 | safe_read PARAMS ((int desc, void *ptr, size_t len));
      | ^~~~~~~~~
make[2]: *** [Makefile:453: util.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o dcfldd.o dcfldd.c
In file included from system.h:268,
                 from dcfldd.h:42,
                 from dcfldd.c:29:
sys2.h:297:7: error: conflicting types for 'ttyname'; have 'char *(void)'
  297 | char *ttyname ();
      |       ^~~~~~~
In file included from system.h:33:
/usr/include/unistd.h:799:14: note: previous declaration of 'ttyname' with type 'char *(int)'
  799 | extern char *ttyname (int __fd) __THROW;
      |              ^~~~~~~
dcfldd.c: In function 'print_stats':
dcfldd.c:225:13: error: too many arguments to function 'human_readable'; expected 0, have 4
  225 |             human_readable (r_full, buf[0], 1, 1),
      |             ^~~~~~~~~~~~~~  ~~~~~~
In file included from dcfldd.c:56:
human.h:33:7: note: declared here
   33 | char *human_readable PARAMS ((uintmax_t, char *, int, int));
      |       ^~~~~~~~~~~~~~
dcfldd.c:226:13: error: too many arguments to function 'human_readable'; expected 0, have 4
  226 |             human_readable (r_partial, buf[1], 1, 1));
      |             ^~~~~~~~~~~~~~  ~~~~~~~~~
human.h:33:7: note: declared here
   33 | char *human_readable PARAMS ((uintmax_t, char *, int, int));
      |       ^~~~~~~~~~~~~~
dcfldd.c:228:13: error: too many arguments to function 'human_readable'; expected 0, have 4
  228 |             human_readable (w_full, buf[0], 1, 1),
      |             ^~~~~~~~~~~~~~  ~~~~~~
human.h:33:7: note: declared here
   33 | char *human_readable PARAMS ((uintmax_t, char *, int, int));
      |       ^~~~~~~~~~~~~~
dcfldd.c:229:13: error: too many arguments to function 'human_readable'; expected 0, have 4
  229 |             human_readable (w_partial, buf[1], 1, 1));
      |             ^~~~~~~~~~~~~~  ~~~~~~~~~
human.h:33:7: note: declared here
   33 | char *human_readable PARAMS ((uintmax_t, char *, int, int));
      |       ^~~~~~~~~~~~~~
dcfldd.c:232:17: error: too many arguments to function 'human_readable'; expected 0, have 4
  232 |                 human_readable (r_truncate, buf[0], 1, 1),
      |                 ^~~~~~~~~~~~~~  ~~~~~~~~~~
human.h:33:7: note: declared here
   33 | char *human_readable PARAMS ((uintmax_t, char *, int, int));
      |       ^~~~~~~~~~~~~~
dcfldd.c: In function 'parse_integer':
dcfldd.c:384:20: error: too many arguments to function 'xstrtoumax'; expected 0, have 5
  384 | #  define __strtol xstrtoumax
      |                    ^~~~~~~~~~
dcfldd.c:397:27: note: in expansion of macro '__strtol'
  397 |     enum strtol_error e = __strtol(str, &suffix, 10, &n, "bcEGkMPTwYZ0");
      |                           ^~~~~~~~
In file included from dcfldd.c:59:
xstrtol.h:30:19: note: declared here
   30 | _DECLARE_XSTRTOL (xstrtoumax, uintmax_t)
      |                   ^~~~~~~~~~
xstrtol.h:26:5: note: in definition of macro '_DECLARE_XSTRTOL'
   26 |     name PARAMS ((const char *s, char **ptr, int base, \
      |     ^~~~
dcfldd.c: In function 'main':
dcfldd.c:708:5: error: too many arguments to function 'parse_long_options'; expected 0, have 7
  708 |     parse_long_options(argc, argv, PROGRAM_NAME, PACKAGE, VERSION,
      |     ^~~~~~~~~~~~~~~~~~ ~~~~
In file included from dcfldd.c:57:
long-options.h:29:3: note: declared here
   29 |   parse_long_options PARAMS ((int _argc,
      |   ^~~~~~~~~~~~~~~~~~
make[2]: *** [Makefile:453: dcfldd.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o split.o split.c
In file included from system.h:268,
                 from dcfldd.h:42,
                 from split.c:30:
sys2.h:297:7: error: conflicting types for 'ttyname'; have 'char *(void)'
  297 | char *ttyname ();
      |       ^~~~~~~
In file included from system.h:33:
/usr/include/unistd.h:799:14: note: previous declaration of 'ttyname' with type 'char *(int)'
  799 | extern char *ttyname (int __fd) __THROW;
      |              ^~~~~~~
make[2]: *** [Makefile:453: split.o] Error 1
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o human.o human.c
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o sha1.o sha1.c
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[2]: Entering directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
gcc -DHAVE_CONFIG_H -I. -I..    -fgnu89-inline -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 -c -o sha2.o sha2.c
make[2]: Leaving directory '/home/pterjan/rpmbuild/BUILD/dcfldd-1.9.1-build/dcfldd-1.9.1/src'
make[1]: *** [Makefile:465: all-recursive] Error 1
make: *** [Makefile:363: all] Error 2
error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.bLFwJH (%build)

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