Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kernel 2.4.20-r7 Woes
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
ba747heavy
Apprentice
Apprentice


Joined: 11 Aug 2003
Posts: 216
Location: New Mexico, USA

PostPosted: Fri Sep 12, 2003 1:33 pm    Post subject: Kernel 2.4.20-r7 Woes Reply with quote

Whenever I try to compile the 2.4.20-r7 kernel, I get this error:

Code:
gcc -D__KERNEL__ -I/usr/src/linux-2.4.20-gentoo-r7/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=i386   -nostdinc -iwithprefix include -DKBUILD_BASENAME=ip_nat_core  -c -o ip_nat_core.o ip_nat_core.c
ip_nat_core.c:854:40: missing terminating " character
ip_nat_core.c:855:49: missing terminating " character
ip_nat_core.c:1038:1: unterminated argument list invoking macro "DEBUGP"
ip_nat_core.c: In function `do_bindings':
ip_nat_core.c:1038: error: `DEBUGP' undeclared (first use in this function)
ip_nat_core.c:1038: error: (Each undeclared identifier is reported only once
ip_nat_core.c:1038: error: for each function it appears in.)
ip_nat_core.c:1038: error: syntax error at end of input
ip_nat_core.c:833: warning: unused variable `helper_called'
ip_nat_core.c:832: warning: unused variable `ret'
ip_nat_core.c:786: warning: unused variable `is_tcp'
ip_nat_core.c:70: warning: `ip_nat_cleanup_conntrack' defined but not used
make[3]: *** [ip_nat_core.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r7/net/ipv4/netfilter'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r7/net/ipv4/netfilter'
make[1]: *** [_subdir_ipv4/netfilter] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-gentoo-r7/net'
make: *** [_dir_net] Error 2


Any ideas on what is causing this? Also, when I try to compile the kernel without saving the config after the command make menuconfig has ran, the compile fails right away with some error about 'no rules to do something..' Kinda irritating..

TIA
_________________
Fred Clausen
"leet [speak] is a cry for help from a shallow mind" - Doomwookie Jan 05
Back to top
View user's profile Send private message
tinwood
n00b
n00b


Joined: 05 Oct 2002
Posts: 36
Location: Newcastle upon Tyne, UK

PostPosted: Fri Sep 12, 2003 4:40 pm    Post subject: Reply with quote

A quick grep on the offending file shows that this is the only DEBUGP line where the " is not terminated properly. If you edit the file ip_nat_core.c at the 854 line to change this:


Code:

    854                                 DEBUGP("calling nat helper (exp=%p) for
    855                                         packet\n", exp);


to this:

Code:

    854               DEBUGP("calling nat helper (exp=%p) for  packet\n",                                                                                                              exp);
 


It might compile okay. Just a thought.

Cheers
tinwood.
Back to top
View user's profile Send private message
ba747heavy
Apprentice
Apprentice


Joined: 11 Aug 2003
Posts: 216
Location: New Mexico, USA

PostPosted: Fri Sep 12, 2003 11:00 pm    Post subject: Reply with quote

Thanks, that worked, but now I have another error. So I am re-emerging the gentoo-sources ebuild, hopefully that will fix whats going on :)
_________________
Fred Clausen
"leet [speak] is a cry for help from a shallow mind" - Doomwookie Jan 05
Back to top
View user's profile Send private message
tinwood
n00b
n00b


Joined: 05 Oct 2002
Posts: 36
Location: Newcastle upon Tyne, UK

PostPosted: Fri Sep 12, 2003 11:10 pm    Post subject: Reply with quote

Okay, good luck.

The only other thing I can think of is to do a
Code:
# make mrproper

in the /usr/src/linux directory before you do the config.

Also, before you do it, make sure you make a copy of your .config file as mrproper destroys that. Also, I always do a
Code:
 # make oldconfig

when I upgrade a kernel to make sure that any new setting actually do get set.

HTH
tinwood.
Back to top
View user's profile Send private message
ba747heavy
Apprentice
Apprentice


Joined: 11 Aug 2003
Posts: 216
Location: New Mexico, USA

PostPosted: Sat Sep 13, 2003 7:16 am    Post subject: Reply with quote

I think based on reading other posts starting to surface, gcc 3.3.1 is to blame. Everyone appears to be having trouble with it....hrmph :(
_________________
Fred Clausen
"leet [speak] is a cry for help from a shallow mind" - Doomwookie Jan 05
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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