Compile dies with the following: gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-strict-aliasing -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -D__SMP__ -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -DEXPORT_SYMTAB -I/usr/src/linux/include -c i810_drv.c -o i810_drv.o In file included from drmP.h:62, from i810_drv.c:35: /usr/src/linux/include/asm/uaccess.h: In function `mosix_local_statistic': /usr/src/linux/include/asm/uaccess.h:45: warning: nested extern declaration of `cause_link_error_by_routine_that_does_not_exist' gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-strict-aliasing -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -D__SMP__ -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -I/usr/src/linux/include -c i810_dma.c -o i810_dma.o In file included from drmP.h:62, from i810_dma.c:35: /usr/src/linux/include/asm/uaccess.h: In function `mosix_local_statistic': /usr/src/linux/include/asm/uaccess.h:45: warning: nested extern declaration of `cause_link_error_by_routine_that_does_not_exist' i810_dma.c: In function `i810_unmap_buffer': i810_dma.c:200: too few arguments to function `do_munmap_Rsmp_d6580086' make: *** [i810_dma.o] Error 1 gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -g -ansi -pedantic -DPOSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -I../../../../../../include -I../../../../../../../../include -I../../../../../../../../programs/Xserver/hw/xfree86/common -I. -I../../.. -I../../../../../../../../lib/X11 dristat.c -o dristat nostrip >>> Install xfree-drm-4.3.0-r2 into /var/tmp/portage/xfree-drm-4.3.0-r2/image/ category x11-base * installing DRM... gcc -O2 -Wall -Wwrite-strings -Wpointer-arith -Wcast-align -Wstrict-prototypes -Wnested-externs -Wpointer-arith -D__KERNEL__ -DMODULE -fomit-frame-pointer -fno-strict-aliasing -DCONFIG_AGP -DCONFIG_AGP_MODULE -DCONFIG_DRM_SIS -D__SMP__ -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h -I/usr/src/linux/include -c i810_dma.c -o i810_dma.o In file included from drmP.h:62, from i810_dma.c:35: /usr/src/linux/include/asm/uaccess.h: In function `mosix_local_statistic': /usr/src/linux/include/asm/uaccess.h:45: warning: nested extern declaration of `cause_link_error_by_routine_that_does_not_exist' i810_dma.c: In function `i810_unmap_buffer': i810_dma.c:200: too few arguments to function `do_munmap_Rsmp_d6580086' make: *** [i810_dma.o] Error 1 Reproducible: Always Steps to Reproduce: 1. emerge -Uu xfree-drm Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4) ================================================================= System uname: 2.4.20-openmosix-r5 i686 Intel(R) Pentium(R) 4 CPU 1.50GHz GENTOO_MIRRORS="http://194.83.57.15/sites/www.ibiblio.org/gentoo/ http://212.219.56.131/sites/www.ibiblio.org/gentoo/ http://194.83.57.11/sites/www.ibiblio.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ rsync://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo ftp://cs.ubishops.ca/pub/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo" CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config /usr/share/config" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" PORTDIR="/usr/portage" DISTDIR="/usr/portage/distfiles" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR_OVERLAY="/usr/local/portage" USE="x86 oss apm avi crypt cups encode gif jpeg kde libg++ libwww mikmod mmx mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib directfb alsa gdbm berkdb slang readline arts aalib svga tcltk java guile postgres X sdl gpm tcpd pam ssl perl python esd imlib oggvorbis gnome gtk qt motif opengl mozilla gphoto2 cdr dga dvd fbcon flash gd gtk2 gtkhtml imap libgda mbox openal pda plotutils samba sse tiff usb xinerama -3dnow" COMPILER="gcc3" CHOST="i686-pc-linux-gnu" CFLAGS="-O2 -mcpu=pentium4 -pipe" CXXFLAGS="-O2 -mcpu=i686 -pipe" ACCEPT_KEYWORDS="x86" MAKEOPTS="-j6" AUTOCLEAN="yes" SYNC="rsync://rsync.gentoo.org/gentoo-portage" FEATURES="sandbox ccache fixpackages"
is it an i810 video card that you have?
Nope, on this machine I'm running a Geforce 3, and at home I'm running a Radeon 8500.
on the geforce3 box, you do NOT need xfree-drm, you need nvidia-kernel and nvidia-glx for the radeon box, do: USE="radeon" emerge xfree-drm