2004-03-31 08:35:21

by Rafał J. Wysocki

[permalink] [raw]
Subject: 2.6.5-rc3: unknown symbol in tekram.ko

I get something like this after 'make modules_install':

if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.5-rc3; fi
WARNING: /lib/modules/2.6.5-rc3/kernel/drivers/net/irda/tekram.ko needs
unknown symbol irda_task_delete

--
Rafael J. Wysocki,
SiSK
[tel. (+48) 605 053 693]
----------------------------
For a successful technology, reality must take precedence over public
relations, for nature cannot be fooled.
-- Richard P. Feynman


2004-04-24 21:41:31

by Adrian Bunk

[permalink] [raw]
Subject: Re: 2.6.5-rc3: unknown symbol in tekram.ko

On Wed, Mar 31, 2004 at 10:42:24AM +0200, R. J. Wysocki wrote:
> I get something like this after 'make modules_install':
>
> if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.5-rc3; fi
> WARNING: /lib/modules/2.6.5-rc3/kernel/drivers/net/irda/tekram.ko needs
> unknown symbol irda_task_delete

Thanks for this report, and sorry for the late answer.

drivers/net/irda/tekram.c uses irda_task_delete, but this function is
not EXPORT_SYMBOL'ed in net/irda/irda_device.c .

The most simple solution would be to change TEKRAM_DONGLE_OLD to be a
bool (as does the patch below), but perhaps the IrDA people know a
better solution.

cu
Adrian

--- linux-2.6.6-rc2-mm1-full/drivers/net/irda/Kconfig.old 2004-04-24 23:34:06.000000000 +0200
+++ linux-2.6.6-rc2-mm1-full/drivers/net/irda/Kconfig 2004-04-24 23:40:26.000000000 +0200
@@ -189,8 +189,8 @@
"irattach -d actisys" or "irattach -d actisys+".

config TEKRAM_DONGLE_OLD
- tristate "Tekram IrMate 210B dongle"
- depends on DONGLE_OLD && IRDA
+ bool "Tekram IrMate 210B dongle"
+ depends on DONGLE_OLD && IRDA=y
help
Say Y here if you want to build support for the Tekram IrMate 210B
dongle. To compile it as a module, choose M here. The Tekram dongle