2003-09-16 17:57:55

by Adrian Bunk

[permalink] [raw]
Subject: 2.6: ISDN_DIVAS link error: multiple "errno"

I got the following link error in 2.6.0-test5-mm2 (it desn't seem to be
specific to -mm) with CONFIG_ISDN_DIVAS=y :

<-- snip -->

...
LD .tmp_vmlinux1
drivers/built-in.o(.bss+0x123d60): multiple definition of `errno'
lib/lib.a(errno.o)(.bss+0x0): first defined here

<-- snip -->


drivers/isdn/hardware/eicon/divasmain.c has a non-static variable errno
(on a first sight it doesn't seem to be really used) that conflicts
with the variable in lib/errno.c .

cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed


2003-09-17 08:26:16

by Armin Schindler

[permalink] [raw]
Subject: Re: 2.6: ISDN_DIVAS link error: multiple "errno"

Hi Adrian,

thanks for pointing out. I will create a patch.

Armin


On Tue, 16 Sep 2003, Adrian Bunk wrote:

> I got the following link error in 2.6.0-test5-mm2 (it desn't seem to be
> specific to -mm) with CONFIG_ISDN_DIVAS=y :
>
> <-- snip -->
>
> ...
> LD .tmp_vmlinux1
> drivers/built-in.o(.bss+0x123d60): multiple definition of `errno'
> lib/lib.a(errno.o)(.bss+0x0): first defined here
>
> <-- snip -->
>
>
> drivers/isdn/hardware/eicon/divasmain.c has a non-static variable errno
> (on a first sight it doesn't seem to be really used) that conflicts
> with the variable in lib/errno.c .
>
> cu
> Adrian
>
> --
>
> "Is there not promise of rain?" Ling Tan asked suddenly out
> of the darkness. There had been need of rain for many days.
> "Only a promise," Lao Er said.
> Pearl S. Buck - Dragon Seed
>