Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3735 - xfree-4.2.0-r12.ebuild fails when 3dfx/voodoo3 enabled
Summary: xfree-4.2.0-r12.ebuild fails when 3dfx/voodoo3 enabled
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
: 3746 6992 7394 44454 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-06-14 13:03 UTC by jdm
Modified: 2004-03-16 06:31 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jdm 2002-06-14 13:03:56 UTC
I'm doing a Gentoo 1.2 install with these flags--

USE="-kde -qt -arts -alsa 3dfx avi dga dvd encode gphoto2 quicktime truetype
voodoo3 xv"

When doing an emerge of x11-base/xfree, I run into the following problem and the
ebuild fails.

gcc -c -march=i686 -O3 -pipe  -ansi -pedantic -pipe
-I../../../../../../exports/include/X11 -I../../../../../../include/extensions
-I../../../../../../extras/Mesa/src
-I../../../../../../lib/GL/mesa/src/drv/common
-I../../../../../../lib/GL/mesa/src/drv/tdfx -I../../../../../../lib/GL/dri
-I../../../../../../lib/GL/glx -I../../../../../../exports/include
-I../../../../../../exports/include/GL -I../../../../../../lib/GL/mesa/dri
-I../../../../../../programs/Xserver/GL/dri
-I../../../../../../programs/Xserver/hw/xfree86/os-support
-I../../../../../../programs/Xserver/hw/xfree86/drivers/tdfx
-I../../../../../../lib/GL/dri/drm -I/usr/include/glide3  -I../../../../../..
-I../../../../../../exports/include -Dlinux -D__i386__ -D_POSIX_C_SOURCE=199309L
-D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -D_GNU_SOURCE
-DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS -D_REENTRANT -DXUSE_MTSAFE_API
-DMALLOC_0_RETURNS_NULL -DGLXEXT -DXF86DRI -DGLX_DIRECT_RENDERING
-DGLX_USE_DLOPEN -DGLX_USE_MESA -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM
-DUSE_KATMAI_ASM   tdfx_context.c
In file included from tdfx_context.c:39:
dri_glide.h:42: glide.h: No such file or directory
In file included from tdfx_context.h:67,
                 from tdfx_context.c:40:
tdfx_wrapper.h:47: glide.h: No such file or directory
tdfx_wrapper.h:48: g3ext.h: No such file or directory
In file included from tdfx_context.c:40:
tdfx_context.h:516: #error You MUST upgrade your Glide3 libraries and headers.
tdfx_context.h:517: #error Get the latest from http://dri.sourceforge.net/res.phtml

  <lots and lots of parse errors>

make[5]: *** [tdfx_context.o] Error 1
make[5]: Leaving directory
`/var/tmp/portage/xfree-4.2.0-r12/work/xc/lib/GL/mesa/src/drv/tdfx'
make[4]: *** [install] Error 2
make[4]: Leaving directory
`/var/tmp/portage/xfree-4.2.0-r12/work/xc/lib/GL/mesa/src/drv'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/var/tmp/portage/xfree-4.2.0-r12/work/xc/lib/GL'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/var/tmp/portage/xfree-4.2.0-r12/work/xc/lib'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/var/tmp/portage/xfree-4.2.0-r12/work/xc'
make: *** [install] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_install, Line 9, Exitcode 2
!!! (no error message)
                 
!!! emerge aborting on  /usr/portage/x11-base/xfree/xfree-4.2.0-r12.ebuild .
Comment 1 jdm 2002-06-14 13:07:09 UTC
I should also mention that glide-v3-3.10-r3 had been installed with no errors.

In my /usr/include/glide3 directory, I have 3dfx.h, linutil.h, sst1vid.h,
texus.h, but no glide.h or g3ext.h.  
Comment 2 Brandon Low (RETIRED) gentoo-dev 2002-06-16 17:04:35 UTC
*** Bug 3746 has been marked as a duplicate of this bug. ***
Comment 3 Martin Schlemmer (RETIRED) gentoo-dev 2002-06-17 14:01:06 UTC
Merging glide-v3 with "3dfx voodoo3" creates the following:

nosferatu tdfx # ls /usr/include/glide3/
3dfx.h  g3ext.h  glide.h  glidesys.h  glideutl.h  linutil.h  sst1vid.h  texus.h
nosferatu tdfx # 

