error in compiling 2.1.34

Richard J. Strasser (strasser@im-ug.ea-generali.co.at)
Tue, 15 Apr 1997 09:09:04 +0200 (CEST)


Hello!

I got following error on compiling 2.1.34 on a Dell Poweredge Dual Pentium:

time.c: In function `x86_do_profile':
time.c:379: warning: passing arg 1 of `atomic_inc' from incompatible pointer type
time.c:386: warning: passing arg 1 of `atomic_inc' from incompatible pointer type
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -D__SMP__ -c -o sys_i386.o sys_i386.c
gcc -D__KERNEL__ -I/usr/src/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -D__SMP__ -c -o smp.o smp.c
smp.c: In function `x86_do_profile':
smp.c:1347: warning: passing arg 1 of `atomic_inc' from incompatible pointer type
smp.c:1354: warning: passing arg 1 of `atomic_inc' from incompatible pointer type
smp.c: In function `smp_local_timer_interrupt':
smp.c:1421: warning: passing arg 2 of `atomic_add' from incompatible pointer type
smp.c:1423: warning: passing arg 2 of `atomic_add' from incompatible pointer type
smp.c:1425: warning: passing arg 2 of `atomic_add' from incompatible pointer type
gcc -D__KERNEL__ -I/usr/src/linux/include -D__ASSEMBLY__ -D__SMP__ -traditional -c trampoline.S -o trampoline.o
rm -f kernel.o
ld -m elf_i386 -r -o kernel.o i386_ksyms.o process.o signal.o entry.o traps.o irq.o vm86.o bios32.o ptrace.o ioport.o ldt.o setup.o time.o sys_i386.o smp.o trampoline.o
smp.o: In function `x86_do_profile':
smp.o(.text+0x108c): multiple definition of `x86_do_profile'
time.o(.text+0x2ec): first defined here
make[1]: *** [kernel.o] Error 1
make[1]: Leaving directory `/usr/src/linux/arch/i386/kernel'
make: *** [linuxsubdirs] Error 2

Any suggestions?

Richard