Bug 216635 - sysutils/mdcp: fails to build with clang 4.0
Summary: sysutils/mdcp: fails to build with clang 4.0
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: Dmitry Marakasov
URL:
Keywords:
Depends on:
Blocks: 216008
  Show dependency treegraph
 
Reported: 2017-01-30 23:40 UTC by Jan Beich
Modified: 2017-12-23 20:48 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Beich freebsd_committer freebsd_triage 2017-01-30 23:40:53 UTC
mdcp.cc:139:19: error: ordered comparison between pointer and zero ('unsigned long *' and 'int')
  if( buffer.used < 0 )
      ~~~~~~~~~~~ ^ ~
mdcp.cc:175:25: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare]
    if( buffer.used[nb] < 0 )
        ~~~~~~~~~~~~~~~ ^ ~

build log: http://package18.nyi.freebsd.org/data/headamd64PR216008-default/2017-01-29_16h09m05s/logs/errors/mdcp-0.1.2.2.log
regressed by: https://github.com/llvm-mirror/clang/commit/4b6ad14285f3
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2017-12-23 14:25:30 UTC
Is this fixed by https://svnweb.freebsd.org/changeset/ports/456987 ?
Comment 2 Walter Schwarzenfeld freebsd_triage 2017-12-23 15:38:19 UTC
Builds fine on 10.X(amd64 and i386)  with port and poudriere.
Comment 3 Jan Beich freebsd_committer freebsd_triage 2017-12-23 20:48:23 UTC
(In reply to Mark Linimon from comment #1)
> Is this fixed by https://svnweb.freebsd.org/changeset/ports/456987 ?

Thanks for noticing. Builds fine on FreeBSD 11.1+ now.