compile errors when compiling wxWidgets 2.8.12

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
GameCodingNinja
In need of some credit
In need of some credit
Posts: 5
Joined: Sun Aug 31, 2014 6:58 pm

compile errors when compiling wxWidgets 2.8.12

Post by GameCodingNinja »

I'm one of those crazy people who compile their own Linux via "Linux From Scratch" so I need to build everything I use. Since I've recently rebuilt my current Linux, I'm using the newest compiler available (gcc 6.2.0). That may or may not be contributing to the problem.

Code::Blocks and RapidSVN require wxWidgets 2.8.12. wxWidgets 3.1.0 compiles without a problem but the apps I want to use either fail the configure or crashes on startup of the app that uses it.

Are there any patches available for wxWidgets 2.8.12?

Here's the compile errors.

Code: Select all

/sources/builddir/wxWidgets-2.8.12/bk-deps g++ -c -o coredll_gtk_dc.o -I./.pch/wxprec_coredll -D__WXGTK__     -DWXBUILDING        -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/sources/builddir/wxWidgets-2.8.12/lib/wx/include/gtk2-ansi-release-2.8 -I./include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DWX_PRECOMP -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing ./src/gtk/dc.cpp
/sources/builddir/wxWidgets-2.8.12/bk-deps g++ -c -o coredll_gtk_dcclient.o -I./.pch/wxprec_coredll -D__WXGTK__     -DWXBUILDING        -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/sources/builddir/wxWidgets-2.8.12/lib/wx/include/gtk2-ansi-release-2.8 -I./include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DWX_PRECOMP -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing ./src/gtk/dcclient.cpp
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

    *** BUILD_PROBLEM_DETECTED ***

/usr/bin/install -c -d /sources/buildmgr/pkgroot/usr/lib
/usr/bin/install -c -m 644 /sources/builddir/wxWidgets-2.8.12/lib/libwx_base-2.8.so /sources/buildmgr/pkgroot/usr/lib
/usr/bin/install -c /sources/builddir/wxWidgets-2.8.12/lib/libwx_base-2.8.so.0.8.0 /sources/buildmgr/pkgroot/usr/lib
(cd /sources/buildmgr/pkgroot/usr/lib ; rm -f libwx_base-2.8.so libwx_base-2.8.so.0; ln -s libwx_base-2.8.so.0.8.0 libwx_base-2.8.so.0; ln -s libwx_base-2.8.so.0 libwx_base-2.8.so)
/usr/bin/install -c -d /sources/buildmgr/pkgroot/usr/lib
/usr/bin/install -c -m 644 /sources/builddir/wxWidgets-2.8.12/lib/libwx_base_net-2.8.so /sources/buildmgr/pkgroot/usr/lib
/usr/bin/install -c /sources/builddir/wxWidgets-2.8.12/lib/libwx_base_net-2.8.so.0.8.0 /sources/buildmgr/pkgroot/usr/lib
(cd /sources/buildmgr/pkgroot/usr/lib ; rm -f libwx_base_net-2.8.so libwx_base_net-2.8.so.0; ln -s libwx_base_net-2.8.so.0.8.0 libwx_base_net-2.8.so.0; ln -s libwx_base_net-2.8.so.0 libwx_base_net-2.8.so)
/sources/builddir/wxWidgets-2.8.12/bk-deps g++ -c -o coredll_gtk_dcclient.o -I./.pch/wxprec_coredll -D__WXGTK__     -DWXBUILDING        -DWXUSINGDLL -DWXMAKINGDLL_CORE -DwxUSE_BASE=0 -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/sources/builddir/wxWidgets-2.8.12/lib/wx/include/gtk2-ansi-release-2.8 -I./include -pthread -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng16 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DWX_PRECOMP -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing ./src/gtk/dcclient.cpp
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

    *** BUILD_PROBLEM_DETECTED ***
GameCodingNinja
In need of some credit
In need of some credit
Posts: 5
Joined: Sun Aug 31, 2014 6:58 pm

Re: compile errors when compiling wxWidgets 2.8.12

Post by GameCodingNinja »

Never mine. :)

Just needed to force it not to compile without c++11 or greater. Below is what I did to get it to compile.

Code: Select all

export CFLAGS=-std=c99 CXXFLAGS=-std=c++98
./configure --prefix=/usr
make
make install
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7479
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: compile errors when compiling wxWidgets 2.8.12

Post by ONEEYEMAN »

Hi,
Is there a reason why you want to compile a 10-year old library?
You need to download and compile 3.1 or even better Git HEAD.

Thank you.
Post Reply