Hi Simon,
> The purpose of this release is to do testing before the final 2.6
> release.
When I build this package on a GNU system with CPPFLAGS="-Wall", I see
a larger number of warnings, most of which seem relevant.
They raise certain questions whether these parts of inetutils are reliable
and attack-proof. Find attached the log file.
Bruno
make all-recursive
make[1]: Entering directory '/BUILD/inetutils-2.5.90/build-64'
Making all in lib
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/lib'
GEN alloca.h
GEN arpa/inet.h
GEN ctype.h
GEN dirent.h
GEN error.h
GEN fcntl.h
GEN float.h
GEN getopt.h
GEN getopt-cdefs.h
GEN malloc/dynarray.gl.h
GEN malloc/dynarray-skeleton.gl.h
GEN malloc/scratch_buffer.gl.h
GEN glob.h
GEN glob-libc.gl.h
GEN inttypes.h
GEN langinfo.h
GEN limits.h
GEN locale.h
GEN netdb.h
GEN obstack.h
GEN poll.h
GEN pthread.h
GEN pty.h
GEN sched.h
GEN signal.h
GEN stdckdint.h
GEN stddef.h
GEN stdio.h
GEN stdlib.h
GEN string.h
GEN strings.h
GEN sys/ioctl.h
GEN sys/random.h
GEN sys/select.h
GEN sys/socket.h
GEN sys/stat.h
GEN sys/time.h
GEN sys/types.h
GEN sys/uio.h
GEN termios.h
GEN time.h
GEN uchar.h
GEN unicase.h
GEN unictype.h
GEN uninorm.h
GEN unistd.h
GEN unistr.h
GEN unitypes.h
GEN utmp.h
GEN wchar.h
GEN wctype.h
make all-recursive
make[3]: Entering directory '/BUILD/inetutils-2.5.90/build-64/lib'
make[4]: Entering directory '/BUILD/inetutils-2.5.90/build-64/lib'
CC libgnu_a-argp-ba.o
CC libgnu_a-argp-eexst.o
CC libgnu_a-argp-fmtstream.o
CC libgnu_a-argp-fs-xinl.o
CC libgnu_a-argp-help.o
CC libgnu_a-argp-parse.o
CC libgnu_a-argp-pin.o
CC libgnu_a-argp-pv.o
CC libgnu_a-argp-pvh.o
CC libgnu_a-argp-xinl.o
CC libgnu_a-argp-version-etc.o
CC libgnu_a-arpa_inet.o
CC libgnu_a-openat-proc.o
CC libgnu_a-basename-lgpl.o
CC libgnu_a-bitrotate.o
CC libgnu_a-btoc32.o
CC libgnu_a-btowc.o
CC libgnu_a-c32_apply_type_test.o
CC libgnu_a-c32_get_type_test.o
CC libgnu_a-c32isalnum.o
CC libgnu_a-c32isalpha.o
CC libgnu_a-c32isblank.o
CC libgnu_a-c32iscntrl.o
CC libgnu_a-c32isdigit.o
CC libgnu_a-c32isgraph.o
CC libgnu_a-c32islower.o
CC libgnu_a-c32isprint.o
CC libgnu_a-c32ispunct.o
CC libgnu_a-c32isspace.o
CC libgnu_a-c32isupper.o
CC libgnu_a-c32isxdigit.o
CC libgnu_a-c32tolower.o
CC libgnu_a-chdir-long.o
CC libgnu_a-cloexec.o
CC libgnu_a-cycle-check.o
CC libgnu_a-dirname-lgpl.o
CC libgnu_a-stripslash.o
CC libgnu_a-exitfail.o
CC libgnu_a-fcntl.o
CC libgnu_a-creat-safer.o
CC libgnu_a-open-safer.o
CC libgnu_a-fd-hook.o
CC libgnu_a-fd-safer-flag.o
CC libgnu_a-dup-safer-flag.o
CC libgnu_a-filemode.o
CC libgnu_a-filenamecat-lgpl.o
CC libgnu_a-float.o
CC libgnu_a-fopen-safer.o
CC libgnu_a-fseek.o
CC libgnu_a-fseeko.o
CC libgnu_a-fts.o
CC libgnu_a-getopt.o
CC libgnu_a-getopt1.o
CC libgnu_a-getprogname.o
CC libgnu_a-gettime.o
CC libgnu_a-getugroups.o
CC malloc/libgnu_a-dynarray_at_failure.o
CC malloc/libgnu_a-dynarray_emplace_enlarge.o
CC malloc/libgnu_a-dynarray_finalize.o
CC malloc/libgnu_a-dynarray_resize.o
CC malloc/libgnu_a-dynarray_resize_clear.o
CC malloc/libgnu_a-scratch_buffer_grow.o
CC malloc/libgnu_a-scratch_buffer_grow_preserve.o
CC malloc/libgnu_a-scratch_buffer_set_array_size.o
CC libgnu_a-glob.o
CC libgnu_a-globfree.o
CC libgnu_a-glob_pattern_p.o
CC libgnu_a-hard-locale.o
CC libgnu_a-hash.o
CC libgnu_a-i-ring.o
CC libgnu_a-ialloc.o
CC libgnu_a-imaxtostr.o
CC libgnu_a-inttostr.o
CC libgnu_a-offtostr.o
CC libgnu_a-uinttostr.o
CC libgnu_a-umaxtostr.o
CC libgnu_a-ioctl.o
CC libgnu_a-localcharset.o
CC glthread/libgnu_a-lock.o
CC libgnu_a-malloca.o
CC libgnu_a-mbrtoc32.o
CC libgnu_a-mbrtowc.o
CC libgnu_a-mbsrtoc32s.o
CC libgnu_a-mbsrtowcs.o
CC libgnu_a-mbszero.o
CC libgnu_a-memset_explicit.o
CC libgnu_a-mgetgroups.o
CC libgnu_a-obstack.o
CC glthread/libgnu_a-once.o
CC libgnu_a-openat-die.o
CC libgnu_a-openat-safer.o
CC libgnu_a-opendirat.o
CC libgnu_a-progname.o
CC libgnu_a-read-file.o
CC libgnu_a-readutmp.o
CC libgnu_a-same-inode.o
CC libgnu_a-save-cwd.o
CC libgnu_a-setlocale_null.o
CC libgnu_a-setlocale_null-unlocked.o
CC libgnu_a-sockets.o
CC libgnu_a-stat-time.o
CC libgnu_a-strnlen1.o
CC libgnu_a-strtoll.o
CC libgnu_a-sys_socket.o
CC libgnu_a-tempname.o
CC glthread/libgnu_a-threadlib.o
CC libgnu_a-timespec.o
CC libgnu_a-timespec-add.o
CC libgnu_a-timespec-sub.o
CC unicase/libgnu_a-tolower.o
CC unictype/libgnu_a-ctype_alnum.o
CC unictype/libgnu_a-ctype_alpha.o
CC unictype/libgnu_a-ctype_blank.o
CC unictype/libgnu_a-ctype_cntrl.o
CC unictype/libgnu_a-ctype_digit.o
CC unictype/libgnu_a-ctype_graph.o
CC unictype/libgnu_a-ctype_lower.o
CC unictype/libgnu_a-ctype_print.o
CC unictype/libgnu_a-ctype_punct.o
CC unictype/libgnu_a-ctype_space.o
CC unictype/libgnu_a-ctype_upper.o
CC unictype/libgnu_a-ctype_xdigit.o
CC libgnu_a-unistd.o
CC libgnu_a-dup-safer.o
CC libgnu_a-fd-safer.o
CC libgnu_a-pipe-safer.o
CC unistr/libgnu_a-u32-chr.o
CC unistr/libgnu_a-u32-cpy.o
CC unistr/libgnu_a-u32-pcpy.o
CC unistr/libgnu_a-u32-strcat.o
CC unistr/libgnu_a-u32-strlen.o
CC libgnu_a-vaszprintf.o
CC libgnu_a-aszprintf.o
CC libgnu_a-version-etc.o
CC libgnu_a-version-etc-fsf.o
CC libgnu_a-vsnzprintf.o
CC libgnu_a-wctype-h.o
CC libgnu_a-xmalloc.o
CC libgnu_a-xalloc-die.o
CC libgnu_a-xgetcwd.o
CC libgnu_a-xgetdomainname.o
CC libgnu_a-xgethostname.o
CC libgnu_a-xsize.o
CC libgnu_a-xstrtoimax.o
CC libgnu_a-xstrtol.o
CC libgnu_a-xstrtoul.o
CC libgnu_a-xvasprintf.o
CC libgnu_a-xasprintf.o
CC asnprintf.o
CC fopen.o
CC mbsrtoc32s-state.o
CC mbsrtowcs-state.o
CC printf-args.o
CC printf-parse.o
CC vasnprintf.o
AR libgnu.a
make[4]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/lib'
make[3]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/lib'
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/lib'
Making all in libinetutils
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/libinetutils'
CC argcv.o
CC cleansess.o
../../libinetutils/cleansess.c: In function 'cleanup_session':
../../libinetutils/cleansess.c:65:3: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result]
65 | chown (tty, 0, 0);
| ^~~~~~~~~~~~~~~~~
../../libinetutils/cleansess.c:67:3: warning: ignoring return value of 'fchown' declared with attribute 'warn_unused_result' [-Wunused-result]
67 | fchown (pty_fd, 0, 0);
| ^~~~~~~~~~~~~~~~~~~~~
CC daemon.o
CC defauthors.o
CC if_index.o
CC kcmd.o
CC kerberos5.o
CC krcmd.o
CC localhost.o
CC logwtmpko.o
In file included from ../../libinetutils/logwtmpko.c:26:
../../libinetutils/logwtmp.c: In function '_logwtmp':
../../libinetutils/logwtmp.c:79:9: warning: ignoring return value of 'ftruncate' declared with attribute 'warn_unused_result' [-Wunused-result]
79 | ftruncate (fd, st.st_size);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
CC setsig.o
CC shishi.o
CC tftpsubs.o
CC ttymsg.o
CC utmp_init.o
CC utmp_logout.o
AR libinetutils.a
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/libinetutils'
Making all in libtelnet
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/libtelnet'
CC auth.o
CC enc_des.o
CC encrypt.o
CC forward.o
CC genget.o
CC kerberos.o
CC kerberos5.o
CC misc.o
CC read_passwd.o
CC shishi.o
AR libtelnet.a
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/libtelnet'
Making all in libicmp
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/libicmp'
CC icmp_echo.o
CC icmp_timestamp.o
CC icmp_address.o
CC icmp_cksum.o
AR libicmp.a
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/libicmp'
Making all in libls
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/libls'
CC cmp.o
CC stat_flags.o
CC ls.o
CC print.o
CC util.o
AR libls.a
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/libls'
Making all in src
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/src'
CC hostname.o
CCLD hostname
CC dnsdomainname.o
CCLD dnsdomainname
CC logger.o
../../src/logger.c: In function 'send_to_syslog':
../../src/logger.c:336:7: warning: ignoring return value of 'writev' declared with attribute 'warn_unused_result' [-Wunused-result]
336 | writev (fileno (stderr), iov, ioptr - iov + 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CCLD logger
CC rcp.o
../../src/rcp.c: In function 'source':
../../src/rcp.c:765:7: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
765 | write (rem, buf, strlen (buf));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/rcp.c:790:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
790 | write (rem, bp->buf, amt);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
../../src/rcp.c:801:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
801 | write (rem, "", 1);
| ^~~~~~~~~~~~~~~~~~
../../src/rcp.c: In function 'rsource':
../../src/rcp.c:851:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
851 | write (rem, buf, strlen (buf));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/rcp.c:882:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
882 | write (rem, "E\n", 2);
| ^~~~~~~~~~~~~~~~~~~~~
../../src/rcp.c: In function 'sink':
../../src/rcp.c:917:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
917 | write (rem, "", 1);
| ^~~~~~~~~~~~~~~~~~
../../src/rcp.c:939:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
939 | write (STDERR_FILENO, buf + 1, strlen (buf + 1));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/rcp.c:947:11: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
947 | write (rem, "", 1);
| ^~~~~~~~~~~~~~~~~~
../../src/rcp.c:972:11: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
972 | write (rem, "", 1);
| ^~~~~~~~~~~~~~~~~~
../../src/rcp.c:1073:7: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
1073 | write (rem, "", 1);
| ^~~~~~~~~~~~~~~~~~
../../src/rcp.c:1167:11: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
1167 | write (rem, "", 1);
| ^~~~~~~~~~~~~~~~~~
../../src/rcp.c: In function 'response':
../../src/rcp.c:1348:9: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
1348 | write (STDERR_FILENO, rbuf, cp - rbuf);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/rcp.c: In function 'sink':
../../src/rcp.c:1163:11: warning: 'wrerrno' may be used uninitialized in this function [-Wmaybe-uninitialized]
1163 | run_err ("%s: %s", np, strerror (wrerrno));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CCLD rcp
CC rexec.o
CCLD rexec
CC rlogin.o
../../src/rlogin.c: In function 'writer':
../../src/rlogin.c:1046:17: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
1046 | write (rem, &escapechar, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/rlogin.c: In function 'echo':
../../src/rlogin.c:1108:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
1108 | write (STDOUT_FILENO, buf, p - buf);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/rlogin.c: In function 'sendwindow':
../../src/rlogin.c:1167:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
1167 | write (rem, obuf, sizeof obuf);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CCLD rlogin
CC rsh.o
../../src/rsh.c: In function 'talk':
../../src/rsh.c:749:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
749 | write (STDERR_FILENO, buf, cc);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/rsh.c:772:13: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
772 | write (STDOUT_FILENO, buf, cc);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/rsh.c: In function 'sendsig':
../../src/rsh.c:801:5: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
801 | write (rfd2, &signo, 1);
| ^~~~~~~~~~~~~~~~~~~~~~~
CCLD rsh
CC tftp.o
CCLD tftp
CC traceroute.o
CCLD traceroute
CC inetd.o
../../src/inetd.c: In function 'discard_dg':
../../src/inetd.c:1563:3: warning: ignoring return value of 'read' declared with attribute 'warn_unused_result' [-Wunused-result]
1563 | read (s, buffer, sizeof buffer);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/inetd.c: In function 'machtime_stream':
../../src/inetd.c:1687:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
1687 | write (s, (char *) &result, sizeof result);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/inetd.c: In function 'daytime_stream':
../../src/inetd.c:1720:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
1720 | write (s, buffer, strlen (buffer));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/inetd.c: In function 'tcpmux':
../../src/inetd.c:1779:33: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
1779 | #define strwrite(fd, buf) write(fd, buf, sizeof(buf)-1)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/inetd.c:1791:7: note: in expansion of macro 'strwrite'
1791 | strwrite (s, "-Error reading service name\r\n");
| ^~~~~~~~
../../src/inetd.c:1809:11: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
1809 | write (s, sep->se_service, strlen (sep->se_service));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/inetd.c:1779:33: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
1779 | #define strwrite(fd, buf) write(fd, buf, sizeof(buf)-1)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/inetd.c:1810:11: note: in expansion of macro 'strwrite'
1810 | strwrite (s, "\r\n");
| ^~~~~~~~
../../src/inetd.c:1779:33: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
1779 | #define strwrite(fd, buf) write(fd, buf, sizeof(buf)-1)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/inetd.c:1822:15: note: in expansion of macro 'strwrite'
1822 | strwrite (s, "+Go\r\n");
| ^~~~~~~~
../../src/inetd.c:1779:33: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
1779 | #define strwrite(fd, buf) write(fd, buf, sizeof(buf)-1)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/inetd.c:1828:3: note: in expansion of macro 'strwrite'
1828 | strwrite (s, "-Service not available\r\n");
| ^~~~~~~~
../../src/inetd.c: In function 'set_proc_title':
../../src/inetd.c:1485:42: warning: '%s' directive output may be truncated writing up to 79 bytes into a region of size 77 [-Wformat-truncation=]
1485 | snprintf (buf, sizeof buf, "-%s [%s]", a, buf2);
| ^~ ~~~~
In file included from /usr/include/stdio.h:894,
from ../lib/stdio.h:55,
from ../../src/inetd.c:123:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:71:10: note: '__builtin___snprintf_chk' output 5 or more bytes (assuming 84) into a destination of size 80
71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
72 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
CCLD inetd
CC rexecd.o
../../src/rexecd.c: In function 'doit':
../../src/rexecd.c:494:7: warning: ignoring return value of 'pipe' declared with attribute 'warn_unused_result' [-Wunused-result]
494 | pipe (pv);
| ^~~~~~~~~
../../src/rexecd.c:551:21: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
551 | write (s, buf, cc);
| ^~~~~~~~~~~~~~~~~~
../../src/rexecd.c:649:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
649 | write (STDERR_FILENO, "\0", 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/rexecd.c: In function 'die':
../../src/rexecd.c:678:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
678 | write (STDERR_FILENO, buf, n);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/rexecd.c: In function 'doit':
../../src/rexecd.c:252:7: warning: 's' may be used uninitialized in this function [-Wmaybe-uninitialized]
252 | int s, ret;
| ^
CCLD rexecd
CC rlogind.o
../../src/rlogind.c: In function 'rlogind_auth':
../../src/rlogind.c:938:7: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
938 | write (fd, "", 1);
| ^~~~~~~~~~~~~~~~~
../../src/rlogind.c: In function 'cleanup':
../../src/rlogind.c:2019:3: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result]
2019 | chown (line, 0, 0);
| ^~~~~~~~~~~~~~~~~~
../../src/rlogind.c:2022:3: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result]
2022 | chown (line, 0, 0);
| ^~~~~~~~~~~~~~~~~~
../../src/rlogind.c: In function 'rlogind_error':
../../src/rlogind.c:2077:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
2077 | write (f, buf, bp + len - buf);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../src/rlogind.c:2074:54: warning: '%s' directive output may be truncated writing up to 8191 bytes into a region of size 8183 [-Wformat-truncation=]
2074 | snprintf (bp, sizeof buf - (bp - buf), "rlogind: %s\r\n", buf2);
| ^~ ~~~~
In file included from /usr/include/stdio.h:894,
from ../lib/stdio.h:55,
from ../../src/rlogind.c:94:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:71:10: note: '__builtin___snprintf_chk' output between 12 and 8203 bytes into a destination of size 8192
71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
72 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
../../src/rlogind.c:2072:25: warning: '%s' directive output may be truncated writing up to 8191 bytes into a region of size 8183 [-Wformat-truncation=]
2072 | "rlogind: %s: %s.\r\n", buf2, strerror (errno));
| ^~ ~~~~
In file included from /usr/include/stdio.h:894,
from ../lib/stdio.h:55,
from ../../src/rlogind.c:94:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:71:10: note: '__builtin___snprintf_chk' output 15 or more bytes (assuming 8206) into a destination of size 8192
71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
72 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
CCLD rlogind
CC rshd.o
../../src/rshd.c: In function 'doit':
../../src/rshd.c:1690:25: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
1690 | write (s, buf, cc);
| ^~~~~~~~~~~~~~~~~~
../../src/rshd.c: In function 'rshd_error':
../../src/rshd.c:2010:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
2010 | write (STDERR_FILENO, buf, len + strlen (bp));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/string.h:535,
from ../lib/string.h:41,
from ../../src/rshd.c:137:
In function 'strncat',
inlined from 'doit' at ../../src/rshd.c:1926:3:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:138:10: warning: '__builtin___strncat_chk' output may be truncated copying 127 bytes from a string of length 1024 [-Wstringop-truncation]
138 | return __builtin___strncat_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
139 | __glibc_objsize (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~
CCLD rshd
CC syslogd.o
../../src/syslogd.c: In function 'wallmsg':
../../src/syslogd.c:1638:29: warning: pointer targets in passing argument 2 of 'read_utmp' differ in signedness [-Wpointer-sign]
1638 | if (read_utmp (UTMP_FILE, &utmp_count, &utmpbuf,
| ^~~~~~~~~~~
| |
| size_t * {aka long unsigned int *}
In file included from ../../src/syslogd.c:137:
../../lib/readutmp.h:330:41: note: expected 'idx_t *' {aka 'long int *'} but argument is of type 'size_t *' {aka 'long unsigned int *'}
330 | int read_utmp (char const *file, idx_t *n_entries, STRUCT_UTMP **utmp_buf,
| ~~~~~~~^~~~~~~~~
../../src/syslogd.c:1648:43: warning: argument to 'sizeof' in 'strncpy' call is the same expression as the source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
1648 | strncpy (line, utp->ut_line, sizeof (utp->ut_line));
| ^
../../src/syslogd.c:1666:30: warning: argument to 'sizeof' in 'strncmp' call is the same expression as the second source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
1666 | sizeof (UT_USER (utp))))
| ^
../../src/syslogd.c: In function 'cfline':
../../src/syslogd.c:2270:50: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 177 [-Wformat-truncation=]
2270 | "unknown priority name \"%s\"", bp);
| ^~
In file included from /usr/include/stdio.h:894,
from ../lib/stdio.h:55,
from ../../lib/argp.h:27,
from ../../src/syslogd.c:97:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:71:10: note: '__builtin___snprintf_chk' output between 25 and 1048 bytes into a destination of size 200
71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
72 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
../../src/syslogd.c:2317:54: warning: '%s' directive output may be truncated writing up to 1023 bytes into a region of size 177 [-Wformat-truncation=]
2317 | "unknown facility name \"%s\"", buf);
| ^~ ~~~
In file included from /usr/include/stdio.h:894,
from ../lib/stdio.h:55,
from ../../lib/argp.h:27,
from ../../src/syslogd.c:97:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:71:10: note: '__builtin___snprintf_chk' output between 25 and 1048 bytes into a destination of size 200
71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
72 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
73 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
CCLD syslogd
CC tftpd.o
CCLD tftpd
CC uucpd.o
../../src/uucpd.c: In function 'dologin':
../../src/uucpd.c:421:7: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
421 | write (f, (char *) &ll, sizeof (ll));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CCLD uucpd
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/src'
Making all in telnet
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/telnet'
CC authenc.o
CC commands.o
CC main.o
CC network.o
CC ring.o
CC sys_bsd.o
CC telnet.o
CC terminal.o
CC tn3270.o
CC utilities.o
CCLD telnet
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/telnet'
Making all in telnetd
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/telnetd'
CC telnetd.o
In file included from ../../telnetd/telnetd.c:21:
../../telnetd/telnetd.c: In function 'telnetd_run':
../../telnetd/telnetd.c:709:46: warning: pointer targets in passing argument 2 of 'printsub' differ in signedness [-Wpointer-sign]
709 | printsub ('>', data + 2, sizeof (data) - 2));
| ~~~~~^~~
| |
| char *
../../telnetd/telnetd.h:81:59: note: in definition of macro 'DEBUG'
81 | #define DEBUG(mode,level,c) if (debug_level[mode]>=level) c
| ^
../../telnetd/telnetd.h:283:28: note: expected 'unsigned char *' but argument is of type 'char *'
283 | extern void printsub (int, unsigned char *, int);
| ^~~~~~~~~~~~~~~
CC pty.o
../../telnetd/pty.c: In function 'cleanup':
../../telnetd/pty.c:165:3: warning: ignoring return value of 'chown' declared with attribute 'warn_unused_result' [-Wunused-result]
165 | chown (line, 0, 0);
| ^~~~~~~~~~~~~~~~~~
CC term.o
CC utility.o
../../telnetd/utility.c: In function 'fatal':
../../telnetd/utility.c:682:3: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
682 | write (f, buf, (int) strlen (buf));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC state.o
CC termstat.o
In file included from ../../telnetd/termstat.c:50:
../../telnetd/termstat.c: In function 'localstat':
../../telnetd/termstat.c:315:38: warning: pointer targets in passing argument 2 of 'printsub' differ in signedness [-Wpointer-sign]
315 | printsub ('>', data + 2, sizeof (data) - 2));
| ~~~~~^~~
| |
| char *
../../telnetd/telnetd.h:81:59: note: in definition of macro 'DEBUG'
81 | #define DEBUG(mode,level,c) if (debug_level[mode]>=level) c
| ^
../../telnetd/telnetd.h:283:28: note: expected 'unsigned char *' but argument is of type 'char *'
283 | extern void printsub (int, unsigned char *, int);
| ^~~~~~~~~~~~~~~
../../telnetd/termstat.c:346:38: warning: pointer targets in passing argument 2 of 'printsub' differ in signedness [-Wpointer-sign]
346 | printsub ('>', data + 2, sizeof (data) - 2));
| ~~~~~^~~
| |
| char *
../../telnetd/telnetd.h:81:59: note: in definition of macro 'DEBUG'
81 | #define DEBUG(mode,level,c) if (debug_level[mode]>=level) c
| ^
../../telnetd/telnetd.h:283:28: note: expected 'unsigned char *' but argument is of type 'char *'
283 | extern void printsub (int, unsigned char *, int);
| ^~~~~~~~~~~~~~~
../../telnetd/termstat.c: In function 'flowstat':
../../telnetd/termstat.c:400:38: warning: pointer targets in passing argument 2 of 'printsub' differ in signedness [-Wpointer-sign]
400 | printsub ('>', data + 2, sizeof (data) - 2));
| ~~~~~^~~
| |
| char *
../../telnetd/telnetd.h:81:59: note: in definition of macro 'DEBUG'
81 | #define DEBUG(mode,level,c) if (debug_level[mode]>=level) c
| ^
../../telnetd/telnetd.h:283:28: note: expected 'unsigned char *' but argument is of type 'char *'
283 | extern void printsub (int, unsigned char *, int);
| ^~~~~~~~~~~~~~~
../../telnetd/termstat.c:411:38: warning: pointer targets in passing argument 2 of 'printsub' differ in signedness [-Wpointer-sign]
411 | printsub ('>', data + 2, sizeof (data) - 2));
| ~~~~~^~~
| |
| char *
../../telnetd/telnetd.h:81:59: note: in definition of macro 'DEBUG'
81 | #define DEBUG(mode,level,c) if (debug_level[mode]>=level) c
| ^
../../telnetd/telnetd.h:283:28: note: expected 'unsigned char *' but argument is of type 'char *'
283 | extern void printsub (int, unsigned char *, int);
| ^~~~~~~~~~~~~~~
../../telnetd/termstat.c: In function 'clientstat':
../../telnetd/termstat.c:491:44: warning: pointer targets in passing argument 2 of 'printsub' differ in signedness [-Wpointer-sign]
491 | printsub ('>', data + 2, sizeof (data) - 2));
| ~~~~~^~~
| |
| char *
../../telnetd/telnetd.h:81:59: note: in definition of macro 'DEBUG'
81 | #define DEBUG(mode,level,c) if (debug_level[mode]>=level) c
| ^
../../telnetd/telnetd.h:283:28: note: expected 'unsigned char *' but argument is of type 'char *'
283 | extern void printsub (int, unsigned char *, int);
| ^~~~~~~~~~~~~~~
../../telnetd/termstat.c:557:44: warning: pointer targets in passing argument 2 of 'printsub' differ in signedness [-Wpointer-sign]
557 | printsub ('>', data + 2, sizeof (data) - 2));
| ~~~~~^~~
| |
| char *
../../telnetd/telnetd.h:81:59: note: in definition of macro 'DEBUG'
81 | #define DEBUG(mode,level,c) if (debug_level[mode]>=level) c
| ^
../../telnetd/telnetd.h:283:28: note: expected 'unsigned char *' but argument is of type 'char *'
283 | extern void printsub (int, unsigned char *, int);
| ^~~~~~~~~~~~~~~
CC slc.o
CCLD telnetd
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/telnetd'
Making all in ftp
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/ftp'
CC cmds.o
CC cmdtab.o
CC domacro.o
CC ftp.o
../../ftp/ftp.c: In function 'ptransfer':
../../ftp/ftp.c:1628:13: warning: unused variable 'bs' [-Wunused-variable]
1628 | double s, bs;
| ^~
../../ftp/ftp.c:1628:10: warning: unused variable 's' [-Wunused-variable]
1628 | double s, bs;
| ^
CC main.o
CC ruserpass.o
CCLD ftp
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/ftp'
Making all in ftpd
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/ftpd'
CC ftpcmd.o
CC ftpd.o
../../ftpd/ftpd.c: In function 'main':
../../ftpd/ftpd.c:474:3: warning: ignoring return value of 'freopen' declared with attribute 'warn_unused_result' [-Wunused-result]
474 | freopen (PATH_DEVNULL, "w", stderr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC popen.o
CC pam.o
CC auth.o
CC conf.o
CC server_mode.o
CCLD ftpd
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/ftpd'
Making all in talk
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/talk'
CC ctl.o
CC ctl_transact.o
CC display.o
CC get_addrs.o
CC get_names.o
CC init_disp.o
CC invite.o
CC io.o
../../talk/io.c: In function 'talk':
../../talk/io.c:135:11: warning: ignoring return value of 'write' declared with attribute 'warn_unused_result' [-Wunused-result]
135 | write (sockt, buf, nb);
| ^~~~~~~~~~~~~~~~~~~~~~
CC look_up.o
CC msgs.o
CC talk.o
CCLD talk
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/talk'
Making all in talkd
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/talkd'
CC acl.o
CC announce.o
CC print.o
CC process.o
../../talkd/process.c: In function 'find_user':
../../talkd/process.c:218:29: warning: pointer targets in passing argument 2 of 'read_utmp' differ in signedness [-Wpointer-sign]
218 | if (read_utmp (UTMP_FILE, &utmp_count, &utmpbuf,
| ^~~~~~~~~~~
| |
| size_t * {aka long unsigned int *}
In file included from ../../talkd/process.c:22:
../../lib/readutmp.h:330:41: note: expected 'idx_t *' {aka 'long int *'} but argument is of type 'size_t *' {aka 'long unsigned int *'}
330 | int read_utmp (char const *file, idx_t *n_entries, STRUCT_UTMP **utmp_buf,
| ~~~~~~~^~~~~~~~~
../../talkd/process.c:224:50: warning: argument to 'sizeof' in 'strncmp' call is the same expression as the first source; did you mean to provide an explicit length? [-Wsizeof-pointer-memaccess]
224 | if (!strncmp (UT_USER (uptr), name, sizeof (UT_USER (uptr))))
| ^
CC table.o
CC talkd.o
CCLD talkd
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/talkd'
Making all in whois
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/whois'
make all-am
make[3]: Entering directory '/BUILD/inetutils-2.5.90/build-64/whois'
CC whois.o
CCLD whois
make[3]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/whois'
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/whois'
Making all in ping
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/ping'
CC ping.o
CC ping_common.o
CC ping_echo.o
CC ping_address.o
CC ping_router.o
CC ping_timestamp.o
CC libping.o
CCLD ping
CC ping6.o
CCLD ping6
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/ping'
Making all in ifconfig
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/ifconfig'
Making all in system
make[3]: Entering directory '/BUILD/inetutils-2.5.90/build-64/ifconfig/system'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/ifconfig/system'
make[3]: Entering directory '/BUILD/inetutils-2.5.90/build-64/ifconfig'
CC ifconfig.o
CC flags.o
CC changeif.o
CC options.o
CC printif.o
CC system.o
CCLD ifconfig
make[3]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/ifconfig'
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/ifconfig'
Making all in doc
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/doc'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/doc'
Making all in man
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/man'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/man'
Making all in tests
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64/tests'
sed -e 's,[@]GREP[@],/arch/local/x86_64-linux-gnu/bin/grep,g' -e 's,[@]EGREP[@],/arch/local/x86_64-linux-gnu/bin/grep -E,g' -e 's,[@]FGREP[@],/arch/local/x86_64-linux-gnu/bin/grep -F,g' -e 's,[@]SED[@],/usr/bin/sed,g' -e 's,[@]DD[@],/arch/local/x86_64-linux/bin/dd,g' -e 's,[@]MKTEMP[@],/arch/local/x86_64-linux/bin/mktemp,g' -e 's,[@]NETSTAT[@],/usr/bin/netstat,g' -e 's,[@]TARGET[@],127.0.0.1,g' -e 's,[@]TARGET6[@],::1,g' -e 's,[@]TEST_IPV4[@],auto,g' -e 's,[@]TEST_IPV6[@],auto,g' < ../../tests/tools.sh.in > tools.sh
make all-am
make[3]: Entering directory '/BUILD/inetutils-2.5.90/build-64/tests'
CC identify.o
CCLD identify
CC ls.o
CCLD ls
make[3]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/tests'
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64/tests'
make[2]: Entering directory '/BUILD/inetutils-2.5.90/build-64'
make[2]: Leaving directory '/BUILD/inetutils-2.5.90/build-64'
make[1]: Leaving directory '/BUILD/inetutils-2.5.90/build-64'