Re: krb5 build error
- In reply to: Sulev-Madis Silber : "Re: krb5 build error"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 21 Sep 2025 03:07:39 UTC
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