--- src/application/pythonscript.cpp.orig 2013-08-17 17:30:02.000000000 +0200 +++ src/application/pythonscript.cpp 2013-08-17 17:32:29.000000000 +0200 @@ -99,14 +99,14 @@ if ( !(py_traceback=cStringIO->cgetvalue(catch_stderr)) ) throw ApplicationError("unable to get traceback","PythonScript::run()"); - int length; + Py_ssize_t length; char *traceback; if (PyString_AsStringAndSize(py_traceback, &traceback, &length)) throw ApplicationError("unable to convert traceback to char*","PythonScript::run()"); error << prefix() << "A python error occured. See traceback below." << endl; error << prefix(false) << "Python traceback: "; - for (int i=0;i(arg); instance->run(); pthread_cleanup_pop(1); // run the cleanup_handler and then deregister it + return NULL; } void idlescript_cleanup_handler(void* arg) --- src/application/incomingscript.cpp.orig 2013-08-17 17:33:57.000000000 +0200 +++ src/application/incomingscript.cpp 2013-08-17 17:34:10.000000000 +0200 @@ -31,6 +31,7 @@ IncomingScript *instance=static_cast(arg); instance->run(); pthread_cleanup_pop(1); // run the cleanup_handler and then deregister it + return NULL; } void incomingscript_cleanup_handler(void* arg) --- src/backend/capi.cpp.orig 2013-08-17 17:36:44.000000000 +0200 +++ src/backend/capi.cpp 2013-08-17 17:38:48.000000000 +0200 @@ -36,6 +36,7 @@ Capi *instance=static_cast(arg); instance->run(); + return NULL; } Capi::Capi (ostream& debug, unsigned short debug_level, ostream &error, unsigned short DDILength, unsigned short DDIBaseLength, vector DDIStopNumbers, unsigned maxLogicalConnection, unsigned maxBDataBlocks,unsigned maxBDataLen) throw (CapiError, CapiMsgError)