wxgtk2.8 doesn't compile with the new gcc, needs -std=gnu++98
make fails with:
In file included from ./src/gtk/dcclient.cpp:46:0:
./src/gtk/bdiag.xbm:6:50: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
0x08, 0x08, 0x04, 0x04, 0x02, 0x02, 0x01, 0x01};
^
./src/gtk/bdiag.xbm:6:50: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/bdiag.xbm:6:50: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/bdiag.xbm:6:50: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
In file included from ./src/gtk/dcclient.cpp:47:0:
./src/gtk/fdiag.xbm:6:50: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
0x10, 0x10, 0x20, 0x20, 0x40, 0x40, 0x80, 0x80};
^
./src/gtk/fdiag.xbm:6:50: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/fdiag.xbm:6:50: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/fdiag.xbm:6:50: error: narrowing conversion of '128' from 'int' to 'char' inside { } [-Wnarrowing]
In file included from ./src/gtk/dcclient.cpp:48:0:
./src/gtk/cdiag.xbm:6:50: error: narrowing conversion of '129' from 'int' to 'char' inside { } [-Wnarrowing]
0x18, 0x18, 0x24, 0x24, 0x42, 0x42, 0x81, 0x81};
^
./src/gtk/cdiag.xbm:6:50: error: narrowing conversion of '129' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cdiag.xbm:6:50: error: narrowing conversion of '129' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cdiag.xbm:6:50: error: narrowing conversion of '129' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cdiag.xbm:6:50: error: narrowing conversion of '129' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cdiag.xbm:6:50: error: narrowing conversion of '129' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cdiag.xbm:6:50: error: narrowing conversion of '129' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cdiag.xbm:6:50: error: narrowing conversion of '129' from 'int' to 'char' inside { } [-Wnarrowing]
In file included from ./src/gtk/dcclient.cpp:49:0:
./src/gtk/horiz.xbm:6:38: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
0xff, 0x7f, 0x00, 0x00, 0x00, 0x00};
^
./src/gtk/horiz.xbm:6:38: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/horiz.xbm:6:38: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
In file included from ./src/gtk/dcclient.cpp:50:0:
./src/gtk/verti.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
0x84, 0x10, 0x84, 0x10, 0x84, 0x10};
^
./src/gtk/verti.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/verti.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/verti.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/verti.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/verti.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/verti.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/verti.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/verti.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/verti.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/verti.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/verti.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/verti.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/verti.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/verti.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
In file included from ./src/gtk/dcclient.cpp:51:0:
./src/gtk/cross.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
0xff, 0x7f, 0x84, 0x10, 0x84, 0x10};
^
./src/gtk/cross.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cross.xbm:6:38: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cross.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cross.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cross.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cross.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cross.xbm:6:38: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cross.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cross.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cross.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cross.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cross.xbm:6:38: error: narrowing conversion of '255' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cross.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
./src/gtk/cross.xbm:6:38: error: narrowing conversion of '132' from 'int' to 'char' inside { } [-Wnarrowing]
make: *** [Makefile:23903: coredll_gtk_dcclient.o] Error 1
make: *** Waiting for unfinished jobs....
>>> ERROR: wxgtk2.8: all failed
>>> wxgtk2.8: Uninstalling dependencies...
Adding -std=gnu++98 solves the issue for me
<code class="patch">
diff --git a/main/wxgtk2.8/APKBUILD b/main/wxgtk2.8/APKBUILD
index b181623..eccfd66 100644
--- a/main/wxgtk2.8/APKBUILD
+++ b/main/wxgtk2.8/APKBUILD
@@ -34,6 +34,8 @@ prepare() {
build() {
cd "$_builddir"
./configure \
+ CFLAGS='-std=gnu++98'\
+ CXXFLAGS='-std=gnu++98'\
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
</code>
(from redmine: issue id 6361, created on 2016-10-18, closed on 2017-05-22)