Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55944 - glide-v3: libglide3 bug when compiled with USE="3dnow"
Summary: glide-v3: libglide3 bug when compiled with USE="3dnow"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: Normal major (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-03 02:17 UTC by Paolo Ornati
Modified: 2006-01-28 01:35 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 Paolo Ornati 2004-07-03 02:17:12 UTC
Trying to get DRI working I have compiled "glide-v3" package (with USE="3dnow"). Now see what happens:

$ export LIBGL_DEBUG="verbose"
$ glxinfo
name of display: :0.0
libGL: XF86DRIGetClientDriverName: 1.0.0 tdfx (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/tdfx_dri.so
libGL: XF86DRIGetClientDriverName: 1.0.0 tdfx (screen 0)
drmOpenByBusid: busid is PCI:1:0:0
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports PCI:1:0:0
libGL error:
can't find Glide library, dlopen(libglide3-v3.so) and dlopen(libglide3.so.3) both failed.
libGL error:
dlerror() message: /usr/lib/libglide3.so.3: undefined symbol: _trisetup_3DNow_win_nocull_valid


WorkAround:
$ USE="-3dnow" emerge glide-v3

Without "3dnow" it works fine, so this isn't a big problem ;-)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Bryan Stine (RETIRED) gentoo-dev 2004-07-03 14:45:53 UTC
I shall search the ever-active glide lists for something relating to this.
Comment 2 folken 2004-07-08 05:56:49 UTC
I have the exact same issue. However I have not set the 3dnow flag as the  P3 Processors do not support it. The system is a dual processor system, so that might also be an issue.
Comment 3 Christopher Currie 2004-09-06 21:22:58 UTC
I have similar issues, except USE="-3dnow" does not work for me.

With USE="3dnow":

ccurrie@davinci ~/glide3x $ glxinfo
name of display: :0.0
libGL: XF86DRIGetClientDriverName: 1.0.0 tdfx (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/tdfx_dri.so
drmOpenByBusid: busid is PCI:1:5:0
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports PCI:1:5:0
libGL error:
can't find Glide library, dlopen(libglide3-v5.so) and dlopen(libglide3.so.3)
both failed.
libGL error: dlerror() message: /usr/lib/libglide3.so.3: undefined symbol:
_grDrawTriangles_3DNow


and with USE="-3dnow":
ccurrie@davinci ~/glide3x $ glxinfo name of display: :0.0
libGL: XF86DRIGetClientDriverName: 1.0.0 tdfx (screen 0)
libGL: OpenDriver: trying /usr/X11R6/lib/modules/dri/tdfx_dri.so
drmOpenByBusid: busid is PCI:1:5:0
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports PCI:1:5:0
libGL error:
can't find Glide library, dlopen(libglide3-v5.so) and dlopen(libglide3.so.3) both failed.
libGL error:
dlerror() message: /usr/lib/libglide3.so.3: undefined symbol: _drawvertexlist


Workaround:
Download pre-compiled libglide3.so from glide.sourceforge.net.


Aside: What needs to happen to get a precompiled Gentoo package of glide-v3? I'd prefer to use that rather than the download from SF, until the build issues are resolved.

Comment 4 MeDevil 2004-11-21 15:28:29 UTC
searching on google i found this:
http://www.mail-archive.com/dri-devel@lists.sourceforge.net/msg02066.html

maybe it helps...
Comment 5 Chris Picton 2005-05-24 08:10:25 UTC
This link may also provide some hints

https://www.redhat.com/archives/fedora-extras-commits/2005-May/msg00005.html
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2005-09-07 09:22:23 UTC
comment #5 should help with resolving this, upgrading urgency.
Comment 7 Paolo Ornati 2005-09-07 11:18:03 UTC
I've tried the patch at:
https://www.redhat.com/archives/fedora-extras-commits/2005-May/msg00005.html


Now I get a new error:

$ export LIBGL_DEBUG="verbose"
$ glxinfo
...
libGL error: 
can't find Glide library, dlopen(libglide3-v3.so) and dlopen(libglide3.so.3)
both failed.
libGL error: 
dlerror() message: /usr/lib/libglide3.so.3: undefined symbol: _grDrawTriangles_3DNow
...


Can't we just disable "3dnow" as a temporary workaround?
Comment 8 Joshua Baergen (RETIRED) gentoo-dev 2005-09-07 17:05:16 UTC
Did this ever work for anyone?
Comment 9 Paolo Ornati 2005-09-14 01:02:35 UTC
(In reply to comment #8)
> Did this ever work for anyone?

I've never seen it working with USE="3dnow".
Comment 10 Joshua Baergen (RETIRED) gentoo-dev 2005-09-14 19:18:59 UTC
Alright, I agree then that removing the USE-flag for 3dnow is best for the time
being.

Paolo: just to confirm: you sure you copied the whole patch?  I had a look
through it and I'm really not sure how the breakage could occur...
Comment 11 Paolo Ornati 2005-09-14 23:34:46 UTC
(In reply to comment #10)
> 
> Paolo: just to confirm: you sure you copied the whole patch?  I had a look
> through it and I'm really not sure how the breakage could occur...

I'm sure. The patch applied cleanly unless the "Glide3.spec" part,
since there is no such file in the source...
Comment 12 Patrick Kursawe (RETIRED) gentoo-dev 2005-12-16 13:28:35 UTC
At home I've got an old machine with voodoo3 chipset. According to the X server log DRI is just fine, but according to glxinfo and the speed of tuxracer it does not work. The problem is gone if I emerge glide-v3 with USE="-3dnow". Looks like there's still something broken about this. Two years and a half later :-(
Comment 13 Donnie Berkholz (RETIRED) gentoo-dev 2006-01-28 01:35:00 UTC
Removed 3dnow USE flag.