[OpenAFS] OpenAFS on Linux 2.5.x
Adrian Knoth
adi@drcomp.erfurt.thur.de
Tue, 15 Apr 2003 21:32:45 +0200
Hi,
I tried to compile libafs against Linux-2.5.67, it didn't work.
Is it my fault, should I do something else?
I don't need the MP-module, so I removed it from building. The SP-module
fails with a different error.
--- error for the MP-module ---
Building in directory: MODLOAD-2.5.67.k7-MP
make[4]: Entering directory `/tmp/openafs-1.2.8/src/libafs/MODLOAD-2.5.67.k7-MP$gcc -O2 -fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing -fno-c$In file included from ../afs/../afs/../rx/../rx/rx_packet.h:45,
from ../afs/../afs/../rx/rx.h:38,
from ../afs/../afs/afsincludes.h:30,
from ../afs/afs_analyze.c:35:
/usr/include/sys/sysmacros.h:28: warning: `major' redefined
../linux/kdev_t.h:113: warning: this is the location of the previous definition
/usr/include/sys/sysmacros.h:29: warning: `minor' redefined
../linux/kdev_t.h:112: warning: this is the location of the previous definition
In file included from ../linux/prefetch.h:13,
from ../linux/list.h:7,
from ../linux/wait.h:14,
from ../afs/../afs/sysincludes.h:51,
from ../afs/afs_analyze.c:19:
../asm/processor.h:85: `CONFIG_NR_CPUS' undeclared here (not in a function)
In file included from ../linux/gfp.h:4,
from ../linux/slab.h:14,
from ../linux/percpu.h:4,
from ../linux/rcupdate.h:42,
from ../linux/dcache.h:10,
from ../afs/../afs/sysincludes.h:67,
from ../afs/afs_analyze.c:19:
../linux/mmzone.h:127: `CONFIG_NR_CPUS' undeclared here (not in a function)
In file included from ../asm/percpu.h:4,
from ../linux/percpu.h:5,
from ../linux/rcupdate.h:42,
from ../linux/dcache.h:10,
from ../afs/../afs/sysincludes.h:67,
from ../afs/afs_analyze.c:19:
../asm-generic/percpu.h:8: `CONFIG_NR_CPUS' undeclared here (not in a function)
In file included from ../linux/rcupdate.h:42,
from ../linux/dcache.h:10,
from ../afs/../afs/sysincludes.h:67,
from ../afs/afs_analyze.c:19:
../linux/percpu.h:14: `CONFIG_NR_CPUS' undeclared here (not in a function)
In file included from ../linux/dcache.h:10,
from ../afs/../afs/sysincludes.h:67,
from ../afs/afs_analyze.c:19:
../linux/rcupdate.h: In function `rcu_pending':
../linux/rcupdate.h:113: invalid type argument of `unary *'
../linux/rcupdate.h:114: invalid type argument of `unary *'
../linux/rcupdate.h:115: invalid type argument of `unary *'
../linux/rcupdate.h:116: invalid type argument of `unary *'
In file included from ../asm/smp.h:17,
from ../linux/smp.h:17,
from ../linux/sched.h:22,
from ../afs/../afs/sysincludes.h:70,
from ../afs/afs_analyze.c:19:
../asm/mpspec.h: At top level:
../asm/mpspec.h:205: `CONFIG_NR_CPUS' undeclared here (not in a function)
../asm/mpspec.h:205: size of array `quad_local_to_mp_bus_id' has non-integer ty$In file included from ../afs/../afs/../rx/rx.h:33,
from ../afs/../afs/afsincludes.h:30,
from ../afs/afs_analyze.c:35:
../afs/../afs/../rx/../rx/rx_kmutex.h: In function `CV_WAIT':
../afs/../afs/../rx/../rx/rx_kmutex.h:128: structure has no member named `sigma$../afs/../afs/../rx/../rx/rx_kmutex.h:131: too many arguments to function `reca$../afs/../afs/../rx/../rx/rx_kmutex.h:132: structure has no member named `sigma$../afs/../afs/../rx/../rx/rx_kmutex.h:137: structure has no member named `sigma$../afs/../afs/../rx/../rx/rx_kmutex.h:139: too many arguments to function `reca$../afs/../afs/../rx/../rx/rx_kmutex.h:140: structure has no member named `sigma$../afs/../afs/../rx/../rx/rx_kmutex.h: In function `CV_TIMEDWAIT':
../afs/../afs/../rx/../rx/rx_kmutex.h:165: structure has no member named `sigma$../afs/../afs/../rx/../rx/rx_kmutex.h:168: too many arguments to function `reca$../afs/../afs/../rx/../rx/rx_kmutex.h:169: structure has no member named `sigma$../afs/../afs/../rx/../rx/rx_kmutex.h:174: structure has no member named `sigma$../afs/../afs/../rx/../rx/rx_kmutex.h:176: too many arguments to function `reca$../afs/../afs/../rx/../rx/rx_kmutex.h:177: structure has no member named `sigma$make[4]: *** [afs_analyze.o] Error 1
make[4]: Leaving directory `/tmp/openafs-1.2.8/src/libafs/MODLOAD-2.5.67.k7-MP'
--- error for the SP-module ----
I. -I../ -I/tmp/openafs-1.2.8/src/config -c ../afs/afs_callback.c;
In file included from ../afs/../afs/../rx/../rx/rx_packet.h:45,
from ../afs/../afs/../rx/rx.h:38,
from ../afs/../afs/afsincludes.h:30,
from ../afs/afs_callback.c:22:
/usr/include/sys/sysmacros.h:28: warning: `major' redefined
../linux/kdev_t.h:113: warning: this is the location of the previous definition
/usr/include/sys/sysmacros.h:29: warning: `minor' redefined
../linux/kdev_t.h:112: warning: this is the location of the previous definition
../afs/afs_callback.c: In function `SRXAFSCB_GetCE':
../afs/afs_callback.c:116: incompatible types in assignment
../afs/afs_callback.c:171: incompatible types in assignment
../afs/afs_callback.c: In function `SRXAFSCB_GetLock':
../afs/afs_callback.c:222: incompatible types in assignment
../afs/afs_callback.c:254: incompatible types in assignment
../afs/afs_callback.c: In function `SRXAFSCB_CallBack':
../afs/afs_callback.c:442: incompatible types in assignment
../afs/afs_callback.c:455: incompatible types in assignment
../afs/afs_callback.c: In function `SRXAFSCB_Probe':
../afs/afs_callback.c:499: incompatible types in assignment
../afs/afs_callback.c:500: incompatible types in assignment
../afs/afs_callback.c: In function `SRXAFSCB_InitCallBackState':
../afs/afs_callback.c:549: incompatible types in assignment
../afs/afs_callback.c:592: incompatible types in assignment
../afs/afs_callback.c: In function `SRXAFSCB_XStatsVersion':
../afs/afs_callback.c:636: incompatible types in assignment
../afs/afs_callback.c:640: incompatible types in assignment
../afs/afs_callback.c: In function `SRXAFSCB_GetXStats':
../afs/afs_callback.c:696: incompatible types in assignment
../afs/afs_callback.c:786: incompatible types in assignment
../afs/afs_callback.c: In function `SRXAFSCB_ProbeUuid':
../afs/afs_callback.c:1028: incompatible types in assignment
../afs/afs_callback.c:1031: incompatible types in assignment
make[4]: *** [afs_callback.o] Error 1
make[4]: Leaving directory `/tmp/openafs-1.2.8/src/libafs/MODLOAD-2.5.67.k7-SP'
--
mail: adi@thur.de http://adi.thur.de PGP: v2-key via keyserver
The UNIX Guru's View of Sex:
# unzip ; strip ; touch ; finger ; mount ; fsck ; more ; yes ; umount ; sleep