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

Bug 30358

Summary: gs-sources-2.4.23_pre6-r1 fails making bzImage on vmscan.c
Product: Gentoo Linux Reporter: Peter Ruskin <aoyu93>
Component: [OLD] Core systemAssignee: x86-kernel (DEPRECATED) <x86-kernel>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 1.4_rc4   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Peter Ruskin 2003-10-04 19:37:07 UTC
gcc -D__KERNEL__ -I/usr/src/linux-2.4.23_pre6-gss-r1/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -pipe -mpreferred-stack-boundary=2 -march=athlon-xp   -nostdinc -iwithprefix include -DKBUILD_BASENAME=vmscan  -c -o vmscan.o vmscan.c
vmscan.c: In function `swap_out':
vmscan.c:339: `priority' undeclared (first use in this function)
vmscan.c:339: (Each undeclared identifier is reported only once
vmscan.c:339: for each function it appears in.)
vmscan.c:339: `gfp_mask' undeclared (first use in this function)
make[2]: *** [vmscan.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.23_pre6-gss-r1/mm'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.23_pre6-gss-r1/mm'
make: *** [_dir_mm] Error 2

# emerge info
Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.22_pre2-gss)
=================================================================
System uname: 2.4.22_pre2-gss i686 AMD Athlon(tm) XP 3200+
ccache version 2.2 [enabled]
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-mp -O2 -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /var/bind /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon-mp -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs fixpackages ccache notitles -sandbox userpriv usersandbox"
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo    http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 oss apm avi cups encode foomaticdb gif jpeg libg++ mad mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib berkdb slang readline arts tetex aalib svga ggi tcltk java mysql postgres X sdl gpm tcpd pam libwww perl python esd imlib oggvorbis gtk qt kde motif opengl mozilla cdr scanner acpi -alsa artswrappersuid -crypt doc dvd faad -gdbm -gnome innodb joystick maildir mbox moznoirc moznomail moznocompose nocardbus odbc ppds samba -ssl sse tiff usb wmf xvid -xinerama"
Comment 1 Peter Ruskin 2003-10-04 20:09:55 UTC
It's the mki-adapter code for Win4Lin support.  If I disable Win4Lin this
kernel builds.  Compare /usr/src/linux-2.4.23_pre6-gss-r1/mm/vmscan.c:
ll 330, 331
  static int FASTCALL(swap_out(zone_t * classzone));
  static int swap_out(zone_t * classzone)
to /usr/src/linux-2.4.22_pre2-gss/mm/vmscan.c:
ll 318, 319
  static int FASTCALL(swap_out(unsigned int priority, unsigned int gfp_mask,
zone_t * classzone));
  static int swap_out(unsigned int priority, unsigned int gfp_mask, zone_t
* classzone)

...but just after that, this mki call is the same for both:
#ifdef CONFIG_MKI
		CALL_MKI_HOOK(MKI_HOOK_SWAP, (void *)priority, (void *)gfp_mask);
#endif
Comment 2 Peter Ruskin 2003-10-05 04:40:54 UTC
Maybe Richard Bass <rbass@netraverse.com> could provide a solution?
Comment 3 narendra sankar 2003-10-09 13:17:58 UTC
check out bug # 30510 for the fix
Comment 4 Tim Yamin (RETIRED) gentoo-dev 2003-10-10 08:55:01 UTC

*** This bug has been marked as a duplicate of 30510 ***