[OpenAFS] compiling OpenAFS for OpenSSI

Ron Croonenberg ronc@depauw.edu
Fri, 09 Sep 2005 08:59:28 -0500


Hello all,

I am still trying to compile OpenAFS-1.2.13 for OpenSSI (based op RH9)
I can't really get it figured out but I have the impression that perhaps
a wrong include directory is used when compiling libafs ?
I added the compiler messages at the end of this msg.

At some point there seem to be a bunch of things that are "redifined"
and later on "it" complains about a headerfile not being there.

I don't think it's as simple as creating a link in the MODLOAD-XXXX
directory to that cluster include directory..  is it ?

In case it is "that simple"  how can I change the "openafs-1.2.13.spec"
file so that it creates that link ?

thanks,

Ron


Building in directory: MODLOAD-2.4.22-1.2199.nptl_ssi_9smp-i386-SP
make[4]: Entering directory
`/usr/src/redhat/BUILD/openafs-1.2.13/src/libafs/MODLOAD-2.4.22-1.2199.nptl_ssi_9smp-i386-SP'
gcc   -O2 -fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing
-fno-common -pipe -march=pentium -D__KERNEL__  -DCPU=586 -DKERNEL
-D_KERNEL -DMODULE -DREDHAT_FIX  -I. -I../
-I/usr/src/redhat/BUILD/openafs-1.2.13/src/config -c
../afs/afs_atomlist.c;
gcc   -O2 -fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing
-fno-common -pipe -march=pentium -D__KERNEL__  -DCPU=586 -DKERNEL
-D_KERNEL -DMODULE -DREDHAT_FIX  -I. -I../
-I/usr/src/redhat/BUILD/openafs-1.2.13/src/config -c ../afs/afs_lhash.c;
gcc   -O2 -fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing
-fno-common -pipe -march=pentium -D__KERNEL__  -DCPU=586 -DKERNEL
-D_KERNEL -DMODULE -DREDHAT_FIX  -I. -I../
-I/usr/src/redhat/BUILD/openafs-1.2.13/src/config -c
../afs/afs_analyze.c;
In file included from ../linux/prefetch.h:13,
                 from ../linux/list.h:6,
                 from ../linux/wait.h:14,
                 from ../afs/sysincludes.h:51,
                 from ../afs/afs_analyze.c:19:
../asm/processor.h:90:1: warning: "cpu_data" redefined
In file included from ../linux/modversions.h:146,
                 from ../afs/param.h:47,
                 from ../afs/afs_analyze.c:14:
../linux/modules/i386_ksyms.ver:92:1: warning: this is the location of
the previous definition
In file included from ../linux/wait.h:16,
                 from ../afs/sysincludes.h:51,
                 from ../afs/afs_analyze.c:19:
../linux/spinlock.h:65:1: warning: "atomic_dec_and_lock" redefined
In file included from ../linux/modversions.h:146,
                 from ../afs/param.h:47,
                 from ../afs/afs_analyze.c:14:
../linux/modules/i386_ksyms.ver:136:1: warning: this is the location of
the previous definition
In file included 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_analyze.c:19:
../linux/fs.h:27:35: cluster/ssi/cfs/const.h: No such file or directory
In file included from ../linux/ext3_fs_sb.h:20,
                 from ../linux/fs.h:771,
                 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_analyze.c:19:
../linux/timer.h:30:1: warning: "del_timer_sync" redefined
In file included from ../linux/modversions.h:193,
                 from ../afs/param.h:47,
                 from ../afs/afs_analyze.c:14:
../linux/modules/ksyms.ver:626:1: warning: this is the location of the
previous definition
In file included from ../linux/sched.h:24,
                 from ../asm/uaccess.h:8,
                 from ../afs/sysincludes.h:65,
                 from ../afs/afs_analyze.c:19:
../linux/smp.h:101:1: warning: "smp_num_cpus" redefined
In file included from ../linux/modversions.h:146,
                 from ../afs/param.h:47,
                 from ../afs/afs_analyze.c:14:
../linux/modules/i386_ksyms.ver:96:1: warning: this is the location of
the previous definition
In file included from ../linux/sched.h:24,
                 from ../asm/uaccess.h:8,
                 from ../afs/sysincludes.h:65,
                 from ../afs/afs_analyze.c:19:
../linux/smp.h:109:1: warning: "smp_call_function" redefined
In file included from ../linux/modversions.h:146,
                 from ../afs/param.h:47,
                 from ../afs/afs_analyze.c:14:
../linux/modules/i386_ksyms.ver:116:1: warning: this is the location of
the previous definition
In file included from ../linux/sched.h:24,
                 from ../asm/uaccess.h:8,
                 from ../afs/sysincludes.h:65,
                 from ../afs/afs_analyze.c:19:
../linux/smp.h:110:1: warning: "cpu_online_map" redefined
In file included from ../linux/modversions.h:146,
                 from ../afs/param.h:47,
                 from ../afs/afs_analyze.c:14:
../linux/modules/i386_ksyms.ver:100:1: warning: this is the location of
the previous definition
In file included from ../asm/uaccess.h:8,
                 from ../afs/sysincludes.h:65,
                 from ../afs/afs_analyze.c:19:
../linux/sched.h:40:33: cluster/synch_types.h: No such file or directory
../linux/sched.h:47:43: cluster/ssi/mosixll/mosixtask.h: No such file or
directory
In file included from ../asm/uaccess.h:8,
                 from ../afs/sysincludes.h:65,
                 from ../afs/afs_analyze.c:19:
../linux/sched.h:527: error: syntax error before "EVENT_T"
../linux/sched.h:527: warning: no semicolon at end of struct or union
../linux/sched.h:546: error: syntax error before ':' token
../linux/sched.h:553: error: syntax error before ':' token
../linux/sched.h:622: error: syntax error before '}' token
../linux/sched.h:693:1: warning: "set_cpus_allowed" redefined
In file included from ../linux/modversions.h:193,
                 from ../afs/param.h:47,
                 from ../afs/afs_analyze.c:14:
../linux/modules/ksyms.ver:718:1: warning: this is the location of the
previous definition
../linux/sched.h:873: error: field `task' has incomplete type
../linux/sched.h: In function `signal_pending':
../linux/sched.h:974: error: dereferencing pointer to incomplete type
../linux/sched.h:976: error: dereferencing pointer to incomplete type
../linux/sched.h: In function `on_sig_stack':
../linux/sched.h:989: error: dereferencing pointer to incomplete type
../linux/sched.h:989: error: dereferencing pointer to incomplete type
../linux/sched.h: In function `sas_ss_flags':
../linux/sched.h:994: error: dereferencing pointer to incomplete type
../linux/sched.h: In function `suser':
../linux/sched.h:1019: error: dereferencing pointer to incomplete type
../linux/sched.h:1020: error: dereferencing pointer to incomplete type
../linux/sched.h: In function `fsuser':
../linux/sched.h:1028: error: dereferencing pointer to incomplete type
../linux/sched.h:1029: error: dereferencing pointer to incomplete type
../linux/sched.h: In function `capable':
../linux/sched.h:1044: error: dereferencing pointer to incomplete type
../linux/sched.h:1049: error: dereferencing pointer to incomplete type
../linux/sched.h: In function `thread_group_empty':
../linux/sched.h:1293: error: dereferencing pointer to incomplete type
../linux/sched.h: In function `task_lock':
../linux/sched.h:1306: error: dereferencing pointer to incomplete type
../linux/sched.h: In function `get_task_mm':
../linux/sched.h:1325: error: dereferencing pointer to incomplete type
../linux/sched.h: In function `d_path':
../linux/sched.h:1340: error: dereferencing pointer to incomplete type
../linux/sched.h:1341: error: dereferencing pointer to incomplete type
../linux/sched.h:1342: error: dereferencing pointer to incomplete type
../linux/sched.h: In function `set_need_resched':
../linux/sched.h:1354: error: dereferencing pointer to incomplete type
../linux/sched.h: In function `clear_need_resched':
../linux/sched.h:1359: error: dereferencing pointer to incomplete type
../linux/sched.h: In function `set_tsk_need_resched':
../linux/sched.h:1364: error: dereferencing pointer to incomplete type
../linux/sched.h: In function `clear_tsk_need_resched':
../linux/sched.h:1369: error: dereferencing pointer to incomplete type
../linux/sched.h: In function `need_resched':
../linux/sched.h:1374: error: dereferencing pointer to incomplete type
In file included from ../afs/sysincludes.h:65,
                 from ../afs/afs_analyze.c:19:
../asm/uaccess.h:11:31: cluster/ssi/rcopy.h: No such file or directory
In file included from ../afs/sysincludes.h:65,
                 from ../afs/afs_analyze.c:19:
../asm/uaccess.h: In function `verify_area':
../asm/uaccess.h:120: error: dereferencing pointer to incomplete type
../asm/uaccess.h: In function `__constant_copy_to_user':
../asm/uaccess.h:784: error: dereferencing pointer to incomplete type
../asm/uaccess.h: In function `__constant_copy_from_user':
../asm/uaccess.h:796: error: dereferencing pointer to incomplete type
In file included from ../afs/sysincludes.h:71,
                 from ../afs/afs_analyze.c:19:
