tech-pkg archive

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

Re: Fixing configure failures from newer gcc



On Sat, Oct 11, 2025 at 09:00:24AM -0400, Greg Troxel wrote:
> >  # Make sure _NETBSD_SOURCE is defined for updlastlogx
> >  CFLAGS.NetBSD+=	-D_NETBSD_SOURCE
> > +CFLAGS.NetBSD+=	-Wno-implicit-function-declaration -Wno-implicit-int
> >  
> >  post-patch:
> >  	${MV} ${WRKSRC}/src/feature.h  ${WRKSRC}/src/feature.h.orig
> 
> Did that work ok on NetBSD 9?

No, it was just a quick hack to check if the options are enough and get
my local build going further. I'll look at patching out -Werror.

The warnings are all valid (and used to be no errors in really old C
standards).

Martin


Home | Main Index | Thread Index | Old Index