cannot link module as non root

Dennis Gilmore dennis at ausil.us
Sun Apr 25 03:17:32 UTC 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Once upon a time Sunday 25 April 2004 12:54 pm, Warren Togami wrote:

> 2.6 kernel modules DO NOT NEED the kernel source in order to build.  The
> headers supplied in /lib/modules/VERSION/build/include are generally all
> kernel modules need to build against.  In most cases a module needs
> fixing if it does not live up to this rule, or maybe just the build
> procedure.
>
> Warren


Yes they should only need whats in  /lib/modules/VERSION/build/include but in 
practice they seem to redirect to the kernel source   i have found this true 
in both rpm installed kerenls  and ones i have built myself.  but regardless 
you still need write access in  /lib/modules/VERSION/build/include to be able 
to build external modules  

i have written a make file for the new ixj module and the main line you need 
to build the modules is 

make -C /lib/modules/`uname -r`/build SUBDIRS=/home/dennis/ixj-3.3.0 modules

which on execution takes me straight into the kerenl tree 

make[1]: Entering directory `/usr/src/linux-2.6.5-1.332'

Maybe im just plain doing something wrong.  Please let me know if i am.



Dennis
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFAiy3QkSxm47BaWfcRAmq1AJwNWztB6ozq+zb5Ch8qgbXgYgXUBQCePccP
h+1XfDyT7Sr68z3PH+IpFL0=
=4yQR
-----END PGP SIGNATURE-----





More information about the fedora-devel-list mailing list