[OpenAFS] Openafs (client) on OpenSSI

Ron Croonenberg ronc@depauw.edu
Sat, 09 Jul 2005 11:29:17 -0500


Ok,

I have OpenAFS "somewhat" compile now, but it still breaks.
I managed to get all the (modified) sources for OpenSSI-1.2.2 and have a
configuration that will compile.

I am trying to compile against that kernel.

A link, cluster, to the ""kernel-tree"/include/cluster in the src dir is
needed else a bunc of stuff can't be found. 
(ln -s /usr/src/linux-2.4.22-1.2199.nptl_ssi_9/include/cluster cluster)

It starts to find things, but I noticed there are a bunch of
"redefinition warning" try to find a solution on the web (can find
similar problems, but not a solution).

any suggestions ?  (here's the msgs when compiling)

[root@oort src]# make
rm -f h net netinet sys rpc
ln -s rx rpc
for m in MP ; do \
        KDIR=MODLOAD-2.4.22-1.2199.nptl_ssi_9smp-$m; \
        mkdir -p ${KDIR}; \
        ln -fs ../Makefile ${KDIR}/Makefile ; \
        ln -fs ../Makefile.common ${KDIR}/Makefile.common; \
        ln -fs ../config ${KDIR}/config; \
done 
rm -f h 
ln -s /usr/src/linux-2.4.22-1.2199.nptl_ssi_9/include/linux h 
rm -f linux 
ln -s /usr/src/linux-2.4.22-1.2199.nptl_ssi_9/include/linux linux 
rm -f net 
ln -s /usr/src/linux-2.4.22-1.2199.nptl_ssi_9/include/net net 
rm -f netinet 
ln -s /usr/src/linux-2.4.22-1.2199.nptl_ssi_9/include/linux netinet 
rm -f sys
ln -s /usr/src/linux-2.4.22-1.2199.nptl_ssi_9/include/linux sys
rm -f asm-generic
ln -s /usr/src/linux-2.4.22-1.2199.nptl_ssi_9/include/asm-generic
asm-generic
rm -f asm
ln -s /usr/src/linux-2.4.22-1.2199.nptl_ssi_9/include/asm-i386 asm
for m in MP ; do \
        KDIR=MODLOAD-2.4.22-1.2199.nptl_ssi_9smp-$m ; \
        echo Building in directory: ${KDIR} ; \
        if [ "$m" = "MP" ] ; then \
                SMP_DEF="-DAFS_SMP  " ; \
                TARG="libafs.mp" ; \
        elif [ "$m" = "EP" ] ; then \
                SMP_DEF="-DAFS_SMP  " ; \
                TARG="libafs.ep" ; \
        elif [ "$m" = "BM" ] ; then \
                SMP_DEF="-DAFS_SMP  " ; \
                TARG="libafs.bm" ; \
        else  \
                SMP_DEF=" " ; \
                TARG=libafs ; \
        fi ; \
        cd ${KDIR} ; \
        make SMP_DEF="${SMP_DEF}" linux_compdirs_${TARG}
CLIENT=2.4.22-1.2199.nptl_ssi_9smp || exit $?; \
        cd ../ ; \
done
Building in directory: MODLOAD-2.4.22-1.2199.nptl_ssi_9smp-MP
make[1]: Entering directory
`/usr/src/openafs-kernel-1.2.13/src/MODLOAD-2.4.22-1.2199.nptl_ssi_9smp-MP'
gcc  -O2 -fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing
-fno-common -pipe -march=pentium -D__KERNEL__  -DCPU=586 -DKERNEL
-D_KERNEL -DMODULE -DAFS_SMP    -I. -I../
-I/usr/src/openafs-kernel-1.2.13/src/config -c ../afs/afs_vnop_flock.c;
In file included from ../rx/rx.h:39,
                 from ../afs/afsincludes.h:30,
                 from ../afs/afs_vnop_flock.c:21:
../rx/rx_misc.h:29:1: warning: "PIN" redefined
In file included from ../linux/fs.h:19,
                 from ../linux/capability.h:17,
                 from ../linux/binfmts.h:4,
                 from ../linux/sched.h:10,
                 from ../asm/uaccess.h:8,
                 from ../afs/sysincludes.h:65,
                 from ../afs/afs_vnop_flock.c:20:
../linux/dcache.h:154:1: warning: this is the location of the previous
definition
In file included from ../rx/rx.h:39,
                 from ../afs/afsincludes.h:30,
                 from ../afs/afs_vnop_flock.c:21:
../rx/rx_misc.h:30:1: warning: "UNPIN" redefined
In file included from ../linux/fs.h:19,
                 from ../linux/capability.h:17,
                 from ../linux/binfmts.h:4,
                 from ../linux/sched.h:10,
                 from ../asm/uaccess.h:8,
                 from ../afs/sysincludes.h:65,
                 from ../afs/afs_vnop_flock.c:20:
../linux/dcache.h:156:1: warning: this is the location of the previous
definition
../afs/afs_vnop_flock.c: In function `lockIdcmp2':
../afs/afs_vnop_flock.c:179: error: structure has no member named
`p_opptr'
make[1]: *** [afs_vnop_flock.o] Error 1
make[1]: Leaving directory
`/usr/src/openafs-kernel-1.2.13/src/MODLOAD-2.4.22-1.2199.nptl_ssi_9smp-MP'
make: *** [linux_compdirs] Error 2


thanks,

Ron