[winswitch] Unable to build xpra-2.0 on Slackware64 14.2

Antoine Martin antoine at nagafix.co.uk
Sun Apr 23 06:02:14 BST 2017


On 23/04/17 05:36, YuGiOhJCJ Mailing-List via shifter-users wrote:
> Hello,
> 
> I am trying to build xpra-2.0 [1] on Slackware64 14.2 [2] and here is the result:
2.0.2 is out, use that instead.

> ---
> $ python setup.py install
(snip)
> building 'xpra.x11.gtk2.gdk_display_source' extension
> creating build/temp.linux-x86_64-2.7/xpra/x11/gtk2
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include/pygtk-2.0 -I/usr/include/gtk-2.0 -I/usr/lib64/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/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/libpng16 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -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:300:
> /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 'gcc' failed with exit status 1
> ---
> 
> Is there an incompatibility between my gtk+2 and my xpra versions?
> I am using gtk+2-2.24.30 (built from source code, not the one provided by my distro).
Most distros, except for Debian, fix the gtk headers so they don't cause
those errors.
You can modify the setup.py to use the same build switches as Debian,
which will silence this warning, or just build with:
./setup.py --without-strict install

Cheers
Antoine



> 
> Thank you.
> Best regards.
> 
> [1] https://xpra.org/src/xpra-2.0.tar.xz
> [2] http://ftp.slackware.com/pub/slackware/slackware64-14.2/



More information about the shifter-users mailing list