From: Martin Bogomolni <andovernet@earthlink.net>
To: linux-kernel@vger.kernel.org
Subject: Missing modversions.h in module sources for 2.4.x?
Date: Fri, 02 Feb 2001 21:28:13 -0800 [thread overview]
Message-ID: <3A7B96ED.7030901@earthlink.net> (raw)
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/
next reply other threads:[~2001-02-03 5:28 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-03 5:28 Martin Bogomolni [this message]
2001-02-03 6:22 ` Missing modversions.h in module sources for 2.4.x? Keith Owens
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3A7B96ED.7030901@earthlink.net \
--to=andovernet@earthlink.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox