Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 42460

Summary: error compiling linux-2.6.3-gentoo-r1 without CONFIG_SWAP=y
Product: Gentoo Linux Reporter: Joel Metelius <joel.metelius>
Component: [OLD] Core systemAssignee: x86-kernel (DEPRECATED) <x86-kernel>
Status: RESOLVED FIXED    
Severity: normal CC: johnm
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch

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