On my 2.4 kernel system, when emerging svgalib I end up building an svgalib_helper.o module with unresolved systems. This appears to be due to the ebuild using Makefile.alt to build the module. Commenting out the kernel detection like so: if ! use build && kernel-mod_modules_supported ; then cd "${S}"/kernel/svgalib_helper # if [[ `KV_to_int ${KV}` -lt `KV_to_int 2.6.6` ]] ; then # env -u ARCH \ # make -f Makefile.alt INCLUDEDIR="${ROOT}/usr/src/linux/include" \ # clean modules || die "Failed to build kernel module!" # else env -u ARCH make || die "Failed to build kernel module!" # fi cd "${S}" fi allows a working module to be built. It appears that the alternative makefile should be used for 2.6 kernels before 2.6.6, but not 2.4 kernels (or at least not my 2.4 kernels). In which case the kernel version detection here should be altered. Reproducible: Always Steps to Reproduce: 1.Use 2.4 kernel 2.Emerge svgalib 3.Run depmod Actual Results: Depmod shows there are unresolved symbols in svgalib_helper.o, and attempting to modprobe it produces a long list of unresolved symbol errors Expected Results: Depmod should give no output, and modprobe svgalib_helper should work without error, as it does after emerging with the kernel detection commented out as above. Emerge info: Portage 20041110, Emerde 1.2.3 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.4.28-gentoo-r7 i686) ================================================================= System uname: 2.4.28-gentoo-r7 i686 AMD Duron(tm) processor Slackware 10.0 distcc 2.16 i486-slackware-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] Autoconf: sys-devel/autoconf-2.59-r6,sys-devel/autoconf-2.13 Automake: sys-devel/automake-1.7.9-r1,sys-devel/automake-1.8.5-r3,sys-devel/automake-1.5,sys-devel/automake-1.4_p6,sys-devel/automake-1.6.3,sys-devel/automake-1.9.4 Binutils: sys-devel/binutils-2.15.92.0.2-r1,sys-devel/binutils-2.14.90.0.8-r1 Headers: sys-kernel/linux-headers-2.4.21-r1 Libtools: sys-devel/libtool-1.5.10-r4 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 8 2005, 18:50:04)] ACCEPT_KEYWORDS="x86" CFLAGS="-O2 -march=i686 -mcpu=athlon -pipe" CHOST="i486-slackware-linux" CONFIG_PROTECT="/etc /opt/kde/share/config /usr/X11R6/lib/X11/xkb /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/lib/mozilla/defaults/pref /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/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=athlon -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache sandbox sfperms" GENTOO_MIRRORS="http://gentoo.oregonstate.edu 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.gentoo.org/gentoo-portage" USE="x86 3dnow 3dnowex X Xaw3d a52 aac aalib acpi acpi4linux adns alsa apm arts artswrappersuid artworkextra async atm audiofile avi bitmap-fonts c++ cap cdda cddb cdio cdparanoia cdr codecs crypt cscope css cups curl dga dhcp directfb divx4linux djbfft dmx dnd doc dv dvd dvdread emboss encode f77 faad fam fame fbcon ffmpeg flac flash font-server foomaticdb fortran fpix freedts freetype gcj gd ggi gif glut gmp gnome gnustep gnutls gphoto2 gpm graphviz gstreamer gtk gtk2 gtkhtml guile httpd imagemagick imap imlib imlib2 insecure-drivers ipv6 ithreads java jbig jce joystick jpeg jpeg2k junit kde kdeenablefinal ladcca largeterminal libcaca libg++ libwww linguas_en_GB live lzo mad maildir mcal md5sum mikmod mjpeg mmx mmx2 mng motif mozilla mozsvg mozxmlterm mp3 mpeg mpeg2 mysql ncurses neXt network nls nntp nodrm nowin nvidia objc odbc ogg oggvorbis opengl passfile pcre pdflib perl pic plotutils png povray ppds python qt quicktime readline real rplay rtc samba scanner sdk sdl slang slp speex spell ssl stream svg svga symlink tcltk tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts ucs2 unicode usb utf8 uudeview vcd vim-with-x vlm vorbis winbind wmf wxwindows xanim xemacs xface xine xinerama xml xml2 xmms xprint xrandr xv xvid xvmc yv12 zlib"
what does /usr/src/linux point to ?
/usr/src/linux points to the latest version of my 2.4 sources, at the moment 2.4.28-r7. bash-2.05b$ ls -l /usr/src/linux lrwxrwxrwx 1 root portage 22 Feb 20 13:53 /usr/src/linux -> linux-2.4.28-gentoo-r7 bash-2.05b$ uname -r 2.4.28-gentoo-r7
svgalib 1.9.21 now uses kernel eclasses