Results 1 to 7 of 7
hello friends,
i try to do the examples programs of "Linux Kernel Module Programming Guide", But most of the programs shows the error messages as shown below, almost all the ...
- 11-07-2007 #1Just Joined!
- Join Date
- Apr 2007
- Posts
- 16
stray error in kernel compilation
hello friends,
i try to do the examples programs of "Linux Kernel Module Programming Guide", But most of the programs shows the error messages as shown below, almost all the program shows the same error.How can i rectify this types of error?? pls help me friends
regrds shabeer
make -C /lib/modules/2.6.10/build M=/home/shabeer/shabeer/dd/ioctl modules
make[1]: Entering directory `/usr/src/linux-2.6.10'
CC [M] /home/shabeer/shabeer/dd/ioctl/syscall.o
/home/shabeer/shabeer/dd/ioctl/syscall.c: In function `our_sys_open':
/home/shabeer/shabeer/dd/ioctl/syscall.c:77: error: stray '\226' in program
/home/shabeer/shabeer/dd/ioctl/syscall.c:77: error: stray '\136' in program
/home/shabeer/shabeer/dd/ioctl/syscall.c:77: error: stray '\146' in program
/home/shabeer/shabeer/dd/ioctl/syscall.c:77: warning: comparison between pointer and integer
make[2]: *** [/home/shabeer/shabeer/dd/ioctl/syscall.o] Error 1
make[1]: *** [_module_/home/shabeer/shabeer/dd/ioctl] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.10'
make: *** [all] Error 2
- 11-07-2007 #2Linux is not only an operating system, it's a philosophy.
Archost.
- 11-08-2007 #3
Hi,
I think there is an error in the program , please check once again or if you feel its correct please cut and paste here.
- 11-09-2007 #4Just Joined!
- Join Date
- Apr 2007
- Posts
- 16
- 11-09-2007 #5
In order to compile the code with gcc the source has to be ASCII , so when you copy past it doesn't convert them correctly to ASCII , the best way it's to write the code also like that you'll have a look and memorize the syntax while writing . this can be done also with a pdf editor have a look to PDFedit .
Regards.Linux is not only an operating system, it's a philosophy.
Archost.
- 11-10-2007 #6Just Joined!
- Join Date
- Apr 2007
- Posts
- 16
hai,
thankyou ,i type the program and compiled ,i got output
regards shabeer
- 05-10-2009 #7Just Joined!
- Join Date
- May 2009
- Posts
- 1
quotation marks
possibly there have been used any non-standard (i.e. for programming in c++) quotation marks => simply change it in an editor like jedit in text-mode => hth




