Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 2012 - glide doesn't work
Summary: glide doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 All
: High normal (vote)
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-22 20:14 UTC by Andrzej
Modified: 2003-02-04 19:42 UTC (History)
0 users

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 Andrzej 2002-04-22 20:14:00 UTC
I emerged glide and then emerged xbase after that my glxinfo was saying dri is 
enabled but glxgears segfaults and q3demo hanged. I decided to download glide 
from dri.sourceforge.net, recompiled xbase and since then everything worked OK
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2002-04-23 18:06:08 UTC
Did you have "3dfx" and "voodoo3" (if voodoo3) in your USE ?
And what exactly did you download ?  Also try to clear your CFLAGS and
CXXFLAGS when merging media-libs/glide-v3, and let me know.
Comment 2 Andrzej 2002-04-23 22:22:42 UTC
Hi
Yes, I had voodoo3 (I have voodoo3 3000 pci/agp) and 3dfx in USE and I used 
this optimazition:
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="-march=i686 -O3 -pipe"
name of ebuild:
glide-v3/glide-v3-3.10-r2.ebuild
After I was unsuccessful making glide to work I downloaded these files:
http://dri.sourceforge.net/res/glide3headers.tar.gz
http://dri.sourceforge.net/res/voodoo3/x86/libglide3.so
I'll try to emerge glide tommorow without cflags and let you know how it goes.
Thanks for your time.

Comment 3 Andrzej 2002-04-24 14:20:59 UTC
 hi I remerged glide without flags ( CFLAGS,CXXFLAGS) and again glxgears segfaulted.   I found two web pages that could help us resolved this problem. http://hints.linuxfromscratch.org/hints/tuxracer.txt http://hints.linuxfromscratch.org/hints/dri.txt  I'll tried to follow directions from those sites and was able to compiled working glide.  My steps were as follows:  #from http://hints.linuxfromscratch.org/hints/dri.txt #I downloaded this file  ftp://ftp.gnu.org/gnu/automake/automake-1.4-p5.tar.gz #extracted it and issue those commands cd automake-1.4-p5  ./configure --prefix=$HOME/automake-temp &&  make INSTALL="install -c -D" install &&  cp /usr/share/aclocal/libtool.m4 ~/automake-temp/share/aclocal  #after that  #from http://hints.linuxfromscratch.org/hints/tuxracer.txt #extracted glide and swlibs mv swlibs glide3x && chmod +x glide3x/swlibs/include/make/ostype && cd glide3x/h3/minihwc && ln -s linhwc.c.dri linhwc.c && cd ../glide3/src ; ln -s gglide.c.dri gglide.c && ln -s gsst.c.dri gsst.c &&  ln -s glfb.c.dri glfb.c cd glide3x  ~/automake-temp/bin/aclocal &&  ~/automake-temp/bin/automake &&   autoconf ./configure --prefix=/usr --enable-fx-glide-hw=h3 \  --enable-fx-build-dri --enable-shared --enable-static &&  ./ltconfig ltmain.sh  make -f makefile.linux && cp -ax h3/lib/libglide* /usr/lib &&  cp -ax swlibs/include/*.h /usr/include/glide3 && cp -ax h3/include/*.h /usr/include/glide3   That's all. It worked  I hope I didn't mix it up to much :) greetings  
