Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Sep 2025 06:07:39 +0300
From:      Sulev-Madis Silber <freebsd-current-freebsd-org111@ketas.si.pri.ee>
To:        freebsd-current@freebsd.org
Subject:   Re: krb5 build error
Message-ID:  <BCB55B00-E499-4B99-9B4D-F5443AC72FC9@ketas.si.pri.ee>
In-Reply-To: <178ABEAA-203D-492E-A83B-1D0E1716E4ED@ketas.si.pri.ee>
References:  <8661AEBE-E862-44EA-A69F-533DF9D26D6D@ketas.si.pri.ee> <178ABEAA-203D-492E-A83B-1D0E1716E4ED@ketas.si.pri.ee>

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

[-- Attachment #1 --]
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 --]
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
 
home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BCB55B00-E499-4B99-9B4D-F5443AC72FC9>