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

Andreas Schuldei andreas@schuldei.org
Mon, 11 Oct 2004 20:37:33 +0200


On Mon, Oct 11, 2004 at 12:50:38PM +0200, Andreas Schuldei wrote:
> hi!
> 
> in
> https://lists.openafs.org/pipermail/openafs-devel/2003-April/009210.html
> it says that there is a patch for this issue. i see a very
> similar (if not the same) error when i try to build with the
> 1.3-71 sources as they are in debian experimental.


i have received private mail in german suggesting that 
adding _umlinux in src/comerr/Makefile.in so that it reads

compile_et:     compile_et.o error_table.o

        case $(SYS_NAME) in \
        *_linux* | *_umlinux* ) \
                 ^^^^^^^^^^^^
        ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil;; \
        * ) \
        ${CC} ${CFLAGS} -o compile_et compile_et.o error_table.o -L${TOP_LIBDIR} -lafsutil -ll;; \
        esac

helped him. but i still get this ugly error:

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
make[6]: *** [afs_analyze.o] Fehler 1
make[6]: Leaving directory `/tmp/modules/openafs/src/libafs/MODLOAD-2.4.26-3um-SP'
make[5]: *** [linux_compdirs] Fehler 2
make[5]: Leaving directory `/tmp/modules/openafs/src/libafs'
make[4]: *** [libafs] Fehler 2
make[4]: Leaving directory `/tmp/modules/openafs'
make[3]: *** [build] Fehler 2
make[3]: Leaving directory `/tmp/modules/openafs'
make[2]: *** [only_libafs] Fehler 2
make[2]: Leaving directory `/tmp/modules/openafs'
make[1]: *** [build-modules-stamp] Fehler 2
make[1]: Leaving directory `/tmp/modules/openafs'
Module /tmp/modules/openafs failed.


which was allready mentioned in the thread i quoted above.
Any other tips?


> i am unfamiliar with the openafs cvs. where can i find it and how
> do i find the mentioned patch?

this remains to be answered.

> has anyone gotten openafs to work in uml, once it compiled?

the kind person mentioned reported success with afs in uml, btw.