Sashikiran Rachakonda wrote: > > Can anyone help me in compiling ipip.c? > Kernel Version : Linux 2.4 > > Here are a couple of things i tried. > > #pwd > /usr/src/linux/net/ipv4 > #gcc -DMODULE -D_KERNEL_ -o6 -c ipip.c > ipip.c:112:22: net/sock.h: No such file or directory > ipip.c:113:20: net/ip.h: No such file or directory > ipip.c:114:22: net/icmp.h: No such file or directory > ipip.c:115:26: net/protocol.h: No such file or directory > ipip.c:116:22: net/ipip.h: No such file or directory > ipip.c:117:26: net/inet_ecn.h: No such file or directory > > #gcc -DMODULE -D_KERNEL_ -o6 -I- -I /usr/src/linux/include/ > net/ -c ipip.c > > This does not work, either. gcc -D__KERNEL__ -DMODULE -I../../include -O2 ipip.c -c -o ipip.o works for me. bye patrick - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html