Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 16 Apr 2016 20:38:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 208843] graphics/cuneiform: Fix build with libc++ 3.8.0
Message-ID:  <bug-208843-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208843

            Bug ID: 208843
           Summary: graphics/cuneiform: Fix build with libc++ 3.8.0
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: freebsd-ports-bugs@FreeBSD.org
          Reporter: dim@FreeBSD.org
                CC: samm@os2.kiev.ua
             Flags: maintainer-feedback?(samm@os2.kiev.ua)
                CC: samm@os2.kiev.ua

Created attachment 169380
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D169380&action=
=3Dedit
Fix argument type for abs() in graphics/cuneiform

During the exp-run in bug 208158, it was found that graphics/cuneiform gives
errors with libc++ 3.8.0 [1]:

/wrkdirs/usr/ports/graphics/cuneiform/work/cuneiform-linux-1.1.0/cuneiform_=
src/Kern/rimage/sources/main/cricontrol.cpp:597:32:
error: call to 'abs' is ambiguous
        wNewHeight =3D (mbMarginsFlag ? abs(mrMargins.rmBottomMarg -
mrMargins.rmTopMarg) : mpSourceDIB->GetLinesNumber());
                                      ^~~

This is because abs() is being called an unsigned argument.  Fix this by
casting the argument to the appropriate signed type.

[1]
http://package18.nyi.freebsd.org/data/headamd64PR208158-default/2016-03-22_=
18h30m05s/logs/errors/cuneiform-1.1.0_4.log

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208843-13>