From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <446c8ef79ca57915640dc8e5ad4f0402.axp-list@archive.invalid> X-Archive-Original-Message-ID: <199612142231.QAA00178@atheist.tamu.edu> Date: Sat, 14 Dec 1996 23:43:42 +0100 (MET) From: Andreas Johansson Subject: Re: Redhat 4.0 - Kernel Modules - PCMCIA In-Reply-To: <199612142205.SAA25970@M3.ips.ca> On Sat, 14 Dec 1996, Don Munroe wrote: > There are a few warnings like... > > 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 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