Summary: | Build failure with GCC 15 (defaults to -std=gnu23) because of bool redefinition | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Sam James <sam> |
Component: | Build Process | Assignee: | Chris Liddell (chrisl) <chris.liddell> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | alex, chris.liddell, ghostscript_bugzilla, zdohnal |
Priority: | P2 | ||
Version: | unspecified | ||
Hardware: | PC | ||
OS: | Linux | ||
Customer: | Word Size: | --- | |
Attachments: | patch for C23 compliance |
Description
Sam James
2024-11-26 06:55:45 UTC
It's very irritating that they would default to a standard that's been published for less than a month. And it's extremely irritating that one of the premier open source projects is defaulting to a standard only available from a (not cheap) paywalled organisation. :-( I'll look at this at some point. Created attachment 26351 [details]
patch for C23 compliance
ghostpdl programs can be tweaked to compile by the current gcc with a few minor changes. The resulting gs executable passed a smoke test, but it has not been tested thoroughly.
I did not fix compiler warnings, such as applying operators ++ or -- to boolean variables. In case of conflicts between function definitions and declarations, the choice between int and bool is not always obvious.
I can continue to work in this bug, fix compiler warnings and look deeper into the distinction between boolean values and integer return codes, providing that there's interest on Artifex part.
*** Bug 708290 has been marked as a duplicate of this bug. *** |