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 630869 - configure doesn't include pixman in linker flags
configure doesn't include pixman in linker flags
Status: RESOLVED FIXED
Product: murrine
Classification: Other
Component: general
0.98.x
Other Windows
: Normal normal
: ---
Assigned To: murrine-maint
Depends on:
Blocks:
 
 
Reported: 2010-09-29 01:39 UTC by Maarten Bosmans
Modified: 2012-01-25 14:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (629 bytes, application/octet-stream)
2011-09-13 10:03 UTC, Maarten Bosmans
Details

Description Maarten Bosmans 2010-09-29 01:39:56 UTC
When building I'm getting the following errors during linking:

/usr/src/packages/BUILD/murrine-0.98.0/./src/gaussian-blur.c:105: undefined reference to `_pixman_image_create_bits'
/usr/src/packages/BUILD/murrine-0.98.0/./src/gaussian-blur.c:109: undefined reference to `_pixman_image_set_filter'
/usr/src/packages/BUILD/murrine-0.98.0/./src/gaussian-blur.c:116: undefined reference to `_pixman_image_composite'
/usr/src/packages/BUILD/murrine-0.98.0/./src/gaussian-blur.c:128: undefined reference to `_pixman_image_unref'

This can be solved by using ./configure LDFLAGS=-lpixman-1.  As configure only uses pkg-config to look for gtk headers, and pixman is not a dependency of gtk, it doesn't get included in LDFLAGS automatically.

Probably the best way to solve this is to add a pkg-config check for pixman in configure.ac
Comment 1 Andrea Cimitan 2010-10-01 15:54:27 UTC
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
Comment 2 Maarten Bosmans 2011-09-13 10:03:35 UTC
Created attachment 196346 [details]
patch

This patch is agains Makefile.in, sorry. But the idea is clear, I guess.
Comment 3 Maarten Bosmans 2011-09-13 10:04:16 UTC
Actually, calling pkg-config is only one half of the solution. Using the variables set by PKG_CHECK_MODULES is the other half. The attached patch does that.