Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20955 - kernel fails to compile because of undeclared variable in net/ipsec/pfkey_v2_parser.c
Summary: kernel fails to compile because of undeclared variable in net/ipsec/pfkey_v2_...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-13 14:45 UTC by Jonathan Sobel
Modified: 2003-10-30 10:21 UTC (History)
0 users

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 Jonathan Sobel 2003-05-13 14:45:27 UTC
Compiling r5 of gentoo-sources-2.4.20, the build fails trying to compile
net/ipsec/pfkey_v2_parser.c.

On line 928 of that file, the variable "i" is declared as an int, but the
declaration is protected by an ifdef.  Later, on line 1210, i is used outside
of a matching ifdef context.  It seems that in my case, I triggered the set
of #defines that hit the reference without the declaration.

I haven't dug hard yet to see if I can omit a module and avoid this problem.
I'll report back on that later.

I'll try to avoid sending my entire .config along.  :-)

Reproducible: Always
Steps to Reproduce:
Comment 1 Jonathan Sobel 2003-05-14 17:13:34 UTC
OK, here is more precise information:

If, under the IPSEC configuration for the kernel, you turn on support IPSEC
Authentication Headers, but you enable neither of the HMAC-MD5 nor HMAC-SHA1
suboptions, you can't compile your kernel.  (The workaround, of course, is
to enable the MD5 and SHA1 suboptions.)

I assume this is not a gentoo-specific bug.  Please forward it to the right
parties in kernel/IPSEC land.

On the other hand, these options must have appeared between r2 and r5 of the
gentoo-sources-2.4.20, because I did a "make oldconfig" and got prompted
to configure those options, so maybe it's a bug in a patch you added
recently.
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2003-10-18 16:19:25 UTC
... Is this bug still in?
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2003-10-30 10:21:37 UTC
Looks like we have a workaround, and I guess the IPSEC people should have
fixed this by now, so we should have this in gentoo-sources-2.4.22...