With gentoo-sources 2.6.22-r9 and linux-headers 2.6.22-r2, gcc 4.1.2, emerge build process fails with: vga.c: In function 'pcivga_init': vga.c:493: error: 'PCI_CLASS_DISPLAY_VGA' undeclared (first use in this function) vga.c:493: error: (Each undeclared identifier is reported only once vga.c:493: error: for each function it appears in.) Seems to be the same problem as http://osdir.com/ml/distributions.lunar.general/2006-10/msg00106.html (see patch there). Reproducible: Always Steps to Reproduce: emerge dosbox emerge --info Portage 2.1.3.19 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.22-gentoo-r9-drv i686) ================================================================= System uname: 2.6.22-gentoo-r9-drv i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ Timestamp of tree: Thu, 15 Nov 2007 10:16:01 +0000 app-shells/bash: 3.2_p17 dev-lang/python: 2.4.4-r6 dev-python/pycrypto: 2.0.1-r6 sys-apps/baselayout: 1.12.9-r2 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-Os -march=athlon64 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb" CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-Os -march=athlon64 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo " MAKEOPTS="-j4" PKGDIR="/usr/portage/packages" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow X a52 aac aalib acl bash-completion berkdb bitmap-fonts bzip2 cli cracklib crypt cups curl doc dri dvd emacs encode flac fontconfig fortran gdbm gif gpm gtk iconv ipv6 isdnlog jpeg kqemu matroska midi mikmod mmx modplug mp2 mp3 mudflap ncurses nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre perl png pppd python readline reflection sdl sdl-image session speex spl sse ssl tcpd theora threads tiff timidity tk toolkit-scroll-bars truetype truetype-fonts type1-fonts unicode vcd vim-syntax vorbis win32codecs wxwindows x264 x86 xinerama xorg xpm xv xvid xvmc zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
*** This bug has been marked as a duplicate of bug 169638 ***