virt-viewer does not recognise SPICE protocol
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Raspbian |
New
|
Undecided
|
Unassigned |
Bug Description
Remote-viewer from package virt-viewer 5.0-1 on Raspbian stretch doesn't work with spice:// connection URL, throws error 'Unsupported graphic type: spice'. Version 1.0 on jessie also has the same error.
It seems that it's compiled without spice-gtk because even manually installing spice-client-gtk makes no difference.
On debian ( https:/
it has dependencies:
dep: libspice-
GObject for communicating with Spice servers (runtime library)
dep: libspice-
GTK3 widget for SPICE clients (runtime library)
virt-viewer on Raspbian doesn't have these dependencies.
Looking at build logs ( https:/
WARNING: unrecognized options: --disable-
For debian: https:/
Both have Build-Depends on libspice-
checking for SPICE_GTK... yes
checking for SPICE_CONTROLLER... yes
checking for SPICE_PROTOCOL... yes
I assume it's a wrong configure option, could this please be checked.
So I tried to build virt-viewer from source. However, the source package in raspbian archives required newer spice-client- glib/gtk than that available in the archives:
Requested 'spice- client- gtk-3.0 >= 0.33' but version of spice-client- gtk-3.0 is 0.32 client- glib-2. 0 >= 0.33' but version of spice-client- glib-2. 0 is 0.32
Requested 'spice-
The source package of spice-gtk in raspbian is version 0.32, not 0.33, so I tried to build from git ( https:/ /anonscm. debian. org/git/ collab- maint/spice- gtk.git ) which had 0.33.
This, however, brought me to the real issue:
(full log in attachment)
In file included from /usr/include/ glib-2. 0/gobject/ gobject. h:24:0,
from /usr/include/ glib-2. 0/gobject/ gbinding. h:29,
from /usr/include/ glib-2. 0/glib- object. h:23,
from spice-client.h:23,
from spice-file- transfer- task-priv. h:25,
from spice-file- transfer- task.c: 20: transfer- task.c: In function ‘spice_ file_transfer_ task_get_ property’ : glib-2. 0/gobject/ gtype.h: 2207:6: error: cast increases required alignment of target type [-Werror= cast-align] check_instance_ cast ((GTypeInstance*) ip, gt))
spice-file-
/usr/include/
((ct*) g_type_
^
So this seems like a real bug in spice-gtk 0.34 or glib-2.0, or I am compiling the wrong code not patched for armhf. Either way, more research is required.