It fails with: pycaml_ml.c:1206:11: error: 'PyEval_CallObject' undeclared here (not in a function) pycaml_ml.c: In function 'pymodule_initmodule': pycaml_ml.c:1441:21: warning: assignment makes pointer from integer without a cast
This is because Python 2.7 removed this API: http://svn.python.org/view/python/trunk/Python/ceval.c?r1=79555&r2=79554&pathrev=79555 I have tried various variations of the attached patch, but I haven't yet made it work. With the attached patch it compiles OK, but the tests fail with: + ./spatch.opt -cocci_file demos/simple.cocci demos/simple.c Fatal error: exception Invalid_argument("index out of bounds") I'm not sure if this test failure is caused by my patch or is an unrelated failure. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones libguestfs lets you edit virtual machines. Supports shell scripting, bindings from many languages. http://et.redhat.com/~rjones/libguestfs/ See what it can do: http://et.redhat.com/~rjones/libguestfs/recipes.html _______________________________________________ Cocci mailing list [email protected] http://lists.diku.dk/mailman/listinfo/cocci (Web access from inside DIKUs LAN only)
