xpra icon
Bug tracker and wiki

Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#74 closed defect (wontfix)

svn 471: Error converting Pyrex file to C: bindings.pyx:324:50: Expected ')'

Reported by: Timo Juhani Lindfors Owned by: Antoine Martin
Priority: major Milestone: 0.0.7.x
Component: platforms Version: 0.0.7.35
Keywords: Cc:

Description

svn 471 does not build.

Using

#!/bin/sh
set -e
set -x

REV=$(git describe --dirty --tags)
REV2=$(git describe --dirty --tags|sed 's/-dirty$//')
SVNREV=$(git svn find-rev $REV2)
ARCH=$(dpkg-architecture -qDEB_BUILD_ARCH)

cd src
rm -rf build install
python make_constants_pxi.py wimpiggy/lowlevel/constants.txt wimpiggy/lowlevel/constants.pxi
CFLAGS=-O0 python setup.py install --home=install
DEST="$HOME/xpra-install/$ARCH/svn${SVNREV}_${REV}"
rm -fr "$DEST"
mv install "$DEST"
rm -fr build

fails with

creating build/lib.linux-x86_64-2.6/xpra/win32
copying xpra/win32/__init__.py -> build/lib.linux-x86_64-2.6/xpra/win32
copying xpra/win32/win32_tray.py -> build/lib.linux-x86_64-2.6/xpra/win32
copying xpra/win32/win32_NotifyIcon.py -> build/lib.linux-x86_64-2.6/xpra/win32
copying xpra/win32/win32_balloon.py -> build/lib.linux-x86_64-2.6/xpra/win32
copying xpra/win32/gui.py -> build/lib.linux-x86_64-2.6/xpra/win32
creating build/lib.linux-x86_64-2.6/xpra/darwin
copying xpra/darwin/__init__.py -> build/lib.linux-x86_64-2.6/xpra/darwin
copying xpra/darwin/gui.py -> build/lib.linux-x86_64-2.6/xpra/darwin
running build_ext
cythoning wimpiggy/lowlevel/bindings.pyx to wimpiggy/lowlevel/bindings.c

Error converting Pyrex file to C:
------------------------------------------------------------
...
    int XGrabKey(Display * display, int keycode, unsigned int modifiers,
                 Window grab_window, Bool owner_events,
                 int pointer_mode, int keyboard_mode)
    int XUngrabKey(Display * display, int keycode, unsigned int modifiers,
                   Window grab_window)
    int XQueryKeymap(Display * display, char [32] keys_return)
                                                 ^
------------------------------------------------------------

/home/lindi/scm/xpra/src/wimpiggy/lowlevel/bindings.pyx:324:50: Expected ')'
building 'wimpiggy.lowlevel.bindings' extension
creating build/temp.linux-x86_64-2.6
creating build/temp.linux-x86_64-2.6/wimpiggy
creating build/temp.linux-x86_64-2.6/wimpiggy/lowlevel
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -O0 -fPIC -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/include/gtk-2.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/pygtk-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/gio-unix-2.0/ -I/usr/include/pixman-1 -I/usr/lib/gtk-2.0/include -I/usr/include/libpng12 -I/usr/include/freetype2 -I/usr/include/python2.6 -c wimpiggy/lowlevel/bindings.c -o build/temp.linux-x86_64-2.6/wimpiggy/lowlevel/bindings.o
wimpiggy/lowlevel/bindings.c:1:2: error: #error Do not use this file, it is the result of a failed Cython compilation.
error: command 'gcc' failed with exit status 1

Change History (3)

comment:1 Changed 8 years ago by Antoine Martin

Resolution: wontfix
Status: newclosed

It does build with recent versions of Cython, what I may do is add a version check to give a more helpful error message.

comment:2 Changed 8 years ago by Antoine Martin

r472 will check for version 0.14 or later (which I think is right)

comment:3 Changed 8 years ago by Antoine Martin

Component: serverplatforms
Milestone: current0.0.7.x
Version: 0.0.7.35
Note: See TracTickets for help on using tickets.