Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42460 - error compiling linux-2.6.3-gentoo-r1 without CONFIG_SWAP=y
Summary: error compiling linux-2.6.3-gentoo-r1 without CONFIG_SWAP=y
Status: RESOLVED FIXED
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: 2004-02-22 03:25 UTC by Joel Metelius
Modified: 2004-03-04 06:56 UTC (History)
1 user (show)

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


Attachments
Patch (gentoo-sources-2.6.3-gentoo-r1-fix-buggy-swappiness.patch,713 bytes, patch)
2004-02-22 06:52 UTC, Tim Yamin (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Metelius 2004-02-22 03:25:43 UTC
Compile error from make:

mm/vmscan.c: In function `refill_inactive_zone':
mm/vmscan.c:649: error: `swapper_space' undeclared (first use in thisfunction)
mm/vmscan.c:649: error: (Each undeclared identifier is reported onlyonce
mm/vmscan.c:649: error: for each function it appears in.)
make[1]: *** [mm/vmscan.o] Error 1
make: *** [mm] Error 2

problem fixed by adding CONFIG_SWAP=y in .config
Comment 1 John Mylchreest (RETIRED) gentoo-dev 2004-02-22 06:04:44 UTC
this problem only occurs when used with linux-2.6.0 headers.
Can you confirm your using 2.6.0 headers?
I shall look at this bug after my holiday.
Thanks for bugging :)
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2004-02-22 06:52:59 UTC
Created attachment 26099 [details, diff]
Patch

Nope, kernel headers don't have anything to do with the kernel - remember that
the kernel is the kernel-headers source so that would mean that the kernel is
broken in the end anyway.

Anyhow, this is caused by 425_am6-2.6.3.patch which isn't properly #ifdef
CONFIG_SWAP'ped like the rest of the vmscan.c file. Anyway, this patch on that
patch should work
Comment 3 John Mylchreest (RETIRED) gentoo-dev 2004-03-04 06:56:01 UTC
this has been fixed in CVS and shall go mainstream sometime soon