Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Sep 2025 09:12:29 +0200 (CEST)
From:      Ronald Klop <ronald-lists@klop.ws>
To:        Sulev-Madis Silber <freebsd-current-freebsd-org111@ketas.si.pri.ee>
Cc:        freebsd-current@freebsd.org
Subject:   Re: krb5 build error
Message-ID:  <1256473955.14401.1758438749412@localhost>
In-Reply-To: <BCB55B00-E499-4B99-9B4D-F5443AC72FC9@ketas.si.pri.ee>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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
> 
> 
> 
> 
> 
[-- Attachment #2 --]
<html><head></head><body>The general idea is that freebsd version N is buildable on N-1.<div>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.)</div><div><br></div><div>For the more experimental setup you are trying out I can’t help, so Happy Hacking!</div><div><br></div><div>Regards,</div><div>Ronald</div><div><br><p><small><strong>Van:</strong> Sulev-Madis Silber &lt;freebsd-current-freebsd-org111@ketas.si.pri.ee&gt;<br><strong>Datum:</strong> 21 september 2025 05:08<br><strong>Aan:</strong> freebsd-current@freebsd.org<br><strong>Onderwerp:</strong> Re: krb5 build error<br></small></p><blockquote style="margin-left: 5px; border-left: 3px solid #ccc; margin-right: 0px; padding-left: 5px;"><div class="MessageRFC822Viewer do_not_remove" id="P"><!-- P -->
<!-- processMimeMessage --><div class="MultipartMixedViewer do_not_remove"><!-- P.P -->
<div class="TextPlainViewer do_not_remove" id="P.P.P1"><!-- P.P.P1 -->okay, i hoped to tell i fixed it but i didn't<br>
<br>
i found tools/build/Makefile containing methods to implement missing secure_getenv() on mac, but i can't really adapt it to &lt; 14<br>
<br>
best attempt was<br>
<br>
<br>
diff --git a/tools/build/Makefile b/tools/build/Makefile<br>
index 3c4e07e3cfc2..de977d88e7ea 100644<br>
--- a/tools/build/Makefile<br>
+++ b/tools/build/Makefile<br>
@@ -183,6 +183,12 @@ SYSINCS+= &nbsp;${SRCTOP}/sys/sys/nlist_aout.h<br>
&nbsp;INCS+= ${SRCTOP}/include/bitstring.h<br>
&nbsp;SYSINCS+= &nbsp;${SRCTOP}/sys/sys/bitstring.h<br>
&nbsp;<br>
+.if ${.MAKE.OS} == "FreeBSD" &amp;&amp; ${COMPILER_FREEBSD_VERSION} &lt; 1400000<br>
+.PATH: ${.CURDIR}/cross-build<br>
+# Standalone implementation of secure_getenv(), not available on FreeBSD &lt; 14.<br>
+SRCS+= secure_getenv.c<br>
+.endif # ${.MAKE.OS} == "FreeBSD" &amp;&amp; ${COMPILER_FREEBSD_VERSION} &lt; 1400000<br>
+<br>
&nbsp;.if ${.MAKE.OS} != "FreeBSD"<br>
&nbsp;.PATH: ${.CURDIR}/cross-build<br>
&nbsp;<br>
<br>
<br>
which of course fails<br>
<br>
yeah it's kind of pointless to maybe help 13 to build 16 but i can't even make local patch here somehow<br>
<br>
there's something missing here and i can't somehow connect that thing up to the build<br>
<br>
so maybe someone has idea. doesn't need inclusion in tree if it's not great solution. just how to define that<br>
</div><!-- TextPlainViewer -->
<hr>
</div><!-- MultipartMixedViewer -->
</div><!-- MessageRFC822Viewer -->
</blockquote><br><br><br></div></body></html>
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1256473955.14401.1758438749412>