make -C //usr/src/linux SUBDIRS=/var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper modules make[1]: Entering directory `/usr/src/linux-2.6.10-gentoo-r6' CC [M] /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.o In file included from /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:33: /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/kernel26compat.h:2:28: linux/version.h: No such file or directory /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/kernel26compat.h:4:40: missing binary operator before token "(" /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c: In function `svgalib_helper_ioctl': /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:214: warning: passing arg 2 of `writeb' makes pointer from integer without a cast /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:219: warning: passing arg 2 of `writew' makes pointer from integer without a cast /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:224: warning: passing arg 2 of `writel' makes pointer from integer without a cast /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:229: warning: passing arg 1 of `readb' makes pointer from integer without acast /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:235: warning: passing arg 1 of `readw' makes pointer from integer without acast /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:241: warning: passing arg 1 of `readl' makes pointer from integer without acast /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:513:41: missing binary operator before token "(" /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c: In function `svgalib_helper_mmap': /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:516: error: structure has no member named `vm_offset' /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:525:41: missing binary operator before token "(" /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:534:41: missing binary operator before token "(" /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:591:40: missing binary operator before token "(" /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c: In function `init_module': /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:597: warning: implicit declaration of function `pci_find_class' /var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.c:597: warning: pointer/integer type mismatch in conditional expression make[2]: *** [/var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper/main.o] Error 1 make[1]: *** [_module_/var/tmp/portage/svgalib-1.9.19-r3/work/svgalib-1.9.19/kernel/svgalib_helper] Error 2 make[1]: Leaving directory `/usr/src/linux-2.6.10-gentoo-r6' make: *** [default] Error 2 !!! ERROR: media-libs/svgalib-1.9.19-r3 failed. !!! Function src_compile, Line 97, Exitcode 2 !!! Failed to build kernel module! !!! If you need support, post the topmost build error, NOT this status message. Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: A failed compilation of svgalib Expected Results: svgalib emerged successfully Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.10-gentoo-r6 i686) ================================================================= System uname: 2.6.10-gentoo-r6 i686 Pentium III (Coppermine) Gentoo Base System version 1.4.16 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 10 2005, 12:52:17)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.7.9-r1, 1.6.3, 1.4_p6, 1.5, 1.8.5-r3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r1 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r1, 2.6.8.1-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O3 -mcpu=pentium3 -march=pentium3 -fomit-frame-pointer -funroll-loops -mfpmath=sse -ffast-math -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O3 -mcpu=pentium3 -march=pentium3 -fomit-frame-pointer -funroll-loops -mfpmath=sse -ffast-math -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://mirror.nutsmaas.nl/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.tiscali.nl/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync1.uk.gentoo.org/gentoo-portage" USE="x86 X alsa apm arts avi berkdb bitmap-fonts cdr crypt cups encode f77 fam flac font-server foomaticdb fortran gdbm gif gpm gtk gtk2 imlib ipv6 java joystick jpeg kde libg++ libwww mad mikmod motif mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png ppds python qt quicktime readline scanner sdl slang spell ssl svga tcpd tetex tiff truetype truetype-fonts type1-fonts usb xml2 xmms xv zlib linguas_en_GB" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
fix your kernel source the error 'linux/version.h: No such file or directory' points that out
Yes, re-installing the gentoo-dev-sources and the kernel headers has fixed the problem. Thank you.