Index: setup.py =================================================================== --- setup.py (revision 67148) +++ setup.py (working copy) @@ -493,7 +493,8 @@ exts.append( Extension('select', ['selectmodule.c']) ) # Fred Drake's interface to the Python parser - exts.append( Extension('parser', ['parsermodule.c']) ) + exts.append( Extension('parser', ['parsermodule.c', + 'Parser/metagrammar.c']) ) # Memory-mapped files (also works on Win32). if platform not in ['atheos', 'mac']: Index: Modules/parsermodule.c =================================================================== --- Modules/parsermodule.c (revision 67148) +++ Modules/parsermodule.c (working copy) @@ -39,7 +39,7 @@ #include "ast.h" #include "pyarena.h" -extern grammar _PyParser_Grammar; /* From graminit.c */ +extern grammar *Py_meta_grammar(void); /* From Parser/metagrammar.c */ #ifdef lint #include @@ -527,7 +527,7 @@ if (PyArg_ParseTupleAndKeywords(args, kw, argspec, keywords, &string)) { node* n = PyParser_ParseStringFlagsFilenameEx(string, NULL, - &_PyParser_Grammar, + Py_meta_grammar(), (type == PyST_EXPR) ? eval_input : file_input, &err, &flags);