LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-20-2009, 05:32 AM   #1
faiza_iftikhar
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
kernel compilation for to enable ip_divert using iptables


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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
iptables, enable rdp only srs2000 Linux - Newbie 5 07-16-2009 09:34 AM
Fedora: which packages are needed to enable source compilation ? arijit_2404 Fedora 6 06-11-2008 12:25 PM
Kernel Compilation and Iptables Issues Peter_APIIT Linux - Kernel 6 08-02-2007 03:46 AM
iptables- enable davidhk Linux - Security 2 09-04-2005 02:43 PM
how do I enable logging in iptables for FC2? alizard Linux - Security 5 03-06-2005 05:18 AM


All times are GMT -5. The time now is 12:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration