Bug 200289 - net/mediastreamer fails to build on armv6
Summary: net/mediastreamer 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
: --- Affects Only Me
Assignee: Tijl Coosemans
URL: http://chips.ysv.freebsd.org/data/11a...
Keywords:
Depends on:
Blocks:
 
Reported: 2015-05-18 17:44 UTC by Mikael Urankar
Modified: 2015-05-18 18:42 UTC (History)
1 user (show)

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


Attachments
armv6 fix (1.04 KB, patch)
2015-05-18 17:44 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 2015-05-18 17:44:26 UTC
Created attachment 156888 [details]
armv6 fix

Hi,

I have the following error message when building net/mediastreamer on armv6:
voip/stun.c:1282:7: error: Need some way to seed the random number generator

Using arc4random fixes the problem, see attached patch.

build logs for amd64, i386 and armv6:
http://mikael.urankar.free.fr/FreeBSD/arm/build_logs/mediastreamer-2.11.1_101amd64.log
http://mikael.urankar.free.fr/FreeBSD/arm/build_logs/mediastreamer-2.11.1_101i386.log
http://mikael.urankar.free.fr/FreeBSD/arm/build_logs/mediastreamer-2.11.1_armv6.log

Thanks.
Comment 1 commit-hook freebsd_committer freebsd_triage 2015-05-18 18:41:34 UTC
A commit references this bug:

Author: tijl
Date: Mon May 18 18:41:17 UTC 2015
New revision: 386697
URL: https://svnweb.freebsd.org/changeset/ports/386697

Log:
  Fix non-x86 builds by using arc4random(3) instead of random(3) + rdtsc (x86
  instruction).

  PR:		200289

Changes:
  head/net/mediastreamer/Makefile