modules package (insmod, modprobe, etc.) problems

modules package (insmod, modprobe, etc.) problems

Post by Jamey Graha » Tue, 14 Nov 1995 04:00:00



After a move to ELF, I tried to re-compile the modules (1.1.87??)
package (libc 5.0.9 -- gcc 2.7.0) and found that there were numerous
but simple) syntax errors throughout (which made me question how it
compiled cleanly under a.out).  I cleaned them up and got the code to
compile, but since then, modprobe always says "mod_use_count" (or
something similiar) is unresolved and I can't load modules.

CONFIG_MODVERSIONS isn't set, and ppp support is compiled in (it's not a
module -- mentioned only because I believe this used to be a comflict).

system:
Linux 1.3.41 (failed on all 1.3.xx kernels)
gcc 2.7.0
libc 5.0.9
libg++ 26.2.5
modules 1.1.87 (check the numbers -- it's the latest on sunsite)

Everythings compiled as ELF.

Thanks,
Jamey

 
 
 

modules package (insmod, modprobe, etc.) problems

Post by Henrik Storn » Wed, 15 Nov 1995 04:00:00



Quote:>After a move to ELF, I tried to re-compile the modules (1.1.87??)
>package (libc 5.0.9 -- gcc 2.7.0) and found that there were numerous
>but simple) syntax errors throughout (which made me question how it
>compiled cleanly under a.out).  I cleaned them up and got the code to
>compile, but since then, modprobe always says "mod_use_count" (or
>something similiar) is unresolved and I can't load modules.

[deletia]

Quote:>modules 1.1.87 (check the numbers -- it's the latest on sunsite)

1.1.87 may be the latest on sunsite (haven't checked myself), but
it certainly is NOT the latest one released. Check out
ftp://ftp.funet.fi/pub/OS/Linux/People/Linus/v1.2/modules-1.2.8.tar.gz
or any other mirror of the 1.2 kernel releases - my guess is even
sunsite has it in this location.

Even the 1.2.8 release has a single syntax error (a ';' missing) as
well as relying on the 'for' scope rules that were changed in gcc
2.7.0. But if you could fix 1.1.87, you should be able to fix
1.2.8 easily (hint: gcc -fno-for-scope).

Don't use modules-1.1.87 - it's old and buggy.

--
--
Henrik Storner             | "Netnews is far more *ive than *."


 
 
 

modules package (insmod, modprobe, etc.) problems

Post by Daeshik K » Wed, 15 Nov 1995 04:00:00




Quote:>modules 1.1.87 (check the numbers -- it's the latest on sunsite)

        modules 1.2.8 is the latest.

--
        *  Daeshik Kim  (a.k.a. hellcat) O: (703) 760-1780


            * http://www.wam.umd.edu/~korea

 
 
 

modules package (insmod, modprobe, etc.) problems

Post by Mats Andtbac » Sat, 18 Nov 1995 04:00:00



Quote:>[...] Can anyone explain what the state of kerneldis? Is "patch-for-1.2.8" supposed to be a patch for V1.2.8 of modules to be
>applied to V1.3.xx kernels or is it a patch to be applied to V1.2.8 of the
>kernel? The README.kerneld is not clear, and especially since the patch doesn't
>seem to work with V1.3.xx series of the kernel!

I've no idea what the current state of kerneld is, but as I recall the
"patch-for-1.2.8" applied cleanly to my 1.2.11 kernel sources (not the
module utils), and has remained in without complaint so far.

This, in fact, is the only thing keeping me from trying the 1.3.x
kernels; I'm *ed to kerneld. If it doesn't make it into the
standard 1.4.0 kernel, I swear I won't upgrade from 1.2.13.
--
" ... got to contaminate to alleviate this loneliness
      i now know the depths i reach are limitless... "
                -- nin

 
 
 

modules package (insmod, modprobe, etc.) problems

Post by Eric Kahle » Mon, 20 Nov 1995 04:00:00


I'm having problems compiling the modules-1.2.8 that I got from sunsite.
I'm getting complaints about unterminated statements and undeclared
variables.  I've fixed what I can (a ; delimeter here and there), but
I don't want to tamper with something as important as insmod is to the
kernel.

Can you tell me where I can get a version of modules 1.2.8 which will
cleanly compile under Linux, Slackware 3.0??

Thanks.

--
From:  Eric Kahler.

http://mars.superlink.net/user/ekahler/index.html

 
 
 

1. insmod and modprobe - which scripts load the startup modules ?

Hi,

I've upgraded recently and now my Zip drive doesn't work. Apparently the
dependencies are not loaded by insmod ie:

/lib/modules/2.2.12-20/scsi/ppa.o : unresolved symbol
parport_register_device_R9b846d61
/lib/modules/2.2.12-20/scsi/ppa.o : unresolved symbol
parport_release_R93e35225
/lib/modules/2.2.12-20/scsi/ppa.o : unresolved symbol parport_claim_...
/lib/modules/2.2.12-20/scsi/ppa.o : unresolved symbol
parport_unregister_device_...
/lib/modules/2.2.12-20/scsi/ppa.o : unresolved symbol parport_enumerate_...

Modprobe does work fine but I have to run it manually. Can someone nudge me
in the right direction so I can find out:

a) Where insmod is being called in RH6.1 when the system boots
b) Where it gets the info for the modules it loads . ie. Is it
/lib/modules/2.2.12-20/modules.dep ?
c) How do I change modules.dep and have the changes stick. ie. I change it
but when I reboot it's back to it's original state.
d) Can I replace the autostarting of insmod for ppa.o so that modprobe is
used instead ie. modprobe loads ppa.o OK

Thanks, Hope these questions aren't too lame. I'm happy to do the reading
if someone just points me in the right direction.

Wilson.

2. Sound? Kernel 2.0.0 no /dev/audio, have RTFM!

3. insmod and modprobe problems

4. Building a PVR - Autologin to X and run an app?

5. modprobe - /etc/modules.conf

6. Problem in compiling kernel ---- Newbie begging for help.......

7. Newbie Question: modprobe and lspci and /etc/module.conf

8. PCI device -- base address doubt

9. modprobe - /etc/modules.conf

10. modprobe: modprobe: Can't locate module ppp-compress-21

11. Patch?: module-init-tools/modprobe.c - use modules.dep

12. kerneld/modprobe/insmod confusion...

13. modprobe fails, but insmod ok- what am I doing wrong?