pkgsrc-Users archive

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

Re: gnutls on NetBSD 9, please help



On Sat, 9 Nov 2024 at 15:51:33 +0100, Thomas Klausner wrote:
On Sat, Nov 09, 2024 at 03:35:07PM +0100, Martin Husemann wrote:
> On Sat, Nov 09, 2024 at 12:09:24PM +0100, Thomas Klausner wrote:
> > Hi!
> >
> > gnutls is broken on NetBSD 9, see
> > http://www.ki.nu/pkgsrc/reports/current/NetBSD-9.0/20241107.1415/gnutls-3.8.8/build.log
> >
> >   CC       groups.lo
> > groups.c:93:2: error: initializer element is not constant
> >   group_x25519,
> >   ^~~~~~~~~~~~
> >
> > Someone who's still using NetBSD 9 - please fix this, I guess the
> > required c standard (USE_CC_FEATURES) needs to be bumped, but I don't
> > know to what.
>
> -std=gnu99 should be enough (but I only looked at the code and didn't try
> to build it).

Thanks, let's try that - committed.
 Thomas

That didn't fix the problem, unfortunately. Neither did simply trying a
higher value like "gnu11". Instead I've simply unfurled the code in a
patch. Now GCC 7.5 compiles it successfully (tested on 9.4_STABLE). (If
someone else wants to fix this differently, please feel free!)

Regards,

Dave


Home | Main Index | Thread Index | Old Index