pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: libreoffice build problem



Hi,

Thomas Klausner <wiz%netbsd.org@localhost> writes:

> On Tue, Jun 23, 2026 at 11:19:51PM +0100, Thomas Klausner wrote:
>> I don't see any recent changes to libreoffice itself (just a
>> PKGREVISION bump), so I suspect something changed with the C/C++
>> standard, perhaps set in one of the bl3.mk files it includes.
>> 
>> Does anyone have a guess?
>
> From the .work.log, I see that the file is compiled with -std=gnu23
>
> I guess that's changed, but I still don't see why.

I have a patch to fix the build.
I will commit it tonight.

-std=gnu23 is added by LibreOffice's configure script.
I think it is not a problem.

As LibreOffice's configure script says, GCC 14 does not define
__STDC_VERSION__ as 202311L even if -std=gnu23 is specified.
GCC 14 defines __STDC_VERSION__ as 202000L if -std=gnu23 is specified.

And mariadb-connector in misc/libreoffice assumes the C23 compiler
defines __STDC_VERSION__ as 202311L.

I have no idea what happened these days.
However my upcommiing patches/patch-external_mariadb-connector-c_netbsd.patch
fixes the build of misc/libreoffice.

Thank you.

>  Thomas

-- 
Ryo ONODERA // ryo%tetera.org@localhost
PGP fingerprint = 82A2 DC91 76E0 A10A 8ABB  FD1B F404 27FA C7D1 15F3


Home | Main Index | Thread Index | Old Index