Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 28561 - Faiils to copile ip_nat_core.o module, cannot emerge gentoo-souces
Summary: Faiils to copile ip_nat_core.o module, cannot emerge gentoo-souces
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
: 28493 29196 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-09-12 16:10 UTC by António Godinho
Modified: 2003-09-24 12:48 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description António Godinho 2003-09-12 16:10:16 UTC
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"
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2003-09-13 05:36:18 UTC
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) {
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2003-09-13 05:37:41 UTC
Bugzilla didn't wrap things properly, so

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

should be on one line.
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2003-09-21 04:19:02 UTC
*** Bug 29196 has been marked as a duplicate of this bug. ***
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2003-09-21 05:07:04 UTC
Fixed in CVS.
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2003-09-24 12:48:28 UTC
*** Bug 28493 has been marked as a duplicate of this bug. ***