2.4.20 kernel link error
Anything other info needed?
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_X86=yCONFIG_UID16=yCONFIG_EXPERIMENTAL=yCONFIG_MODULES=yCONFIG_M586MMX=yCONFIG_X86_WP_WORKS_OK=yCONFIG_X86_INVLPG=yCONFIG_X86_CMPXCHG=yCONFIG_X86_XADD=yCONFIG_X86_BSWAP=yCONFIG_X86_POPAD_OK=yCONFIG_RWSEM_XCHGADD_ALGORITHM=yCONFIG_X86_L1_CACHE_SHIFT=5CONFIG_X86_USE_STRING_486=yCONFIG_X86_ALIGNMENT_16=yCONFIG_X86_HAS_TSC=yCONFIG_X86_GOOD_APIC=yCONFIG_X86_PPRO_FENCE=yCONFIG_NOHIGHMEM=yCONFIG_X86_TSC=yCONFIG_NET=yCONFIG_PCI=yCONFIG_PCI_GOANY=yCONFIG_PCI_BIOS=yCONFIG_PCI_DIRECT=yCONFIG_ISA=yCONFIG_PCI_NAMES=yCONFIG_HOTPLUG=yCONFIG_PCMCIA=yCONFIG_TCIC=yCONFIG_I82365=yCONFIG_SYSVIPC=yCONFIG_SYSCTL=yCONFIG_KCORE_ELF=yCONFIG_BINFMT_ELF=yCONFIG_PARPORT=yCONFIG_PARPORT_PC=yCONFIG_PARPORT_PC_CML1=yCONFIG_PARPORT_PC_FIFO=yCONFIG_PARPORT_1284=yCONFIG_PNP=yCONFIG_ISAPNP=yCONFIG_BLK_DEV_LOOP=yCONFIG_BLK_STATS=yCONFIG_PACKET=yCONFIG_PACKET_MMAP=yCONFIG_NETLINK_DEV=yCONFIG_NETFILTER=yCONFIG_UNIX=yCONFIG_INET=yCONFIG_SYN_COOKIES=yCONFIG_IP_NF_IPTABLES=yCONFIG_IP_NF_MATCH_UNCLEAN=yCONFIG_IP_NF_MATCH_OWNER=yCONFIG_IP_NF_FILTER=yCONFIG_IP_NF_TARGET_REJECT=yCONFIG_IDE=yCONFIG_BLK_DEV_IDE=yCONFIG_BLK_DEV_IDEDISK=yCONFIG_IDEDISK_MULTI_MODE=yCONFIG_BLK_DEV_IDECS=yCONFIG_BLK_DEV_IDEPCI=yCONFIG_BLK_DEV_IDEDMA_PCI=yCONFIG_IDEDMA_PCI_AUTO=yCONFIG_BLK_DEV_IDEDMA=yCONFIG_BLK_DEV_ADMA=yCONFIG_BLK_DEV_PIIX=yCONFIG_PIIX_TUNING=yCONFIG_IDEDMA_AUTO=yCONFIG_BLK_DEV_IDE_MODES=yCONFIG_NETDEVICES=yCONFIG_NET_PCMCIA=yCONFIG_PCMCIA_SMC91C92=yCONFIG_INPUT=yCONFIG_INPUT_KEYBDEV=yCONFIG_INPUT_MOUSEDEV=yCONFIG_INPUT_MOUSEDEV_SCREEN_X=800CONFIG_INPUT_MOUSEDEV_SCREEN_Y=600CONFIG_VT=yCONFIG_VT_CONSOLE=yCONFIG_SERIAL=yCONFIG_UNIX98_PTYS=yCONFIG_UNIX98_PTY_COUNT=256CONFIG_PRINTER=yCONFIG_MOUSE=yCONFIG_PSMOUSE=yCONFIG_RTC=yCONFIG_EXT3_FS=yCONFIG_JBD=yCONFIG_JBD_DEBUG=yCONFIG_TMPFS=yCONFIG_RAMFS=yCONFIG_PROC_FS=yCONFIG_DEVPTS_FS=yCONFIG_EXT2_FS=yCONFIG_MSDOS_PARTITION=yCONFIG_VGA_CONSOLE=yCONFIG_VIDEO_SELECT=yCONFIG_FB=yCONFIG_DUMMY_CONSOLE=yCONFIG_FB_VGA16=yCONFIG_VIDEO_SELECT=yCONFIG_FBCON_VGA_PLANES=y
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=yCONFIG_DEBUG_KERNEL=yCONFIG_MAGIC_SYSRQ=y
Quoted 2 lines · carbonated beverage
Anything other info needed?
...
Thanks for your report, the information you included was sufficient.
Quoted 5 lines
gcc 2.95.4
binutils 2.12.90.0.1
Debian/woody
Linux 2.4.20
Quoted 11 lines
drivers/net/pcmcia/pcmcia_net.o: In function `smc_link_ok':
drivers/net/pcmcia/pcmcia_net.o(.text+0x280c): undefined reference tomii_link_ok' drivers/net/pcmcia/pcmcia_net.o: In functionsmc_ethtool_ioctl':
drivers/net/pcmcia/pcmcia_net.o(.text+0x29ce): undefined reference tomii_ethtool_gset' drivers/net/pcmcia/pcmcia_net.o(.text+0x2a7d): undefined reference tomii_ethtool_sset' drivers/net/pcmcia/pcmcia_net.o(.text+0x2b1c): undefined reference tomii_nway_restart' drivers/net/pcmcia/pcmcia_net.o: In functionsmc_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:
drivers/net/Makefile renamed from drivers/net/Makefile.old +1 -0
@@ -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
Signature · 4 lines
"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