Anything more specific about your system ?  Maybe include the contents
of:

  /var/db/pkg/media-libs/glide-v3-3.10-r3/CONTENTS

Thanks.
Comment 4 jdm 2002-06-17 17:51:42 UTC
Hmm, here's the contents of my /var/db/pkg/media-libs/glide-v3-3.10-r3/CONTENTS--

dir /usr
dir /usr/include
dir /usr/include/glide3
obj /usr/include/glide3/3dfx.h 7d96758e8fa5bf3d5952065d99e567b2 1023780376
obj /usr/include/glide3/linutil.h 02f1e8ad28ab0380cb6e909c663b8a7e 1023780376
obj /usr/include/glide3/texus.h 25f07ab342a7a976f359007c26ccd420 1023780376
obj /usr/include/glide3/sst1vid.h 711e3d0706db1aaacd46437285a00bba 1023780376
dir /usr/X11R6
dir /usr/X11R6/lib
sym /usr/X11R6/lib/libglide3.so -> /usr/lib/libglide3.so.3.10.0 1023780376
Comment 5 jdm 2002-06-18 12:26:44 UTC
okay, it looks like there might be a circular dependency so that you need xfree
in order to build glide, but need glide in order to build the tdfx.o driver for
xfree.  ugh.

When building glide without xfree installed, I get these errors twice and the
parts of the build in glide3x/build/h3/minihwc fail--

