Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1270138

Bug#1097917: Patch for sphinxbase: ftbfs with GCC-15

From Dominik Viererbe <dominik.viererbe@canonical.com>
Newsgroups linux.debian.bugs.dist
Subject Bug#1097917: Patch for sphinxbase: ftbfs with GCC-15
Date 2025-11-14 14:50 +0100
Message-ID <LR2lz-cUYt-3@gated-at.bofh.it> (permalink)
References <LR2lz-cUYt-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>

Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1097917: Patch for sphinxbase: ftbfs with GCC-15 Dominik Viererbe <dominik.viererbe@canonical.com> - 2025-11-14 14:50 +0100
  Bug#1097917: Patch for sphinxbase: ftbfs with GCC-15 Adrian Bunk <bunk@debian.org> - 2025-11-18 20:30 +0100

csiph-web