Messages in this thread | | | From | Ricky Beam <> | Subject | Re: error in compiling 2.1.34 | Date | Tue, 15 Apr 1997 04:46:46 -0400 (EDT) |
| |
Letting the chips far where they may, I quote Richard J. Strasser: >I got following error on compiling 2.1.34 on a Dell Poweredge Dual Pentium: ... >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
If you look at the code, there is even a comment pointing to a pending problem... the same code for x86_do_profile is in smp.c and time.c. Neither of them are marked "static." Insert static before the definitions in both files:
static inline void x86_do_profile...
While I'm at it, ltpc.c is missing a ';' around line 1268 or so. It's been missing since I started building 2.1 @ 2.1.30.
--Ricky
"This business is like the tobacco business. I wouldn't smoke for love or money but by god I'll sell the shit outa it..." -- Virgil Wall
| |