hi, i am very new to network programming. i have linux(kernel 2.6.29) fedora 11 installed on me system. i have tried to compile linux kernel 2.6.12.3 after adding IP_DIVERT patch to enable diversion of packets through iptables so i could run the command:
iptables -A FORWARD -i eth1 -j DIVERT --div-port 1
but while configuring kernel-2.6.12.3 and running command "make" i got the following warnings and errors:
[root@faiza linux-2.6.12.3]# make
CHK include/linux/version.h
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
dnsdomainname: Unknown host
CHK usr/initramfs_list
CC arch/i386/kernel/semaphore.o
In file included from include/asm/mpspec.h:6,
from include/asm/smp.h:19,
from include/linux/smp.h:20,
from include/linux/sched.h:27,
from arch/i386/kernel/semaphore.c:17:
include/asm/mpspec_def.h:78: warning: ‘packed’ attribute ignored for field of type ‘unsigned char[6]’
{standard input}: Assembler messages:
{standard input}:8817: Error: can't resolve `.sched.text' {.sched.text section} - `.Ltext0' {.text section}
make[1]: *** [arch/i386/kernel/semaphore.o] Error 1
make: *** [arch/i386/kernel] Error 2
i have followed the instructions from the following link for kernel compilation:
http://www.cyberciti.biz/tips/compil...kernel-26.html
kindly help me to resolve these errors.
thanks,
Faiza