GNOME Bugzilla – Bug 656809
cogl 1.7.6 doesn't compile on Fedora 16/17
Last modified: 2011-09-05 19:48:24 UTC
Looks like its just examples but it compiled with the same options in 1.7.4. gcc -DHAVE_CONFIG_H -I. -I.. -I.. -I../clutter/cogl -I../clutter/cogl -DG_DISABLE_SINGLE_INCLUDES -DCOGL_DISABLE_DEPRECATED -I/usr/include/libdrm -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DCOGL_ENABLE_DEBUG -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS -DCOGL_ENABLE_EXPERIMENTAL_2_0_API -DCOGL_EXAMPLES_DATA=\""/builddir/build/BUILD/cogl-1.7.6/examples/"\" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC -c hello.c /bin/sh ../libtool --tag=CC --mode=link gcc -I/usr/include/libdrm -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DCOGL_ENABLE_DEBUG -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS -DCOGL_ENABLE_EXPERIMENTAL_2_0_API -DCOGL_EXAMPLES_DATA=\""/builddir/build/BUILD/cogl-1.7.6/examples/"\" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC -Wl,-z,relro -o hello hello.o -ldrm -lX11 -lXext -lXdamage -lXfixes -lXcomposite -lglib-2.0 ../cogl/libcogl.la libtool: link: gcc -I/usr/include/libdrm -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DCOGL_ENABLE_DEBUG -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS -DCOGL_ENABLE_EXPERIMENTAL_2_0_API -DCOGL_EXAMPLES_DATA=\"/builddir/build/BUILD/cogl-1.7.6/examples/\" -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC -Wl,-z -Wl,relro -o .libs/hello hello.o ../cogl/.libs/libcogl.so -lm -ldrm -lX11 -lXext -lXdamage -lXfixes -lXcomposite -lglib-2.0 -ldl ../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]: *** [hello] Error 1 http://koji.fedoraproject.org/koji/getfile?taskID=3273682&name=build.log
Created attachment 194155 [details] [review] build: Require gobject-2.0 and gmodule-no-export-2.0 Cogl requires gobject and gmodule API, so we need to check for these and add them to the pkg-config files as dependencies, otherwise building Cogl with --as-needed (like modern distributions now do) will cause build errors.
*** Bug 656624 has been marked as a duplicate of this bug. ***
thanks for reporting, this should be fixed in the latest cogl 1.7.8 snapshot