The compilation error is: gcc -DX11 -fomit-frame-pointer -funroll-loops -fexpensive-optimizations -ffast-math -DBIG_OPT -Wall -I../../../../cinit -I../../../../h3/glide3/src -I../../../../h3/incsrc -I../../../../h3/minihwc -I. -I../../../../swlibs/fxmemmap -I../../../../swlibs/fxmisc -I../../../../swlibs/newpci/pcilib -I../../../../swlibs/texus2/lib -O6 -m486 -Wp,-MD,.deps/fxlinux.pp -c ../../../../swlibs/newpci/pcilib/fxlinux.c -fPIC -DPIC -o .libs/fxlinux.lo `-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead. ../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciFetchRegisterLinux': ../../../../swlibs/newpci/pcilib/fxlinux.c:132: error: syntax error before '[' token ../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciUpdateRegisterLinux': ../../../../swlibs/newpci/pcilib/fxlinux.c:156: error: syntax error before '[' token ../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciPortInByteLinux': ../../../../swlibs/newpci/pcilib/fxlinux.c:256: error: syntax error before '[' token ../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciPortInWordLinux': ../../../../swlibs/newpci/pcilib/fxlinux.c:276: error: syntax error before '[' token ../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciPortInLongLinux': ../../../../swlibs/newpci/pcilib/fxlinux.c:296: error: syntax error before '[' token ../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciPortOutByteLinux': ../../../../swlibs/newpci/pcilib/fxlinux.c:314: error: syntax error before '[' token ../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciPortOutWordLinux': ../../../../swlibs/newpci/pcilib/fxlinux.c:330: error: syntax error before '[' token ../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciPortOutLongLinux': ../../../../swlibs/newpci/pcilib/fxlinux.c:346: error: syntax error before '[' token make[3]: *** [fxlinux.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/glide-v3-3.10-r4/work/glide3x/build/swlibs/newpci/pcilib' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/glide-v3-3.10-r4/work/glide3x/build/swlibs/newpci' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/glide-v3-3.10-r4/work/glide3x/build/swlibs' make: *** [all-recursive] Error 1 !!! ERROR: media-libs/glide-v3-3.10-r4 failed. !!! Function src_compile, Line 69, Exitcode 2 !!! build.3dfx failed The error seems to be a result of the macro expansion _IOR and _IOW. Reproducible: Always Steps to Reproduce: 1. emerge glide-v3 Portage 2.0.50-r8 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.4-gentoo-r1) ================================================================= System uname: 2.6.4-gentoo-r1 i686 Pentium II (Deschutes) Gentoo Base System version 1.4.16 Autoconf: sys-devel/autoconf-2.59-r3 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=pentium2 -mcpu=pentium2 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /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="-march=pentium2 -mcpu=pentium2 -O2 -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox userpriv usersandbox" GENTOO_MIRRORS="http://ftp.gentoo.skynet.be/pub/gentoo/ http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://gentoo.inode.at/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/custom" SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage" USE="3dfx X aalib acpi alsa apm arts avi berkdb cdr crypt cups dga directfb doc dvd emacs encode esd fbcon foomaticdb gdbm gif gpm gtk gtk2 guile imlib java jpeg kde libg++ libwww mad maildir mbox mikmod motif mpeg mysql ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell sse ssl svga tcltk tcpd tetex truetype video_cards_tdfx voodoo3 x86 xml2 xv zlib"
Created attachment 34054 [details, diff] Patch for fxlinux.c This patch fixes the problem with fxlinux.c. The compilation errors seem to stem from incompatibilities with the linux 2.6.x headers in ioctl.h (as described in http://www.uwsg.iu.edu/hypermail/linux/kernel/0310.1/0012.html).
Ok, I've added the supplied patch, it should be available in portage in a little while. I've tested building against 2.4.22 and 2.6.7 headers, and both worked. Thanks a lot for reporting and giving the patch.