Bug#1097917: Patch for sphinxbase: ftbfs with GCC-15
Dominik Viererbe
dominik.viererbe at canonical.com
Fri Nov 14 13:41:33 GMT 2025
Like the error message already says, the source can not be compiled,
because it defines the type 'bool' and 'bool' is a keyword with
'-std=c23' onwards. To fix this we can either remove the typedef or
check if __STDC_VERSION__ < 202311L, see patch below. I tested this
patch on Ubuntu resolute.
--- a/swig/sphinxbase.i
+++ b/swig/sphinxbase.i
@@ -74,10 +74,12 @@
%begin %{
#ifndef __cplusplus
+#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 202311L)
typedef int bool;
#define true 1
#define false 0
#endif
+#endif
#include <sphinxbase/cmd_ln.h>
#include <sphinxbase/err.h>
More information about the Pkg-a11y-devel
mailing list