Thanks for your reply.

So I just need to make a symlink link from /usr/include/ to my kernel tree
/usr/src/linux/include, isn't it?

Thanks in advance.
Hai Xu


----- Original Message -----
From: "David Olofson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 21, 2001 1:04 AM
Subject: Re: [rtl] version.h confusion.


> On Friday 20 April 2001 20:02, Hai Xu wrote:
> > Dear all,
> >
> > I met a strange problem about the RedHat 7.0 and RTLinux 3.0.
> >
> > As you see, the RH7.0 just has Linux Kernel 2.2.16-22 and I want to
upgrade
> > it to Linux Kernel 2.2.18, because the RTLinux 3.0 final can work stably
> > under this Kerenl Version.
> >
> > But after I upgrade the Linux Kernel and install the RTLinux, I found a
> > strange thing. When I "cat /proc/version", I can get:
> >
> > Linux crb20.ces.clemson.edu 2.2.18-rtl #1 Thu Apr 5 23:10:12 EDT 2001
i686
> > unknown
> >
> > But when I compile my module, I got the following error message:
> >
> > demo.o: kernel-module version mismatch
> > demo.o was compiled for kernel version 2.4.0-0.26
> > while this kernel is version 2.2.18-rtl.
> > make: *** [install] Error 1
> >
> > After I check the /usr/include/linux/version.h, I got the following
> > content:
> >
> > #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))
> >
> > So I am totally confused, what version of Linux Kernel is used by RH 7.
Why
> > after I reinstall the Linux Kernel, this header file still exists as
2.4.0
> > version.
>
> /usr/linux is a symlink to the Linux source tree that should be used for
any
> kernel specific stuff when building a program, driver/server or module.
The
> problem is that this link isn't automatically updated when you manually
> install a Linux kernel, so you have to do it yourself.
>
> Just point it to your 2.2.18-rtl tree, rebuild your module, and provided
> you're not doing anything that's not compatible with the 2.2.x kernel API,
it
> should work. (Well, *unless* some makefile involved is using the physical
> path to the 2.4.0 kernel, of course.)
>
>
> //David
>
> .- M A I A -------------------------------------------------.
> |      Multimedia Application Integration Architecture      |
> | A Free/Open Source Plugin API for Professional Multimedia |
> `----------------------> http://www.linuxaudiodev.com/maia -'
> .- David Olofson -------------------------------------------.
> | Audio Hacker - Open Source Advocate - Singer - Songwriter |
> `--------------------------------------> [EMAIL PROTECTED] -'
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
>
>

-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/

Reply via email to