I am really sorry for this long mail, but it si urgent, so plz try ur best
to help me asap.
{MY AIM :- to modify the socket.c program in linux src code and
successfully }{compile this modifed code. I just giving a print
satetement in socket.c. SO }{that when the socket.o is used by some
socket program, it should use this new }{modified socket.o (i.e it
should display by default the contents of the print }{statement which
i added)}.
I have been trying to compile the socket.c program which i got from
the usr/src/linux/net dictory in linux. I am using RHL 7.3, but the
program gives the follwoing error:
[root@localhost net]# gcc socket.c -o socket
In file included from socket.c:82:
/usr/include/asm/uaccess.h:1:3: unterminated #ifndef
In file included from /usr/include/net/checksum.h:32,
from /usr/include/net/tcp.h:30,
from /usr/include/net/tux.h:38,
from socket.c:86:
/usr/include/asm/uaccess.h:1:3: unterminated #ifndef
[root@localhost net]#
I am unable to understand what "unterminated #ifndef" signifies. I got
these errors on compilation of only socket.c(Can i compile socket.c
individually?). If NO then how do i compile it.
when you compile your kernel you use a Makefile who specify specials flags
for compilation, look in the dir of socket.c and you should find the
Makefile... Search in it to see the flags specification...
--GiZm0