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 645255 - Fails to build because of missing -lX11
Fails to build because of missing -lX11
Status: RESOLVED FIXED
Product: libunique
Classification: Other
Component: core
2.91.x
Other Linux
: Normal major
: ---
Assigned To: libunique-maint
libunique-maint
Depends on:
Blocks:
 
 
Reported: 2011-03-19 19:42 UTC by Josselin Mouette
Modified: 2011-03-27 08:58 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: Use GTK_CHECK_BACKEND macro (1.37 KB, patch)
2011-03-26 18:51 UTC, Emmanuele Bassi (:ebassi)
committed Details | Review

Description Josselin Mouette 2011-03-19 19:42:39 UTC
The culprit is this code in configure.ac:
 gdktarget=`$PKG_CONFIG --variable=target gdk-3.0`
 AS_IF([test "X$gdktarget" = "Xx11"],

The variable is now named “targets”, and can take several values, so this requires a grep to fix.
Comment 1 Matthias Clasen 2011-03-21 03:21:30 UTC
We've added a GTK_CHECK_BACKEND() macro to avoid manual checks like this.
Comment 2 Emmanuele Bassi (:ebassi) 2011-03-26 18:51:50 UTC
Created attachment 184310 [details] [review]
build: Use GTK_CHECK_BACKEND macro

Instead of calling pkg-config ourselves.

This fixes linker issues caused by the renamed target variable in
gtk+'s pkg-config file.
Comment 3 Emmanuele Bassi (:ebassi) 2011-03-27 08:58:47 UTC
Attachment 184310 [details] pushed as 6b645fa - build: Use GTK_CHECK_BACKEND macro