View previous topic :: View next topic |
Author |
Message |
theme Tux's lil' helper
Joined: 14 Oct 2003 Posts: 75 Location: Barcelona--> Catalunya--> Spain
|
Posted: Sun Oct 26, 2003 12:16 am Post subject: error compiling the kernel with iptables support. [SOLVED] |
|
|
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 |
|
|
gorshing n00b
Joined: 18 Nov 2002 Posts: 39 Location: Oklahoma, US
|
Posted: Sun Oct 26, 2003 3:18 am Post subject: |
|
|
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 |
|
|
theme Tux's lil' helper
Joined: 14 Oct 2003 Posts: 75 Location: Barcelona--> Catalunya--> Spain
|
Posted: Sun Oct 26, 2003 10:53 pm Post subject: |
|
|
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 |
|
|
gorshing n00b
Joined: 18 Nov 2002 Posts: 39 Location: Oklahoma, US
|
Posted: Sun Oct 26, 2003 11:38 pm Post subject: |
|
|
Did u do a make mrproper or make mrprobe? |
|
Back to top |
|
|
theme Tux's lil' helper
Joined: 14 Oct 2003 Posts: 75 Location: Barcelona--> Catalunya--> Spain
|
Posted: Mon Oct 27, 2003 10:15 am Post subject: |
|
|
I would say that I did the mrproper but ... I have done it now, let me see what happends. |
|
Back to top |
|
|
theme Tux's lil' helper
Joined: 14 Oct 2003 Posts: 75 Location: Barcelona--> Catalunya--> Spain
|
Posted: Mon Oct 27, 2003 10:33 am Post subject: |
|
|
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 |
|
|
mattsteven Apprentice
Joined: 27 Oct 2003 Posts: 240 Location: Your Planet
|
Posted: Mon Oct 27, 2003 2:55 pm Post subject: |
|
|
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 |
|
|
theme Tux's lil' helper
Joined: 14 Oct 2003 Posts: 75 Location: Barcelona--> Catalunya--> Spain
|
Posted: Mon Oct 27, 2003 10:54 pm Post subject: |
|
|
I'm going to reinstall everything again with vanilla sources |
|
Back to top |
|
|
gorshing n00b
Joined: 18 Nov 2002 Posts: 39 Location: Oklahoma, US
|
Posted: Tue Oct 28, 2003 3:27 am Post subject: |
|
|
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 |
|
|
theme Tux's lil' helper
Joined: 14 Oct 2003 Posts: 75 Location: Barcelona--> Catalunya--> Spain
|
|
Back to top |
|
|
|