[Bug 293660] 15.0-RELEASE FTBFS in crypto/krb5 when cross-compiling on x86_64-linux-gnu host

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 09 Mar 2026 19:29:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=293660

Ed Maste <emaste@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cy@FreeBSD.org,
                   |                            |emaste@freebsd.org

--- Comment #2 from Ed Maste <emaste@freebsd.org> ---
Ah, crypto/krb5/src/util/support/strerror_r.c has this:

#elif defined(STRERROR_R_CHAR_P)

/*
 * Implement the POSIX strerror_r API in terms of the GNU strerror_r, which
 * returns a pointer to either the caller buffer or a constant string.  This is
 * the default version on glibc systems when _GNU_SOURCE is defined.
 */
int
k5_strerror_r(int errnum, char *buf, size_t buflen)
{
    const char *str;

    str = strerror_r(errnum, buf, buflen);
    if (str != buf) {
        if (strlcpy(buf, str, buflen) >= buflen) {
            errno = ERANGE;
            return -1;
        }
    }
    return 0;
}

so I think we just need to figure out how best to set that in the crossbuild
environment

-- 
You are receiving this mail because:
You are the assignee for the bug.