Re: security/gnutls: gnutls-3.8.8 requires llvm17 or higher to build

From: Dimitry Andric <dim_at_FreeBSD.org>
Date: Fri, 15 Nov 2024 09:40:29 UTC
On 15 Nov 2024, at 04:54, Tatsuki Makino <tatsuki_makino@hotmail.com> wrote:
> 
> Hello.
> 
> It seems that it is mandatory to use llvm17 or higher to build gnutls 3.8.8.
> If not, the following error cannot be resolved. Changing -std=c11 is powerless.
> 
> groups.c:93:2: error: initializer element is not a compile-time constant
>        group_x25519,
>        ^~~~~~~~~~~~
> 
> If you are still stuck with the old version, make a modification that uses 17 or higher of clang 🤣

When you must use an old version, you could add this as a patch for groups.c. It could be conditionalized on COMPILER_VERSION < 17.

-Dimitry