Comment 4 Andrzej 2002-04-24 14:26:15 UTC
hi Sorry had to this one more time, first one wasn't full  I remerged glide without flags ( CFLAGS,CXXFLAGS) and again glxgears segfaulted. I'm attaching two files glideglxgears (what I had while running glxgears command) and glide.compil (log from compilation).  I found two web pages that could help us resolved this problem. http://hints.linuxfromscratch.org/hints/tuxracer.txt http://hints.linuxfromscratch.org/hints/dri.txt  I'll tried to follow directions from those sites and was able to compiled working glide. My steps were as follows:  #from http://hints.linuxfromscratch.org/hints/dri.txt #I downloaded this file  ftp://ftp.gnu.org/gnu/automake/automake-1.4-p5.tar.gz #extracted it and issue those commands cd automake-1.4-p5 ./configure --prefix=$HOME/automake-temp &&  make INSTALL="install -c -D" install &&  cp /usr/share/aclocal/libtool.m4 ~/automake-temp/share/aclocal  #after that  #from http://hints.linuxfromscratch.org/hints/tuxracer.txt #extracted glide and swlibs mv swlibs glide3x && chmod +x glide3x/swlibs/include/make/ostype && cd glide3x/h3/minihwc && ln -s linhwc.c.dri linhwc.c && cd ../glide3/src ; ln -s gglide.c.dri gglide.c && ln -s gsst.c.dri gsst.c && ln -s glfb.c.dri glfb.c cd glide3x  ~/automake-temp/bin/aclocal &&  ~/automake-temp/bin/automake &&   autoconf ./configure --prefix=/usr --enable-fx-glide-hw=h3 \  --enable-fx-build-dri --enable-shared --enable-static &&  ./ltconfig ltmain.sh  make -f makefile.linux && cp -ax h3/lib/libglide* /usr/lib &&  cp -ax swlibs/include/*.h /usr/include/glide3 && cp -ax h3/include/*.h /usr/include/glide3   That's all. It worked  I hope I didn't mix it up to much :) greetings  
Comment 5 Andrzej 2002-04-24 14:28:53 UTC
Oh...yes it worked first time only there was no word wrap. I didn't see it :)  
Comment 6 Martin Schlemmer (RETIRED) gentoo-dev 2002-04-24 16:20:24 UTC
Hiya, please try to send it step for step, with a <return> after each line.
Something like:

# cd foo
# cp bar bar.orig
# sed -e "s:bat:batt:" bar.orig >bar
# rm bar.orig

