[OpenAFS] openafs fails to compile
Chad W Seys
cwseys@physics.wisc.edu
Mon, 31 Oct 2022 14:18:59 +0000
Hi all,=0A=
I'm attempting to compile openafs from the git repo as described here:=0A=
https://wiki.openafs.org/devel/HowToBuildOpenAfsRpmPackages/#index3h2=0A=
=0A=
The userland tools compile and install fine, but the DKMS compilation fails=
.=0A=
=0A=
This is on CentOS7, against ELRepo's kernel-ml version 5.19.12 and 6.0.5. =
These kernels are compiled with Redhat's devtoolset 9 which contains more r=
ecent versions of gcc (9.3.1), so that is what is also used when DKMS compi=
ling. I have tried the master tip (1.9.1-1.223.gd38b) and 1.8.9-pre1 tag.=
=0A=
=0A=
The make.log error is:=0A=
Building in directory: MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP=0A=
make[2]: Entering directory '/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/bu=
ild/src/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP'=0A=
env EXTRA_CFLAGS=3D"" /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/libafs/make_kbuild_makefile.pl MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP open=
afs.ko /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/config/Makefil=
e.config Makefile.afs Makefile.common=0A=
( env EXTRA_CFLAGS=3D"" \=0A=
make -C /lib/modules/5.19.12-1.el7.elrepo.x86_64/build M=3D/var/lib=
/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/libafs/MODLOAD-5.19.12-1.el7.=
elrepo.x86_64-SP modules 2>&1 \=0A=
|| echo "FAILURE: make exit code $?" ) | tee .makelog=0A=
make[3]: Entering directory '/usr/src/kernels/5.19.12-1.el7.elrepo.x86_64'=
=0A=
CC [M] /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/libafs/MODL=
OAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-kernel.o=0A=
In file included from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/afsincludes.h:27,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/crypto/hcrypto/kernel/config.h:31,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-kernel.c:34:=0A=
/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/afs/LINUX/osi_vfs.h:7=
8:21: error: field =91va_atime=92 has incomplete type=0A=
78 | struct timespec va_atime;=0A=
| ^~~~~~~~=0A=
/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/afs/LINUX/osi_vfs.h:7=
9:21: error: field =91va_mtime=92 has incomplete type=0A=
79 | struct timespec va_mtime;=0A=
| ^~~~~~~~=0A=
/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/afs/LINUX/osi_vfs.h:8=
0:21: error: field =91va_ctime=92 has incomplete type=0A=
80 | struct timespec va_ctime;=0A=
| ^~~~~~~~=0A=
In file included from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/afs_osi.h:427,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/rx/rx_clock.h:46,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/rx/rx.h:44,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/afsincludes.h:29,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/crypto/hcrypto/kernel/config.h:31,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-kernel.c:34:=0A=
/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/afs/LINUX/osi_machdep=
.h:68:3: error: #error Not sure what to do about rlim (should be in the Lin=
ux task struct somewhere....)=0A=
68 | # error Not sure what to do about rlim (should be in the Linux task=
struct somewhere....)=0A=
| ^~~~~=0A=
In file included from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/afs_osi.h:427,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/rx/rx_clock.h:46,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/rx/rx.h:44,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/afsincludes.h:29,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/crypto/hcrypto/kernel/config.h:31,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-kernel.c:34:=0A=
/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/afs/LINUX/osi_machdep=
.h: In function =91osi_GetTime=92:=0A=
/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/afs/LINUX/osi_machdep=
.h:114:20: error: storage size of =91now=92 isn=92t known=0A=
114 | struct timeval now;=0A=
| ^~~=0A=
/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/afs/LINUX/osi_machdep=
.h:115:5: error: implicit declaration of function =91do_gettimeofday=92; di=
d you mean =91do_settimeofday64=92? [-Werror=3Dimplicit-function-declaratio=
n]=0A=
115 | do_gettimeofday(&now);=0A=
| ^~~~~~~~~~~~~~~=0A=
| do_settimeofday64=0A=
/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/afs/LINUX/osi_machdep=
.h:114:20: error: unused variable =91now=92 [-Werror=3Dunused-variable]=0A=
114 | struct timeval now;=0A=
| ^~~=0A=
/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/afs/LINUX/osi_machdep=
.h: At top level:=0A=
/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/afs/LINUX/osi_machdep=
.h:242:29: error: conflicting types for =91uid_eq=92=0A=
242 | static inline unsigned char uid_eq(uid_t a, uid_t b) {return a =3D=
=3D b;}=0A=
| ^~~~~~=0A=
In file included from ./include/linux/stat.h:20,=0A=
from ./include/linux/fcntl.h:5,=0A=
from ./include/linux/net.h:20,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/sysincludes.h:121,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/crypto/hcrypto/kernel/config.h:30,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-kernel.c:34:=0A=
./include/linux/uidgid.h:61:20: note: previous definition of =91uid_eq=92 w=
as here=0A=
61 | static inline bool uid_eq(kuid_t left, kuid_t right)=0A=
| ^~~~~~=0A=
In file included from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/afs_osi.h:427,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/rx/rx_clock.h:46,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/rx/rx.h:44,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/afsincludes.h:29,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/crypto/hcrypto/kernel/config.h:31,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-kernel.c:34:=0A=
/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/afs/LINUX/osi_machdep=
.h:243:29: error: conflicting types for =91gid_eq=92=0A=
243 | static inline unsigned char gid_eq(gid_t a, gid_t b) {return a =3D=
=3D b;}=0A=
| ^~~~~~=0A=
In file included from ./include/linux/stat.h:20,=0A=
from ./include/linux/fcntl.h:5,=0A=
from ./include/linux/net.h:20,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/sysincludes.h:121,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/crypto/hcrypto/kernel/config.h:30,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-kernel.c:34:=0A=
./include/linux/uidgid.h:66:20: note: previous definition of =91gid_eq=92 w=
as here=0A=
66 | static inline bool gid_eq(kgid_t left, kgid_t right)=0A=
| ^~~~~~=0A=
In file included from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/afs_osi.h:427,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/rx/rx_clock.h:46,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/rx/rx.h:44,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/afsincludes.h:29,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/crypto/hcrypto/kernel/config.h:31,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-kernel.c:34:=0A=
/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/afs/LINUX/osi_machdep=
.h:244:29: error: conflicting types for =91uid_lt=92=0A=
244 | static inline unsigned char uid_lt(uid_t a, uid_t b) {return a < b;=
}=0A=
| ^~~~~~=0A=
In file included from ./include/linux/stat.h:20,=0A=
from ./include/linux/fcntl.h:5,=0A=
from ./include/linux/net.h:20,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/sysincludes.h:121,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/crypto/hcrypto/kernel/config.h:30,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-kernel.c:34:=0A=
./include/linux/uidgid.h:91:20: note: previous definition of =91uid_lt=92 w=
as here=0A=
91 | static inline bool uid_lt(kuid_t left, kuid_t right)=0A=
| ^~~~~~=0A=
In file included from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/afs_osi.h:427,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/rx/rx_clock.h:46,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/rx/rx.h:44,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/afsincludes.h:29,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/crypto/hcrypto/kernel/config.h:31,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-kernel.c:34:=0A=
/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/afs/LINUX/osi_machdep=
.h:245:29: error: conflicting types for =91gid_lt=92=0A=
245 | static inline unsigned char gid_lt(gid_t a, gid_t b) {return a < b;=
}=0A=
| ^~~~~~=0A=
In file included from ./include/linux/stat.h:20,=0A=
from ./include/linux/fcntl.h:5,=0A=
from ./include/linux/net.h:20,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/sysincludes.h:121,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/crypto/hcrypto/kernel/config.h:30,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-kernel.c:34:=0A=
./include/linux/uidgid.h:96:20: note: previous definition of =91gid_lt=92 w=
as here=0A=
96 | static inline bool gid_lt(kgid_t left, kgid_t right)=0A=
| ^~~~~~=0A=
In file included from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/afs_osi.h:427,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/rx/rx_clock.h:46,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/rx/rx.h:44,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/afsincludes.h:29,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/crypto/hcrypto/kernel/config.h:31,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-kernel.c:34:=0A=
/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/afs/LINUX/osi_machdep=
.h:246: error: "GLOBAL_ROOT_UID" redefined [-Werror]=0A=
246 | #define GLOBAL_ROOT_UID ((afs_kuid_t) 0)=0A=
|=0A=
In file included from ./include/linux/stat.h:20,=0A=
from ./include/linux/fcntl.h:5,=0A=
from ./include/linux/net.h:20,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/sysincludes.h:121,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/crypto/hcrypto/kernel/config.h:30,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-kernel.c:34:=0A=
./include/linux/uidgid.h:55: note: this is the location of the previous def=
inition=0A=
55 | #define GLOBAL_ROOT_UID KUIDT_INIT(0)=0A=
|=0A=
In file included from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/afs_osi.h:427,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/rx/rx_clock.h:46,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/rx/rx.h:44,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/afsincludes.h:29,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/crypto/hcrypto/kernel/config.h:31,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-kernel.c:34:=0A=
/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src/afs/LINUX/osi_machdep=
.h:247: error: "GLOBAL_ROOT_GID" redefined [-Werror]=0A=
247 | #define GLOBAL_ROOT_GID ((afs_kgid_t) 0)=0A=
|=0A=
In file included from ./include/linux/stat.h:20,=0A=
from ./include/linux/fcntl.h:5,=0A=
from ./include/linux/net.h:20,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/afs/sysincludes.h:121,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/crypto/hcrypto/kernel/config.h:30,=0A=
from /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/build/src=
/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-kernel.c:34:=0A=
./include/linux/uidgid.h:56: note: this is the location of the previous def=
inition=0A=
56 | #define GLOBAL_ROOT_GID KGIDT_INIT(0)=0A=
|=0A=
cc1: all warnings being treated as errors=0A=
make[4]: *** [scripts/Makefile.build:249: /var/lib/dkms/openafs/1.9.1-1.223=
.gd38b.el7/build/src/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP/sha256-k=
ernel.o] Error 1=0A=
make[3]: *** [Makefile:1846: /var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/bu=
ild/src/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP] Error 2=0A=
make[3]: Leaving directory '/usr/src/kernels/5.19.12-1.el7.elrepo.x86_64'=
=0A=
FAILURE: make exit code 2=0A=
make[2]: *** [Makefile.afs:282: openafs.ko] Error 1=0A=
make[2]: Leaving directory '/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/bui=
ld/src/libafs/MODLOAD-5.19.12-1.el7.elrepo.x86_64-SP'=0A=
make[1]: *** [Makefile:187: linux_compdirs] Error 2=0A=
make[1]: Leaving directory '/var/lib/dkms/openafs/1.9.1-1.223.gd38b.el7/bui=
ld/src/libafs'=0A=
make: *** [Makefile:15: all] Error 2=0A=
=0A=
=0A=
=0A=
Note that this kernel is not running when the DKMS compilation is attempted=
.=0A=
=0A=
Thanks!=0A=
Chad.=0A=