[winswitch] build error

Antoine Martin antoine at nagafix.co.uk
Thu May 26 04:35:54 BST 2016


On 26/05/16 08:17, Michael Durkin wrote:
> was trying to build on Ubuntu 14.04 used apt-get build-dep to pull
> dependencies
> 
> 
> building 'xpra.x11.gtk2.gdk_display_source' extension
> creating build/temp.linux-x86_64-2.7/xpra/x11/gtk2
> x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2
> -Wall -Wstrict-prototypes -fPIC -I/usr/include/glib-2.0
> -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/gtk-2.0
> -I/usr/lib/x86_64-linux-gnu/gtk-2.0/include -I/usr/include/atk-1.0
> -I/usr/include/cairo -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/pango-1.0
> -I/usr/include/gio-unix-2.0/ -I/usr/include/freetype2
> -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/harfbuzz
> -I/usr/include/pygtk-2.0 -I/usr/include/python2.7 -c
> xpra/x11/gtk2/gdk_display_source.c -o
> build/temp.linux-x86_64-2.7/xpra/x11/gtk2/gdk_display_source.o -Wall
> -Werror -fPIC
> In file included from /usr/include/gtk-2.0/gtk/gtk.h:234:0,
>                  from /usr/include/pygtk-2.0/pygtk/pygtk.h:8,
>                  from xpra/x11/gtk2/gdk_display_source.c:354:
> /usr/include/gtk-2.0/gtk/gtkitemfactory.h:47:1: error: function declaration
> isn’t a prototype [-Werror=strict-prototypes]
>  typedef void (*GtkItemFactoryCallback)  ();
>  ^
> cc1: all warnings being treated as errors
> error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
> mike at SDR-client:~/Downloads/xpra-0.17.2$
We build xpra with -Werror which triggers an error and stops the build
if there are any warnings at all, and the Debian version of the GTK
headers generate a warning.
There are other problems with the libav headers too.
You can find the patches that need to be applied to build on Debian
based systems here:
http://xpra.org/trac/browser/xpra/tags/v0.17.x/debian/patches
(which patches need to be applied varies from one version to another)

Cheers
Antoine



More information about the shifter-users mailing list