linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How can we get the different version.h files under different source directories?
@ 2005-01-03 10:19 Srinivas G.
  0 siblings, 0 replies; only message in thread
From: Srinivas G. @ 2005-01-03 10:19 UTC (permalink / raw)
  To: linux-kernel-Mailing-list

Dear All,
 
I am building the new kernel images for the 2.6.6 and 2.6.8 kernel versions on Intel 
x86 machine which was already installed using 2.6.5-7.71 kernel version. 

I downloaded the kernel tar files from the following link. http://www.kernel.org/pub/linux/kernel/v2.6/

I build the images on the same machine for the new 2.6.6 and 2.6.8 kernels. Now I am able to boot using the new kernel images. But there is the same version.h file under all the source directories. 

I have seen the version.h file under the following source directories. 
 
1.	/usr/src/linux-2.6.5-7.71/include/linux/
2.	/usr/src/linux-2.6.6/include/linux/
3.	/usr/src/linux-2.6.8/include/linux/

The contents of the version.h file are as follows.
--------------------------------------------------
#define UTS_RELEASE "2.6.5-7.71-default"
#define LINUX_VERSION_CODE 132613
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))

Due the same version.h file, when I try to load the module (which was compiled using the 2.6.8 kernel image on x86 machine which was installed using 2.6.5-7.71 kernel CDs) on another machine which was installed using 2.6.8 kernel CDs, I got the following error. 

> tifm: version magic '2.6.5-7.71-default 586 REGPARM gcc-3.3' should be '2.6.8 PENTIUM4 gcc-3.2'
> insmod: error inserting 'tifm.ko': -1 Invalid module format

I understood that the bug is: we can assume that the module was compiled for 
2.6.5-7.71-default with gcc 3.3 version where as we are trying to load the module on a machine which is having 2.6.8 kernel with gcc 3.2 version. 
 
My doubt is: Why all the source directories does include the same version.h file? How can we get the different version.h files under different source directories? 
 
Please give me an idea or solution, how to resolve the problem?
 
Regards,
Srinivas G
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-01-03 10:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-03 10:19 How can we get the different version.h files under different source directories? Srinivas G.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).