Re: krb5 build error

From: Ronald Klop <ronald-lists_at_klop.ws>
Date: Sun, 21 Sep 2025 07:12:29 UTC
The general idea is that freebsd version N is buildable on N-1.
Of course you might find somebody with the knowledge to help. But the practical solution is to just use freebsd 14. (That is still N-2, but freebsd 16 and 15 are still very similar. So it will work for now.)

For the more experimental setup you are trying out I can’t help, so Happy Hacking!

Regards,
Ronald

Van: Sulev-Madis Silber <freebsd-current-freebsd-org111@ketas.si.pri.ee>
Datum: 21 september 2025 05:08
Aan: freebsd-current@freebsd.org
Onderwerp: Re: krb5 build error

> 
> 
> 
> okay, i hoped to tell i fixed it but i didn't
> 
> i found tools/build/Makefile containing methods to implement missing secure_getenv() on mac, but i can't really adapt it to < 14
> 
> best attempt was
> 
> 
> diff --git a/tools/build/Makefile b/tools/build/Makefile
> index 3c4e07e3cfc2..de977d88e7ea 100644
> --- a/tools/build/Makefile
> +++ b/tools/build/Makefile
> @@ -183,6 +183,12 @@ SYSINCS+=  ${SRCTOP}/sys/sys/nlist_aout.h
>  INCS+= ${SRCTOP}/include/bitstring.h
>  SYSINCS+=  ${SRCTOP}/sys/sys/bitstring.h
>  
> +.if ${.MAKE.OS} == "FreeBSD" && ${COMPILER_FREEBSD_VERSION} < 1400000
> +.PATH: ${.CURDIR}/cross-build
> +# Standalone implementation of secure_getenv(), not available on FreeBSD < 14.
> +SRCS+= secure_getenv.c
> +.endif # ${.MAKE.OS} == "FreeBSD" && ${COMPILER_FREEBSD_VERSION} < 1400000
> +
>  .if ${.MAKE.OS} != "FreeBSD"
>  .PATH: ${.CURDIR}/cross-build
>  
> 
> 
> which of course fails
> 
> yeah it's kind of pointless to maybe help 13 to build 16 but i can't even make local patch here somehow
> 
> there's something missing here and i can't somehow connect that thing up to the build
> 
> so maybe someone has idea. doesn't need inclusion in tree if it's not great solution. just how to define that
> 
> 
> 
> 
>