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 657529 - Build failure
Build failure
Status: RESOLVED FIXED
Product: clutter
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: clutter-maint
clutter-maint
Depends on:
Blocks:
 
 
Reported: 2011-08-27 22:33 UTC by Matthias Clasen
Modified: 2011-08-29 21:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Matthias Clasen 2011-08-27 22:33:03 UTC
Clutter fails to build here today, with

make[3]: Entering directory `/home/mclasen/Sources/clutter/tests/interactive'
  CCLD   test-interactive
/usr/bin/ld: test_interactive-test-cogl-vertex-buffer.o: undefined reference to symbol 'sinf@@GLIBC_2.2.5'
/usr/bin/ld: note: 'sinf@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
Comment 1 Matthias Clasen 2011-08-27 22:34:26 UTC
and

  CCLD   test-picking
/usr/bin/ld: test-picking.o: undefined reference to symbol 'fmod@@GLIBC_2.2.5'
/usr/bin/ld: note: 'fmod@@GLIBC_2.2.5' is defined in DSO /lib64/libm.so.6 so try adding it to the linker command line
Comment 2 Emmanuele Bassi (:ebassi) 2011-08-27 23:04:09 UTC
thanks, should be fixed in master.
Comment 3 Frederic Peters 2011-08-29 13:13:34 UTC
Clutter itself uses symbols from libm, not just tests, example:

$ grep tanf clutter/*.c
clutter/clutter-stage.c:  return z_near * tanf (30.0f * _DEG_TO_RAD) *
clutter/clutter-stage.c:            tanf ((perspective.fovy / 2.0f) * _DEG_TO_RAD) * z_2d * 20.0f;

A fix would be to add -lm to all flavours (but I don't know enough about the usage of "flavours" to be sure this is the right fix).

-FLAVOUR_LIBS=""
+FLAVOUR_LIBS="-lm"
Comment 4 Emmanuele Bassi (:ebassi) 2011-08-29 21:19:53 UTC
pushed this commit:

commit 96810e1d4d07dc75e9622f352674885977c34e60
Author: Emmanuele Bassi <ebassi@gnome.org>
Date:   Mon Aug 29 22:17:53 2011 +0100

    build: Add -lm to clutter's LIBADD rule
    
    We need to explicitly link against libm when building Clutter, since we
    use libm API.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=657529


to master, which should hopefully fix the issue.