[OpenAFS-devel] MODVERSIONS patch

Derek Atkins warlord@MIT.EDU
23 Jan 2001 17:33:07 -0500


Why is openafs.o located in /lib/modules?

-derek

Michael Welsh Duggan <md5i@cs.cmu.edu> writes:

> --=-=-=
> 
> I run a kernel with versioned symbols, and after a while, I got tired
> of errors like the following:
> 
> "depmod: *** Unresolved symbols in /lib/modules/2.4.0/fs/openafs.o",
> 
> so I created the following patch.  I am not much of a kernel hacker at
> this point, so there might be a better way to do this, but it seems to
> have worked for me.  Something similar should probably be done for
> param.i386_linux22.
> 
> 
> --=-=-=
> Content-Type: text/x-patch
> Content-Disposition: inline
> 
> --- /usr/local/src/openafs-1.0.2.2001.01.21/src/config/param.i386_linux24.h    Mon Nov  6 13:55:50 2000
> +++ param.i386_linux24.h        Tue Jan 23 13:57:49 2001
> @@ -52,6 +52,11 @@
>  #define AFS_GLOBAL_SUNLOCK
>  #endif
>  
> +#if defined(MODULE) && defined(CONFIG_MODVERSIONS)
> +#define MODVERSIONS
> +#include <linux/modversions.h>
> +#endif
> +
>  #endif /* __KERNEL__  && !DUMP_KERNEL*/
>  
>  #ifdef KERNEL
> 
> --=-=-=
> 
> -- 
> Michael Duggan
> (md5i@cs.cmu.edu)
> 
> --=-=-=--
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo.cgi/openafs-devel

-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord@MIT.EDU                        PGP key available