../linux/mm.h: In function `pf_gfp_mask':
../linux/mm.h:679: error: dereferencing pointer to incomplete type
In file included from ../rx/rx.h:39,
                 from ../afs/afsincludes.h:30,
                 from ../afs/afs_analyze.c:35:
../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_analyze.c:19:
../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_analyze.c:35:
../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_analyze.c:19:
../linux/dcache.h:156:1: warning: this is the location of the previous
definition
../afs/afs_analyze.c: In function `VLDB_Same':
../afs/afs_analyze.c:266: error: dereferencing pointer to incomplete
type
../afs/afs_analyze.c: At top level:
../linux/sched.h:620: error: storage size of `mosix' isn't known
make[4]: *** [afs_analyze.o] Error 1
make[4]: Leaving directory
`/usr/src/redhat/BUILD/openafs-1.2.13/src/libafs/MODLOAD-2.4.22-1.2199.nptl_ssi_9smp-i386-SP'
make[3]: *** [linux_compdirs] Error 2
make[3]: Leaving directory
`/usr/src/redhat/BUILD/openafs-1.2.13/src/libafs'
make[2]: *** [libafs] Error 2
make[2]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.2.13'
make[1]: *** [build] Error 2
make[1]: Leaving directory `/usr/src/redhat/BUILD/openafs-1.2.13'
make: *** [only_libafs] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.11925 (%build)
 
 
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.11925 (%build)
[root@oort-02 SPECS]