Created attachment 191246 [details] 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] = {screen.width(), screen.height()}; ^~~~~~~~~~~~~~ src/Ewmh.cc:917:22: note: insert an explicit cast to silence this issue long value[2] = {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] = {screen.width(), screen.height()}; ^~~~~~~~~~~~~~~ src/Ewmh.cc:917:38: note: insert an explicit cast to silence this issue long value[2] = {screen.width(), screen.height()}; ^~~~~~~~~~~~~~~ static_cast<long>( ) 2 errors generated. The attached patch fixes the build. Thanks in advance
A commit references this bug: Author: linimon Date: Thu Mar 29 06:10:58 UTC 2018 New revision: 465866 URL: https://svnweb.freebsd.org/changeset/ports/465866 Log: Fix build on armvX. PR: 226389 Submitted by: mikael.urankar Approved by: maintainer timeout (2 weeks) Changes: head/x11-wm/fluxbox/files/patch-src_Ewmh.cc
Committed, thanks.