From: Andreas Johansson <ajo@wopr.campus.luth.se>
Subject: Re: Redhat 4.0 - Kernel Modules - PCMCIA
Date: Sat, 14 Dec 1996 23:43:42 +0100 (MET) [thread overview]
Message-ID: <446c8ef79ca57915640dc8e5ad4f0402.axp-list@archive.invalid> (raw)
In-Reply-To: <199612142205.SAA25970@M3.ips.ca>
On Sat, 14 Dec 1996, Don Munroe wrote:
> There are a few warnings like...
> <warning: cast to pointer from integer of different size>
> but I think I read on this list that this is not serious (is this
> true?)
Most of those are harmless, yes. But if you get any problems with the
module once it's installed you should look those warnings up and see if
they make any 32 bit assumptions.
> After commanding <insmod pcmcia_core.o> I get:
> insmod: module is xxxxx bytes long (expected xxxxx)
> insmod: forgot to specify -dc when linking pcmcia_core.o?
>
> Then I noticed that the same message occurs when trying to insert
> dummy.o, bsd_comp.o, and new_tunnel.o but ipx.o and smbfs.o work
> fine!
>
> Do I have a problem with kernel modules in general, the pcmica
> package, or both?
Modules in general. There are to my knowledge two ways to get around this.
1) Do a
strip -x pcmcia_core.o
on your compiled module. This makes insmod accept it.
2) Recompile insmod and remove the check which produces this
error-message. This seems to work well for me atleast.
The source for insmod is available at
http://ftp.azstarnet.com/pub/linux/axp/sys/insmod-bfd-0.2.tar.gz
Here is a patch for removing the check:
(apply with patch -p0 < patchfile in the insmod-bfd-0.2 directory)
------------------------------- snip ------------------------------------
--- insmod.c~ Sun Sep 1 17:34:45 1996
+++ insmod.c Sat Dec 14 23:40:46 1996
@@ -639,20 +639,6 @@
code = xmalloc(code_size);
check_size = 0;
bfd_map_over_sections (abfd, load_module, &check_size);
- if (check_size != code_size) {
- if (check_size > code_size) {
- fprintf (stderr,
- "%s: module is %ld bytes long (expected %ld)\n"
- "%s: forgot to specify -dc when linking %s?\n",
- prog_name, check_size, code_size, prog_name,
file_name);
- clean_exit(1);
- }
- if (verbose) {
- fprintf (stderr,
- "%s:warning: module only %ld bytes long (expected
%ld)\n",
- prog_name, check_size, code_size);
- }
- }
if (!versioned_kernel) {
/*
--------------------------------- snip ---------------------------------
/Andreas
--
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
: E-mail: ajo@wopr.campus.luth.se :
: S-mail: Andreas Johansson, Karhusvagen 5 6:618, 977 54 Lulea, SWEDEN :
: Have you had your dose of 261.62 BogoMIPS today? - Run Alpha! :
<-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=->
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next prev parent reply other threads:[~1996-12-14 22:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-12-14 22:06 Redhat 4.0 - Kernel Modules - PCMCIA Don Munroe
1996-12-14 22:43 ` Andreas Johansson [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-12-14 23:22 Don Munroe
[not found] <199612142321.TAA28842@M3.ips.ca>
1996-12-16 12:36 ` Jim Nance
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox