RE: kernel module compilation probs on RHL7.3.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



	One other thing to look out for is if the kernel your compiling
against is using MODVERSIONS.  I don't use the default Red Hat kernels, so
I'm not sure how they are set up, I just know that Module Versions was a
problem I ran into in the beginning.



-----Original Message-----
From: Michael Schwendt [mailto:msrh@gmx.de]
Sent: Monday, July 15, 2002 7:55 AM
To: redhat-devel-list@redhat.com
Subject: Re: kernel module compilation probs on RHL7.3.


On 2002-07-15, Atul Sowani wrote:

AS> I am trying to compile a character device kernel module, as
AS> given in the example at
AS> http://www.ibiblio.org/mdw/LDP/lkmpg/node14.html (attached
AS> with this mail for reference).
AS> 
AS> When I compile the code on RHL7.3, I literally get hundreds
AS> of errors. They begin with parse problem in module.h file. I
AS> compile the code with -DMODULE -D__KERNEL__ -DLINUX -O2 flags.
AS> 
AS> Also, I checked my "linux/version.h" file and I found that the
AS> kernel version there is not 2.4.18 but it was 2.4.9! How is
AS> that? I couldn't get it. Ultimately, I changed the string
AS> manually. But this does not help in any way.

Do not compile with the glibc kernel headers in /usr/include/linux.

Do compile with the kernel headers in /usr/src/linux-2.4/include/linux.

If you don't have them, install the kernel-source-2.4.18-?.i386.rpm
package.

Michael

-- 



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list



_______________________________________________
Redhat-devel-list mailing list
Redhat-devel-list@redhat.com
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

[Index of Archives]     [Kernel Newbies]     [Red Hat General]     [Fedora]     [Red Hat Install]     [Linux Kernel Development]     [Yosemite News]

  Powered by Linux