gcc -DPACKAGE_NAME=\"expect\" -DPACKAGE_TARNAME=\"expect\" -DPACKAGE_VERSION=\"5.45.4\" -DPACKAGE_STRING=\"expect\ 5.45.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_expect=/\*\*/ -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_TIME_H=1 -DSTDC_HEADERS=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -
In file included from /usr/include/unistd.h:25,
from exp_clib.c:10:
/usr/include/features.h:195:3: warning: #warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE" [-Wcpp]
195 | # warning "_BSD_SOURCE and _SVID_SOURCE are deprecated, use _DEFAULT_SOURCE"
| ^~~~~~~
exp_clib.c: In function ‘exp_spawnv’:
exp_clib.c:1859:17: error: implicit declaration of function ‘exp_init_tty’; did you mean ‘exp_init_pty’? [-Werror=implicit-function-declaration]
1859 | exp_init_tty();
| ^~~~~~~~~~~~
| exp_init_pty
exp_clib.c:1843:13: warning: unused variable ‘ttyfd’ [-Wunused-variable]
1843 | int ttyfd;
| ^~~~~
exp_clib.c: In function ‘exp_disconnect’:
exp_clib.c:2864:13: warning: unused variable ‘ttyfd’ [-Wunused-variable]
2864 | int ttyfd;
| ^~~~~
exp_clib.c: In function ‘exp_spawnv’:
exp_clib.c:2233:9: warning: ignoring return value of ‘write’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
2233 | write(status_pipe[1], &errno, sizeof errno);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exp_clib.c: In function ‘exp_disconnect’:
exp_clib.c:2874:9: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
2874 | freopen("/dev/null","r",stdin);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exp_clib.c:2875:9: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
2875 | freopen("/dev/null","w",stdout);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exp_clib.c:2876:9: warning: ignoring return value of ‘freopen’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
2876 | freopen("/dev/null","w",stderr);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
exp_clib.c: At top level:
exp_clib.c:1819:1: warning: ‘exp_setpgrp’ defined but not used [-Wunused-function]
1819 | exp_setpgrp()
| ^~~~~~~~~~~
exp_clib.c: In function ‘expectv’:
exp_clib.c:2695:16: warning: ‘return_val’ may be used uninitialized [-Wmaybe-uninitialized]
2695 | return return_val;
| ^~~~~~~~~~
exp_clib.c:2452:13: note: ‘return_val’ was declared here
2452 | int return_val;
| ^~~~~~~~~~
cc1: some warnings being treated as errors
make[2]: *** [Makefile:318: exp_clib.o] Error 1
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 14:52:08 |
Calls: | 6,706 |
Files: | 12,237 |
Messages: | 5,351,101 |