Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ../../../gcc-15.1.0/libssp/ssp.c: In function ‘__guard_setup’:
- ../../../gcc-15.1.0/libssp/ssp.c:94:12: error: implicit declaration of function ‘open’ [-Wimplicit-function-declaration]
- 94 | int fd = open ("/dev/urandom", O_RDONLY);
- | ^~~~
- ../../../gcc-15.1.0/libssp/ssp.c:94:34: error: ‘O_RDONLY’ undeclared (first use in this function)
- 94 | int fd = open ("/dev/urandom", O_RDONLY);
- | ^~~~~~~~
- ../../../gcc-15.1.0/libssp/ssp.c:94:34: note: each undeclared identifier is reported only once for each function it appears in
- ../../../gcc-15.1.0/libssp/ssp.c:97:7: error: unknown type name ‘ssize_t’
- 97 | ssize_t size = read (fd, &__stack_chk_guard,
- | ^~~~~~~
- ../../../gcc-15.1.0/libssp/ssp.c:97:22: error: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
- 97 | ssize_t size = read (fd, &__stack_chk_guard,
- | ^~~~
- ../../../gcc-15.1.0/libssp/ssp.c:99:7: error: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
- 99 | close (fd);
- | ^~~~~
- ../../../gcc-15.1.0/libssp/ssp.c: At top level:
- ../../../gcc-15.1.0/libssp/ssp.c:114:25: error: unknown type name ‘size_t’
- 114 | fail (const char *msg1, size_t msg1len, const char *msg3)
- | ^~~~~~
- ../../../gcc-15.1.0/libssp/ssp.c:36:1: note: ‘size_t’ is defined in header ‘<stddef.h>’; this is probably fixable by adding ‘#include <stddef.h>’
- 35 | #include "config.h"
- +++ |+#include <stddef.h>
- 36 | #ifdef HAVE_ALLOCA_H
- ../../../gcc-15.1.0/libssp/ssp.c: In function ‘__stack_chk_fail’:
- ../../../gcc-15.1.0/libssp/ssp.c:186:3: error: implicit declaration of function ‘fail’ [-Wimplicit-function-declaration]
- 186 | fail (msg, strlen (msg), "stack smashing detected: terminated");
- | ^~~~
- ../../../gcc-15.1.0/libssp/ssp.c:186:14: error: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
- 186 | fail (msg, strlen (msg), "stack smashing detected: terminated");
- | ^~~~~~
- ../../../gcc-15.1.0/libssp/ssp.c:36:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
- 35 | #include "config.h"
- +++ |+#include <string.h>
- 36 | #ifdef HAVE_ALLOCA_H
- ../../../gcc-15.1.0/libssp/ssp.c:186:14: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
- 186 | fail (msg, strlen (msg), "stack smashing detected: terminated");
- | ^~~~~~
- ../../../gcc-15.1.0/libssp/ssp.c:186:14: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
- ../../../gcc-15.1.0/libssp/ssp.c: In function ‘__chk_fail’:
- ../../../gcc-15.1.0/libssp/ssp.c:193:14: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
- 193 | fail (msg, strlen (msg), "buffer overflow detected: terminated");
- | ^~~~~~
- ../../../gcc-15.1.0/libssp/ssp.c:193:14: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
- make[3]: *** [Makefile:580: ssp.lo] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement