Control: tag -1 + patch

Dear Hector,

Martin Michlmayr wrote:
> > gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I..  -pthread 
> > -I/usr/include/vte-2.91 -I/usr/include/gtk-3.0 
> > -I/usr/include/at-spi2-atk/2.0 -I/usr/include/at-spi-2.0 
> > -I/usr/include/gtk-3.0 -I/usr/include/cairo -I/usr/include/pango-1.0 
> > -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 
> > -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/freetype2 
> > -I/usr/include/libpng12 -I/usr/include/gdk-pixbuf-2.0 
> > -I/usr/include/libpng12 -I/usr/include/gio-unix-2.0/ 
> > -I/usr/include/p11-kit-1 -I/usr/include/gconf/2 -I/usr/include/dbus-1.0 
> > -I/usr/lib/x86_64-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 
> > -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -Wdate-time 
> > -D_FORTIFY_SOURCE=2 -pedantic-errors -Werror -Wall -Wfatal-errors 
> > -Wwrite-strings -g -O2 -fstack-protector-strong -Wformat 
> > -Werror=format-security -c -o mssh.o mssh.c
> > In file included from /usr/include/glib-2.0/gobject/gobject.h:26:0,
> >                  from /usr/include/glib-2.0/gobject/gbinding.h:29,
> >                  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-3.0/gdk/gdkapplaunchcontext.h:28,
> >                  from /usr/include/gtk-3.0/gdk/gdk.h:32,
> >                  from /usr/include/gtk-3.0/gtk/gtk.h:30,
> >                  from mssh.c:10:
> > /usr/include/glib-2.0/gobject/gparam.h:166:33: error: enumerator value for 
> > 'G_PARAM_DEPRECATED' is not an integer constant expression [-Wpedantic]
> >    G_PARAM_DEPRECATED          = 1 << 31
> >                                  ^
> > 
> > compilation terminated due to -Wfatal-errors.
> > Makefile:379: recipe for target 'mssh.o' failed

This can be workarounded by removing the pedantic errors flags from CFLAGS:

--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,4 +1,4 @@
-AM_CFLAGS = -pedantic-errors -Werror -Wall -Wfatal-errors -Wwrite-strings
+AM_CFLAGS = -Wall -Wfatal-errors -Wwrite-strings
 
 AM_CPPFLAGS = $(MSSH_CFLAGS)
 
With this patch, mssh builds fine for me. (Patch inspired by the one
for 1.2.4 QA upload and hence removes "-Werror", too.)

                Regards, Axel
-- 
 ,''`.  |  Axel Beckert <a...@debian.org>, http://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE

Reply via email to