Re: PLS HELP ME.....REGARDING MODULE COMPILATION AND GPL LICENSE STRING ERROR WHILE MODULE LOADING

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

 



On Tue, 2003-12-16 at 21:19, GEORGE JOSEPH wrote:
> Hi All of you,
> 
>    Can u pls help me with the following:
> 
> 1)When i compile my modules under redhat linux 2.4.4

We never shipped a 2.4.4 kernel

>  I had no problems,but under kernel 2.4.20 i have to
> do 
> 
> [root@modules]gcc -Wall -O2 -I
> /usr/src/linux-2.4/include module.c -c

> 
this is very incorrect; it needs to be
gcc -Wall -O2 -I /lib/modules/`uname -r`/build/include module.c -c

as for the GPL thing; you need to declare the license of your module via
MODULE_LICENSE(), eg if your module is GPL do
MODULE_LICENSE("GPL");

if it's not use some other text instead.

Attachment: signature.asc
Description: This is a digitally signed message part


[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