gcc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -O -g -DVERSION=1.11 -Wdate-time -D_FORTIFY_SOURCE=2 -c -o env.oenv.c
env.c: In function ‘main’:
env.c:46:25: error: implicit declaration of function ‘strchr’ [-Werror=implicit-function-declaration]
46 | delimiter = (char*) strchr(name,'=');
| ^~~~~~
env.c:6:1: note: include ‘<string.h>’ or provide a declaration of ‘strchr’
5 | #include <dirent.h>
+++ |+#include <string.h>
6 |
env.c:46:25: warning: incompatible implicit declaration of built-in function ‘strchr’ [-Wbuiltin-declaration-mismatch]
46 | delimiter = (char*) strchr(name,'=');
| ^~~~~~
env.c:46:25: note: include ‘<string.h>’ or provide a declaration of ‘strchr’
env.c:49:5: error: implicit declaration of function ‘strncpy’ [-Werror=implicit-function-declaration]
49 | strncpy(nm,name,delimiter-name);
| ^~~~~~~
env.c:49:5: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
env.c:49:5: warning: incompatible implicit declaration of built-in function ‘strncpy’ [-Wbuiltin-declaration-mismatch]
env.c:49:5: note: include ‘<string.h>’ or provide a declaration of ‘strncpy’
cc1: some warnings being treated as errors
make[1]: *** [<builtin>: env.o] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 02:30:39 |
Calls: | 6,706 |
Calls today: | 6 |
Files: | 12,235 |
Messages: | 5,350,070 |