OpenAFS Master Repository branch, openafs-stable-1_8_x, updated. openafs-stable-1_8_10-14-gbe21a20

Gerrit Code Review
Thu, 17 Aug 2023 13:30:29 -0400

The following commit has been merged in the openafs-stable-1_8_x branch:
commit be21a2041972f6e612bb1717cce9714702038d77
Author: Andrew Deason <>
Date:   Wed Aug 26 15:41:00 2020 -0500

    UKERNEL: Build linktest with COMMON_CFLAGS
    Currently, 'linktest' in libuafs is built with a weird custom rule
    that specifies several various CFLAGS and LDFLAGS, etc. One
    side-effect of this is that linktest is built without specifying -O,
    even if optimization is otherwise enabled.
    Normally nobody would care about the optimization of linktest, since
    it's never supposed to be run, but this can cause an error when
    building with -D_FORTIFY_SOURCE=1 on some systems (such as RHEL7):
        In file included from /usr/include/sys/types.h:25:0,
                         from /.../src/config/afsconfig.h:1485,
                         from /.../src/libuafs/linktest.c:15:
        /usr/include/features.h:330:4: error: #warning _FORTIFY_SOURCE requires compiling with optimization (-O) [-Werror=cpp]
         #  warning _FORTIFY_SOURCE requires compiling with optimization (-O)
        cc1: all warnings being treated as errors
        make[3]: *** [linktest] Error 1
    For now, to fix this just include $(COMMON_CFLAGS) in the flags we
    give for linktest, so $(OPTMZ) also gets pulled in, and building
    linktest gets a little closer to a normal compilation step.
    Reviewed-by: Michael Meffie <>
    Tested-by: BuildBot <>
    Reviewed-by: Cheyenne Wills <>
    Reviewed-by: Benjamin Kaduk <>
    (cherry picked from commit c4f853aa00f1650b678cbd22ad1e2a9cf01c1303)
    Change-Id: I842fc630979fa98950f09326a556da1f7d1cd23b
    Tested-by: BuildBot <>
    Reviewed-by: Andrew Deason <>
    Reviewed-by: Michael Meffie <>
    Reviewed-by: Mark Vitale <>
    Reviewed-by: Stephan Wiesand <>

 src/libuafs/ | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

OpenAFS Master Repository