Bug 196070 - net-im/farsight2: Fails to build on armv6
Summary: net-im/farsight2: Fails to build on armv6
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: arm Any
: Normal Affects Only Me
Assignee: freebsd-gnome (Nobody)
URL:
Keywords: easy, needs-qa, patch
Depends on:
Blocks:
 
Reported: 2014-12-17 18:59 UTC by Mikael Urankar
Modified: 2015-01-01 23:29 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments
files/patch-tests_rtp_Makefile.in (515 bytes, patch)
2014-12-17 18:59 UTC, Mikael Urankar
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Urankar freebsd_committer freebsd_triage 2014-12-17 18:59:13 UTC
Created attachment 150687 [details]
files/patch-tests_rtp_Makefile.in

Current build error:
gmake[4]: Entering directory '/wrkdirs/usr/ports/net-im/farsight2/work/farsight2-0.0.31/tests/rtp'
  CC     codec_discovery-codec-discovery.o
  CCLD   codec-discovery
/nxb-bin/usr/bin/ld: undefined reference to symbol `sqrt@@FBSD_1.0' (try adding -lm)
//lib/libm.so.5: could not read symbols: Bad value
cc: error: linker command failed with exit code 1 (use -v to see invocation)
Makefile:381: recipe for target 'codec-discovery' failed

The attached patch adds the missing libm.

Put the attached file in net-im/farsight2/files

build log on armv6:
http://mikael.urankar.free.fr/FreeBSD/arm/build_logs/farsight2-0.0.31_2.log
and for amd64/current:
http://mikael.urankar.free.fr/FreeBSD/arm/build_logs/amd64_farsight2-0.0.31_2.log
Comment 1 Bugzilla Automation freebsd_committer freebsd_triage 2014-12-17 18:59:13 UTC
Auto-assigned to maintainer gnome@FreeBSD.org
Comment 2 Sean Bruno freebsd_committer freebsd_triage 2014-12-18 21:05:05 UTC
Yeah, this is a pretty common ports bug based on not using /usr/bin/cc 

I'll check it out and get maintainer approval.
Comment 3 Sean Bruno freebsd_committer freebsd_triage 2014-12-31 19:07:54 UTC
http://tasty.ysv.freebsd.org/build.html?mastername=11-armv6-11-armv6-ports&build=2014-12-31_18h06m07s

Verified.  Pretty simple patch, I'll do it when I get maintainer approval.
Comment 4 commit-hook freebsd_committer freebsd_triage 2015-01-01 23:29:08 UTC
A commit references this bug:

Author: kwm
Date: Thu Jan  1 23:28:42 UTC 2015
New revision: 376034
URL: https://svnweb.freebsd.org/changeset/ports/376034

Log:
  Fix farsight2 build on arm, by explicitly linking to -lm for sqrt(3)
  While here apply the same the same to farstream

  PR:		196070
  Submitted by:	mikael.urankar@gmail.com
  Verified by:	sbruno@

Changes:
  head/net-im/farsight2/files/patch-tests_rtp_Makefile.in
  head/net-im/farstream/files/
  head/net-im/farstream/files/patch-tests_rtp_Makefile.in