[Bug 225295] editors/pdfedit: build error: kernel/cxref.h:422:18: error: non-constant-expression

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jan 18 11:17:36 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=225295

            Bug ID: 225295
           Summary: editors/pdfedit: build error: kernel/cxref.h:422:18:
                    error: non-constant-expression
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: hrs at FreeBSD.org
          Reporter: ohartmann at walstatt.org
             Flags: maintainer-feedback?(hrs at FreeBSD.org)
          Assignee: hrs at FreeBSD.org

On recent CURRENT (FreeBSD 12.0-CURRENT #14 r328101: Wed Jan 17 23:57:27 CET
2018 amd64, WITH_LLD_IS_LD=YES), updating port editors/pdfedit fails with the
error:

[...]
c++ -c -O2 -pipe -fstack-protector -fno-strict-aliasing    -fmessage-length=0
-D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions      -fmessage-length=0
-D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions      -fmessage-length=0
-D_FORTIFY_SOURCE=2 -fno-strict-aliasing -fexceptions     -I.
-I/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src
-I/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src/xpdf/  -I/usr/local/include
-I/usr/local/include/freetype2 -I/usr/local/include/libpng16
-I/usr/local/include -I/usr/include -o streamwriter.o streamwriter.cc
In file included from cxref.cc:28:
/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src/kernel/cxref.h:422:18: error:
non-constant-expression cannot be narrowed from type
'pdfobjects::IndiRef::ObjNum' (aka 'unsigned int') to 'int' in initializer list
[-Wc++11-narrowing]
                ::Ref xpdfRef={ref.num, ref.gen};
                               ^~~~~~~
/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src/kernel/cxref.h:422:18: note:
insert an explicit cast to silence this issue
                ::Ref xpdfRef={ref.num, ref.gen};
                               ^~~~~~~
                               static_cast<int>( )
/usr/ports/editors/pdfedit/work/pdfedit-0.4.5/src/kernel/cxref.h:422:27: error:
non-constant-expression cannot be narrowed from type
'pdfobjects::IndiRef::GenNum' (aka 'unsigned int') to 'int' in initializer list
[-Wc++11-narrowing]
                ::Ref xpdfRef={ref.num, ref.gen};

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


More information about the freebsd-ports-bugs mailing list