After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 738455 - Linking fails with undefined reference to 'XRenderFindStandardFormat'
Linking fails with undefined reference to 'XRenderFindStandardFormat'
Status: RESOLVED FIXED
Product: libwnck
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: libwnck maintainers
libwnck maintainers
Depends on:
Blocks:
 
 
Reported: 2014-10-13 12:47 UTC by David King
Modified: 2014-10-13 13:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
use the cairo-xlib-xrender pkg-config file (1.93 KB, patch)
2014-10-13 12:52 UTC, David King
committed Details | Review

Description David King 2014-10-13 12:47:43 UTC
The fix to bug 736817 introduced a dependency on cairo-xlib-xrender (and eventually, libXrender), but did not explicitly link with it. This causes problems with some linkers, such as gold, as the implicit linking to cairo via GTK+ is not sufficient to link against libXRender, and leads to linker errors:

  CCLD     libwnck-3.la
  CCLD     wnckprop
  CCLD     wnck-urgency-monitor
  CCLD     test-pager
  CCLD     test-wnck
./.libs/libwnck-3.so: error: undefined reference to 'XRenderFindStandardFormat'
collect2: error: ld returned 1 exit status
Makefile:746: recipe for target 'wnck-urgency-monitor' failed
make[2]: *** [wnck-urgency-monitor] Error 1
make[2]: *** Waiting for unfinished jobs....

It is more correct to use the cairo-xlib-xrender pkg-config file to ensure linking to the correct libraries.
Comment 1 David King 2014-10-13 12:52:06 UTC
Created attachment 288383 [details] [review]
use the cairo-xlib-xrender pkg-config file

Fixes the linker error for me
Comment 2 Marco Trevisan (Treviño) 2014-10-13 13:15:12 UTC
Review of attachment 288383 [details] [review]:

Looks good, thanks!