I just installed virt-viewer on RHEL7.3 using yum install virt-viewer and now I am getting below error
[root@host ~]# virt-viewer
virt-viewer: symbol lookup error: /lib64/libspice-client-gtk-3.0.so.5: undefined symbol: gdk_keymap_get_scroll_lock_state
virt-manager also crashes when I try to see graphical console.
Target library seems to exist so something is wrong with the dependency.
[root@host ~]# ls -l /lib64/libspice*
lrwxrwxrwx. 1 root root 33 Aug 12 15:56 /lib64/libspice-client-glib-2.0.so -> libspice-client-glib-2.0.so.8.6.0
lrwxrwxrwx. 1 root root 33 Aug 12 15:06 /lib64/libspice-client-glib-2.0.so.8 -> libspice-client-glib-2.0.so.8.6.0
-rwxr-xr-x. 1 root root 1200664 Jun 8 00:49 /lib64/libspice-client-glib-2.0.so.8.6.0
lrwxrwxrwx. 1 root root 32 Aug 12 16:08 /lib64/libspice-client-gtk-3.0.so.5 -> libspice-client-gtk-3.0.so.5.0.0
-rwxr-xr-x. 1 root root 132176 Jun 8 00:49 /lib64/libspice-client-gtk-3.0.so.5.0.0
lrwxrwxrwx. 1 root root 28 Aug 12 15:56 /lib64/libspice-controller.so -> libspice-controller.so.0.0.0
lrwxrwxrwx. 1 root root 28 Aug 12 15:07 /lib64/libspice-controller.so.0 -> libspice-controller.so.0.0.0
-rwxr-xr-x. 1 root root 69096 Jun 8 00:49 /lib64/libspice-controller.so.0.0.0
lrwxrwxrwx. 1 root root 24 Dec 25 2016 /lib64/libspice-server.so.1 -> libspice-server.so.1.8.0
-rwxr-xr-x. 1 root root 1194648 Sep 9 2016 /lib64/libspice-server.so.1.8.0
Is there anyone else faced the same problem?
Found the problem.
Problem
When I install virt-viewer from yum repository, 1 package is installed and 2 packages are updated.
As a result, below error occurs.
Looks like latest spice-glib and spice-gtk3 is not working properly with virt-viewer .
Work Around
Install the virt-viewer from the rhel-server-7.3-x86_64-dvd.iso . spice related packages are not updated and virt-viewer properly works now.
It works properly now.
Compatible spice-glib and spice-gtk3 are below.