Package: gemanx-gtk2 Version: 0.1.0.3-2 Severity: important User: [email protected] Usertags: ftbfs-gcc-6 gcc-6-narrowing
This package fails to build with GCC 6. GCC 6 has not been released yet, but it's expected that GCC 6 will become the default compiler for stretch. Note that only the first error is reported; there might be more. You can find a snapshot of GCC 6 in experimental. To build with GCC 6, you can set CC=gcc-6 CXX=g++-6 explicitly. You may be able to find out more about this issue at https://gcc.gnu.org/gcc-6/changes.html > sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux ... > g++ -DHAVE_CONFIG_H -I. -I.. -I../src/core -I../src/view -pthread > -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -pthread > -I/usr/include/gtk-2.0 -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include > -I/usr/include/gio-unix-2.0/ -I/usr/include/cairo -I/usr/include/pango-1.0 > -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 > -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng12 > -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 > -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include > -I/usr/include/freetype2 -I/usr/include/freetype2 -I/usr/include/freetype2 > -DLOCALEDIR=\"/usr/share/locale\" -DDATADIR=\"/usr/share\" -g -O2 > -fno-exceptions -fno-rtti -fvisibility=hidden -fvisibility-inlines-hidden -c > -o telnetcon.o `test -f 'view/telnetcon.cpp' || echo './'`view/telnetcon.cpp > view/telnetcon.cpp: In member function 'virtual bool CTelnetCon::Connect()': > view/telnetcon.cpp:342:19: warning: 'GThread* g_thread_create(GThreadFunc, > gpointer, gboolean, GError**)' is deprecated: Use 'g_thread_new' instead > [-Wdeprecated-declarations] > m_DNSThread = g_thread_create( > (GThreadFunc)&CTelnetCon::ProcessDNSQueue, NULL, true, NULL); > ^~~~~~~~~~~~~~~ > > In file included from /usr/include/glib-2.0/glib.h:107:0, > from /usr/include/glib-2.0/gobject/gbinding.h:28, > from /usr/include/glib-2.0/glib-object.h:23, > from /usr/include/glib-2.0/gio/gioenums.h:28, > from /usr/include/glib-2.0/gio/giotypes.h:28, > from /usr/include/glib-2.0/gio/gio.h:26, > from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, > from /usr/include/gtk-2.0/gdk/gdk.h:32, > from /usr/include/gtk-2.0/gtk/gtk.h:32, > from view/telnetcon.h:31, > from view/telnetcon.cpp:26: > /usr/include/glib-2.0/glib/deprecated/gthread.h:104:10: note: declared here > GThread *g_thread_create (GThreadFunc func, > ^~~~~~~~~~~~~~~ > > view/telnetcon.cpp:342:95: warning: 'GThread* g_thread_create(GThreadFunc, > gpointer, gboolean, GError**)' is deprecated: Use 'g_thread_new' instead > [-Wdeprecated-declarations] > m_DNSThread = g_thread_create( > (GThreadFunc)&CTelnetCon::ProcessDNSQueue, NULL, true, NULL); > > ^ > > In file included from /usr/include/glib-2.0/glib.h:107:0, > from /usr/include/glib-2.0/gobject/gbinding.h:28, > from /usr/include/glib-2.0/glib-object.h:23, > from /usr/include/glib-2.0/gio/gioenums.h:28, > from /usr/include/glib-2.0/gio/giotypes.h:28, > from /usr/include/glib-2.0/gio/gio.h:26, > from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, > from /usr/include/gtk-2.0/gdk/gdk.h:32, > from /usr/include/gtk-2.0/gtk/gtk.h:32, > from view/telnetcon.h:31, > from view/telnetcon.cpp:26: > /usr/include/glib-2.0/glib/deprecated/gthread.h:104:10: note: declared here > GThread *g_thread_create (GThreadFunc func, > ^~~~~~~~~~~~~~~ > > view/telnetcon.cpp: In member function 'bool CTelnetCon::OnRecv()': > view/telnetcon.cpp:360:2: warning: 'GIOError g_io_channel_read(GIOChannel*, > gchar*, gsize, gsize*)' is deprecated: Use 'g_io_channel_read_chars' instead > [-Wdeprecated-declarations] > g_io_channel_read(m_IOChannel, (char*)m_pRecvBuf, (RECV_BUF_SIZE - 1), > &rlen); > ^~~~~~~~~~~~~~~~~ > > In file included from /usr/include/glib-2.0/glib.h:54:0, > from /usr/include/glib-2.0/gobject/gbinding.h:28, > from /usr/include/glib-2.0/glib-object.h:23, > from /usr/include/glib-2.0/gio/gioenums.h:28, > from /usr/include/glib-2.0/gio/giotypes.h:28, > from /usr/include/glib-2.0/gio/gio.h:26, > from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, > from /usr/include/gtk-2.0/gdk/gdk.h:32, > from /usr/include/gtk-2.0/gtk/gtk.h:32, > from view/telnetcon.h:31, > from view/telnetcon.cpp:26: > /usr/include/glib-2.0/glib/giochannel.h:166:13: note: declared here > GIOError g_io_channel_read (GIOChannel *channel, > ^~~~~~~~~~~~~~~~~ > > view/telnetcon.cpp:360:78: warning: 'GIOError g_io_channel_read(GIOChannel*, > gchar*, gsize, gsize*)' is deprecated: Use 'g_io_channel_read_chars' instead > [-Wdeprecated-declarations] > g_io_channel_read(m_IOChannel, (char*)m_pRecvBuf, (RECV_BUF_SIZE - 1), > &rlen); > > ^ > > In file included from /usr/include/glib-2.0/glib.h:54:0, > from /usr/include/glib-2.0/gobject/gbinding.h:28, > from /usr/include/glib-2.0/glib-object.h:23, > from /usr/include/glib-2.0/gio/gioenums.h:28, > from /usr/include/glib-2.0/gio/giotypes.h:28, > from /usr/include/glib-2.0/gio/gio.h:26, > from /usr/include/gtk-2.0/gdk/gdkapplaunchcontext.h:30, > from /usr/include/gtk-2.0/gdk/gdk.h:32, > from /usr/include/gtk-2.0/gtk/gtk.h:32, > from view/telnetcon.h:31, > from view/telnetcon.cpp:26: > /usr/include/glib-2.0/glib/giochannel.h:166:13: note: declared here > GIOError g_io_channel_read (GIOChannel *channel, > ^~~~~~~~~~~~~~~~~ > > view/telnetcon.cpp: In member function 'void > CTelnetCon::ParseTelnetCommand()': > view/telnetcon.cpp:466:38: error: narrowing conversion of '255u' from > 'unsigned char' to 'char' inside { } [-Wnarrowing] > char ret[]={TC_IAC,TC_DONT,*m_pBuf}; > ^ > > view/telnetcon.cpp:466:38: error: narrowing conversion of '254u' from > 'unsigned char' to 'char' inside { } [-Wnarrowing] > view/telnetcon.cpp:466:31: warning: narrowing conversion of > '*((CTelnetCon*)this)->CTelnetCon::m_pBuf' from 'unsigned char' to 'char' > inside { } [-Wnarrowing] > char ret[]={TC_IAC,TC_DONT,*m_pBuf}; > ^~~~~~~ > > view/telnetcon.cpp:481:38: error: narrowing conversion of '255u' from > 'unsigned char' to 'char' inside { } [-Wnarrowing] > char ret[]={TC_IAC,TC_WILL,*m_pBuf}; > ^ > > view/telnetcon.cpp:481:38: error: narrowing conversion of '251u' from > 'unsigned char' to 'char' inside { } [-Wnarrowing] > view/telnetcon.cpp:481:31: warning: narrowing conversion of > '*((CTelnetCon*)this)->CTelnetCon::m_pBuf' from 'unsigned char' to 'char' > inside { } [-Wnarrowing] > char ret[]={TC_IAC,TC_WILL,*m_pBuf}; > ^~~~~~~ > -- Martin Michlmayr Linux for HPE Helion, Hewlett Packard Enterprise

