GNOME Bugzilla – Bug 318750
pangocairo should Requires pangoft2?
Last modified: 2005-11-23 16:55:47 UTC
One Ubuntu user was saying on IRC this morning: "i keep getting /usr/lib/libpangocairo-1.0.so: undefined reference to `pango_fc_font_create_metrics_for_context' when I try to compile something requiring ligpango" $ nm -D /usr/lib/libpangocairo-1.0.so | grep pango_fc_font_create_metrics_for_context U pango_fc_font_create_metrics_for_context $ nm -D /usr/lib/libpangoft2-1.0.so | grep pango_fc_font_create_metrics_for_context 00004bfc T pango_fc_font_create_metrics_for_context shouldn't pangocairo.pc have a Depends on pangoft2?
pangocairo.pc should depend on pangoft2 only if your system does not support automatic shlib tracking. In other words, do ldd /path/to/libpangocairo-1.0.so and observe that libpangoft2 is in there. If the system is an ancient one that does not support it though, seems like there's been a bug in Pango and Gtk+'s configure scripts, making them not detect it. I fixed that bug: 2005-11-23 Behdad Esfahbod <behdad@gnome.org> * configure.in (enable_explicit_deps): Fix typo when checking libtool config deplibs_check_method. Moreover, enable explicit deps if we get anything other than pass_all from libtool. (part of #318750) Back to your problem, if "libtool --config | grep deplibs_check_method" outputs pass_all, then no, explicit dependencies should not be needed and the user is doing something wrong. Otherwise, this should fix it. Reopen if not fixed.