GNOME Bugzilla – Bug 630869
configure doesn't include pixman in linker flags
Last modified: 2012-01-25 14:21:20 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
This problem has been fixed in our software repository. The fix will go into the next software release. Thank you for your bug report.
Created attachment 196346 [details] patch This patch is agains Makefile.in, sorry. But the idea is clear, I guess.
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.