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 656441 - Build failure in examples
Build failure in examples
Status: RESOLVED FIXED
Product: cogl
Classification: Platform
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: Cogl maintainer(s)
Cogl maintainer(s)
: 656767 657903 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-08-13 06:27 UTC by Frederic Peters
Modified: 2011-09-05 19:52 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Frederic Peters 2011-08-13 06:27:47 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
Comment 1 Emmanuele Bassi (:ebassi) 2011-08-18 16:22:39 UTC
*** Bug 656767 has been marked as a duplicate of this bug. ***
Comment 2 Ionut Biru 2011-08-30 18:31:17 UTC
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
Comment 3 Ionut Biru 2011-08-30 21:19:34 UTC
ok, i had a missing gdk-pixbuf2 dependency and now works fine. maybe it should be checked explicitly?
Comment 4 Emmanuele Bassi (:ebassi) 2011-09-01 09:44:01 UTC
*** Bug 657903 has been marked as a duplicate of this bug. ***
Comment 5 Emmanuele Bassi (:ebassi) 2011-09-01 09:45:18 UTC
Ionut, your build failure is a dupe of bug 656809
Comment 6 Robert Bragg 2011-09-05 19:52:21 UTC
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.