GNOME Bugzilla – Bug 656441
Build failure in examples
Last modified: 2011-09-05 19:52:21 UTC
CCLD hello CCLD crate CCLD x11-foreign crate.c:245: error: undefined reference to 'pango_cairo_font_map_get_type' crate.c:251: error: undefined reference to 'pango_font_description_new' crate.c:252: error: undefined reference to 'pango_font_description_set_family' crate.c:253: error: undefined reference to 'pango_font_description_set_size' crate.c:257: error: undefined reference to 'pango_layout_new' crate.c:258: error: undefined reference to 'pango_layout_set_font_description' crate.c:259: error: undefined reference to 'pango_layout_set_text' crate.c:261: error: undefined reference to 'pango_layout_get_extents' This is fixed adding pango libs during linking: --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -28,7 +28,7 @@ hello_LDADD = $(common_ldadd) if BUILD_COGL_PANGO noinst_PROGRAMS += crate crate_SOURCES = crate.c -crate_LDADD = $(common_ldadd) $(top_builddir)/cogl-pango/libcogl-pango.la +crate_LDADD = $(common_ldadd) $(COGL_PANGO_DEP_LIBS) $(top_builddir)/cogl-pango/libcogl-pango.la crate_CFLAGS = $(AM_CFLAGS) $(COGL_PANGO_DEP_CFLAGS) endif
*** Bug 656767 has been marked as a duplicate of this bug. ***
i have different build failures. ../cogl/.libs/libcogl.so: undefined reference to `g_flags_register_static' ../cogl/.libs/libcogl.so: undefined reference to `g_object_unref' ../cogl/.libs/libcogl.so: undefined reference to `g_module_close' ../cogl/.libs/libcogl.so: undefined reference to `g_enum_register_static' ../cogl/.libs/libcogl.so: undefined reference to `g_value_register_transform_func' ../cogl/.libs/libcogl.so: undefined reference to `g_type_init' ../cogl/.libs/libcogl.so: undefined reference to `g_type_fundamental_next' ../cogl/.libs/libcogl.so: undefined reference to `g_module_symbol' ../cogl/.libs/libcogl.so: undefined reference to `g_type_name' ../cogl/.libs/libcogl.so: undefined reference to `g_module_open' ../cogl/.libs/libcogl.so: undefined reference to `g_type_register_fundamental' ../cogl/.libs/libcogl.so: undefined reference to `g_boxed_type_register_static' collect2: ld returned 1 exit status make[2]: *** [x11-foreign] Error 1 make[2]: *** Waiting for unfinished jobs.... ../cogl/.libs/libcogl.so: undefined reference to `g_flags_register_static' ../cogl/.libs/libcogl.so: undefined reference to `g_object_unref' ../cogl/.libs/libcogl.so: undefined reference to `g_module_close' ../cogl/.libs/libcogl.so: undefined reference to `g_enum_register_static' ../cogl/.libs/libcogl.so: undefined reference to `g_value_register_transform_func' ../cogl/.libs/libcogl.so: undefined reference to `g_type_init' ../cogl/.libs/libcogl.so: undefined reference to `g_type_fundamental_next' ../cogl/.libs/libcogl.so: undefined reference to `g_module_symbol' ../cogl/.libs/libcogl.so: undefined reference to `g_type_name' ../cogl/.libs/libcogl.so: undefined reference to `g_module_open' ../cogl/.libs/libcogl.so: undefined reference to `g_type_register_fundamental' ../cogl/.libs/libcogl.so: undefined reference to `g_boxed_type_register_static' collect2: ld returned 1 exit status make[2]: *** [x11-tfp] Error 1 ../cogl/.libs/libcogl.so: undefined reference to `g_flags_register_static' ../cogl/.libs/libcogl.so: undefined reference to `g_object_unref' ../cogl/.libs/libcogl.so: undefined reference to `g_module_close' ../cogl/.libs/libcogl.so: undefined reference to `g_enum_register_static' ../cogl/.libs/libcogl.so: undefined reference to `g_value_register_transform_func' ../cogl/.libs/libcogl.so: undefined reference to `g_type_init' ../cogl/.libs/libcogl.so: undefined reference to `g_type_fundamental_next' ../cogl/.libs/libcogl.so: undefined reference to `g_module_symbol' ../cogl/.libs/libcogl.so: undefined reference to `g_type_name' ../cogl/.libs/libcogl.so: undefined reference to `g_module_open' ../cogl/.libs/libcogl.so: undefined reference to `g_type_register_fundamental' ../cogl/.libs/libcogl.so: undefined reference to `g_boxed_type_register_static' collect2: ld returned 1 exit status
ok, i had a missing gdk-pixbuf2 dependency and now works fine. maybe it should be checked explicitly?
*** Bug 657903 has been marked as a duplicate of this bug. ***
Ionut, your build failure is a dupe of bug 656809
thanks for pointing this out, it should be fixed in master (see 5ac563afdbd62) and the latest cogl 1.7.8 snapshot. For me, as well as passing $(COGL_PANGO_DEP_LIBS) to LDADD, I also had to continue passing the libcogl-pango.la as before otherwise I would have unresolved symbols.