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=pentium3 -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 Reproducible: Always Steps to Reproduce: 1. Just try to emerge gentoo-sources 2. gcc (GCC) 3.3.1 3. CFLAGS="-march=pentium3 -O3 -pipe" or CFLAGS="-march=pentium3"
Can you please apply the following patch and report back? --- ip_nat_core.c~ 2003-09-13 13:29:23.000000000 +0100 +++ ip_nat_core.c 2003-09-13 13:35:29.000000000 +0100 @@ -851,8 +851,7 @@ if (exp_for_packet(exp, pskb)) { /* FIXME: May be true multiple times in the * case of UDP!! */ - DEBUGP("calling nat helper (exp=%p) for - packet\n", exp); + DEBUGP("calling nat helper (exp=%p) for packet\n", exp); ret = helper->help(ct, exp, info, ctinfo, hooknum, pskb); if (ret != NF_ACCEPT) {
Bugzilla didn't wrap things properly, so + DEBUGP("calling nat helper (exp=%p) for packet\n", exp); should be on one line.
*** Bug 29196 has been marked as a duplicate of this bug. ***
Fixed in CVS.
*** Bug 28493 has been marked as a duplicate of this bug. ***