Bug#1133524: Bug#1133513: libe-book: ftbfs with GCC-16

Rene Engelhard <[email protected]> Mon, 13 Apr 2026 18:53:03 +0200
Newsgroups gmane.linux.debian.devel.openoffice
Organization Debian Project
Message-ID <a6eaaf1f-bcc3-423f-951f-c93929593096__16599.8828409769$1776099333$gmane$org@debian.org>
Hi,

Am 13.04.26 um 18:44 schrieb László Böszörményi (GCS):
> On Mon, Apr 13, 2026 at 6:16 PM Rene Engelhard <[email protected]> wrote:
>> Am 13.04.26 um 15:05 schrieb Emanuele Rocca:
>>> /usr/include/unicode/localpointer.h:559:26: error: parameter declared 'auto'
>>>     559 | template <typename Type, auto closeFunction>
>>>         |                          ^~~~
>>> /usr/include/unicode/localpointer.h:571:76: error: template argument 2 is invalid [-Wtemplate-body]
>>>     571 |     explicit LocalOpenPointer(std::unique_ptr<Type, decltype(closeFunction)> &&p)
>>>         |                                                                            ^
> [...]
>> Same case with libsmpub (1133524).
>   Do you have a test environment for this? See the possible solution below.
Yes, I have a experimental systemd-nspawn machine with experimentals gcc default installed.
>> Ccing Lazslo., any idea?
>   s/Lazslo/Laszlo/
oops, sorry
> and indeed, I have. libe-book seems to compile with
> std=c++11 while the new ICU bits needs to be compiled with std=c++17

but that is only enforcd with gcc 16? Subce both libe-book and libsmpub build fine as-is in unstable:

https://buildd.debian.org/status/package.php?p=libe-book

https://buildd.debian.org/status/package.php?p=libmspub

> so maybe configure needs to be recreated.
The build does it every time.
> There's configure.ac in the
> source which needs to be modernized, there are several obsolete
> messages for that in the build log [1]. For example:

Yes, as all those libs they are old... We already had that fun with libzmf...

(which has an other C++ standard failure mode...)

> autoreconf: running: /usr/bin/autoconf --force
> configure.ac:19: warning: The macro 'AC_CONFIG_HEADER' is obsolete.
> configure.ac:19: You should run autoupdate.
> ./lib/autoconf/status.m4:719: AC_CONFIG_HEADER is expanded from...
> configure.ac:19: the top level
> configure.ac:184: warning: The macro 'AC_TRY_COMPILE' is obsolete.
> configure.ac:184: You should run autoupdate.
> ... etc.

Maybe. Or this is another case of what plagued libreoffice and was worked around with

https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/-/blob/master/patches/gcc16.diff?ref_type=heads#L59 ff. and

https://salsa.debian.org/libreoffice-team/libreoffice/libreoffice/-/blob/debian-experimental-26.2/patches/gcc16-dragonbox-snapshot-check.diff

aka something in autoconf insisting to add --std=gnu++11 where nowwhere specified outside ..


Regards,


Rene