i have created lxc container of our custom toolchain has many packages. related graphics, have installed nvidia 367.27 driver using nvidia installer inside container(called mk7icontainer ) the nvidia driver libraries/binaries installed @ path /usr/share/nvidia path inside container. i have installed mesa installed in path /usr inside container. i compiled glxdemo source code using command as: gcc -g glxdemo.c -wl,--rpath-link,/usr/share/nvidia/lib -wl,-rpath,/usr/share/nvidia/lib \ -wl,--rpath-link,/usr/share/nvidia/lib/tls -wl,-rpath,/usr/share/nvidia/lib/tls \ -wl,--rpath-link,/usr/share/nvidia/lib/vdpau -wl,-rpath,/usr/share/nvidia/lib/vdpau \ -wl,--rpath-link,/usr/share/nvidia/lib/xorg/modules -wl,-rpath,/usr/share/nvidia/lib/xorg/modules \ -wl,--rpath-link,/usr/share/nvidia/lib/xorg/modules/drivers -wl,-rpath,/usr/share/nvidia/lib/xorg/modules/drivers \ -wl,--rpath-link,/usr/share/nvidia/lib/xorg/modules/extensions -wl,-rpath,/usr/share/nvidia/lib/xorg/modules/e...