2.2.0pre6: multiple definition of `kernel_version'

lk@winux.com
Sat, 9 Jan 1999 13:41:49 -0500 (EST)


Building an SMP kernel for a P5 with both the Vortex and the Tulip
drivers fails as shown below. If I eliminate the Tulip driver from
the config, it builds successfully. I didn't try it with just the
Tulip and not the Vortex.

-lda
----
....
gcc -D__KERNEL__ -I/usr/src/linux/include -D__ASSEMBLY__ -D__SMP__ -traditional -c put
user.S -o putuser.o
rm -f lib.a
ar rcs lib.a checksum.o old-checksum.o semaphore.o delay.o usercopy.o getuser.o putu
ser.o
make[2]: Leaving directory `/usr/src/linux/arch/i386/lib'
make[1]: Leaving directory `/usr/src/linux/arch/i386/lib'
ld -m elf_i386 -T /usr/src/linux/arch/i386/vmlinux.lds -e stext arch/i386/kernel/head.
o arch/i386/kernel/init_task.o init/main.o init/version.o \
--start-group \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ip
c/ipc.o \
fs/filesystems.a \
net/network.a \
drivers/block/block.a drivers/char/char.a drivers/misc/misc.a drivers/net/net.
a drivers/scsi/scsi.a drivers/cdrom/cdrom.a drivers/pci/pci.a drivers/video/video.a \
/usr/src/linux/arch/i386/lib/lib.a /usr/src/linux/lib/lib.a /usr/src/linux/arc
h/i386/lib/lib.a \
--end-group \
-o vmlinux
drivers/net/net.a(tulip.o)(.data+0x6c): multiple definition of `kernel_version'
drivers/net/net.a(3c59x.o)(.data+0x18): first defined here
make: *** [vmlinux] Error 1

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/