← Back to team overview

lightdm-gtk-greeter-team team mailing list archive

[Bug 898134] Re: lightdm-1.1.0 fails to build with: undefined reference to symbol 'XClearWindow'

 

** Changed in: lightdm-gtk-greeter
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of LightDM
Gtk+ Greeter Development Team, which is the registrant for LightDM GTK+
Greeter.
https://bugs.launchpad.net/bugs/898134

Title:
  lightdm-1.1.0 fails to build with: undefined reference to symbol
  'XClearWindow'

Status in LightDM GTK+ Greeter:
  Fix Released

Bug description:
  Build is on Alpine Linux (with uClibc)

  /bin/ld: lightdm_gtk_greeter-lightdm-gtk-greeter.o: undefined reference to symbol 'XClearWindow'
  /usr/lib/gcc/i486-alpine-linux-uclibc/4.6.2/../../../../i486-alpine-linux-uclibc/bin/ld: note: 'XClearWindow' is defined in DSO /usr/lib/libX11.so.6 so try adding it to the linker command line
  /usr/lib/libX11.so.6: could not read symbols: Invalid operation
  collect2: ld returned 1 exit status

  The problem is that greeters/gtk/lightdm-gtk-greeter.c uses
  XClearWindow() which is defined in libX11 but it is never linked to
  -lX11 as it should.

  Fix is to add -lx11 to LIGHTDM_GTK_GREETER_LIBS.

To manage notifications about this bug go to:
https://bugs.launchpad.net/lightdm-gtk-greeter/+bug/898134/+subscriptions