[OpenAFS] error in compiling openafs 1.6.24 on CentOS 8.3

Giovanni Bracco giovanni.bracco@enea.it
Sun, 9 May 2021 18:35:31 +0200


I have tried to compile openafs-1.6.24 on CentOS 8.3, kernel 
4.18.0-240.22.1.el8_3.x86_64.

The build terminates with

fatal error: rpc/types.h: No such file or directory
  #include "rpc/types.h"
           ^~~~~~~~~~~~~


Any  suggestions?

Giovanni

Here is the last messages in log

....
gcc -I. -I.. -I../nfs -I/root/build-openafs-1.6.24/openafs-1.6.24/src 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src/afs 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src/afs/UKERNEL 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src/config 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src/rx 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src/rx/UKERNEL 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src/rxkad 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src/util 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src/afs/UKERNEL 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src/afs 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src/util 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src/rxkad 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src/config 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src/fsint 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src/vlserver 
-I/root/build-openafs-1.6.24/openafs-1.6.24/src/libuafs 
-I/root/build-openafs-1.6.24/openafs-1.6.24/include 
-I/root/build-openafs-1.6.24/openafs-1.6.24/include/afs  -O -DKERNEL 
-I. -I.. -I/root/build-openafs-1.6.24/openafs-1.6.24/src/config 
-D_REENTRANT -DKERNEL -DUKERNEL   -D_LARGEFILE64_SOURCE -c 
/root/build-openafs-1.6.24/openafs-1.6.24/src/afs/afs_memcache.c
/root/build-openafs-1.6.24/openafs-1.6.24/src/afs/afs_memcache.c:16:10: 
fatal error: rpc/types.h: No such file or directory
  #include "rpc/types.h"
           ^~~~~~~~~~~~~
compilation terminated.
make[4]: *** [Makefile.common:1306: ../JUAFS/afs_memcache.o] Error 1
make[4]: Leaving directory 
'/root/build-openafs-1.6.24/openafs-1.6.24/src/libuafs/JUAFS'
make[3]: *** [Makefile.common:1564: JUAFS/libjuafs.a] Error 2
make[3]: Leaving directory 
'/root/build-openafs-1.6.24/openafs-1.6.24/src/libuafs'
make[2]: *** [Makefile:512: libuafs] Error 2
make[2]: Leaving directory '/root/build-openafs-1.6.24/openafs-1.6.24'
make[1]: *** [Makefile:694: build] Error 2
make[1]: Leaving directory '/root/build-openafs-1.6.24/openafs-1.6.24'
make: *** [Makefile:36: all] Error 2

The error is generated when running the script

https://www.eneagrid.enea.it/afs/compile_install_OpenAFS1624_Centos8_v1.sh

  similar to the scripts that work well for CEntOS7 Openafs 1.6.24 / 
1.8,7 and CentOS 8, Openafs 1.8.7


-- 
Giovanni Bracco
phone  +39 351 8804788
E-mail  giovanni.bracco@enea.it
WWW http://www.afs.enea.it/bracco


==================================================

Questo messaggio e i suoi allegati sono indirizzati esclusivamente alle persone indicate e la casella di posta elettronica da cui e' stata inviata e' da qualificarsi quale strumento aziendale.
La diffusione, copia o qualsiasi altra azione derivante dalla conoscenza di queste informazioni sono rigorosamente vietate (art. 616 c.p, D.Lgs. n. 196/2003 s.m.i. e GDPR Regolamento - UE 2016/679).
Qualora abbiate ricevuto questo documento per errore siete cortesemente pregati di darne immediata comunicazione al mittente e di provvedere alla sua distruzione. Grazie.

This e-mail and any attachments is confidential and may contain privileged information intended for the addressee(s) only.
Dissemination, copying, printing or use by anybody else is unauthorised (art. 616 c.p, D.Lgs. n. 196/2003 and subsequent amendments and GDPR UE 2016/679).
If you are not the intended recipient, please delete this message and any attachments and advise the sender by return e-mail. Thanks.

==================================================