../../../h3/minihwc/linhwc.c:64: X11/Xlib.h: No such file or directory
../../../h3/minihwc/linhwc.c:65: X11/extensions/xf86dga.h: No such file or directory
../../../h3/minihwc/linhwc.c:66: X11/extensions/xf86vmode.h: No such file or
directory
make[2]: *** [linhwc.lo] Error 1
make[2]: Leaving directory
`/var/tmp/portage/glide-v3-3.10-r3/work/glide3x/build/h3/minihwc'
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2002-06-18 12:42:43 UTC
Ok, this solves sorda very dated sticky bug that only popped up now and then.

Any ideas will be appreciated :/
Comment 7 Karl Abbott 2002-06-19 08:53:48 UTC
You must put opengl in your use tags to have all of the gl headers which you 
are missing, but thanks for informing me you must build glide before xfree. I 
have been trying to build x without glide and I keep getting errors such as 
cannot determine size of glide, stipple, etc. But just try the use tag fix.
Comment 8 Karl Abbott 2002-06-19 09:14:14 UTC
Sorry. Those aren't opengl files you are missing, but isn't Glide just an 
implementation/subset of openGL for the 3dfx voodoo3 chipset? At any rate, 
you'll probably still want opengl in your use tags.
Comment 9 jdm 2002-06-20 19:38:24 UTC
I removed 3dfx and voodoo3 from my use flags and emerged xfree-4.2.0-r12
successfully.

Then I stuck 3dfx and voodoo3 back into /etc/make.conf and re-emerged
glide-v3-3.10-r3 and the missing files showed up this time.

Here's the my new /var/db/pkg/media-libs/glide-v3-3.10-r3/CONTENTS--

dir /usr
dir /usr/include
dir /usr/include/glide3
obj /usr/include/glide3/3dfx.h 7d96758e8fa5bf3d5952065d99e567b2 1024618159
obj /usr/include/glide3/linutil.h 02f1e8ad28ab0380cb6e909c663b8a7e 1024618159
obj /usr/include/glide3/texus.h 25f07ab342a7a976f359007c26ccd420 1024618159
obj /usr/include/glide3/sst1vid.h 711e3d0706db1aaacd46437285a00bba 1024618159
obj /usr/include/glide3/g3ext.h 4c276bcb281151ea60919b626932d559 1024618159
obj /usr/include/glide3/glide.h 6846cbe288ed3ba565732706606e1752 1024618159
obj /usr/include/glide3/glideutl.h 8a7f594152df86998df98fd988b7ca74 1024618159
obj /usr/include/glide3/glidesys.h d0b04d187476e6a396719846bdf3137e 1024618159
dir /usr/lib
obj /usr/lib/libglide3.so.3.10.0 f59989cc926e211ac7f222e2b9978215 1024618159
obj /usr/lib/libglide3.la 595f1310a051ec855214c21ca13ea22c 1024618159
obj /usr/lib/libglide3.a d74b23365968bd59fc753048524d6c80 1024618159
dir /usr/X11R6
dir /usr/X11R6/lib
sym /usr/X11R6/lib/libglide3.so -> /usr/lib/libglide3.so.3.10.0 1024618159
sym /usr/lib/libglide3.so.3 -> libglide3.so.3.10.0 1024618159
sym /usr/lib/libglide3.so -> libglide3.so.3.10.0 1024618159

I'm currently re-emerging xfree-4.2.0-r12 to build the tdfx.o driver.

What an ugly workaround.  :)
Comment 10 Holger Benl 2002-07-07 09:23:30 UTC
Just had the same problem... 
One could (perhaps) stick all needed XFree header files as a 
"patch" into the glide ebuild. This way one wouldn't have to 
build XFree twice. OTOH, if any of these header files change 
in a significant way in a future XFree version, we have a new 
problem.... 
 
Comment 11 jdm 2002-07-08 15:26:32 UTC
hmm, how hard would it be to split up the xfree ebuild into xfree-VER.ebuild and
xfree-headers-VER.ebuild and have the build/install order be xfree-headers,
glide, xfree?
Comment 12 Maksim D. 2002-07-11 09:00:27 UTC
Hi, this error comes from incompatability between those 3dfx header files that 
currently in Gentoo portage tree and those that DRI wants.
That is how to resolve this problem without compiling Xfree twice:
a) Make sure to enable 3dfx in USE variable
b) emerge glide
c) download CORRECT 3dfx headers and opengl lib files from dri.sourceforge.net 
and REPLACE already existing
d)emerge Xfree
e)to enable direct rendering(vodoo hardware support) make sure you load gli 
module BEFORE DRI module in your XF86Config
f)you also have to have your kernel compiled with DRI and AGP support, so 
tdfx.so and agpgart.so would be in your kerenel module list. And make sure you 
load these modules when starting xfree.

So, get the UPDATED 3dfx headers and everything will be ok. Just don't use 
those in portage tree!
Comment 13 Martin Schlemmer (RETIRED) gentoo-dev 2002-07-11 14:01:28 UTC
Well, that is all dandy and the like, but the point is not to manually
download the latest headers and binary from the DRI page ...

Last time I checked out hte CVS, it was still the same as what we got (when
this thing started).  Is there anybody that could get a *current* tarball
of the sources ?
Comment 14 SpanKY gentoo-dev 2002-08-24 21:30:39 UTC
*** Bug 6992 has been marked as a duplicate of this bug. ***
Comment 15 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-02 19:10:42 UTC
*** Bug 7394 has been marked as a duplicate of this bug. ***
Comment 16 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-02 19:12:26 UTC
Ron Simpkin <ron@doobedoobedo.f2s.com> has a good fix for this, and was so
kind to mail me :)  I will try to get to it as soon as possible.
Comment 17 Martin Schlemmer (RETIRED) gentoo-dev 2002-09-08 03:28:08 UTC
Ok guys, this should be fixed in xfree-4.2.1.  Ill be adding it to CVS in a bit,
so please unmerge glide, merge xfree with "3dfx" in USE, then merge glide
again, and give me feedback.  Hopefully we should get portage side support that
will pull in glide *after* xfree merge.
Comment 18 Martin Schlemmer (RETIRED) gentoo-dev 2002-10-19 22:43:34 UTC
Just to get it on the record:

To get a voodoo going, here is the basic steps.

1)  Add "3dfx" to your USE.  If you have a voodoo3, then also add "voodoo3"
    to your USE  ... voodoo4/5 you only need "3dfx"

2)  Now bootstrap, emerge system/xfree/gnome/whatever, or just remerge xfree.

3)  If X installed fine, now emerge glide-v3 and do required config.


It should be noted that above is with xfree-4.2.1, so you need to unmask it.
Comment 19 Carl A. Dunham 2002-11-11 00:27:21 UTC
Nope, maybe this is a different error than others see, but I haven't been able
to  get past this...

USE="gnome bonobo -ipv6 mozilla mozirc mozxmlterm innodb -berkdb gpm 3dfx
voodoo3 gphoto2 gpm X xmms gtk2 mozp3p scanner cups"

Tried emerging xfree without 3dfx voodoo3, merging glide-v3, then remerging
xfree with the flags. Did not download the headers as suggested in one workaround.

...
make[5]: Leaving directory
`/space/var/tmp/portage/xfree-4.2.1-r1/work/xc/lib/GL/mesa/src/drv/gamma'
installing in lib/GL/mesa/src/drv/tdfx...
make[5]: Entering directory
`/space/var/tmp/portage/xfree-4.2.1-r1/work/xc/lib/GL/mesa/src/drv/tdfx'
rm -f tdfx_context.o
gcc -c -march=i686 -O3 -pipe  -ansi -pedantic -Wno-return-type -w 
-I../../../../../../exports/include/X11 -I../../../../../../include/extensions
-I../../../../../../extras/Mesa/src
-I../../../../../../lib/GL/mesa/src/drv/common               
-I../../../../../../lib/GL/mesa/src/drv/tdfx -I../../../../../../lib/GL/dri
-I../../../../../../lib/GL/glx          -I../../../../../../exports/include
-I../../../../../../exports/include/GL        
-I../../../../../../lib/GL/mesa/dri             
-I../../../../../../programs/Xserver/GL/dri            
-I../../../../../../programs/Xserver/hw/xfree86/os-support         
-I../../../../../../programs/Xserver/hw/xfree86/drivers/tdfx           
-I../../../../../../lib/GL/dri/drm             
-I/var/tmp/portage/xfree-4.2.1-r1/work/glide3  -I../../../../../..
-I../../../../../../exports/include   -Dlinux -D__i386__
-D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_BSD_SOURCE
-D_SVID_SOURCE  -D_GNU_SOURCE   -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS 
-D_REENTRANT -DXUSE_MTSAFE_API    -DMALLOC_0_RETURNS_NULL -DGLXEXT -DXF86DRI
-DGLX_DIRECT_RENDERING -DGLX_USE_DLOPEN -DGLX_USE_MESA -DUSE_X86_ASM
-DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_KATMAI_ASM   tdfx_context.c
tdfx_context.c: In function `tdfxInitGlide':
tdfx_context.c:561: parse error before `a'
tdfx_context.c:562: parse error before `param'
tdfx_context.c:563: parse error before `mode'
tdfx_context.c:565: parse error before `mode'
tdfx_context.c:566: parse error before `color'
tdfx_context.c:568: parse error before `buffer'
tdfx_context.c:569: parse error before `fnc'
tdfx_context.c:570: parse error before `)'
tdfx_context.c:571: parse error before `)'
tdfx_context.c:572: parse error before `hWnd'
tdfx_context.c:579: parse error before `context'
tdfx_context.c:584: parse error before `context'
tdfx_context.c:585: parse error before `origin'
tdfx_context.c:586: parse error before `which_sst'
tdfx_context.c:588: parse error before `rgb_sf'
tdfx_context.c:593: parse error before `function'
tdfx_context.c:598: parse error before `enable'
tdfx_context.c:599: parse error before `function'
tdfx_context.c:601: parse error before `value'
tdfx_context.c:602: parse error before `mode'
tdfx_context.c:603: parse error before `value'
tdfx_context.c:604: parse error before `minx'
tdfx_context.c:606: parse error before `function'
tdfx_context.c:611: parse error before `rgb'
tdfx_context.c:612: parse error before `mode'
tdfx_context.c:613: parse error before `value'
tdfx_context.c:614: parse error before `level'
tdfx_context.c:615: parse error before `function'
tdfx_context.c:616: parse error before `mode'
tdfx_context.c:617: parse error before `mask'
tdfx_context.c:618: parse error before `)'
tdfx_context.c:619: parse error before `mode'
tdfx_context.c:620: parse error before `fogcolor'
tdfx_context.c:621: parse error before `mode'
tdfx_context.c:622: parse error before `ft'
tdfx_context.c:623: parse error before `nentries'
tdfx_context.c:624: parse error before `x'
tdfx_context.c:625: parse error before `pname'
tdfx_context.c:626: parse error before `pname'
tdfx_context.c:628: parse error before `resTemplate'
tdfx_context.c:630: parse error before `what'
tdfx_context.c:631: parse error before `procName'
tdfx_context.c:632: parse error before `mode'
tdfx_context.c:633: parse error before `mode'
tdfx_context.c:634: parse error before `mode'
tdfx_context.c:635: parse error before `n'
tdfx_context.c:637: parse error before `mode'
tdfx_context.c:638: parse error before `mode'
tdfx_context.c:640: parse error before `x'
tdfx_context.c:642: parse error before `lodmin'
tdfx_context.c:645: parse error before `evenOdd'
tdfx_context.c:646: parse error before `tmu'
tdfx_context.c:647: parse error before `tmu'
tdfx_context.c:648: parse error before `table'
tdfx_context.c:650: parse error before `tmu'
tdfx_context.c:652: parse error before `tmu'
tdfx_context.c:655: parse error before `tmu'
tdfx_context.c:663: parse error before `tmu'
tdfx_context.c:665: parse error before `tmu'
tdfx_context.c:668: parse error before `tmu'
tdfx_context.c:670: parse error before `tmu'
tdfx_context.c:673: parse error before `tmu'
tdfx_context.c:682: parse error before `tmu'
tdfx_context.c:692: parse error before `type'
tdfx_context.c:694: parse error before `type'
tdfx_context.c:695: parse error before `tmu'
tdfx_context.c:697: parse error before `tmu'
tdfx_context.c:699: parse error before `tmu'
tdfx_context.c:700: parse error before `type'
tdfx_context.c:704: parse error before `type'
tdfx_context.c:705: parse error before `alpha'
tdfx_context.c:706: parse error before `depth'
tdfx_context.c:707: parse error before `swizzleBytes'
tdfx_context.c:708: parse error before `colorFormat'
tdfx_context.c:710: parse error before `dst_buffer'
tdfx_context.c:717: parse error before `src_buffer'
tdfx_context.c:721: parse error before `)'
tdfx_context.c:722: parse error before `)'
tdfx_context.c:723: parse error before `state'
tdfx_context.c:724: parse error before `state'
tdfx_context.c:725: parse error before `layout'
tdfx_context.c:726: parse error before `layout'
tdfx_context.c:729: parse error before `fogtable'
tdfx_context.c:730: parse error before `fogtable'
tdfx_context.c:731: parse error before `fogtable'
tdfx_context.c:734: parse error before `pFB'
tdfx_context.c:741: parse error before `x'
tdfx_context.c:744: parse error before `fifoPtr'
tdfx_context.c:745: parse error before `)'
tdfx_context.c:746: parse error before `)'
tdfx_context.c:747: parse error before `swapInterval'
make[5]: *** [tdfx_context.o] Error 1
make[5]: Leaving directory
`/space/var/tmp/portage/xfree-4.2.1-r1/work/xc/lib/GL/mesa/src/drv/tdfx'
make[4]: *** [install] Error 2
make[4]: Leaving directory
`/space/var/tmp/portage/xfree-4.2.1-r1/work/xc/lib/GL/mesa/src/drv'
make[3]: *** [install] Error 2
make[3]: Leaving directory `/space/var/tmp/portage/xfree-4.2.1-r1/work/xc/lib/GL'
make[2]: *** [install] Error 2
make[2]: Leaving directory `/space/var/tmp/portage/xfree-4.2.1-r1/work/xc/lib'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/space/var/tmp/portage/xfree-4.2.1-r1/work/xc'
make: *** [install] Error 2

!!! ERROR: The ebuild did not complete successfully.
!!! Function src_install, Line 272, Exitcode 2
!!! (no error message)

Comment 20 Martin Schlemmer (RETIRED) gentoo-dev 2002-11-11 14:03:36 UTC
Hi .. 4.2.0-r12 is still broken.  Use 4.2.1 or preferibly 4.2.1-r1.
Comment 21 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-01 07:23:18 UTC
Bah, braindead reply that I only see now.  It should be fixed as of a few
days back.
Comment 22 Joel Martin (RETIRED) gentoo-dev 2004-03-16 06:31:09 UTC
*** Bug 44454 has been marked as a duplicate of this bug. ***