Bug 1375429
| Summary: | relocation error: libspice-client-gtk-3.0.so.5: symbol spice_display_get_gl_scanout, version spicegtk_1 not defined in file libspice-client-glib-2.0.so.8 with link time refrence | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Community] Virtualization Tools | Reporter: | Jai Abishek <jjanarthanam> | ||||
| Component: | virt-viewer | Assignee: | Daniel Berrangé <berrange> | ||||
| Status: | CLOSED NOTABUG | QA Contact: | |||||
| Severity: | urgent | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | unspecified | CC: | jjanarthanam, pgrunt, rbalakri, xen-maint | ||||
| Target Milestone: | --- | ||||||
| Target Release: | --- | ||||||
| Hardware: | arm | ||||||
| OS: | Other | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2016-10-11 06:43:41 UTC | Type: | Bug | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
Jai Abishek
2016-09-13 06:05:46 UTC
What is the version of spice-gtk ? You need spice-gtk v0.31 To me it looks like virt-viewer is linked to a wrong library. Check: ldd `which virt-viewer` | grep spice (In reply to Pavel Grunt from comment #1) > What is the version of spice-gtk ? You need spice-gtk v0.31 > > To me it looks like virt-viewer is linked to a wrong library. Check: > ldd `which virt-viewer` | grep spice hi Pavel Grunt, Thanks for the quick reply, Spice-GTK - 0.32 compiled using --enable-maintainer-mode --enable-gtk-doc --enable-smartcard=no --enable-introspection=auto --with-gtk=3.0 And the resultant for the search >ldd `which virt-viewer` | grep spice libspice-client-gtk-3.0.so.5 => /usr/local/lib/libspice-client-gtk-3.0.so.5 (0x76c58000) libspice-client-glib-2.0.so.8 => /usr/lib/arm-linux-gnueabihf/libspice-client-glib-2.0.so.8 (0x76599000) Regards, Jai Abishek (In reply to Jai Abishek from comment #2) > (In reply to Pavel Grunt from comment #1) > > What is the version of spice-gtk ? You need spice-gtk v0.31 > > > > To me it looks like virt-viewer is linked to a wrong library. Check: > > ldd `which virt-viewer` | grep spice > > hi Pavel Grunt, > > Thanks for the quick reply, > > Spice-GTK - 0.32 compiled using --enable-maintainer-mode --enable-gtk-doc > --enable-smartcard=no --enable-introspection=auto --with-gtk=3.0 > > And the resultant for the search > >ldd `which virt-viewer` | grep spice > libspice-client-gtk-3.0.so.5 => /usr/local/lib/libspice-client-gtk-3.0.so.5 > (0x76c58000) > libspice-client-glib-2.0.so.8 => > /usr/lib/arm-linux-gnueabihf/libspice-client-glib-2.0.so.8 (0x76599000) > It should link to /usr/local/lib/libspice-client-glib-2.0.so.8 > Regards, > Jai Abishek (In reply to Pavel Grunt from comment #3) > (In reply to Jai Abishek from comment #2) > > (In reply to Pavel Grunt from comment #1) > > > What is the version of spice-gtk ? You need spice-gtk v0.31 > > > > > > To me it looks like virt-viewer is linked to a wrong library. Check: > > > ldd `which virt-viewer` | grep spice > > > > hi Pavel Grunt, > > > > Thanks for the quick reply, > > > > Spice-GTK - 0.32 compiled using --enable-maintainer-mode --enable-gtk-doc > > --enable-smartcard=no --enable-introspection=auto --with-gtk=3.0 > > > > And the resultant for the search > > >ldd `which virt-viewer` | grep spice > > libspice-client-gtk-3.0.so.5 => /usr/local/lib/libspice-client-gtk-3.0.so.5 > > (0x76c58000) > > libspice-client-glib-2.0.so.8 => > > /usr/lib/arm-linux-gnueabihf/libspice-client-glib-2.0.so.8 (0x76599000) > > > > It should link to /usr/local/lib/libspice-client-glib-2.0.so.8 > > > > Regards, > > Jai Abishek how can i redirect the file location? Regards, Jai Abishek (In reply to Jai Abishek from comment #4) > (In reply to Pavel Grunt from comment #3) > > (In reply to Jai Abishek from comment #2) > > > (In reply to Pavel Grunt from comment #1) > > > > What is the version of spice-gtk ? You need spice-gtk v0.31 > > > > > > > > To me it looks like virt-viewer is linked to a wrong library. Check: > > > > ldd `which virt-viewer` | grep spice > > > > > > hi Pavel Grunt, > > > > > > Thanks for the quick reply, > > > > > > Spice-GTK - 0.32 compiled using --enable-maintainer-mode --enable-gtk-doc > > > --enable-smartcard=no --enable-introspection=auto --with-gtk=3.0 > > > > > > And the resultant for the search > > > >ldd `which virt-viewer` | grep spice > > > libspice-client-gtk-3.0.so.5 => /usr/local/lib/libspice-client-gtk-3.0.so.5 > > > (0x76c58000) > > > libspice-client-glib-2.0.so.8 => > > > /usr/lib/arm-linux-gnueabihf/libspice-client-glib-2.0.so.8 (0x76599000) > > > > > > > It should link to /usr/local/lib/libspice-client-glib-2.0.so.8 > > > > > > > Regards, > > > Jai Abishek > > how can i redirect the file location? > How did you build virt-viewer ? You need to use both pc files: spice-client-glib-2.0.pc spice-client-gtk-3.0.pc I would configure spice-gtk: ./autogen.sh --prefix=/folder && make && make install virt-viewer: PKG_CONFIG_PATH=/folder/lib/pkgconfig ./autogen.sh && make (In reply to Pavel Grunt from comment #5) > (In reply to Jai Abishek from comment #4) > > (In reply to Pavel Grunt from comment #3) > > > (In reply to Jai Abishek from comment #2) > > > > (In reply to Pavel Grunt from comment #1) > > > > > What is the version of spice-gtk ? You need spice-gtk v0.31 > > > > > > > > > > To me it looks like virt-viewer is linked to a wrong library. Check: > > > > > ldd `which virt-viewer` | grep spice > > > > > > > > hi Pavel Grunt, > > > > > > > > Thanks for the quick reply, > > > > > > > > Spice-GTK - 0.32 compiled using --enable-maintainer-mode --enable-gtk-doc > > > > --enable-smartcard=no --enable-introspection=auto --with-gtk=3.0 > > > > > > > > And the resultant for the search > > > > >ldd `which virt-viewer` | grep spice > > > > libspice-client-gtk-3.0.so.5 => /usr/local/lib/libspice-client-gtk-3.0.so.5 > > > > (0x76c58000) > > > > libspice-client-glib-2.0.so.8 => > > > > /usr/lib/arm-linux-gnueabihf/libspice-client-glib-2.0.so.8 (0x76599000) > > > > > > > > > > It should link to /usr/local/lib/libspice-client-glib-2.0.so.8 > > > > > > > > > > Regards, > > > > Jai Abishek > > > > how can i redirect the file location? > > > > How did you build virt-viewer ? You need to use both pc files: > spice-client-glib-2.0.pc spice-client-gtk-3.0.pc > > I would configure spice-gtk: > ./autogen.sh --prefix=/folder && make && make install > > virt-viewer: > PKG_CONFIG_PATH=/folder/lib/pkgconfig ./autogen.sh && make I already tried to compile using the autogen.sh file from github, i get the following 3 errors under make process. spice-channel.c: In function âspice_channel_send_linkâ: spice-channel.c:1266:10: error: cast increases required alignment of target type [-Werror=cast-align] *(uint32_t *)p = GUINT32_TO_LE(g_array_index(c->common_caps, uint32_t, i)); ^ spice-channel.c:1270:10: error: cast increases required alignment of target type [-Werror=cast-align] *(uint32_t *)p = GUINT32_TO_LE(g_array_index(c->caps, uint32_t, i)); ^ spice-channel.c: In function âspice_channel_recv_link_msgâ: spice-channel.c:1836:12: error: cast increases required alignment of target type [-Werror=cast-align] caps = (uint32_t *)((uint8_t *)c->peer_msg + GUINT32_FROM_LE(c->peer_msg->caps_offset)); (In reply to Jai Abishek from comment #6) > (In reply to Pavel Grunt from comment #5) > > (In reply to Jai Abishek from comment #4) > > > (In reply to Pavel Grunt from comment #3) > > > > (In reply to Jai Abishek from comment #2) > > > > > (In reply to Pavel Grunt from comment #1) > > > > > > What is the version of spice-gtk ? You need spice-gtk v0.31 > > > > > > > > > > > > To me it looks like virt-viewer is linked to a wrong library. Check: > > > > > > ldd `which virt-viewer` | grep spice > > > > > > > > > > hi Pavel Grunt, > > > > > > > > > > Thanks for the quick reply, > > > > > > > > > > Spice-GTK - 0.32 compiled using --enable-maintainer-mode --enable-gtk-doc > > > > > --enable-smartcard=no --enable-introspection=auto --with-gtk=3.0 > > > > > > > > > > And the resultant for the search > > > > > >ldd `which virt-viewer` | grep spice > > > > > libspice-client-gtk-3.0.so.5 => /usr/local/lib/libspice-client-gtk-3.0.so.5 > > > > > (0x76c58000) > > > > > libspice-client-glib-2.0.so.8 => > > > > > /usr/lib/arm-linux-gnueabihf/libspice-client-glib-2.0.so.8 (0x76599000) > > > > > > > > > > > > > It should link to /usr/local/lib/libspice-client-glib-2.0.so.8 > > > > > > > > > > > > > Regards, > > > > > Jai Abishek > > > > > > how can i redirect the file location? > > > > > > > How did you build virt-viewer ? You need to use both pc files: > > spice-client-glib-2.0.pc spice-client-gtk-3.0.pc > > > > I would configure spice-gtk: > > ./autogen.sh --prefix=/folder && make && make install > > > > virt-viewer: > > PKG_CONFIG_PATH=/folder/lib/pkgconfig ./autogen.sh && make > > I already tried to compile using the autogen.sh file from github, i get the > following 3 errors under make process. add "--disable-werror" to configure > > spice-channel.c: In function âspice_channel_send_linkâ: > spice-channel.c:1266:10: error: cast increases required alignment of target > type [-Werror=cast-align] > *(uint32_t *)p = GUINT32_TO_LE(g_array_index(c->common_caps, > uint32_t, i)); > ^ > spice-channel.c:1270:10: error: cast increases required alignment of target > type [-Werror=cast-align] > *(uint32_t *)p = GUINT32_TO_LE(g_array_index(c->caps, uint32_t, i)); > ^ > spice-channel.c: In function âspice_channel_recv_link_msgâ: > spice-channel.c:1836:12: error: cast increases required alignment of target > type [-Werror=cast-align] > caps = (uint32_t *)((uint8_t *)c->peer_msg + > GUINT32_FROM_LE(c->peer_msg->caps_offset)); (In reply to Pavel Grunt from comment #7) > (In reply to Jai Abishek from comment #6) > > (In reply to Pavel Grunt from comment #5) > > > (In reply to Jai Abishek from comment #4) > > > > (In reply to Pavel Grunt from comment #3) > > > > > (In reply to Jai Abishek from comment #2) > > > > > > (In reply to Pavel Grunt from comment #1) > > > > > > > What is the version of spice-gtk ? You need spice-gtk v0.31 > > > > > > > > > > > > > > To me it looks like virt-viewer is linked to a wrong library. Check: > > > > > > > ldd `which virt-viewer` | grep spice > > > > > > > > > > > > hi Pavel Grunt, > > > > > > > > > > > > Thanks for the quick reply, > > > > > > > > > > > > Spice-GTK - 0.32 compiled using --enable-maintainer-mode --enable-gtk-doc > > > > > > --enable-smartcard=no --enable-introspection=auto --with-gtk=3.0 > > > > > > > > > > > > And the resultant for the search > > > > > > >ldd `which virt-viewer` | grep spice > > > > > > libspice-client-gtk-3.0.so.5 => /usr/local/lib/libspice-client-gtk-3.0.so.5 > > > > > > (0x76c58000) > > > > > > libspice-client-glib-2.0.so.8 => > > > > > > /usr/lib/arm-linux-gnueabihf/libspice-client-glib-2.0.so.8 (0x76599000) > > > > > > > > > > > > > > > > It should link to /usr/local/lib/libspice-client-glib-2.0.so.8 > > > > > > > > > > > > > > > > Regards, > > > > > > Jai Abishek > > > > > > > > how can i redirect the file location? > > > > > > > > > > How did you build virt-viewer ? You need to use both pc files: > > > spice-client-glib-2.0.pc spice-client-gtk-3.0.pc > > > > > > I would configure spice-gtk: > > > ./autogen.sh --prefix=/folder && make && make install > > > > > > virt-viewer: > > > PKG_CONFIG_PATH=/folder/lib/pkgconfig ./autogen.sh && make > > > > I already tried to compile using the autogen.sh file from github, i get the > > following 3 errors under make process. > > add "--disable-werror" to configure > > > > > spice-channel.c: In function âspice_channel_send_linkâ: > > spice-channel.c:1266:10: error: cast increases required alignment of target > > type [-Werror=cast-align] > > *(uint32_t *)p = GUINT32_TO_LE(g_array_index(c->common_caps, > > uint32_t, i)); > > ^ > > spice-channel.c:1270:10: error: cast increases required alignment of target > > type [-Werror=cast-align] > > *(uint32_t *)p = GUINT32_TO_LE(g_array_index(c->caps, uint32_t, i)); > > ^ > > spice-channel.c: In function âspice_channel_recv_link_msgâ: > > spice-channel.c:1836:12: error: cast increases required alignment of target > > type [-Werror=cast-align] > > caps = (uint32_t *)((uint8_t *)c->peer_msg + > > GUINT32_FROM_LE(c->peer_msg->caps_offset)); hi, After successful compile i have still the same location, ldd `which virt-viewer` | grep spice libspice-client-gtk-3.0.so.5 => /usr/local/lib/libspice-client-gtk-3.0.so.5 (0x76c58000) libspice-client-glib-2.0.so.8 => /usr/lib/arm-linux-gnueabihf/libspice-client-glib-2.0.so.8 (0x76599000) For reference i have attached the log sheet, please check it out. Regards, Jai Abishek. Created attachment 1200471 [details]
spicegtk-virtviewer-compile
(In reply to Jai Abishek from comment #9) > Created attachment 1200471 [details] > spicegtk-virtviewer-compile since you didn't install virt-viewer I guest the `which virt-viewer` is different from src/virt-viewer (In reply to Pavel Grunt from comment #10) > (In reply to Jai Abishek from comment #9) > > Created attachment 1200471 [details] > > spicegtk-virtviewer-compile > > since you didn't install virt-viewer I guest the `which virt-viewer` is > different from src/virt-viewer i completely re-initiated with an new OS, and new clone from the github of spice-gtk and virt-viewer, but after successful install, i get application not found. $ virt-viewer bash: virt-viewer: command not found regards, Jai Abishek. (In reply to Jai Abishek from comment #11) > (In reply to Pavel Grunt from comment #10) > > (In reply to Jai Abishek from comment #9) > > > Created attachment 1200471 [details] > > > spicegtk-virtviewer-compile > > > > since you didn't install virt-viewer I guest the `which virt-viewer` is > > different from src/virt-viewer > > i completely re-initiated with an new OS, and new clone from the github of > spice-gtk and virt-viewer, but after successful install, i get application > not found. > > $ virt-viewer > bash: virt-viewer: command not found > $ spicy spicy: error while loading shared libraries: libspice-client-gtk-3.0.so.5: cannot open shared object file: No such file or directory > regards, > Jai Abishek. hi thanks for the support, i figrued out the issue, the version of GTK to compile was 2.0 not 3.0 and not it is all working. Regards, Jai Abishek |