-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Blocker - P1
-
Affects Version/s: None
-
Component/s: BSON
-
None
-
Fully Compatible
-
Ruby Drivers
-
Not Needed
-
None
-
None
-
None
-
None
-
None
-
None
Installation of bson on systems using GCC v15 is not possible. See attached file:
{{ gem_make.out}}
A telltale signal of this issue is seeing this repeated, with small variations, many times in the output:
error: unknown type name ‘bool’ 578 | static inline bool note: ‘bool’ is defined in header ‘<stdbool.h>’; this is probably fixable by adding ‘#include <stdbool.h>’
This is likely related to an issue Nobu (Ruby's "patch monster") found:
Anyway, -std=c99 flag is nonsense for other than gcc family.
Use append_cflags instead of adding them blindly.
This issue affected other gems as well, and solutions are known:
- io-event gem:
- Fixed one week ago.
- bug report: https://github.com/socketry/io-event/issues/136
- bugfix patch (+6 / -6): https://github.com/socketry/io-event/pull/137/commits/d08576119ccd48900850b833fe853f39f3d604b7
- ed25519 gem:
- Fixed two months ago.
- bug report: https://github.com/RubyCrypto/ed25519/issues/44
- bugfix patch (+1 / -1): https://github.com/RubyCrypto/ed25519/pull/45/files#diff-805cf1ea9824de19b94dce429b3a3544fd9cb0b3cc278e571776c7d672cc1dfa
- jaro_winkler gem:
- Fixed 3 weeks ago.
- bug report: https://github.com/tonytonyjan/jaro_winkler/issues/61
- bugfix patch (+1 / -1):[ https://github.com/tonytonyjan/jaro_winkler/pull/62/files#diff-594397402316a8262174f2dc8159b5a35560516bd3cd355b1bf657a6e0a973ce|https://github.com/tonytonyjan/jaro_winkler/pull/62/files#diff-594397402316a8262174f2dc8159b5a35560516bd3cd355b1bf657a6e0a973ce]
- Further discussion on the Ruby Lang bug trackcer: