Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359425 - x11-libs/pango-1.28.3-r1 needs >=dev-libs/glib-2.24
Summary: x11-libs/pango-1.28.3-r1 needs >=dev-libs/glib-2.24
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-18 23:42 UTC by Daniel Díaz
Modified: 2011-03-19 18:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Díaz 2011-03-18 23:42:06 UTC
It seems that pango-1.28-r1 uses g_malloc0_n, which according to GLib's documentation is only available as of 2.24:
  http://library.gnome.org/devel/glib/unstable/glib-Memory-Allocation.html#g-malloc0-n

Building with glib-2.22.4 yields the following error:

-----8<----------8<----------8<-----
make  all-am
make[3]: Entering directory `/var/tmp/portage/x11-libs/pango-1.28.3-r1/work/pango-1.28.3/pango-view'
  CC     viewer-render.o
  CC     viewer-main.o
  CC     pango-view.o
  CC     viewer-pangoft2.o
  CC     viewer-cairo.o
  CC     viewer-pangocairo.o
  CCLD   pango-view
../pango/.libs/libpangoft2-1.0.so: undefined reference to `g_malloc0_n'
collect2: ld returned 1 exit status
make[3]: *** [pango-view] Error 1
make[3]: Leaving directory `/var/tmp/portage/x11-libs/pango-1.28.3-r1/work/pango-1.28.3/pango-view'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/x11-libs/pango-1.28.3-r1/work/pango-1.28.3/pango-view'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/x11-libs/pango-1.28.3-r1/work/pango-1.28.3'
make: *** [all] Error 2
emake failed
 * ERROR: x11-libs/pango-1.28.3-r1 failed (compile phase):
 *   compile failure
 *
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3192:  Called gnome2_src_compile
 *   environment, line 2475:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
----->8---------->8---------->8-----

Upon emerging dev-libs/glib-2.26.1-r1, pango now builds successfully.

Reproducible: Always
Comment 1 Pacho Ramos gentoo-dev 2011-03-19 18:42:01 UTC
+  19 Mar 2011; Pacho Ramos <pacho@gentoo.org> pango-1.28.3-r1.ebuild:
+  Needs >=dev-libs/glib-2.24 due g_malloc0_n usage (bug #359425 by Daniel
+  Díaz).
+