Bug 219280 - multimedia/avidemux: fails to build with lang/gcc6 or later
Summary: multimedia/avidemux: fails to build with lang/gcc6 or later
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Thomas Zander
URL:
Keywords:
Depends on: 222246
Blocks: 219275
  Show dependency treegraph
 
Reported: 2017-05-14 17:53 UTC by Jan Beich
Modified: 2017-09-26 21:37 UTC (History)
3 users (show)

See Also:
riggs: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer 2017-05-14 17:53:58 UTC
In file included from avidemux_core/ADM_coreUtils/src/prefs.cpp:51:0:
avidemux_core/ADM_coreUtils/src/prefs2_pref.h:60:1: error: narrowing conversion of '4294967295l' from 'long int' to 'float' inside { } [-Wnarrowing]
 };
 ^
gmake[3]: *** [ADM_coreUtils/src/CMakeFiles/ADM_coreUtils6.dir/build.make:474: ADM_coreUtils/src/CMakeFiles/ADM_coreUtils6.dir/prefs.cpp.o] Error 1

build log: http://sprunge.us/jcYQ
Comment 1 commit-hook freebsd_committer 2017-05-21 11:58:52 UTC
A commit references this bug:

Author: riggs
Date: Sun May 21 11:57:47 UTC 2017
New revision: 441388
URL: https://svnweb.freebsd.org/changeset/ports/441388

Log:
  Fix build with gcc6

  Details:
  - static_cast in prefs2__pref.h due to narrowing conversion
  - add whitespaces in ADM__ffmp43.h to fix string literal handling in C++11

  PR:		219280
  Reported by:	jbeich

Changes:
  head/multimedia/avidemux/Makefile.common
  head/multimedia/avidemux/files/patch-avidemux__core_ADM__coreUtils_src_prefs2__pref.h
  head/multimedia/avidemux/files/patch-avidemux__core_ADM__coreVideoCodec_include_ADM__ffmp43.h