Re: Compiling simple module on Redhat stock kernel.

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

 



Hi Hemen,

On 1/23/07, Hemen Kapadia <hemen.kapadia@xxxxxxx> wrote:

Hello,

I am trying to compile the following code on a system which has been booted
with RHEL stock kernel. If I boot the same system with a custom kernel
compiled from the source downloaded from kernel.org it compiles like a
charm. However if I boot the system on the RHEL stock kernel (2.6.9-42.EL)
no object is created in the working directory.


Are you sure you have the kernel header files  for you stock kernel ?
You require them for building and loading kernel modules.
That is why you can buildthe module from the vanilla kernel.

Thanks,
Raseel.

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux