Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help needed

0 views
Skip to first unread message

prashant

unread,
Oct 13, 2002, 7:19:01 PM10/13/02
to
Hi!All

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.

GiZm0

unread,
Oct 14, 2002, 8:46:34 PM10/14/02
to
prashant wrote:

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

0 new messages