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 656809 - cogl 1.7.6 doesn't compile on Fedora 16/17
cogl 1.7.6 doesn't compile on Fedora 16/17
Status: RESOLVED FIXED
Product: cogl
Classification: Platform
Component: general
1.7.x
Other Linux
: Normal normal
: ---
Assigned To: Cogl maintainer(s)
Cogl maintainer(s)
: 656624 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2011-08-18 08:58 UTC by Peter Robinson
Modified: 2011-09-05 19:48 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
build: Require gobject-2.0 and gmodule-no-export-2.0 (1.30 KB, patch)
2011-08-18 16:19 UTC, Emmanuele Bassi (:ebassi)
none Details | Review

Description Peter Robinson 2011-08-18 08:58:50 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
Comment 1 Emmanuele Bassi (:ebassi) 2011-08-18 16:19:37 UTC
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.
Comment 2 Emmanuele Bassi (:ebassi) 2011-08-18 16:21:10 UTC
*** Bug 656624 has been marked as a duplicate of this bug. ***
Comment 3 Robert Bragg 2011-09-05 19:48:24 UTC
thanks for reporting, this should be fixed in the latest cogl 1.7.8 snapshot