[SOLVED] OpenGL programs not running

Andrea Venturoli ml at netfence.it
Mon Nov 23 14:30:25 UTC 2015


Hello.

I'm seeing a regression here: no OpenGL program works.

E.G.

> % glxinfo
> name of display: :0.0
> libGL error: unable to load driver: r600_dri.so
> libGL error: driver pointer missing
> libGL error: failed to load driver: r600
> libGL error: unable to load driver: swrast_dri.so
> libGL error: failed to load driver: swrast
> X Error of failed request:  GLXBadContext
>   Major opcode of failed request:  154 (GLX)
>   Minor opcode of failed request:  6 (X_GLXIsDirect)
>   Serial number of failed request:  45
>   Current serial number in output stream:  44




Looking for some hints:

> % setenv LIBGL_DEBUG verbose
> % glxinfo
> name of display: :0.0
> libGL: OpenDriver: trying /usr/local/lib/dri/r600_dri.so
> libGL: dlopen /usr/local/lib/dri/r600_dri.so failed (/usr/lib/libstdc++.so.6: version GLIBCXX_3.4.15 required by /usr/local/lib/dri/r600_dri.so not found)
> libGL error: unable to load driver: r600_dri.so
> libGL error: driver pointer missing
> libGL error: failed to load driver: r600
> libGL: OpenDriver: trying /usr/local/lib/dri/swrast_dri.so
> libGL: dlopen /usr/local/lib/dri/swrast_dri.so failed (/usr/lib/libstdc++.so.6: version GLIBCXX_3.4.15 required by /usr/local/lib/dri/swrast_dri.so not found)
> libGL error: unable to load driver: swrast_dri.so
> libGL error: failed to load driver: swrast
> X Error of failed request:  GLXBadContext
>   Major opcode of failed request:  154 (GLX)
>   Minor opcode of failed request:  6 (X_GLXIsDirect)
>   Serial number of failed request:  45
>   Current serial number in output stream:  44



So:
> env LD_PRELOAD=/usr/local/lib/gcc48/libstdc++.so.6 glxinfo

works.
(Substitute glxinfo with whatever program you'd like to run).




Maybe I overlooked it, but I think I saw no mention of this problem 
anywhere, so I wasn't expecting it and had to dig it the hard way.


HTH others.

  bye
	av.


More information about the freebsd-x11 mailing list