lkml.org 
[lkml]   [2002]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: 2.4.20 kernel link error
On Fri, Nov 29, 2002 at 07:00:50AM -0800, carbonated beverage wrote:

> Anything other info needed?
>...

Thanks for your report, the information you included was sufficient.

> gcc 2.95.4
> binutils 2.12.90.0.1
> Debian/woody
> Linux 2.4.20
>
> drivers/net/pcmcia/pcmcia_net.o: In function `smc_link_ok':
> drivers/net/pcmcia/pcmcia_net.o(.text+0x280c): undefined reference to `mii_link_ok'
> drivers/net/pcmcia/pcmcia_net.o: In function `smc_ethtool_ioctl':
> drivers/net/pcmcia/pcmcia_net.o(.text+0x29ce): undefined reference to `mii_ethtool_gset'
> drivers/net/pcmcia/pcmcia_net.o(.text+0x2a7d): undefined reference to `mii_ethtool_sset'
> drivers/net/pcmcia/pcmcia_net.o(.text+0x2b1c): undefined reference to `mii_nway_restart'
> drivers/net/pcmcia/pcmcia_net.o: In function `smc_ioctl':
> drivers/net/pcmcia/pcmcia_net.o(.text+0x2b8d): undefined reference to `generic_mii_ioctl'
>...
> CONFIG_PCMCIA_SMC91C92=y
>...

I already sent a patch for this for 2.5 but I didn't know the problem
also exists in 2.4. The following patch fixes it:

--- linux-2.4.20-test/drivers/net/Makefile.old 2002-11-29 17:46:47.000000000 +0100
+++ linux-2.4.20-test/drivers/net/Makefile 2002-11-29 17:47:22.000000000 +0100
@@ -122,6 +122,7 @@
obj-$(CONFIG_MAC8390) += daynaport.o 8390.o
obj-$(CONFIG_APNE) += apne.o 8390.o
obj-$(CONFIG_PCMCIA_PCNET) += 8390.o
+obj-$(CONFIG_PCMCIA_SMC91C92) += mii.o
obj-$(CONFIG_SHAPER) += shaper.o
obj-$(CONFIG_SK_G16) += sk_g16.o
obj-$(CONFIG_HP100) += hp100.o

Zwane changed this driver to use the MII support library but he
accidentially forgot that this requires mii.o.


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

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

\
 
 \ /
  Last update: 2005-03-22 13:31    [W:0.087 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site