[Bug 97383] New: underlinking: undefined reference to 'XGetPointerControl' [...]

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Aug 17 13:43:23 UTC 2016


https://bugs.freedesktop.org/show_bug.cgi?id=97383

            Bug ID: 97383
           Summary: underlinking: undefined reference to
                    'XGetPointerControl' [...]
           Product: Spice
           Version: unspecified
          Hardware: Other
                OS: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: spice-gtk
          Assignee: spice-bugs at lists.freedesktop.org
          Reporter: mgorny at gentoo.org

Created attachment 125848
  --> https://bugs.freedesktop.org/attachment.cgi?id=125848&action=edit
Build log (for current git version)

When attempting to build spice-gtk with the GNU gold linker, the build fails
with the series of errors:

libtool: link: x86_64-pc-linux-gnu-gcc-5.4.0 -march=k8-sse3 -mcx16 -msahf
--param l1-cache-size=64 --param l1-cache-line-size=64 --param
l2-cache-size=512 -O2 -pipe -frecord-gcc-switches -Wl,-O1 -Wl,--hash-style=gnu
-o .libs/spicy spicy-spicy.o spicy-spicy-connect.o spicy-spice-cmdline.o
-pthread  -Wl,--as-needed ./.libs/libspice-client-gtk-3.0.so
/tmp/portage/net-misc/spice-gtk-9999/work/spice-gtk-9999/src/.libs/libspice-client-glib-2.0.so
./.libs/libspice-client-glib-2.0.so -lcelt051 /usr/lib64/libopus.so -ljpeg -lz
-llz4 -lpixman-1 -lssl -lcrypto -lusb-1.0 -lusbredirhost -lusbredirparser
-lgthread-2.0 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0
-lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0
-lepoxy -lm -pthread
./.libs/libspice-client-gtk-3.0.so: error: undefined reference to
'XGetPointerControl'
./.libs/libspice-client-gtk-3.0.so: error: undefined reference to
'XChangePointerControl'
./.libs/libspice-client-gtk-3.0.so: error: undefined reference to 'XkbGetMap'
./.libs/libspice-client-gtk-3.0.so: error: undefined reference to 'XkbGetNames'
./.libs/libspice-client-gtk-3.0.so: error: undefined reference to
'XkbFreeKeyboard'
./.libs/libspice-client-gtk-3.0.so: error: undefined reference to
'XListExtensions'
./.libs/libspice-client-gtk-3.0.so: error: undefined reference to
'XFreeExtensionList'
collect2: error: ld returned 1 exit status
distcc[5868] ERROR: compile (null) on localhost failed
make[4]: *** [Makefile:1151: spicy] Error 1

This indicates that the library is using some X11 APIs directly but not linking
to appropriate X11 libraries.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-bugs/attachments/20160817/6e9fbdef/attachment.html>


More information about the spice-bugs mailing list