Guest User

Untitled

a guest
May 23rd, 2022
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.56 KB | None | 0 0
  1. -Wno-stringop-overflow
  2. ===============================
  3.  
  4. [ 14%] Building C object CMakeFiles/mapserver.dir/mapowscommon.c.o
  5. In file included from /usr/include/string.h:495,
  6. from /home/runner/work/MapServer/MapServer/mapserver.h:44,
  7. from /home/runner/work/MapServer/MapServer/mapowscommon.c:34:
  8. In function ‘strncpy’,
  9. inlined from ‘msOWSSchemaValidation’ at /home/runner/work/MapServer/MapServer/mapowscommon.c:652:5:
  10. /usr/include/x86_64-linux-gnu/bits/string_fortified.h:106:10: error: ‘__builtin___strncpy_chk’ specified bound depends on the length of the source argument [-Werror=stringop-overflow=]
  11. 106 | return __builtin___strncpy_chk (__dest, __src, __len, __bos (__dest));
  12. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  13. /home/runner/work/MapServer/MapServer/mapowscommon.c: In function ‘msOWSSchemaValidation’:
  14. /home/runner/work/MapServer/MapServer/mapowscommon.c:645:7: note: length computed here
  15. 645 | if( strlen(xml_schema) > strlen(MS_OWSCOMMON_WFS_20_SCHEMA_LOCATION) &&
  16. | ^~~~~~~~~~~~~~~~~~
  17. cc1: all warnings being treated as errors
  18. make[3]: *** [CMakeFiles/mapserver.dir/build.make:335: CMakeFiles/mapserver.dir/mapowscommon.c.o] Error 1
  19. make[3]: *** Waiting for unfinished jobs....
  20. make[3]: Leaving directory '/home/runner/work/MapServer/MapServer/build'
  21. make[2]: *** [CMakeFiles/Makefile2:205: CMakeFiles/mapserver.dir/all] Error 2
  22. make[1]: *** [Makefile:136: all] Error 2
  23. make[2]: Leaving directory '/home/runner/work/MapServer/MapServer/build'
  24. make[1]: Leaving directory '/home/runner/work/MapServer/MapServer/build'
  25. make: *** [Makefile:22: cmakebuild] Error 2
  26. Error: Process completed with exit code 2.
  27.  
  28.  
  29. -Wno-format-overflow
  30. ================================
  31.  
  32. [ 27%] Building C object CMakeFiles/mapserver.dir/mapjoin.c.o
  33. /home/runner/work/MapServer/MapServer/mapjoin.c: In function ‘msCSVJoinConnect’:
  34. /home/runner/work/MapServer/MapServer/mapjoin.c:406:30: error: ‘%d’ directive writing between 1 and 10 bytes into a region of size 8 [-Werror=format-overflow=]
  35. 406 | sprintf(join->items[i], "%d", i+1);
  36. | ^~
  37. /home/runner/work/MapServer/MapServer/mapjoin.c:406:29: note: directive argument in the range [1, 2147483647]
  38. 406 | sprintf(join->items[i], "%d", i+1);
  39. | ^~~~
  40. In file included from /usr/include/stdio.h:867,
  41. from /home/runner/work/MapServer/MapServer/mapserver.h:42,
  42. from /home/runner/work/MapServer/MapServer/mapjoin.c:30:
  43. /usr/include/x86_64-linux-gnu/bits/stdio2.h:36:10: note: ‘__builtin___sprintf_chk’ output between 2 and 11 bytes into a destination of size 8
  44. 36 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1,
  45. | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  46. 37 | __bos (__s), __fmt, __va_arg_pack ());
  47. | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  48. cc1: all warnings being treated as errors
  49. make[3]: *** [CMakeFiles/mapserver.dir/build.make:629: CMakeFiles/mapserver.dir/mapjoin.c.o] Error 1
  50. make[3]: *** Waiting for unfinished jobs....
  51. make[3]: Leaving directory '/home/runner/work/MapServer/MapServer/build'
  52. make[2]: *** [CMakeFiles/Makefile2:205: CMakeFiles/mapserver.dir/all] Error 2
  53. make[2]: Leaving directory '/home/runner/work/MapServer/MapServer/build'
  54. make[1]: *** [Makefile:136: all] Error 2
  55. make[1]: Leaving directory '/home/runner/work/MapServer/MapServer/build'
  56. make: *** [Makefile:22: cmakebuild] Error 2
  57. Error: Process completed with exit code 2.
  58.  
  59.  
Advertisement
Add Comment
Please, Sign In to add comment