Tried emerging svgalib-1.9.19-r1. I got the following output: gcc -O2 -DLINUX -Dlinux -D__KERNEL__ -DMODULE -I/include -I. -I//usr/src/linux/include -I//usr/src/linux/include/asm/mach-default -DSVGALIB_HELPER_MAJOR=209 -DMODVERSIONS -DCONFIG_MODVERSIONS=1 -c -o main.o main.c In file included from //usr/src/linux/include/linux/sched.h:23, from //usr/src/linux/include/linux/mm.h:4, from //usr/src/linux/include/linux/slab.h:14, from main.c:10: //usr/src/linux/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule' /usr/include/asm/smp.h:42: error: previous declaration of 'smp_send_reschedule'was here //usr/src/linux/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule' /usr/include/asm/smp.h:42: error: previous declaration of 'smp_send_reschedule'was here In file included from //usr/src/linux/include/linux/irq.h:69, from /usr/include/asm/hardirq.h:6, from //usr/src/linux/include/linux/interrupt.h:52, from main.c:18: /usr/include/asm/hw_irq.h: In function `x86_do_profile': /usr/include/asm/hw_irq.h:201: error: structure has no member named `processor' In file included from //usr/src/linux/include/linux/highmem.h:5, from //usr/src/linux/include/linux/vmalloc.h:8, from /usr/include/asm/io.h:47, from /usr/include/asm/pci.h:40, from //usr/src/linux/include/linux/pci.h:680, from main.c:19: /usr/include/asm/pgalloc.h: In function `get_pgd_fast': /usr/include/asm/pgalloc.h:78: error: structure has no member named `processor' /usr/include/asm/pgalloc.h:79: error: structure has no member named `processor' /usr/include/asm/pgalloc.h:81: error: structure has no member named `processor' /usr/include/asm/pgalloc.h: In function `free_pgd_fast': /usr/include/asm/pgalloc.h:89: error: structure has no member named `processor' /usr/include/asm/pgalloc.h:90: error: structure has no member named `processor' /usr/include/asm/pgalloc.h:91: error: structure has no member named `processor' /usr/include/asm/pgalloc.h: In function `pte_alloc_one_fast': /usr/include/asm/pgalloc.h:122: error: structure has no member named `processor' /usr/include/asm/pgalloc.h:123: error: structure has no member named `processor' /usr/include/asm/pgalloc.h:125: error: structure has no member named `processor' /usr/include/asm/pgalloc.h: In function `pte_free_fast': /usr/include/asm/pgalloc.h:132: error: structure has no member named `processor' /usr/include/asm/pgalloc.h:133: error: structure has no member named `processor' /usr/include/asm/pgalloc.h:134: error: structure has no member named `processor' make: *** [main.o] Error 1 !!! ERROR: media-libs/svgalib-1.9.19-r1 failed. !!! Function src_compile, Line 84, Exitcode 2 !!! Failed to build kernel module! Reproducible: Always Steps to Reproduce: 1. emerge svgalib 2. 3. My emerge info: # emerge info Portage 2.0.50-r11 (default-x86-1.4, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.4.26-gentoo-r3) ================================================================= System uname: 2.4.26-gentoo-r3 i686 Intel(R) Pentium(R) 4 CPU 1.80GHz Gentoo Base System version 1.5.3 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-O3 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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/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 -march=pentium4 -funroll-loops -fprefetch-loop-arrays -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.inode.at/ http://gentoo.mirror.sdv.fr http://gentoo.math.bme.hu http://mirror.switch.ch/mirror/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="X aalib apm avi berkdb bitmap-fonts cdr crypt cups dga directfb doc dvdr encode esd foomaticdb gdbm gif gpm gtk gtk2 imagemagick imlib ipv6 java jpeg kde libg++ libwww mad mbox mikmod motif mpeg mysql ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl slang spell ssl svga tcltk tcpd tiff truetype x86 xml2 xmms xosd xprint xv zlib" By the way I looked at these smp.h files and I found that: zsol:~# qpkg -f /usr/include/asm/smp.h -i sys-kernel/linux-headers-2.4.22 * zsol:~# qpkg -f /usr/src/linux-2.4.26-gentoo-r9/include/linux/smp.h -i sys-kernel/gentoo-sources-2.4.26-r9 * I hope these help.
If I add a USE="build" in my /etc/make.conf the emrge works.
USE="build" emerge svgalib works for me too. No luck without this flag however.
i assume your system doesnt have anything weird with the paths ... you dont have dirs in /usr/src/ symlinked to /usr/include/ and vice versa ? can you attach full log files: emerge svgalib >& log /usr/include/asm/smp.h /usr/src/linux/include/linux/smp.h
Sorry, I've totally forgotten about this bug I opened. Anyways a revdep-rebuild did the trick. Changed resolution to invalid.