2.0.34pre7: linking error

Heiko_Eissfeldt%DETECSM@Q9J03.mgb01.telekom.de
Wed, 8 Apr 1998 18:59:21 +0200


Heiko Eissfeldt @ DETECSM
08.04.98 18:59

Hi Alan, hi Linuxers,

when including the watchdog driver (wdt.c) and the isdn avmb1 driver as
well, the variable
'irq' is multiple defined:
ld -m elf_i386 -Ttext 0x100000 -e stext arch/i386/kernel/head.o init/main.o
init/version.o \
arch/i386/kernel/kernel.o arch/i386/mm/mm.o kernel/kernel.o mm/mm.o
fs/fs.o ipc/ipc.o net/network.a \
fs/filesystems.a \
drivers/block/block.a drivers/char/char.a drivers/isdn/isdn.a
drivers/net/net.a drivers/cdrom/cdrom.a drivers/scsi/scsi.a
drivers/pci/pci.a arch/i386/math-emu/math.a \
/home/dtsftp/linux/arch/i386/lib/lib.a /home/dtsftp/linux/lib/lib.a
/home/dtsftp/linux/arch/i386/lib/lib.a -o vmlinux
drivers/isdn/isdn.a(avmb1.o)(.data+0x518): multiple definition of `irq'
drivers/char/char.a(wdt.o)(.data+0x8): first defined here
make: *** [vmlinux] Error 1

The conflict is in these lines:
drivers/isdn/avmb1/b1capi.c:60:int irq = 15;
drivers/char/wdt.c:46:int irq=14;

Cheers, Heiko
BTW: This is on an Intel platform.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu