<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>54999</bug_id>
          
          <creation_ts>2004-06-24 04:43 0000</creation_ts>
          <short_desc>glide-v3-3.10-r4 fails to emerge with error in fxlinux.c</short_desc>
          <delta_ts>2004-06-24 09:48:01 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>jdrugo@gmx.at</reporter>
          <assigned_to>x11@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>jdrugo@gmx.at</who>
            <bug_when>2004-06-24 04:43:17 0000</bug_when>
            <thetext>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&apos; is deprecated. Use `-march=i486&apos; or `-mcpu=i486&apos; instead.
../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciFetchRegisterLinux&apos;:
../../../../swlibs/newpci/pcilib/fxlinux.c:132: error: syntax error before &apos;[&apos; token
../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciUpdateRegisterLinux&apos;:
../../../../swlibs/newpci/pcilib/fxlinux.c:156: error: syntax error before &apos;[&apos; token
../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciPortInByteLinux&apos;:
../../../../swlibs/newpci/pcilib/fxlinux.c:256: error: syntax error before &apos;[&apos; token
../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciPortInWordLinux&apos;:
../../../../swlibs/newpci/pcilib/fxlinux.c:276: error: syntax error before &apos;[&apos; token
../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciPortInLongLinux&apos;:
../../../../swlibs/newpci/pcilib/fxlinux.c:296: error: syntax error before &apos;[&apos; token
../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciPortOutByteLinux&apos;:
../../../../swlibs/newpci/pcilib/fxlinux.c:314: error: syntax error before &apos;[&apos; token
../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciPortOutWordLinux&apos;:
../../../../swlibs/newpci/pcilib/fxlinux.c:330: error: syntax error before &apos;[&apos; token
../../../../swlibs/newpci/pcilib/fxlinux.c: In function `pciPortOutLongLinux&apos;:
../../../../swlibs/newpci/pcilib/fxlinux.c:346: error: syntax error before &apos;[&apos; 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&apos;
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/glide-v3-3.10-r4/work/glide3x/build/swlibs/newpci&apos;
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/glide-v3-3.10-r4/work/glide3x/build/swlibs&apos;
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=&quot;x86&quot; 
AUTOCLEAN=&quot;yes&quot; 
CFLAGS=&quot;-march=pentium2 -mcpu=pentium2 -O2 -pipe -fomit-frame-pointer&quot; 
CHOST=&quot;i686-pc-linux-gnu&quot; 
COMPILER=&quot;gcc3&quot; 
CONFIG_PROTECT=&quot;/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&quot; 
CONFIG_PROTECT_MASK=&quot;/etc/gconf /etc/terminfo /etc/env.d&quot; 
CXXFLAGS=&quot;-march=pentium2 -mcpu=pentium2 -O2 -pipe -fomit-frame-pointer&quot; 
DISTDIR=&quot;/usr/portage/distfiles&quot; 
FEATURES=&quot;autoaddcvs ccache sandbox userpriv usersandbox&quot; 
GENTOO_MIRRORS=&quot;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/&quot; 
MAKEOPTS=&quot;-j2&quot; 
PKGDIR=&quot;/usr/portage/packages&quot; 
PORTAGE_TMPDIR=&quot;/var/tmp&quot; 
PORTDIR=&quot;/usr/portage&quot; 
PORTDIR_OVERLAY=&quot;/usr/portage/custom&quot; 
SYNC=&quot;rsync://rsync.uk.gentoo.org/gentoo-portage&quot; 
USE=&quot;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&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>jdrugo@gmx.at</who>
            <bug_when>2004-06-24 08:30:25 0000</bug_when>
            <thetext>Created an attachment (id=34054)
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).</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>battousai@gentoo.org</who>
            <bug_when>2004-06-24 09:48:01 0000</bug_when>
            <thetext>Ok, I&apos;ve added the supplied patch, it should be available in portage in a little while. I&apos;ve tested building against 2.4.22 and 2.6.7 headers, and both worked. Thanks a lot for reporting and giving the patch.</thetext>
          </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>34054</attachid>
            <date>2004-06-24 08:30 0000</date>
            <desc>Patch for fxlinux.c</desc>
            <filename>glide-v3-3.10-r4-gentoo.patch</filename>
            <type>text/plain</type>
            <data encoding="base64">LS0tIHN3bGlicy9uZXdwY2kvcGNpbGliL2Z4bGludXguYy5vcmlnCTIwMDQtMDYtMjQgMTU6MDA6
MDYuNDg1Njg2OTY4ICswMTAwCisrKyBzd2xpYnMvbmV3cGNpL3BjaWxpYi9meGxpbnV4LmMJMjAw
NC0wNi0yNCAxNToxOTo1Ny40MTQ2MzgyNDggKzAxMDAKQEAgLTEyOSw3ICsxMjksNyBAQAogICBk
ZWZhdWx0OgogICAgIHJldHVybiAwOwogICB9Ci0gIGlmIChpb2N0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plb2Yoc3RydWN0IHBpb0RhdGEpKSwgJmRlc2MpIT0tMTsKKyAgcmV0dXJuIGlvY3Rs
KGxpbnV4RGV2RmQsIF9JT1coMCwgMSwgc3RydWN0IHBpb0RhdGEpLCAmZGVzYykhPS0xOwogfQog
CiBzdGF0aWMgRnhCb29sIApAQCAtMzI3LDcgKzMyNyw3IEBACiAgIGRlc2MucG9ydD1wb3J0Owog
ICBkZXNjLnNpemU9c2l6ZW9mKGRhdGEpOwogICBkZXNjLnZhbHVlPSZkYXRhOwotICByZXR1cm4g
aW9jdGwobGludXhEZXZGZCwgX0lPVygwLCAxLCBzaXplb2Yoc3RydWN0IHBpb0RhdGEpKSwgJmRl
c2MpIT0tMTsKKyAgcmV0dXJuIGlvY3RsKGxpbnV4RGV2RmQsIF9JT1coMCwgMSwgc3RydWN0IHBp
b0RhdGEpLCAmZGVzYykhPS0xOwogfQogCiBzdGF0aWMgRnhCb29sIApAQCAtMzQzLDcgKzM0Myw3
IEBACiAgIGRlc2MucG9ydD1wb3J0OwogICBkZXNjLnNpemU9c2l6ZW9mKGRhdGEpOwogICBkZXNj
LnZhbHVlPSZkYXRhOwotICByZXR1cm4gaW9jdGwobGludXhEZXZGZCwgX0lPVygwLCAxLCBzaXpl
b2Yoc3RydWN0IHBpb0RhdGEpKSwgJmRlc2MpIT0tMTsKKyAgcmV0dXJuIGlvY3RsKGxpbnV4RGV2
RmQsIF9JT1coMCwgMSwgc3RydWN0IHBpb0RhdGEpLCAmZGVzYykhPS0xOwogfQogCiBzdGF0aWMg
RnhCb29sCg==
</data>        

          </attachment>
    </bug>

</bugzilla>