cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 -Wl,-z,relro -c gproto.c
gkermit.c: In function ‘errpkt’:
gkermit.c:350:7: error: implicit declaration of function ‘sleep’ [-Werror=implicit-function-declaration]
350 | sleep(1); /* Time to soak up incoming junk. */
| ^~~~~
gunixio.c: In function ‘sysinit’:
gunixio.c:256:19: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
256 | signal(SIGHUP,doexit); /* Go here on hangup */
| ^~~~~~
| |
| int (*)(int)
In file included from gunixio.c:83:
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘int (*)(int)’
88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~ gunixio.c: In function ‘ttopen’:
gunixio.c:358:23: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
358 | signal(SIGINT,doexit);
| ^~~~~~
| |
| int (*)(int)
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘int (*)(int)’
88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~ gunixio.c:361:24: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
361 | signal(SIGTSTP,doexit);
| ^~~~~~
| |
| int (*)(int)
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘int (*)(int)’
88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~ gunixio.c:364:24: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
364 | signal(SIGQUIT,doexit);
| ^~~~~~
| |
| int (*)(int)
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘int (*)(int)’
88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~ gunixio.c:395:26: error: implicit declaration of function ‘dup2’ [-Werror=implicit-function-declaration]
395 | else if (dup2(ofd, 1) == -1)
| ^~~~
gunixio.c:398:19: error: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Werror=implicit-function-declaration]
398 | close(ofd);
| ^~~~~
| pclose
gunixio.c: In function ‘ttres’:
gunixio.c:543:19: error: implicit declaration of function ‘write’; did you mean ‘fwrite’? [-Werror=implicit-function-declaration]
543 | dummy = (int) write(1,"\015\012",2);
| ^~~~~
| fwrite
gunixio.c: In function ‘ttchk’:
gunixio.c:553:13: error: implicit declaration of function ‘read’; did you mean ‘fread’? [-Werror=implicit-function-declaration]
553 | x = read(0,&tinbuf[tlast],TINBUFSIZ-tlast);
| ^~~~
| fread
gunixio.c: In function ‘ttinl’:
gunixio.c:634:24: warning: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
634 | signal(SIGALRM,timerh); /* Enable timer interrupt */
| ^~~~~~
| |
| int (*)()
/usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘int (*)()’
88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
| ~~~~~~~~~~~~~~~^~~~~~~~~ gunixio.c:635:9: error: implicit declaration of function ‘alarm’ [-Werror=implicit-function-declaration]
635 | alarm(timo); /* Set it. */
| ^~~~~
gunixio.c: In function ‘zchki’:
gunixio.c:894:9: error: implicit declaration of function ‘access’ [-Werror=implicit-function-declaration]
894 | if (access(fn,R_OK) < 0) {
| ^~~~~~
gunixio.c: In function ‘zbackup’:
gunixio.c:1095:17: error: implicit declaration of function ‘link’ [-Werror=implicit-function-declaration]
1095 | if (link(fn,newname) < 0) { /* Rename old file to backup name */
| ^~~~
gunixio.c:1099:24: error: implicit declaration of function ‘unlink’ [-Werror=implicit-function-declaration]
1099 | } else if (unlink(fn) < 0) {
| ^~~~~~
gunixio.c: In function ‘ttpkt’:
gunixio.c:515:5: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
515 | system("stty raw -echo");
| ^~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [makefile:58: gunixio.o] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 297 |
Nodes: | 16 (2 / 14) |
Uptime: | 01:00:13 |
Calls: | 6,666 |
Calls today: | 4 |
Files: | 12,212 |
Messages: | 5,335,472 |