Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 06 Mar 2018 11:17:26 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 226389] x11-wm/fluxbox: fix build on armv6
Message-ID:  <bug-226389-13@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 226389
           Summary: x11-wm/fluxbox: fix build on armv6
           Product: Ports & Packages
           Version: Latest
          Hardware: arm
               URL: http://beefy8.nyi.freebsd.org/data/head-armv6-default/
                    p463545_s330365/logs/errors/fluxbox-1.3.7_1.log
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Individual Port(s)
          Assignee: jgh@FreeBSD.org
          Reporter: mikael.urankar@gmail.com
                CC: freebsd-arm@FreeBSD.org
             Flags: maintainer-feedback?(jgh@FreeBSD.org)
                CC: freebsd-arm@FreeBSD.org
          Assignee: jgh@FreeBSD.org

Created attachment 191246
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D191246&action=
=3Dedit
patch

Hi,
fluxbox doesn't compile on arm:

/nxb-bin/usr/bin/c++ -DHAVE_CONFIG_H -I.  -I/usr/local/include/fribidi
-I/usr/local/include   -include ./config.h -I./src -I./src -I./src/FbTk -I.=
/nls
-I/usr/local/include -DLIBICONV_PLUG  -I/usr/local/include -D_THREAD_SAFE
-pthread  -O2 -pipe -DLIBICONV_PLUG -fno-strict-aliasing  -DLIBICONV_PLUG  =
-MT
src/fluxbox-Ewmh.o -MD -MP -MF src/.deps/fluxbox-Ewmh.Tpo -c -o
src/fluxbox-Ewmh.o `test -f 'src/Ewmh.cc' || echo './'`src/Ewmh.cc
src/Ewmh.cc:917:22: error: non-constant-expression cannot be narrowed from =
type
'unsigned int' to 'long' in initializer list [-Wc++11-narrowing]
    long value[2] =3D {screen.width(), screen.height()};
                     ^~~~~~~~~~~~~~
src/Ewmh.cc:917:22: note: insert an explicit cast to silence this issue
    long value[2] =3D {screen.width(), screen.height()};
                     ^~~~~~~~~~~~~~
                     static_cast<long>( )
src/Ewmh.cc:917:38: error: non-constant-expression cannot be narrowed from =
type
'unsigned int' to 'long' in initializer list [-Wc++11-narrowing]
    long value[2] =3D {screen.width(), screen.height()};
                                     ^~~~~~~~~~~~~~~
src/Ewmh.cc:917:38: note: insert an explicit cast to silence this issue
    long value[2] =3D {screen.width(), screen.height()};
                                     ^~~~~~~~~~~~~~~
                                     static_cast<long>( )
2 errors generated.

The attached patch fixes the build.

Thanks in advance

--=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-226389-13>