Topic closed : see solution here http://forums.slimdevices.com/showthread.php?99648-Howto-build-a-self-contained-LMS&s=1b99033b65772166c641fee379c06f49
After 8 hours of debug with different NVIDIA drivers, I find a solution.
Now, the question is why it happens ?
I think I will block the next upgrade because I spend a lot of time with NVIDIA Drivers (for XBMC), PERL (for SqueezeBox).
Solution with nvidia-331.113.
This is an old drivers but I was able to make it running again so I place the solution :
Check that all the links libGL.xxx link to the latest nvidia version :
ldconfig -p | grep libGL
libGLU.so.1 (libc6) => /usr/lib/libGLU.so.1
libGLU.so (libc6) => /usr/lib/libGLU.so
libGLEWmx.so.1.12 (libc6) => /usr/lib/libGLEWmx.so.1.12
libGLEWmx.so (libc6) => /usr/lib/libGLEWmx.so
libGLEW.so.1.12 (libc6) => /usr/lib/libGLEW.so.1.12
libGLEW.so (libc6) => /usr/lib/libGLEW.so
libGL.so.1 (libc6) => /usr/lib/libGL.so.1
libGL.so (libc6) => /usr/lib/libGL.so
Then, check the folder ?/usr/lib? and file ?libGL*? :
Some links are not defined and are linked to the old NVIDIA drivers (libGLESv2.so.340.65) : This is not the problem whit this driver because this links come from newest drivers.
libGLESv1_CM.so -> opengl/nvidia/lib/libGLESv1_CM.so.340.65
libGLESv2.so -> opengl/nvidia/lib/libGLESv2.so.340.65
The solution is to do the following :
mv libGL.so.1.2.0 libGL.so.1.2.0-v1
ln -s opengl/nvidia/lib/libGL.so.331.113 libGL.so.1.2.0
The result :
lrwxrwxrwx 1 root root 14 Apr 7 10:14 libGL.so -> libGL.so.1.2.0
lrwxrwxrwx 1 root root 14 Apr 7 10:14 libGL.so.1 -> libGL.so.1.2.0
lrwxrwxrwx 1 root root 34 Apr 11 15:36 libGL.so.1.2.0 -> opengl/nvidia/lib/libGL.so.331.113
-rwxr-xr-x 1 root root 610168 Apr 7 10:11 libGL.so.1.2.0-v1
lrwxrwxrwx 1 root root 40 Jan 30 02:51 libGLESv1_CM-v1.so -> opengl/nvidia/lib/libGLESv1_CM.so.340.65
lrwxrwxrwx 1 root root 34 Apr 11 15:50 libGLESv1_CM.so -> opengl/nvidia/lib/libGL.so.331.113
lrwxrwxrwx 1 root root 37 Jan 30 02:51 libGLESv2-v1.so -> opengl/nvidia/lib/libGLESv2.so.340.65
lrwxrwxrwx 1 root root 34 Apr 11 15:51 libGLESv2.so -> opengl/nvidia/lib/libGL.so.331.113
lrwxrwxrwx 1 root root 17 Feb 12 02:05 libGLEW.so -> libGLEW.so.1.12.0
lrwxrwxrwx 1 root root 17 Feb 12 02:05 libGLEW.so.1.12 -> libGLEW.so.1.12.0
-rwxr-xr-x 1 root root 472296 Feb 12 02:04 libGLEW.so.1.12.0
lrwxrwxrwx 1 root root 19 Feb 12 02:05 libGLEWmx.so -> libGLEWmx.so.1.12.0
lrwxrwxrwx 1 root root 19 Feb 12 02:05 libGLEWmx.so.1.12 -> libGLEWmx.so.1.12.0
-rwxr-xr-x 1 root root 427236 Feb 12 02:04 libGLEWmx.so.1.12.0
lrwxrwxrwx 1 root root 15 Apr 10 2014 libGLU.so -> libGLU.so.1.3.1
lrwxrwxrwx 1 root root 15 Apr 10 2014 libGLU.so.1 -> libGLU.so.1.3.1
-rwxr-xr-x 1 root root 579488 Apr 10 2014 libGLU.so.1.3.1
In folder : ? /usr/lib/xorg/modules/extensions ? the link point to the old library :
I do : ln -s ../../../opengl/nvidia/extensions/libglx.so.331.113 libglx.so
After this, I tried glxgears again and it runs without error.
glxinfo | grep direct give YES
XBMC started again :)
Solution with nvidia-drivers-340.76.Below /usr/lib you must have something like :
libGL.so -> libGL.so.1.2.0
libGL.so.1 -> libGL.so.1.2.0
libGL.so.1.2.0 -> opengl/nvidia/lib/libGL.so.331.113
But, after installed 340.76 you have only a missing link :
Then I startx and run glxgears and it started without error.
glxinfo | grep direct gives :
direct rendering: Yes GL_EXT_depth_bounds_test, GL_EXT_direct_state_access, GL_EXT_depth_bounds_test, GL_EXT_direct_state_access,