D: [iurt_root_command] chroot Building target platforms: x86_64 Building for target x86_64 Installing /home/pterjan/rpmbuild/SRPMS/sendfile-2.1b-16.mga10.src.rpm Executing(%mkbuilddir): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.S7UICl Executing(%prep): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.2KHDz9 + umask 022 + cd /home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + cd /home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build + rm -rf sendfile-2.1b + /usr/lib/rpm/rpmuncompress -x /home/pterjan/rpmbuild/SOURCES/sendfile-2.1b.tar.bz2 + STATUS=0 + '[' 0 -ne 0 ']' + cd sendfile-2.1b + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/sendfile-2.1b-fix-str-fmt.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + /usr/lib/rpm/rpmuncompress /home/pterjan/rpmbuild/SOURCES/sendfile-fix-build-with-gcc14.patch + /usr/bin/patch -p0 -s --fuzz=0 --no-backup-if-mismatch -f + cp -af /usr/lib/rpm/mageia/config.guess /usr/lib/rpm/mageia/config.sub develop/ + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /home/pterjan/rpmbuild/tmp/rpm-tmp.7TuSYh + umask 022 + cd /home/pterjan/rpmbuild/BUILD/sendfile-2.1b-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 sendfile-2.1b + '[' 1 -eq 1 ']' + '[' 1 -eq 1 ']' + /usr/bin/make -O -j16 V=1 VERBOSE=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 -DLINUX' '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' ./makeconfig checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking target system type... x86_64-pc-linux-gnu checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking whether ln -s works... yes checking whether make sets $(MAKE)... yes checking for dirent.h that defines DIR... yes checking for library containing opendir... none required 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 for ANSI C header files... yes checking for sys/wait.h that is POSIX.1 compatible... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for stdlib.h... (cached) yes checking stddef.h usability... yes checking stddef.h presence... yes checking for stddef.h... yes checking for unistd.h... (cached) yes checking stdarg.h usability... yes checking stdarg.h presence... yes checking for stdarg.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking for string.h... (cached) yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking paths.h usability... yes checking paths.h presence... yes checking for paths.h... yes checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/statvfs.h usability... yes checking sys/statvfs.h presence... yes checking for sys/statvfs.h... yes checking for socket in -lsocket... no checking for gethostbyname in -lnsl... no checking for readline in -lreadline... yes checking for an ANSI C-conforming const... yes checking for uid_t in sys/types.h... yes checking for mode_t... yes checking for pid_t... yes checking for size_t... yes checking for struct stat.st_blksize... yes checking whether time.h and sys/time.h may both be included... yes checking whether struct tm is in sys/time.h or time.h... time.h checking for working alloca.h... yes checking for alloca... yes checking return type of signal handlers... void checking utime.h usability... yes checking utime.h presence... yes checking for utime.h... yes checking whether utime accepts a null argument... yes checking for gethostname... yes checking for gettimeofday... yes checking for mkdir... yes checking for socket... yes checking for uname... yes checking for strerror... yes checking for snprintf... yes configure: creating ./config.status config.status: creating ../src/config.h config.status: executing default-1 commands now in /home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src creating globals.h creating Makefile cd src; make make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' gcc -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 -DLINUX -c message.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' gcc -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 -DLINUX -c pstring.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' gcc -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 -DLINUX -c sendfile.c sendfile.c: In function 'main': sendfile.c:962:18: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 962 | signal(SIGTERM,cleanexit); | ^~~~~~~~~ | | | void (*)(void) In file included from sendfile.c:133: /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sendfile.c:186:6: note: 'cleanexit' declared here 186 | void cleanexit(); | ^~~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sendfile.c:963:18: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 963 | signal(SIGABRT,cleanexit); | ^~~~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sendfile.c:186:6: note: 'cleanexit' declared here 186 | void cleanexit(); | ^~~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sendfile.c:964:18: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 964 | signal(SIGQUIT,cleanexit); | ^~~~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sendfile.c:186:6: note: 'cleanexit' declared here 186 | void cleanexit(); | ^~~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sendfile.c:965:17: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 965 | signal(SIGHUP,cleanexit); | ^~~~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sendfile.c:186:6: note: 'cleanexit' declared here 186 | void cleanexit(); | ^~~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sendfile.c:966:17: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 966 | signal(SIGINT,cleanexit); | ^~~~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sendfile.c:186:6: note: 'cleanexit' declared here 186 | void cleanexit(); | ^~~~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sendfile.c:1165:32: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'off_t *' {aka 'long int *'} [-Wformat=] 1165 | sscanf(line,"SIZE %lld %lld",&size,&orgsize); | ~~~^ ~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld sendfile.c:1165:37: warning: format '%lld' expects argument of type 'long long int *', but argument 4 has type 'off_t *' {aka 'long int *'} [-Wformat=] 1165 | sscanf(line,"SIZE %lld %lld",&size,&orgsize); | ~~~^ ~~~~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld sendfile.c:1218:34: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off_t' {aka 'long int'} [-Wformat=] 1218 | snprintf(MAXS(sizes),"%lld %lld",size,orgsize); | ~~~^ ~~~~ | | | | | off_t {aka long int} | long long int | %ld sendfile.c:1218:39: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 1218 | snprintf(MAXS(sizes),"%lld %lld",size,orgsize); | ~~~^ ~~~~~~~ | | | | | off_t {aka long int} | long long int | %ld sendfile.c:1353:30: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off_t' {aka 'long int'} [-Wformat=] 1353 | snprintf(MAXS(sizes),"%lld %lld",size,orgsize); | ~~~^ ~~~~ | | | | | off_t {aka long int} | long long int | %ld sendfile.c:1353:35: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 1353 | snprintf(MAXS(sizes),"%lld %lld",size,orgsize); | ~~~^ ~~~~~~~ | | | | | off_t {aka long int} | long long int | %ld sendfile.c:1746:32: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off_t' {aka 'long int'} [-Wformat=] 1746 | snprintf(MAXS(sizes),"%lld %lld",size,orgsize); | ~~~^ ~~~~ | | | | | off_t {aka long int} | long long int | %ld sendfile.c:1746:37: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 1746 | snprintf(MAXS(sizes),"%lld %lld",size,orgsize); | ~~~^ ~~~~~~~ | | | | | off_t {aka long int} | long long int | %ld sendfile.c: In function 'forward': sendfile.c:2352:59: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'off_t *' {aka 'long int *'} [-Wformat=] 2352 | if (str_neq_nocase("SIZE",line,4)) sscanf(arg+1,"%lld",&size); | ~~~^ ~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld sendfile.c: In function 'list_spool': sendfile.c:2634:30: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 2634 | printf("%s@%s : %s (%lld KB)\n", | ~~~^ | | | long long int | %ld 2635 | oflp->to,hlp->host,file,(oflp->size+512)/1024); | ~~~~~~~~~~~~~~~~~~~~~ | | | off_t {aka long int} sendfile.c: In function 'linkspeed': sendfile.c:2549:3: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 2549 | fscanf(inf,"%d",&speed); | ^~~~~~~~~~~~~~~~~~~~~~~ make[1]: *** [Makefile:67: sendfile.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' make[1]: *** Waiting for unfinished jobs.... make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' gcc -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 -DLINUX -c sendmsg.c sendmsg.c: In function 'main': sendmsg.c:239:18: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 239 | signal(SIGTERM,cleanup); | ^~~~~~~ | | | void (*)(void) In file included from sendmsg.c:68: /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sendmsg.c:117:6: note: 'cleanup' declared here 117 | void cleanup(); | ^~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sendmsg.c:240:18: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 240 | signal(SIGABRT,cleanup); | ^~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sendmsg.c:117:6: note: 'cleanup' declared here 117 | void cleanup(); | ^~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sendmsg.c:241:18: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 241 | signal(SIGQUIT,cleanup); | ^~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sendmsg.c:117:6: note: 'cleanup' declared here 117 | void cleanup(); | ^~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sendmsg.c:242:17: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 242 | signal(SIGHUP,cleanup); | ^~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sendmsg.c:117:6: note: 'cleanup' declared here 117 | void cleanup(); | ^~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ sendmsg.c:243:17: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types] 243 | signal(SIGINT,cleanup); | ^~~~~~~ | | | void (*)(void) /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'void (*)(void)' 88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler) | ~~~~~~~~~~~~~~~^~~~~~~~~ sendmsg.c:117:6: note: 'cleanup' declared here 117 | void cleanup(); | ^~~~~~~ /usr/include/signal.h:72:16: note: '__sighandler_t' declared here 72 | typedef void (*__sighandler_t) (int); | ^~~~~~~~~~~~~~ make[1]: *** [Makefile:67: sendmsg.o] Error 1 make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' gcc -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 -DLINUX -c string.c string.c: In function 'sm_escchar': string.c:247:13: warning: old-style function definition [-Wold-style-definition] 247 | static char sm_escchar( c ) | ^~~~~~~~~~ string.c: In function 'simplematch': string.c:263:5: warning: old-style function definition [-Wold-style-definition] 263 | int simplematch( text, pattern, nocase ) | ^~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' gcc -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 -DLINUX -c io.c io.c: In function 'rmtmpdir': io.c:387:3: warning: ignoring return value of 'chdir' declared with attribute 'warn_unused_result' [-Wunused-result] 387 | chdir(cwd); | ^~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' gcc -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 -DLINUX -c utf7.c make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' gcc -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 -DLINUX -c net.c net.c: In function 'send_data': net.c:734:30: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'off_t *' {aka 'long int *'} [-Wformat=] 734 | sscanf(&reply[4],"%lld",&offset); | ~~~^ ~~~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld net.c:778:48: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 778 | snprintf(MAXS(tmp),"resuming %s at byte %lld",iso_name,offset); | ~~~^ ~~~~~~ | | | | | off_t {aka long int} | long long int | %ld net.c:783:54: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off_t' {aka 'long int'} [-Wformat=] 783 | snprintf(MAXS(tmp),"begin transfer of %s with %lld bytes",fname,size); | ~~~^ ~~~~ | | | | long long int off_t {aka long int} | %ld net.c:830:42: warning: format '%lld' expects argument of type 'long long int', but argument 6 has type 'off_t' {aka 'long int'} [-Wformat=] 830 | fprintf(stderr,"%s%s: %3d%% (%lld of %lld kB)\r", | ~~~^ | | | long long int | %ld 831 | tinfo,fname,percent, 832 | (bytes+offset-1)/1024+1,(size+offset-1)/1024+1); | ~~~~~~~~~~~~~~~~~~~~~~~ | | | off_t {aka long int} net.c:830:50: warning: format '%lld' expects argument of type 'long long int', but argument 7 has type 'off_t' {aka 'long int'} [-Wformat=] 830 | fprintf(stderr,"%s%s: %3d%% (%lld of %lld kB)\r", | ~~~^ | | | long long int | %ld 831 | tinfo,fname,percent, 832 | (bytes+offset-1)/1024+1,(size+offset-1)/1024+1); | ~~~~~~~~~~~~~~~~~~~~~~ | | | off_t {aka long int} net.c:896:28: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off_t' {aka 'long int'} [-Wformat=] 896 | fprintf(stderr,"%lld kB, ",bytes/1024); | ~~~^ ~~~~~~~~~~ | | | | | off_t {aka long int} | long long int | %ld net.c:898:28: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off_t' {aka 'long int'} [-Wformat=] 898 | fprintf(stderr,"%lld byte, ",bytes); | ~~~^ ~~~~~ | | | | | off_t {aka long int} | long long int | %ld net.c: In function 'getreply': net.c:568:39: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 4081 [-Wformat-truncation=] 568 | snprintf(MAXS(msg),"server error: %s",&reply[4]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:970, from net.c:71: In function 'snprintf', inlined from 'getreply' at net.c:568:5: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 15 and 4110 bytes into a destination of size 4095 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' gcc -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 -DLINUX -c address.c address.c: In function 'destination': address.c:140:5: warning: ignoring return value of 'symlink' declared with attribute 'warn_unused_result' [-Wunused-result] 140 | symlink(tmp,userconfig); | ^~~~~~~~~~~~~~~~~~~~~~~ address.c:134:28: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size 254 [-Wformat-truncation=] 134 | snprintf(user,FLEN-1,"%s %s",pwe->pw_name,gecos); | ^~ ~~~~~ In file included from /usr/include/stdio.h:970, from address.c:53: In function 'snprintf', inlined from 'destination' at address.c:134:3: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 2 or more bytes (assuming 257) into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ address.c: In function 'destination': address.c:190:33: warning: '/aliases' directive output may be truncated writing 8 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 190 | snprintf(MAXS(aliasfile),"%s/aliases",userconfig); | ^~~~~~~~ In function 'snprintf', inlined from 'destination' at address.c:190:5: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 9 and 4104 bytes into a destination of size 4095 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ address.c: In function 'destination': address.c:145:27: warning: '/msg@' directive output may be truncated writing 5 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 145 | snprintf(MAXS(tmp),"%s/msg@%s",userconfig,localhost); | ^~~~~ In function 'snprintf', inlined from 'destination' at address.c:145:5: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output 6 or more bytes (assuming 4101) into a destination of size 4095 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ address.c: In function 'destination': address.c:152:34: warning: '%s' directive output may be truncated writing up to 4095 bytes into a region of size 255 [-Wformat-truncation=] 152 | snprintf(recipient,FLEN-1,"%s",line); | ^~ ~~~~ In function 'snprintf', inlined from 'destination' at address.c:152:7: /usr/include/bits/stdio2.h:68:10: note: '__builtin_snprintf' output between 1 and 4096 bytes into a destination of size 255 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' make[1]: Entering directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' gcc -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 -DLINUX -c spool.c spool.c: In function 'scanspool': spool.c:314:26: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'off_t *' {aka 'long int *'} [-Wformat=] 314 | sscanf(arg,"%lld %lld",&csize,&osize); | ~~~^ ~~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld spool.c:314:31: warning: format '%lld' expects argument of type 'long long int *', but argument 4 has type 'off_t *' {aka 'long int *'} [-Wformat=] 314 | sscanf(arg,"%lld %lld",&csize,&osize); | ~~~^ ~~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld spool.c: In function 'scanoutspool': spool.c:637:24: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'off_t *' {aka 'long int *'} [-Wformat=] 637 | sscanf(arg,"%lld",&size); | ~~~^ ~~~~~ | | | | | off_t * {aka long int *} | long long int * | %ld spool.c: In function 'delete_sf': spool.c:791:29: warning: ' deleted' directive output may be truncated writing 8 bytes into a region of size between 0 and 4095 [-Wformat-truncation=] 791 | snprintf(MAXS(msg),"%s deleted",fname); | ^~~~~~~~ In file included from /usr/include/stdio.h:970, from spool.c:54: In function 'snprintf', inlined from 'delete_sf' at spool.c:791:7: /usr/include/bits/stdio2.h:68:10: note: '__builtin___snprintf_chk' output between 9 and 4104 bytes into a destination of size 4095 68 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ make[1]: Leaving directory '/home/pterjan/rpmbuild/BUILD/sendfile-2.1b-build/sendfile-2.1b/src' make: *** [Makefile:8: all] Error 2 error: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.7TuSYh (%build) RPM build errors: Bad exit status from /home/pterjan/rpmbuild/tmp/rpm-tmp.7TuSYh (%build) I: [iurt_root_command] ERROR: chroot