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

Rene Engelhard <[email protected]> Mon, 13 Apr 2026 19:06:16 +0200
Newsgroups gmane.linux.debian.devel.openoffice
Organization Debian Project
Message-ID <e327fc97-90aa-4d07-b89a-fed1fc013bad__14924.6157308639$1776100054$gmane$org@debian.org>
Hi,

Am 13.04.26 um 18:53 schrieb Rene Engelhard:
> 
> 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

See also upstreams https://gerrit.libreoffice.org/c/core/+/202511/comments/b6a92d32_0c72b450 and following comments...

And indeed the same happens:

checking how to run the C++ preprocessor... g++ -std=gnu++11 -E
checking for ld used by g++ -std=gnu++11... /usr/bin/x86_64-linux-gnu-ld -m elf_x86_64
checking if the linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ -std=gnu++11 linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking for g++ -std=gnu++11 option to produce PIC... -fPIC -DPIC
checking if g++ -std=gnu++11 PIC flag -fPIC -DPIC works... yes
checking if g++ -std=gnu++11 static flag -static works... yes
checking if g++ -std=gnu++11 supports -c -o file.o... yes
checking if g++ -std=gnu++11 supports -c -o file.o... (cached) yes
checking whether the g++ -std=gnu++11 linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether g++ -std=gnu++11 supports C++11 features by default... yes

Looks like it.

That of course breaks. Now the question is why autoconf unhelpfully adds that with gcc 16...
CC'ing the autoconf maintainer. I see 2.72-6 removing debian/patches/fix-cxx-stdcxx-test.diff but according to the debdiff it was not applied before anyway...

That might also be the explanation for a loads of other gcc 16 FTBFS....

Regards,


Rene