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 343603 - need to add -lm to build tests/examples/level
need to add -lm to build tests/examples/level
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
0.10.x
Other All
: Normal minor
: 0.10.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-06-01 15:04 UTC by Peter Kjellerstedt
Modified: 2006-06-09 18:37 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Peter Kjellerstedt 2006-06-01 15:04:53 UTC
Please describe the problem:
When i try to build the good plugins the linking of tests/examples/level/level-example fails unless I add -lm to level_example_LDADD in tests/examples/level/Makefile.am.  This is caused by the use of the pow() function.  I use uClibc, but I cannot see why this is not needed with glibc too, since it has the pow() function in the math library as well.


Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Tim-Philipp Müller 2006-06-09 18:37:45 UTC
Maybe you've built the GStreamer core with --disable-loadsave and --disable-registry (so that the libxml2 stuff isn't dragged in by GST_LIBS, which is where the -lm comes from for me)?

In any case, can't hurt to add:
 
 2006-06-09  Tim-Philipp Müller  <tim at centricular dot net>

        * tests/examples/level/Makefile.am:
          Add -lm to LIBS for pow() function, don't assume one of our
          dependencies (such as libxml-2.0) drags it in automatically
          (#343603).