Thanks for your effort !
Comment 7 Andrzej 2002-04-24 18:24:42 UTC
 hi
 Sorry for that long line :)
    I emerged glide without flags ( CFLAGS,CXXFLAGS) as you told me and again
 glxgears segfaulted. I'll attache two files glideglxgears (with what happend
 while running glxgears command) and glide.compil (log from compilation) later
 if you want me to that.

 I found two web pages that could help us resolved this problem.
 http://hints.linuxfromscratch.org/hints/tuxracer.txt
 http://hints.linuxfromscratch.org/hints/dri.txt
 I tried to follow directions from those sites and was able to compiled
 working glide.
 My steps were as follows: 
 #from http://hints.linuxfromscratch.org/hints/dri.txt 
 #I downloaded this file
 ftp://ftp.gnu.org/gnu/automake/automake-1.4-p5.tar.gz 
 #extracted it and issue those commands:
 cd automake-1.4-p5 
 ./configure --prefix=$HOME/automake-temp && 
 make INSTALL="install -c -D" install && 
 cp /usr/share/aclocal/libtool.m4 ~/automake-temp/share/aclocal 
 #after that  
 #extracted glide and swlibs
 mv swlibs glide3x &&
 chmod +x glide3x/swlibs/include/make/ostype &&
 cd glide3x/h3/minihwc &&
 ln -s linhwc.c.dri linhwc.c && 
 cd ../glide3/src ; ln -s gglide.c.dri gglide.c && 
 ln -s gsst.c.dri gsst.c &&
 ln -s glfb.c.dri glfb.c 
 cd glide3x 
 ~/automake-temp/bin/aclocal &&
 ~/automake-temp/bin/automake &&
  autoconf
 ./configure --prefix=/usr --enable-fx-glide-hw=h3 \
  --enable-fx-build-dri --enable-shared --enable-static && 
 ./ltconfig ltmain.sh 
 make -f makefile.linux &&
  cp -ax h3/lib/libglide* /usr/lib &&
  cp -ax swlibs/include/*.h /usr/include/glide3 && 
  cp -ax h3/include/*.h /usr/include/glide3

  That's all and it worked.
  I hope I didn't mix it up to much :), I might missed something.

  greetings  
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2002-04-24 18:33:49 UTC
good stuff.   Just a question ... do you have to do the automake stuff ?
as we do use automake-1.4-p5 .... ?  So basically just do: automake, etc,
without it being extracted, and compiled ?

If that dont work, try to:

# export WANT_AUTOMAKE_1_4=1

and then try with the system installed automake stuff

thanks :)
Comment 9 Martin Schlemmer (RETIRED) gentoo-dev 2002-04-24 18:37:55 UTC
oh, btw .. is it a custom xfree build, or via the ebuild ?
Comment 10 Andrzej 2002-04-24 19:34:23 UTC
hi
xfree is from ebuild, no customization :)
as for automake stuff I will be able to check it tomorrow.
So see you tommorow :)
Comment 11 Andrzej 2002-04-25 12:33:35 UTC
hi again      When you told me to try with just automake (same version) I looked at  ebuild at last and must say I feel rather stupid writing all those steps I  did to compile glide :) it's the same stuff we have in ebuild :). The only  difference I noticed is the "sed" stuff and I think that is the problem   I wasn't able to build working glide. Ah... and one thing more u were right   from the beginning it is the problem of optimizations ( I commented cflags  in make.conf but forget about make.globals). I commented flags in both files  today and ended up with this error:   gcc -o texus cmd.o  ../../../swlibs/fxmisc/.libs/libfxmisc.al ../../../swlibs/texus2/lib/.libs/libtexus.al ../../../swlibs/texus2/lib/.libs/libtexus.al(eigen.lo): In function `eigenVectors': eigen.lo(.text+0x59a): undefined reference to `sqrt' eigen.lo(.text+0x5f5): undefined reference to `sqrt' collect2: ld returned 1 exit status make[3]: *** [texus] Error 1 make[3]: Leaving directory `/var/tmp/portage/glide-v3-3.10-r2/work/glide3x/build/swlibs/texus2/cmd' ------------------------------------------------------------------------- At last I decided to comment out 'sed' stuff in the glide ebuild file:         cd ${WORKDIR}/swlibs/include/make 	cp makefile.autoconf.bottom makefile.autoconf.bottom.orig 	sed -e "s:-O6 -m486:${CFLAGS}:" makefile.autoconf.bottom.orig \ 		> makefile.autoconf.bottom  and that was that I was able to compile working glide :). Thanks for your time and patience once again :) PS I hope this message won't be a long line.         
Comment 12 Andrzej 2002-04-25 12:40:08 UTC
hi again
      When you told me to try with just automake (same version) I looked at
  ebuild at last and must say I feel rather stupid writing all those steps
 I  did to compile glide :) it's the same stuff we have in ebuild :).
 The only  difference I noticed is the "sed" stuff and I think that is the
problem   I am not able to build working glide.
 Ah... and one thing more u were right   from the beginning it is the problem of
optimizations ( I commented cflags  in make.conf but forget about make.globals).
 I commented flags in both files  today but it wasn't enough I ended up with 
this error:
   gcc -o texus cmd.o  ../../../swlibs/fxmisc/.libs/libfxmisc.al 
../../../swlibs/texus2/lib/.libs/libtexus.al
 ../../../swlibs/texus2/lib/.libs/libtexus.al(eigen.lo): In function 
`eigenVectors': eigen.lo(.text+0x59a): undefined reference to `sqrt'
 eigen.lo(.text+0x5f5): undefined reference to `sqrt' collect2: ld returned 1
 exit status make[3]: *** [texus] Error 1 make[3]: Leaving directory
 `/var/tmp/portage/glide-v3-3.10-r2/work/glide3x/build/swlibs/texus2/cmd'
 -------------------------------------------------------------------------
 At last I decided to comment out 'sed' stuff in the glide ebuild file:
         cd ${WORKDIR}/swlibs/include/make 
	cp makefile.autoconf.bottom makefile.autoconf.bottom.orig
 	sed -e "s:-O6 -m486:${CFLAGS}:" makefile.autoconf.bottom.orig \ 
		> makefile.autoconf.bottom 
 and that was that I was able to compile working glide :).
 Thanks for your time and patience once again :)
 PS I hope this message won't be a long line.
 He,he what I was hoping for  
I'm not going to use konqueror again :)         
Comment 13 Martin Schlemmer (RETIRED) gentoo-dev 2002-04-25 13:47:00 UTC
Hi, please try -r3, and let me know.  Thanks!
Comment 14 Martin Schlemmer (RETIRED) gentoo-dev 2002-04-25 13:47:39 UTC
Hi, please try -r3, and let me know.  Thanks!
Comment 15 Andrzej 2002-04-25 15:55:09 UTC
Hi
You can call it fixed, r3 works :)
thanks
Comment 16 Martin Schlemmer (RETIRED) gentoo-dev 2002-04-25 16:09:41 UTC
w00t, and thanks to you ;)