Bug 1093 - libGL cant find drivers if ProjectRoot is not /usr/X11R6
Summary: libGL cant find drivers if ProjectRoot is not /usr/X11R6
Status: RESOLVED DUPLICATE of bug 1057
Alias: None
Product: DRI
Classification: Unclassified
Component: libGL (show other bugs)
Version: XOrg git
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Xorg Project Team
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-16 06:55 UTC by Marko Kreen
Modified: 2004-08-16 12:21 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments
fix libGL driver path (386 bytes, patch)
2004-08-17 04:51 UTC, Marko Kreen
no flags Details | Splinter Review

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.