* Missing modversions.h in module sources for 2.4.x?
@ 2001-02-03 5:28 Martin Bogomolni
2001-02-03 6:22 ` Keith Owens
0 siblings, 1 reply; 2+ messages in thread
From: Martin Bogomolni @ 2001-02-03 5:28 UTC (permalink / raw)
To: linux-kernel
While trying to compile a new driver for an 802.11 pci card, I started
work on upgrading the linux-wlan utilites to 2.4.0. Other than the
usual small things (like replacing references to kfree_s with kfree) the
work was going pretty smoothly.
I spent a good hour though, trying to debug one problem. The device
driver depends on having netlink in the kernel. When I attempted to
load the driver however, it would give me an unresolved symbol error
for netlink_broadcast, and netlink_kernel_create.
A quick fgrep of /proc/ksyms showed the error.. No version information
was included in the kernel symbol table.
e.g. When loading usb-storage.o, with an SMP compiled kernel + modversions :
insmod usb-storage
Using /lib/modules/2.4.1-SMP/kernel/drivers/usb/storage/usb-storage.o
/lib/modules/2.4.1-SMP/kernel/drivers/usb/storage/usb-storage.o:
unresolved sd
/lib/modules/2.4.1-SMP/kernel/drivers/usb/storage/usb-storage.o:
unresolved symbol usb_deregister
/lib/modules/2.4.1-SMP/kernel/drivers/usb/storage/usb-storage.o:
unresolved symbol usb_free_dev
/lib/modules/2.4.1-SMP/kernel/drivers/usb/storage/usb-storage.o:
unresolved symbol usb_free_urb
/lib/modules/2.4.1-SMP/kernel/drivers/usb/storage/usb-storage.o:
unresolved symbol usb_inc_dev_use
/lib/modules/2.4.1-SMP/kernel/drivers/usb/storage/usb-storage.o:
unresolved symbol usb_alloc_urb
/lib/modules/2.4.1-SMP/kernel/drivers/usb/storage/usb-storage.o:
unresolved symbol usb_register
/lib/modules/2.4.1-SMP/kernel/drivers/usb/storage/usb-storage.o:
unresolved symbol usb_reset_device
/lib/modules/2.4.1-SMP/kernel/drivers/usb/storage/usb-storage.o:
unresolved symbol usb_string
/lib/modules/2.4.1-SMP/kernel/drivers/usb/storage/usb-storage.o:
unresolved symbol usb_submit_urb
/lib/modules/2.4.1-SMP/kernel/drivers/usb/storage/usb-storage.o:
unresolved symbol usb_control_msg
/lib/modules/2.4.1-SMP/kernel/drivers/usb/storage/usb-storage.o:
unresolved symbol usb_unlink_urb
A quick peek at /proc/ksyms shows :
fgrep usb_match_id /proc/ksyms
c02817f0 usb_match_id_R__ver_usb_match_id
~ ~ ~
The solution was to add the #include <linux/modversions.h> header
into each of the drivers affected. However, I have a feeling that
there are a lot of these "gotchas" still out there in 2.4.
Thoughts?
Martin.
martinb@valinux.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Missing modversions.h in module sources for 2.4.x?
2001-02-03 5:28 Missing modversions.h in module sources for 2.4.x? Martin Bogomolni
@ 2001-02-03 6:22 ` Keith Owens
0 siblings, 0 replies; 2+ messages in thread
From: Keith Owens @ 2001-02-03 6:22 UTC (permalink / raw)
To: Martin Bogomolni; +Cc: linux-kernel
On Fri, 02 Feb 2001 21:28:13 -0800,
Martin Bogomolni <andovernet@earthlink.net> wrote:
>c02817f0 usb_match_id_R__ver_usb_match_id
>The solution was to add the #include <linux/modversions.h> header
>into each of the drivers affected.
Wrong. See http://www.tux.org/lkml/#s8-8
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-02-03 6:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-03 5:28 Missing modversions.h in module sources for 2.4.x? Martin Bogomolni
2001-02-03 6:22 ` Keith Owens
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox