You should cd
to the Modules directory and look at the output of
svnversion .
on my system, with my svn version (1.6.17) it just says exported
to stdout. This output sets SVNVERSION as if it is with #define
in the C
code and actually used to define a char array. If there is garbage in there that will throw the error.
static const char svnversion[] = SVNVERSION;
I suggest you just rename the svnversion command temporarily while you compile. Or if that doesn't work edit the function _PY_svnversion
in Modules/getbuildinfo.c
to:
const char * _Py_svnversion(void) { return "Unversioned directory"; }
It would be interesting to see what svnversion actually gives back on your system.