[CentOS] CentOS 6.8 and libGL failures

isdtor
2016-05-31T14:04:56Z

(Btw., Johnny, your signatures haven't verified in months. Don't know if
the list server is the problem or our corp mail server).

> [johnny at localhost ~]$ glxgears
> 1054 frames in 5.0 seconds = 210.750 FPS
> 1064 frames in 5.0 seconds = 212.735 FPS
> 1077 frames in 5.0 seconds = 215.366 FPS
> 1061 frames in 5.0 seconds = 212.018 FPS

$ glxgears
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for
operation)
  Major opcode of failed request:  154 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  33
  Current serial number in output stream:  35
$

Curiously, it works as root. I checked all files owned by mesa* and couldn't
find anything wrong with permissions. Ah, I think I found it): library search
path is different for root. That is an artifact of our work environment.

$ ldd `which glxinfo` |grep nvidia
$

# ldd `which glxinfo` |grep nvidia
	libGL.so.1 => /usr/lib64/nvidia/libGL.so.1 (0x00007f6de0558000)
	libnvidia-tls.so.346.35 => /usr/lib64/nvidia/tls/libnvidia-tls.so.346.35
(0x00007f6de0352000)
	libnvidia-glcore.so.346.35 => /usr/lib64/nvidia/libnvidia-glcore.so.346.35
(0x00007f6ddd67a000)
#

Yet, it is strange that it all worked under 6.7 and before.