gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -DUSE_IPV6=1 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o dnstop.o dnstop.c
dnstop.c: In function ‘main’:
dnstop.c:1891:10: error: implicit declaration of function ‘strcasestr’; did you mean ‘strcasecmp’? [-Werror=implicit-function-declaration]
1891 | if (!strcasestr(bpf_program_str, "port "))
| ^~~~~~~~~~
| strcasecmp
dnstop.c: In function ‘allocate_anonymous_address’:
dnstop.c:350:13: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
350 | read(entropy_fd, buf, 4);
| ^~~~~~~~~~~~~~~~~~~~~~~~
dnstop.c:355:13: warning: ignoring return value of ‘read’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
355 | read(entropy_fd, buf, 16);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
dnstop.c: In function ‘Table_report’:
dnstop.c:1306:65: warning: ‘s
’ directive output may be truncated writing 2 bytes into a region of size between 0 and 40 [-Wformat-truncation=]
1306 | snprintf(fmt1, 64, "%%-%d.%ds %%-%d.%ds %%%ds %%%ds %%%ds\n", W1, W1, W2, W2, WC, WP, WP);
| ^~~ In file included from /usr/include/stdio.h:906,
from /usr/include/pcap/pcap.h:136,
from /usr/include/pcap.h:43,
from dnstop.c:21:
In function ‘snprintf’,
inlined from ‘Table_report’ at dnstop.c:1306:2: /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__builtin___snprintf_chk’ output between 27 and 67 bytes into a destination of size 64
54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
dnstop.c: In function ‘Table_report’:
dnstop.c:1307:63: warning: ‘%%’ directive output may be truncated writing 1 byte into a region of size between 0 and 40 [-Wformat-truncation=]
1307 | snprintf(fmt2, 64, "%%-%d.%ds %%-%d.%ds %%%dd %%%d.1f %%%d.1f\n", W1, W1, W2, W2, WC, WP, WP);
| ^~
In function ‘snprintf’,
inlined from ‘Table_report’ at dnstop.c:1307:2: /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__builtin___snprintf_chk’ output between 31 and 71 bytes into a destination of size 64
54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [<builtin>: dnstop.o] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 00:59:21 |
Calls: | 6,666 |
Calls today: | 4 |
Files: | 12,212 |
Messages: | 5,335,472 |