Bug#1096391: brainparty: ftbfs with GCC-15

Henrique F. Simoes henriquesimoes at riseup.net
Thu Oct 9 02:44:23 BST 2025


tag 1096391 + patch
user debian-release at lists.debian.org
usertag 1096391 + bsp-2025-10-brazil
thanks

Hi!

On Mon Feb 17, 2025 at 2:05 PM -03, Matthias Klose wrote:
> /usr/include/c++/15/bits/stl_tree.h:2604:36: error: no match for call to ‘(const cmp_str) (const char* const&, const char* const&)’
>  2604 |         if (!_M_impl._M_key_compare(_S_key(__x), __k))
>       |              ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
> BPGame.h:55:8: note: there is 1 candidate
>    55 | struct cmp_str {
>       |        ^~~~~~~
> BPGame.h:56:14: note: candidate 1: ‘bool cmp_str::operator()(const char*, const char*)’ (near match)
>    56 |         bool operator()(char const *a, char const *b) {
>       |              ^~~~~~~~
> BPGame.h:56:14: note: passing ‘const cmp_str*’ as ‘this’ argument discards qualifiers

The lack of const in the cmp_str function call operator is what's
causing the build to fail. Please find the patch fixing this in the MR I
created on Salsa [1].

[1] https://salsa.debian.org/games-team/brainparty/-/merge_requests/1

--
Henrique F. Simoes



More information about the Pkg-games-devel mailing list