Advertisement
Kurausukun

Untitled

Apr 25th, 2025
6
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.15 KB | None | 0 0
  1. ../../../gcc-15.1.0/libssp/ssp.c: In function ‘__guard_setup’:
  2. ../../../gcc-15.1.0/libssp/ssp.c:94:12: error: implicit declaration of function ‘open’ [-Wimplicit-function-declaration]
  3. 94 | int fd = open ("/dev/urandom", O_RDONLY);
  4. | ^~~~
  5. ../../../gcc-15.1.0/libssp/ssp.c:94:34: error: ‘O_RDONLY’ undeclared (first use in this function)
  6. 94 | int fd = open ("/dev/urandom", O_RDONLY);
  7. | ^~~~~~~~
  8. ../../../gcc-15.1.0/libssp/ssp.c:94:34: note: each undeclared identifier is reported only once for each function it appears in
  9. ../../../gcc-15.1.0/libssp/ssp.c:97:7: error: unknown type name ‘ssize_t’
  10. 97 | ssize_t size = read (fd, &__stack_chk_guard,
  11. | ^~~~~~~
  12. ../../../gcc-15.1.0/libssp/ssp.c:97:22: error: implicit declaration of function ‘read’ [-Wimplicit-function-declaration]
  13. 97 | ssize_t size = read (fd, &__stack_chk_guard,
  14. | ^~~~
  15. ../../../gcc-15.1.0/libssp/ssp.c:99:7: error: implicit declaration of function ‘close’ [-Wimplicit-function-declaration]
  16. 99 | close (fd);
  17. | ^~~~~
  18. ../../../gcc-15.1.0/libssp/ssp.c: At top level:
  19. ../../../gcc-15.1.0/libssp/ssp.c:114:25: error: unknown type name ‘size_t’
  20. 114 | fail (const char *msg1, size_t msg1len, const char *msg3)
  21. | ^~~~~~
  22. ../../../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>’
  23. 35 | #include "config.h"
  24. +++ |+#include <stddef.h>
  25. 36 | #ifdef HAVE_ALLOCA_H
  26. ../../../gcc-15.1.0/libssp/ssp.c: In function ‘__stack_chk_fail’:
  27. ../../../gcc-15.1.0/libssp/ssp.c:186:3: error: implicit declaration of function ‘fail’ [-Wimplicit-function-declaration]
  28. 186 | fail (msg, strlen (msg), "stack smashing detected: terminated");
  29. | ^~~~
  30. ../../../gcc-15.1.0/libssp/ssp.c:186:14: error: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration]
  31. 186 | fail (msg, strlen (msg), "stack smashing detected: terminated");
  32. | ^~~~~~
  33. ../../../gcc-15.1.0/libssp/ssp.c:36:1: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
  34. 35 | #include "config.h"
  35. +++ |+#include <string.h>
  36. 36 | #ifdef HAVE_ALLOCA_H
  37. ../../../gcc-15.1.0/libssp/ssp.c:186:14: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
  38. 186 | fail (msg, strlen (msg), "stack smashing detected: terminated");
  39. | ^~~~~~
  40. ../../../gcc-15.1.0/libssp/ssp.c:186:14: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
  41. ../../../gcc-15.1.0/libssp/ssp.c: In function ‘__chk_fail’:
  42. ../../../gcc-15.1.0/libssp/ssp.c:193:14: warning: incompatible implicit declaration of built-in function ‘strlen’ [-Wbuiltin-declaration-mismatch]
  43. 193 | fail (msg, strlen (msg), "buffer overflow detected: terminated");
  44. | ^~~~~~
  45. ../../../gcc-15.1.0/libssp/ssp.c:193:14: note: include ‘<string.h>’ or provide a declaration of ‘strlen’
  46. make[3]: *** [Makefile:580: ssp.lo] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement