gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -pedantic -Wall -g -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include -Wdate-time -D_FORTIFY_SOURCE=2 -c -o ftp-ls.o ftp-ls.c
In file included from /usr/include/string.h:535,
from wput.h:42:
In function ‘memcpy’,
inlined from ‘bar_update’ at progress.c:387:4: /usr/include/x86_64-linux-gnu/bits/string_fortified.h:29:10: warning: ‘__builtin_memcpy’ accessing 92 bytes at offsets 32 and 36 overlaps 88 bytes at offset 36 [-Wrestrict]
29 | return __builtin___memcpy_chk (__dest, __src, __len,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
30 | __glibc_objsize0 (__dest));
| ~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ftp-ls.c:49:
ftp-ls.c: In function ‘ftp_parse_unix_ls’:
wget.h:16:17: error: implicit declaration of function ‘strdup’ [-Werror=implicit-function-declaration]
16 | #define xstrdup strdup
| ^~~~~~
ftp-ls.c:319:36: note: in expansion of macro ‘xstrdup’
319 | cur.linkto = xstrdup (p + 4);
| ^~~~~~~
wget.h:16:17: warning: incompatible implicit declaration of built-in function ‘strdup’ [-Wbuiltin-declaration-mismatch]
16 | #define xstrdup strdup
| ^~~~~~
ftp-ls.c:319:36: note: in expansion of macro ‘xstrdup’
319 | cur.linkto = xstrdup (p + 4);
| ^~~~~~~
ftp-ls.c: In function ‘ftp_parse_winnt_ls’:
wget.h:16:17: warning: incompatible implicit declaration of built-in function ‘strdup’ [-Wbuiltin-declaration-mismatch]
16 | #define xstrdup strdup
| ^~~~~~
ftp-ls.c:471:18: note: in expansion of macro ‘xstrdup’
471 | cur.name = xstrdup(tok);
| ^~~~~~~
ftp-ls.c: In function ‘ftp_parse_vms_ls’:
wget.h:16:17: warning: incompatible implicit declaration of built-in function ‘strdup’ [-Wbuiltin-declaration-mismatch]
16 | #define xstrdup strdup
| ^~~~~~
ftp-ls.c:698:18: note: in expansion of macro ‘xstrdup’
698 | cur.name = xstrdup(tok);
| ^~~~~~~
ftplib.c: In function ‘ftp_do_chmod’:
ftplib.c:625:36: warning: ‘%lo’ directive output may be truncated writing between 1 and 11 bytes into a region of size 7 [-Wformat-truncation=]
625 | snprintf(mode, 7, "%lo", (unsigned long) opt.chmod);
| ^~~
ftplib.c:625:35: note: directive argument in the range [0, 4294967295]
625 | snprintf(mode, 7, "%lo", (unsigned long) opt.chmod);
| ^~~~~
In file included from /usr/include/stdio.h:906,
from wput.h:41,
from utils.h:4,
from ftplib.c:21:
In function ‘snprintf’,
inlined from ‘ftp_do_chmod’ at ftplib.c:625:3: /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__builtin___snprintf_chk’ output between 2 and 12 bytes into a destination of size 7
54 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
55 | __glibc_objsize (__s), __fmt,
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
56 | __va_arg_pack ());
| ~~~~~~~~~~~~~~~~~
ftplib.c: In function ‘ftp_do_chmod’:
ftplib.c:623:36: warning: ‘%lo’ directive output may be truncated writing between 1 and 11 bytes into a region of size 7 [-Wformat-truncation=]
623 | snprintf(mode, 7, "%lo", (unsigned long) statbuf.st_mode);
| ^~~
ftplib.c:623:35: note: directive argument in the range [0, 4294967295]
623 | snprintf(mode, 7, "%lo", (unsigned long) statbuf.st_mode);
| ^~~~~
In function ‘snprintf’,
inlined from ‘ftp_do_chmod’ at ftplib.c:623:3: /usr/include/x86_64-linux-gnu/bits/stdio2.h:54:10: note: ‘__builtin___snprintf_chk’ output between 2 and 12 bytes into a destination of size 7
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[2]: *** [<builtin>: ftp-ls.o] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 01:14:49 |
Calls: | 6,666 |
Calls today: | 4 |
Files: | 12,212 |
Messages: | 5,335,472 |