Re: help needed- compilation issue

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

 



 
Gowri,
 
What i think is that you have left a space somewhere. Make sure that you  dont leave any spaces at the end of the line.
 
Vinay

 
On 2/20/06, Gowri Satish Adimulam <gowri@xxxxxxxxxxx> wrote:
Hi ,

I wrote one make to compile simple hello-1.c file given in tldp linux
kernal document.
but when iam trying to compile  it is giving an error message .

program :

#include <linux/module.h>
#include <linux/kernel.h>

int init_module(void)
{
  printk("<1> Hello World 1. \n");

// a non zero return means loaded failed ; module can't be loaded

  return 0;

}

void cleanup_module(void)
{
printk(KERN_ALERT "Goodbye world 1, \n");
}

-------------------------------------------------------------

make file:


TARGET  := hello−1
WARN    := −W −Wall −Wstrict−prototypes −Wmissing−prototypes
INCLUDE := −isystem /lib/modules/`uname −r`/build/include
CFLAGS  := −O2 −DMODULE −D__KERNEL__ ${WARN} ${INCLUDE}
CC      := gcc−3.0
${TARGET}.o: ${TARGET}.c
.PHONY: clean
clean:
   rm −rf ${TARGET}.o

-----------------------------------
error  displayed
make
Makefile:9: *** missing separator.  Stop.
[gowri@localhost kernel_pract]$ make hello-1
Makefile:9: *** missing separator.  Stop.

-------------------------------------------
contents in the directory


drwxrwxr-x  2 gowri gowri 4096 Feb 20 20:08 .
drwxr-xr-x  5 gowri gowri 4096 Feb 13 14:29 ..
-rwxrwxrwx  1 gowri gowri  275 Feb 13 20:22 hello-1.c
-rwxrwxrwx  1 gowri gowri  311 Feb 20 19:43 Makefile
-rwxrwxrwx  1 gowri gowri  289 Feb 20 19:41 Makefile_hand
-rwxrwxrwx  1 gowri gowri  167 Feb 13 20:54 Makefile_new


Please do help me here
Gowri



--
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