Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
error compiling the kernel with iptables support. [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
theme
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2003
Posts: 75
Location: Barcelona--> Catalunya--> Spain

PostPosted: Sun Oct 26, 2003 12:16 am    Post subject: error compiling the kernel with iptables support. [SOLVED] Reply with quote

Whell, I'm trying to make a firewall and is incredible the problems that i'm havin. Althoug, by the time I have been able to solve all them with gentoo's forum help.

Whell when I choose all what to choose to enable iptables

Quote:


Networking Options -->

Network packet filtering (replaces ipchains)
IP:Netfilter configuration -->

all selected as modules exscept ipchains and ipfwd or something similar.


,while I'm compiling the kernel :

Code:
make dep && make clean bzImage modules modules_install


, it returns an error and stops. the error is:

Quote:

(····· gcc -D__KERNEL__ -I ····· )
ipt_realm.c: In function tclassid'
make[2]: *** [ipt_realm.o] Error 1
make[2]: Leaving directory /usr/src/linux-2.4.20-gentoo-r6/net'
make: *** [_mod_net ] Error 2


Has anybody any suggestion?


Last edited by theme on Tue Oct 28, 2003 9:52 am; edited 2 times in total
Back to top
View user's profile Send private message
gorshing
n00b
n00b


Joined: 18 Nov 2002
Posts: 39
Location: Oklahoma, US

PostPosted: Sun Oct 26, 2003 3:18 am    Post subject: Reply with quote

You might want to try unselecting realm match support

Then backup your .config file then run

make mrproper

And then your commands that you did before.

Be sure to backup your config file though ... because make mrproper will remove it.
Back to top
View user's profile Send private message
theme
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2003
Posts: 75
Location: Barcelona--> Catalunya--> Spain

PostPosted: Sun Oct 26, 2003 10:53 pm    Post subject: Reply with quote

hello I'va done the backup and the make clean & make mrprobe.

Now, when I do make modules, it crashes and returrn the following error:

Quote:


ipt_realm.c: In function 'match' :
ipt_realm.c:29: structure has no member named 'tclassid'
make[2]: *** [ipt_realm.o] Error 1
make[2]: Leaving directory '/usr/src/linux-2.4.20-gentoo-r6/net/ipv4/netfilter'
make[1]: *** [_modsubdir_ipv4/netfilter] Error 2
make[1]: LEaving directory '/usr/src/linux-2.4.20-gentoo-r6/net'
make: *** [_mod_net] Error 2

What else can I do?
Back to top
View user's profile Send private message
gorshing
n00b
n00b


Joined: 18 Nov 2002
Posts: 39
Location: Oklahoma, US

PostPosted: Sun Oct 26, 2003 11:38 pm    Post subject: Reply with quote

Did u do a make mrproper or make mrprobe?
Back to top
View user's profile Send private message
theme
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2003
Posts: 75
Location: Barcelona--> Catalunya--> Spain

PostPosted: Mon Oct 27, 2003 10:15 am    Post subject: Reply with quote

I would say that I did the mrproper but ... :? I have done it now, let me see what happends. :roll:
Back to top
View user's profile Send private message
theme
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2003
Posts: 75
Location: Barcelona--> Catalunya--> Spain

PostPosted: Mon Oct 27, 2003 10:33 am    Post subject: Reply with quote

Well I've done it and it still crashes :(

Code:

#make mrproper
#make menuconfig
#make dep && make clean bzImage modules modules_install


What else can I do?
Back to top
View user's profile Send private message
mattsteven
Apprentice
Apprentice


Joined: 27 Oct 2003
Posts: 240
Location: Your Planet

PostPosted: Mon Oct 27, 2003 2:55 pm    Post subject: Reply with quote

I would suggest you back up your config, emerge the latest gentoo sources. r6 is old and it looks like your source tree is a mess anyway.

Code:

cd /usr/src/linux-2.4.20-gentoo-r6
cp .config ~
cd /usr/src
emerge rsync && emerge gentoo-sources && emerge -P gentoo-sources
rm -f linux
ln -s linux-2.4.20-gentoo-r8 linux
cd linux
cp ~/.config .
make menuconfig


(and so on)
_________________
Matthew Steven
Linux-only desktop since 1998
Graying hair since 2006
Back to top
View user's profile Send private message
theme
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2003
Posts: 75
Location: Barcelona--> Catalunya--> Spain

PostPosted: Mon Oct 27, 2003 10:54 pm    Post subject: Reply with quote

I'm going to reinstall everything again with vanilla sources
Back to top
View user's profile Send private message
gorshing
n00b
n00b


Joined: 18 Nov 2002
Posts: 39
Location: Oklahoma, US

PostPosted: Tue Oct 28, 2003 3:27 am    Post subject: Reply with quote

Did you unselect realm match support

I have read a few times in these forums that causes some troubles and it did for me.
Back to top
View user's profile Send private message
theme
Tux's lil' helper
Tux's lil' helper


Joined: 14 Oct 2003
Posts: 75
Location: Barcelona--> Catalunya--> Spain

PostPosted: Tue Oct 28, 2003 10:08 am    Post subject: Reply with quote

lots of thank, yes it was causing me many problems(realm match supp.). :evil:

I finally reinstalled Gentoo-linux. I selected all of the IP:Netfilter Configuration except:

    quake III protocol
    Realm match support
    ipchains
    ipfwdm (or something similar, well this is the last)


I selected all as modules, but i don't know what is best , as modules or putted into the kernel. Then i emerged iptables and after launched them all runs perfectly.

If anybody uses this to know what to compile to have iptables: OF COURSE you don't need all these modules. I would recomend you to take a look at this two pages, BOTH!!! not one.

http://www.linuxjournal.com/modules.php?op=modload&name=NS-lj-issues/issue89&file=4815s1
http://iptables-tutorial.frozentux.net/chunkyhtml/kernelsetup.html

And if you compile it manually probably this one too:
http://www.linuxjournal.com/article.php?sid=4815
And ofcourse you can find all them in:
http://www.netfilter.org

LOTS OF THANKS gorshing &mattsteven :wink:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum