mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* A little problem.
@ 2001-04-19 20:47 Hai Xu
  2001-04-19 21:41 ` Alan Cox
  0 siblings, 1 reply; 4+ messages in thread
From: Hai Xu @ 2001-04-19 20:47 UTC (permalink / raw)
  To: linux-kernel

Dear all,

I have a question about the kernel used by the RedHat. I am using Redhat 7.0
and upgrade the Linux Kerenl from their original 2.2.16 to 2.2.18. But when
I compile some modules, it said my kernel is 2.4.0. I check the
/usr/include/linux/version.h as follows, found that it shows I am using
Kernel 2.4.0.

#include <linux/rhconfig.h>
#if defined(__module__smp)
#define UTS_RELEASE "2.4.0-0.26smp"
#else
#define UTS_RELEASE "2.4.0-0.26"
#endif
#define LINUX_VERSION_CODE 132096
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))


 But when I "cat /proc/version", it will give me:

Linux version 2.2.18-rtl (gcc version egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release)) #1 Thu Apr 5 23:10:12 EDT 2001

So I am totally confused by the RedHat. So could you please tell me how to
solve this problem?

I just want to use the 2.2.18 without the 2.4.0. I did not install this one,
I also do not know where this one comes from.

Thanks in advance.
Hai Xu




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: A little problem.
  2001-04-19 20:47 A little problem Hai Xu
@ 2001-04-19 21:41 ` Alan Cox
  2001-04-20  9:43   ` Guennadi Liakhovetski
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Cox @ 2001-04-19 21:41 UTC (permalink / raw)
  To: Hai Xu; +Cc: linux-kernel

> and upgrade the Linux Kerenl from their original 2.2.16 to 2.2.18. But when
> I compile some modules, it said my kernel is 2.4.0. I check the
> /usr/include/linux/version.h as follows, found that it shows I am using
> Kernel 2.4.0.

No. It shows the headers your C compiler libraries are built againt. Which is
2.4 - and which is correct. It has nothing to do with the kernel you are 
running


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: A little problem.
  2001-04-19 21:41 ` Alan Cox
@ 2001-04-20  9:43   ` Guennadi Liakhovetski
  0 siblings, 0 replies; 4+ messages in thread
From: Guennadi Liakhovetski @ 2001-04-20  9:43 UTC (permalink / raw)
  To: Alan Cox; +Cc: Hai Xu, linux-kernel

It is way OT here, but since Alan replied to this, I'll continue this
thread a bit: The interesting bit here, that I don't understand, is - how
in RedHat-7.0, that was released last year, libc is compiled against
2.4.0?... Did they include headers from one of pre / test versions?

Thanks
Guennadi

On Thu, 19 Apr 2001, Alan Cox wrote:

> > and upgrade the Linux Kerenl from their original 2.2.16 to 2.2.18. But when
> > I compile some modules, it said my kernel is 2.4.0. I check the
> > /usr/include/linux/version.h as follows, found that it shows I am using
> > Kernel 2.4.0.
> 
> No. It shows the headers your C compiler libraries are built againt. Which is
> 2.4 - and which is correct. It has nothing to do with the kernel you are 
> running
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
> 

___

Dr. Guennadi V. Liakhovetski
Department of Applied Mathematics
University of Sheffield, U.K.
email: G.Liakhovetski@sheffield.ac.uk



^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: A little problem.
@ 2001-04-19 21:00 Bingner Sam J. Contractor RSIS
  0 siblings, 0 replies; 4+ messages in thread
From: Bingner Sam J. Contractor RSIS @ 2001-04-19 21:00 UTC (permalink / raw)
  To: 'Hai Xu', linux-kernel

sounds to me like you have the wrong source in /usr/src/linux there is a
module you can install, or you can do it as I normally would...

obtain kernel source for 2.2.18 from ftp.kernel.org and put it in "/usr/src"
(/pub/linux/kernel/v2.2/linux-2.2.18.tar.bz2)

remove the symlink in /usr/src
"rm -f /usr/src/linux"

extract the new kernel source tree
"cd /usr/src ; tar xfI linux-2.2.18.tar.bz2"

rename the directory to kernel version and create symlink (for consistancy)
"mv linux linux-2.2.18 ; ln -s linux-2.2.18 linux"


	Sam Bingner
	PACAF CSS/SCHE
	Contractor RSIS
	DSN	315 449-7889
	COMM	808 449-7889


-----Original Message-----
From: Hai Xu [mailto:xhai@CLEMSON.EDU]
Sent: Thursday, April 19, 2001 10:47 AM
To: linux-kernel@vger.kernel.org
Subject: A little problem.kernel


Dear all,

I have a question about the kernel used by the RedHat. I am using Redhat 7.0
and upgrade the Linux Kerenl from their original 2.2.16 to 2.2.18. But when
I compile some modules, it said my kernel is 2.4.0. I check the
/usr/include/linux/version.h as follows, found that it shows I am using
Kernel 2.4.0.

#include <linux/rhconfig.h>
#if defined(__module__smp)
#define UTS_RELEASE "2.4.0-0.26smp"
#else
#define UTS_RELEASE "2.4.0-0.26"
#endif
#define LINUX_VERSION_CODE 132096
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))


 But when I "cat /proc/version", it will give me:

Linux version 2.2.18-rtl (gcc version egcs-2.91.66 19990314/Linux
(egcs-1.1.2 release)) #1 Thu Apr 5 23:10:12 EDT 2001

So I am totally confused by the RedHat. So could you please tell me how to
solve this problem?

I just want to use the 2.2.18 without the 2.4.0. I did not install this one,
I also do not know where this one comes from.

Thanks in advance.
Hai Xu



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-04-20  9:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-19 20:47 A little problem Hai Xu
2001-04-19 21:41 ` Alan Cox
2001-04-20  9:43   ` Guennadi Liakhovetski
2001-04-19 21:00 Bingner Sam J. Contractor RSIS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®