synapse-0.2.8.2 fails linking with gold linker

Bug #923441 reported by Justin
This bug report is a duplicate of:  Bug #995356: Linking with -lm. Edit Remove
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Synapse
Fix Committed
Low
Michal Hruby

Bug Description

CCLD synapse
widgets.c:4772: error: undefined reference to 'round'
widgets.c:4708: error: undefined reference to 'round'
relevancy-backend-zg.c:482: error: undefined reference to 'powf'
relevancy-backend-zg.c:482: error: undefined reference to 'powf'
relevancy-backend-zg.c:717: error: undefined reference to 'powf'
relevancy-backend-zg.c:660: error: undefined reference to 'powf'
collect2: ld returned 1 exit status
make[4]: *** [synapse] Error 1

Following patch fixes the issue

src/ui/Makefile.am | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/ui/Makefile.am b/src/ui/Makefile.am
index 3790ed2..78686ee 100644
--- a/src/ui/Makefile.am
+++ b/src/ui/Makefile.am
@@ -42,7 +42,7 @@ synapse_LDADD = \
   $(top_builddir)/src/core/libsynapsecore.la \
   $(top_builddir)/src/plugins/libplugins.la \
   $(top_builddir)/src/tile-view/libtileview.la \
- $(NULL)
+ $(NULL) -lm

 if HAVE_INDICATOR
 synapse_VALAFLAGS += --pkg appindicator-0.1 -D HAVE_INDICATOR

Michal Hruby (mhr3)
Changed in synapse-project:
status: New → Fix Committed
importance: Undecided → Low
assignee: nobody → Michal Hruby (mhr3)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.