Bug 1093

Summary: libGL cant find drivers if ProjectRoot is not /usr/X11R6
Product: DRI Reporter: Marko Kreen <marko>
Component: libGLAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: high CC: ajax
Version: XOrg git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments:
Description Flags
fix libGL driver path none

Description Marko Kreen 2004-08-16 06:55:10 UTC
reason seems to be that DEFAULT_DRIVER_DIR is not defined anywhere.

================================================================
xc/lib/GL/glx/dri_glx.c:
/* this is normally defined in the Imakefile */
#define DEFAULT_DRIVER_DIR "/usr/X11R6/lib/modules/dri"
================================================================
$ grep -rl DEFAULT_DRIVER_DIR xc
xc/lib/GL/glx/dri_glx.c
================================================================
$ strace -eopen  glxinfo 
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
open("/opt/XOrg/lib/libGLU.so.1", O_RDONLY) = 3
open("/opt/XOrg/lib/libGL.so.1", O_RDONLY) = 3
open("/opt/XOrg/lib/libXext.so.6", O_RDONLY) = 3
open("/opt/XOrg/lib/libX11.so.6", O_RDONLY) = 3
open("/lib/tls/libpthread.so.0", O_RDONLY) = 3
open("/lib/tls/libm.so.6", O_RDONLY)    = 3
open("/lib/tls/libc.so.6", O_RDONLY)    = 3
open("/usr/lib/libstdc++.so.5", O_RDONLY) = 3
open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
open("/opt/XOrg/lib/libXxf86vm.so.1", O_RDONLY) = 3
open("/lib/tls/libdl.so.2", O_RDONLY)   = 3
open("/home/marko/.Xauthority", O_RDONLY) = 4
name of display: :0.0
open("/usr/X11R6/lib/modules/dri/r200_dri.so", O_RDONLY) = -1 ENOENT (No such
file or directory)
display: :0  screen: 0
direct rendering: No
Comment 1 Marko Kreen 2004-08-17 04:51:59 UTC
Created attachment 658 [details] [review]
fix libGL driver path

Seems like bugfix for #1057 tried to solve the issue, but got it wrong.

This patch fixes it for me.
Comment 2 Ronny V. Vindenes 2004-08-17 05:21:50 UTC

*** This bug has been marked as a duplicate of 1057 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.