[OpenAFS] OpenAFS 1.4.0 && Kernel 2.6.15-rc6 && SPARC64

Turbo Fredriksson turbo@bayour.com
Wed, 07 Dec 2005 23:36:55 +0100

I'm told that OpenAFS doesn't work on SPARC64 at the moment...

----- s n i p -----
  CC [M]  /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.15-rc5-MP/osi_module.o
In file included from /usr/src/modules/openafs/src/afs/afsincludes.h:44,
                 from /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.15-rc5-MP/osi_module.c:22:
/usr/src/modules/openafs/src/afs/afs.h:908:5: warning: "AFS_USEBUFFERS" is not defined
In file included from /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.15-rc5-MP/osi_module.c:38:
include/linux/seq_file.h:43: warning: `printk' is an unrecognized format function type
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.15-rc5-MP/osi_module.c: In function `afs_ioctl':
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.15-rc5-MP/osi_module.c:287: structure has no member named `flags'
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.15-rc5-MP/osi_module.c:287: `SPARC_FLAG_32BIT' undeclared (first use in this function)
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.15-rc5-MP/osi_module.c:287: (Each undeclared identifier is reported only once
/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.15-rc5-MP/osi_module.c:287: for each function it appears in.)
make[8]: *** [/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.15-rc5-MP/osi_module.o] Error 1
make[7]: *** [_module_/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.15-rc5-MP] Error 2
make[7]: Leaving directory `/usr/src/kernel-source-2.6.15-rc5'
make[6]: *** [openafs.ko] Error 2
make[6]: Leaving directory `/usr/src/modules/openafs/src/libafs/MODLOAD-2.6.15-rc5-MP'
make[5]: *** [linux_compdirs] Error 2
make[5]: Leaving directory `/usr/src/modules/openafs/src/libafs'
make[4]: *** [libafs] Error 2
make[4]: Leaving directory `/usr/src/modules/openafs'
make[3]: *** [build] Error 2
make[3]: Leaving directory `/usr/src/modules/openafs'
make[2]: *** [only_libafs] Error 2
make[2]: Leaving directory `/usr/src/modules/openafs'
make[1]: *** [build-modules-stamp] Error 2
make[1]: Leaving directory `/usr/src/modules/openafs'
Module /usr/src/modules/openafs failed.
Hit return to Continue?
----- s n i p -----

I'm running Debian GNU/Linux semi-woody, and using make-kpkg to build
my kernel and module when I get this message.

Some googling, and I saw that the last reference to the Kernel was
from 2.4.31 (in it's defined as "not used").


Looking at the define/declaration, and a (very) quick look at the
OpenAFS source(s), I'm not sure what it was for so I can't (at the
moment) fix it myself...

Does anyone have a fix, so I don't have to dig deeper? I'm lazy (and
tired, it's almost midnight :).

PS. I also keep(t) getting this message:

----- s n i p -----
  CC [M]  /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.15-rc5-MP/afs_analyze.o
In file included from /usr/src/modules/openafs/src/afs/afsincludes.h:44,
                 from /usr/src/modules/openafs/src/libafs/MODLOAD-2.6.15-rc5-MP/afs_analyze.c:36:
/usr/src/modules/openafs/src/afs/afs.h:901:5: warning: "AFS_USEBUFFERS" is not defined
----- s n i p -----

Only a warning, but still. It seems that the AFS_USEBUFFERS is used
BEFORE it was checked/used...