Ctypesgen failure: /usr/include/lber.h:71: Syntax error at '\n'
From: Julian Foad <julian.foad_at_wandisco.com>
Date: Mon, 01 Nov 2010 10:13:28 +0000
When I try to build Subversion's ctypes-python bindings, I get this
$ (cd obj-dir && make ctypes-python)
I tried Google("ctypesgen lber") and ("ctypesgen \"Syntax error at\""),
ctypesgen.py is an up-to-date trunk checkout:
The root cause is twofold:
First, line 71-72 of </usr/include/lber.h> defines a macro with
#define LBER_INVALID(t) (((t) & (ber_tag_t) 0x080UL) \
That was fixed (the macro was removed) in a later version of lber.h:
Second, ctypesgen chokes on parsing this macro. I haven't investigated
I am working around the issue by hand-editing my copy of "lber.h" to
- Julian
|
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.