View previous topic :: View next topic |
Author |
Message |
ba747heavy Apprentice
Joined: 11 Aug 2003 Posts: 216 Location: New Mexico, USA
|
Posted: Fri Sep 12, 2003 1:33 pm Post subject: Kernel 2.4.20-r7 Woes |
|
|
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 |
|
|
tinwood n00b
Joined: 05 Oct 2002 Posts: 36 Location: Newcastle upon Tyne, UK
|
Posted: Fri Sep 12, 2003 4:40 pm Post subject: |
|
|
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 |
|
|
ba747heavy Apprentice
Joined: 11 Aug 2003 Posts: 216 Location: New Mexico, USA
|
Posted: Fri Sep 12, 2003 11:00 pm Post subject: |
|
|
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 |
|
|
tinwood n00b
Joined: 05 Oct 2002 Posts: 36 Location: Newcastle upon Tyne, UK
|
Posted: Fri Sep 12, 2003 11:10 pm Post subject: |
|
|
Okay, good luck.
The only other thing I can think of is to do a
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
when I upgrade a kernel to make sure that any new setting actually do get set.
HTH
tinwood. |
|
Back to top |
|
|
ba747heavy Apprentice
Joined: 11 Aug 2003 Posts: 216 Location: New Mexico, USA
|
Posted: Sat Sep 13, 2003 7:16 am Post subject: |
|
|
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 |
|
|
|