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 502926 - pango-1.16.4 configure bug: can fail to accept cairo
pango-1.16.4 configure bug: can fail to accept cairo
Status: RESOLVED FIXED
Product: pango
Classification: Platform
Component: general
1.16.x
Other All
: Normal critical
: ---
Assigned To: pango-maint
pango-maint
Depends on:
Blocks:
 
 
Reported: 2007-12-10 21:18 UTC by acni
Modified: 2007-12-10 21:44 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description acni 2007-12-10 21:18:14 UTC
Steps to reproduce:
1. have a cairo installation with `pkg-config --libs cairo`
   returning more than '-lcairo'
2. ./configure  (--> cairo found, but all cairo functions fail)
3. 


Stack trace:


Other information:
The pango-1.16.4/configure does the effort to set
INSTALLED_CAIRO_LIBS=`PKG_CONFIG_DISABLE_UNINSTALLED=yes $PKG_CONFIG --libs cairo`
correctly. But then, instead of using "$INSTALLED_CAIRO_LIBS",
all subsequent tests simply use "-lcairo".
As a result, with an installation where `pkg-config --libs cairo` returns
more than just '-lcairo', all further tests fail.
Workaround: Edit 'configure', substituting all lines
LIBS="-lcairo $LIBS"
with
LIBS="$INSTALLED_CAIRO_LIBS $LIBS"
Comment 1 Behdad Esfahbod 2007-12-10 21:44:43 UTC
It was trying to set LDFLAGS instead of LIBS...

Fixed in pango-1-18 branch and trunk.

2007-12-10  Behdad Esfahbod  <behdad@gnome.org>

        Bug 502926 – pango-1.16.4 configure bug: can fail to accept cairo

        * configure.in: Fix cairo library checking.