fails to build from source with GCC hardening options #3493
Comments
dak180 edited the issue description |
Cyp commented I could not apply this patch, as lib/script/script_parser.cpp and src/scriptvals_parser.cpp are autogenerated (and appear in my out-of-main-tree build/ directory). I have no idea how to apply the patch to the original lib/script/script_parser.ypp and src/scriptvals_parser.ypp files, as the relevant part of the code seems to be just a "%%" in the .ypp files. |
pabs uploaded file fix FTBFS with GCC hardening options |
pabs commented Added an updated patch that doesn't patch the generated code (why is it in tarball?). Based on this bug report yyerror (or equivalent) should not be marked with the format attribute: |
Paul Wise changed status from |
Paul Wise changed resolution from `` to |
Paul Wise commented fix an FTBFS with -Werror=format-security Fixes #3493.
|
Paul Wise commented fix an FTBFS with -Werror=format-security Fixes #3493.
|
2 similar comments
Paul Wise commented fix an FTBFS with -Werror=format-security Fixes #3493.
|
Paul Wise commented fix an FTBFS with -Werror=format-security Fixes #3493.
|
resolution_fixed
type_patch (an actual patch, not a request for one)
| by pabsThe attached patch fixes building from source while enabling the GCC hardening options:
This is how Debian enables these options (other distros turn them on by default in GCC):
https://wiki.debian.org/Hardening
Issue migrated from trac:3493 at 2022-04-16 09:49:59 -0700
The text was updated successfully, but these errors were encountered: