Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 483188 - hardened-sources-3.10.9-r1 kernel fails compile in grsecurity/grsec_sysctl.c:465
Summary: hardened-sources-3.10.9-r1 kernel fails compile in grsecurity/grsec_sysctl.c:465
Status: RESOLVED DUPLICATE of bug 483078
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Hardened (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: The Gentoo Linux Hardened Kernel Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-31 19:53 UTC by Jaak Ristioja
Modified: 2013-09-08 09:58 UTC (History)
1 user (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 Jaak Ristioja 2013-08-31 19:53:33 UTC
The error is

grsecurity/grsec_sysctl.c:465:15: error: 'one' undeclared here (not in a function)

It appears that 'one' is defined as:

#ifdef CONFIG_GRKERNSEC_ROFS
static int __maybe_unused one = 1;
#endif

but it should instead be:

#ifdef defined(CONFIG_GRKERNSEC_ROFS) || defined(CONFIG_GRKERNSEC_DENYUSB)
static int __maybe_unused one = 1;
#endif
Comment 1 Jaak Ristioja 2013-08-31 19:54:59 UTC
(In reply to Jaak Ristioja from comment #0)
> but it should instead be:
> 
> #ifdef defined(CONFIG_GRKERNSEC_ROFS) || defined(CONFIG_GRKERNSEC_DENYUSB)
> static int __maybe_unused one = 1;
> #endif

That is:
 
#if defined(CONFIG_GRKERNSEC_ROFS) || defined(CONFIG_GRKERNSEC_DENYUSB)
static int __maybe_unused one = 1;
#endif
Comment 2 Alex Xu (Hello71) 2013-08-31 20:28:21 UTC
RESOLVED DUPLICATE of bug 483078
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2013-09-08 09:58:38 UTC
*** This bug has been marked as a duplicate of bug 483078 ***