[OpenAFS] openafs in user-mode-linux, status?

Andreas Schuldei andreas@schuldei.org
Tue, 12 Oct 2004 12:48:52 +0200


On Mon, Oct 11, 2004 at 08:37:33PM +0200, Andreas Schuldei wrote:
> gcc -pipe -I. -I.. -I../nfs -I/tmp/modules/openafs/src -I/tmp/modules/openafs/src/afs -I/tmp/modules/openafs/src/afs/LINUX -I/tmp/modules/openafs/src/config -I/tmp/modules/openafs/src/rx/LINUX -I/tmp/modules/openafs/src/rxkad -I/tmp/modules/openafs/src/rxkad/domestic -I/tmp/modules/openafs/src/util -I/tmp/modules/openafs/src -I/tmp/modules/openafs/src/afs -I/tmp/modules/openafs/src/afs/LINUX -I/tmp/modules/openafs/src/util -I/tmp/modules/openafs/src/rxkad -I/tmp/modules/openafs/src/config -I/tmp/modules/openafs/src/fsint -I/tmp/modules/openafs/src/vlserver -I/tmp/modules/openafs/include -I/tmp/modules/openafs/include/afs   -O2  -O2  -fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing -fno-common -pipe -march=pentium -D__KERNEL__ -DKERNEL -D_KERNEL -DMODULE  -DCPU=586 -I. -I../ -I/tmp/modules/openafs/src/config -I/tmp/modules/openafs/src/rx -I/tmp/modules/openafs/src/rxstat -c /tmp/modules/openafs/src/afs/afs_analyze.c
> In file included from ../linux/prefetch.h:13,
>                  from ../linux/list.h:6,
>                  from ../linux/wait.h:14,
>                  from /tmp/modules/openafs/src/afs/sysincludes.h:57,
>                  from /tmp/modules/openafs/src/afs/afs_analyze.c:20:
> ../asm/processor.h:56: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared here (not in a function)
> ../asm/processor.h:56: error: requested alignment is not a constant
> In Datei, eingefĆ¼gt von ../linux/fs.h:327,
>                     von ../linux/capability.h:17,
>                     von ../linux/binfmts.h:5,
>                     von ../linux/sched.h:9,
>                     von ../asm/uaccess.h:8,
>                     von /tmp/modules/openafs/src/afs/sysincludes.h:82,
>                     von /tmp/modules/openafs/src/afs/afs_analyze.c:20:
> ../linux/hostfs_fs_i.h:4:24: filehandle.h: Datei oder Verzeichnis nicht gefunden

this is caused by a brokenness in libafs/MODLOAD-2.4.26-3um-SP/Makefile.afs
where it resets the UML kernel settings:

./libafs/MODLOAD-2.4.26-3um-SP/Makefile.afs:    ln -fs ${LINUX_KERNEL_PATH}/include/linux h
./libafs/MODLOAD-2.4.26-3um-SP/Makefile.afs:    ln -fs ${LINUX_KERNEL_PATH}/include/linux linux
./libafs/MODLOAD-2.4.26-3um-SP/Makefile.afs:    ln -fs ${LINUX_KERNEL_PATH}/include/net net
./libafs/MODLOAD-2.4.26-3um-SP/Makefile.afs:    ln -fs ${LINUX_KERNEL_PATH}/include/linux netinet
./libafs/MODLOAD-2.4.26-3um-SP/Makefile.afs:    ln -fs ${LINUX_KERNEL_PATH}/include/linux sys
./libafs/MODLOAD-2.4.26-3um-SP/Makefile.afs:    ln -fs ${LINUX_KERNEL_PATH}/include/asm-generic asm-generic
./libafs/MODLOAD-2.4.26-3um-SP/Makefile.afs:    ln -fs ${LINUX_KERNEL_PATH}/include/asm-i386 asm

where is this makefile generated and what would be the proper
fix?  why are all the links deleted in the first place? what
buissness does this makefile have to change setting in an other
source tree?