OpenAFS Master Repository branch, master, updated. BP-openafs-stable-1_8_x-434-g8f9c92a

Gerrit Code Review
Sun, 25 Aug 2019 19:52:17 -0400

The following commit has been merged in the master branch:
commit 8f9c92a888df7b2fd61a3e84aaf1d2c96a8b10dd
Author: Andrew Deason <>
Date:   Sun Jul 28 15:03:43 2019 -0500

    FBSD: Set KERNBUILDDIR for --with-bsd-kernel-build
    Currently, specifying --with-bsd-kernel-build during configure causes
    us to set BSD_KERNEL_BUILD, which sets KBLD in,
    but nothing ever uses KBLD. This means that when we use
    --with-bsd-kernel-build, we don't actually build against the
    configuration for that kernel, which can result in a libafs.ko that
    cannot be loaded or causes other errors. Specifically, if trying to
    build for a VIMAGE kernel, the kernel complains when trying to load
        [...] kernel: link_elf_obj: symbol in_ifaddrhead undefined
        [...] kernel: linker_load_file: Unsupported file type
    The FreeBSD module build system looks for KERNBUILDDIR for an
    alternative build, which it uses to pull in opt_global.h and other
    required pieces from the build tree. So just specify KERNBUILDDIR if
    we have one.
    At the same time, avoid setting our default value for BSD_KERNEL_BUILD
    for FBSD when the calculated dir doesn't exist. At least for the
    default GENERIC kernel on FreeBSD 11.2-RELEASE, there may not be a
    build dir on the running machine, and so setting BSD_KERNEL_BUILD to
    the calculated value causes the build to fail when it doesn't exist.
    Change-Id: Ib3079354f9f6dba13970de5308bbcecaf9b35059
    Tested-by: BuildBot <>
    Reviewed-by: Tim Creech <>
    Reviewed-by: Benjamin Kaduk <>

 src/cf/bsd.m4                    |    3 ++-
 src/libafs/ |    3 +++
 2 files changed, 5 insertions(+), 1 deletions(-)

OpenAFS Master Repository