[OpenAFS-devel] Another build problem on sparc-linux

Dean Anderson dean@av8.com
Sun, 14 Sep 2003 20:51:44 -0400 (EDT)


Ok, I found some joy, in configuring the both the afs toplevel to be
sparc64_linux24 and then building only_libafs_tree, and then configuring
that as sparc64_linux24. Then changing the CC=sparc-linux-gcc to CC=kgcc
in the libafs Makefile.

Then Everything seems to compile, but I get these messages about
redefinitions of exported kernel symbols. I've seen this error before when
trying to build modules in the linux tree without first building a
kernel...

[root@dakota MODLOAD-2.4.20-2.3sparccustom-dean1-SP]# kgcc -O2
-fomit-frame-pointer -fno-strength-reduce -fno-strict-aliasing -fno-common
-pipe -mcpu=ultrasparc -m64 -mno-fpu -mcmodel=medlow -ffixed-g4
-fcall-used-g5 -fcall-used-g7 -Wno-sign-compare -D__KERNEL__ -DCPU=sparc64
-DKERNEL -D_KERNEL -DMODULE -D__BOOT_KERNEL_UP=1 -D__BOOT_KERNEL_SMP=0 -I.
-I../ -I/usr/src/redhat/SOURCES/openafs-1.2.9/vlibafs/config -c
../afs/afs_pioctl.c -DAFS_NONFSTRANS
In file included from ../linux/wait.h:16,
                 from ../afs/../afs/sysincludes.h:51,
                 from ../afs/afs_pioctl.c:15:
../linux/spinlock.h:65: warning: `atomic_dec_and_lock' redefined
../linux/modules/sparc64_ksyms.ver:46: warning: this is the location of
the previous definition
In file included from ../linux/ext3_fs_sb.h:20,
                 from ../linux/fs.h:693,
                 from ../linux/capability.h:17,
                 from ../linux/binfmts.h:5,
                 from ../linux/sched.h:9,
                 from ../asm/uaccess.h:10,
                 from ../afs/../afs/sysincludes.h:65,
                 from ../afs/afs_pioctl.c:15:
../linux/timer.h:30: warning: `del_timer_sync' redefined
../linux/modules/ksyms.ver:574: warning: this is the location of the
previous definition
In file included from ../linux/sched.h:23,
                 from ../asm/uaccess.h:10,
                 from ../afs/../afs/sysincludes.h:65,
                 from ../afs/afs_pioctl.c:15:
../linux/smp.h:80: warning: `smp_num_cpus' redefined
../linux/modules/sparc64_ksyms.ver:26: warning: this is the location of
the previous definition
../linux/smp.h:87: warning: `smp_call_function' redefined
../linux/modules/sparc64_ksyms.ver:34: warning: this is the location of
the previous definition
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_pioctl.c:16:
/usr/include/sys/sysmacros.h:30: warning: `major' redefined
../linux/kdev_t.h:80: warning: this is the location of the previous
definition
/usr/include/sys/sysmacros.h:31: warning: `minor' redefined
../linux/kdev_t.h:81: warning: this is the location of the previous
definition