[OpenAFS-devel] Porting of AFS into UML and ARLA

Kris Van Hees aedil-afs@alchar.org
Thu, 17 Jul 2003 10:44:07 -0400


Raymond,

	What seems to be happening is that you are compiling against a Linux
UML source tree that has not been configured and compiled.  The UML compile
of the Linux kernel (unfortunately) seems to only create certain symlinks for
header files duing the 'setup' target of the make process for the kernel, which
is a dependency of the actual 'linux' target.  So, you do have to really
configure the UML Linux kernel source tree, and at a minimum do a 'make setup'.
Then configure and compile OpenAFS again.

	For the details: asm/archparam.h is a link to archparam-i386.h on Intel
boxes (for UML).

	Kris

On Wed, Jul 16, 2003 at 09:09:32PM +0800, Raymond Wong wrote:
> Kris, thanks for your suggestion.  I downloaded openafs 1.2.10-rc1,
> linux-2.4.19, uml patch and compiled openafs
> 
> I use the same procedures.
> ./configure
> Make
> 
> Again, it stuck at the following.
> 
> gcc   -O2 -fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing
> -fno-co
> mmon -pipe -march=pentium -I/usr/src/linux/arch/um/include
> -I/usr/src/linux/arch
> /um/kernel/tt/include -I/usr/src/linux/arch/um/kernel/skas/include
> -D__KERNEL__ 
>  -DCPU=586 -DKERNEL -D_KERNEL -DMODULE -DAFS_SMP    -I. -I../
> -I/ztom/openafs-1.
> 2.10-rc1/src/config -c ../afs/afs_analyze.c;
> In file included from ../h/string.h:25,
>                  from ../afs/stds.h:191,
>                  from ../afs/afs_sysnames.h:27,
>                  from ../afs/param.h:58,
>                  from ../afs/afs_analyze.c:14:
> ../asm/string.h:5:27: asm/archparam.h: No such file or directory
> In file included from ../afs/stds.h:14,
>                  from ../afs/afs_sysnames.h:27,
>                  from ../afs/param.h:58,
>                  from ../afs/afs_analyze.c:14:
> ../sys/types.h:14: parse error before `dev_t'
> ../sys/types.h:14: warning: data definition has no type or storage class
> ../sys/types.h:15: parse error before `ino_t'
> ../sys/types.h:15: warning: data definition has no type or storage class
> ../sys/types.h:16: parse error before `mode_t'...
> 
> It seems openafs always get mixed with linux include paths.  Anyway, is
> there any success compilation of openafs in uml?  I just need a kernel
> module for uml and get it run first.
> 
> BTW, has anyone tried arla in uml?  Any comments on it