desura / Desurium

Free online games platform (juegos gratis), with an open source client. LGPL repo for Desura client. Potentially out of date. See https://github.com/desura/desura-app for newest (LGPL) client.
https://www.desura.com/es
GNU General Public License v3.0
268 stars 44 forks source link

compilation failed with v8 3.22.8 #636

Open AlphaHeX opened 10 years ago

AlphaHeX commented 10 years ago

[ 28%] Building CXX object src/static/scriptengine/CMakeFiles/scriptengine.dir/code/jsExtensions.cpp.o In file included from /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:21:0: /usr/include/v8.h: In member function ‘virtual int JSObject::getArrayLength()’: /usr/include/v8.h:767:13: error: ‘v8::HandleScope::HandleScope()’ is private V8_INLINE HandleScope() {} ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:166:19: error: within this context v8::HandleScope handle_scope; ^ In file included from /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:21:0: /usr/include/v8.h: In member function ‘virtual void* JSObject::getUserObject()’: /usr/include/v8.h:767:13: error: ‘v8::HandleScope::HandleScope()’ is private V8_INLINE HandleScope() {} ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:206:19: error: within this context v8::HandleScope handle_scope; ^ In file included from /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:21:0: /usr/include/v8.h: In member function ‘virtual ChromiumDLL::JSObjHandle JSFactory::CreateUndefined()’: /usr/include/v8.h:767:13: error: ‘v8::HandleScope::HandleScope()’ is private V8_INLINE HandleScope() {} ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:245:19: error: within this context v8::HandleScope handle_scope; ^ In file included from /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:21:0: /usr/include/v8.h: In member function ‘virtual ChromiumDLL::JSObjHandle JSFactory::CreateNull()’: /usr/include/v8.h:767:13: error: ‘v8::HandleScope::HandleScope()’ is private V8_INLINE HandleScope() {} ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:251:19: error: within this context v8::HandleScope handle_scope; ^ In file included from /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:21:0: /usr/include/v8.h: In member function ‘virtual ChromiumDLL::JSObjHandle JSFactory::CreateBool(bool)’: /usr/include/v8.h:767:13: error: ‘v8::HandleScope::HandleScope()’ is private V8_INLINE HandleScope() {} ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:257:19: error: within this context v8::HandleScope handle_scope; ^ In file included from /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:21:0: /usr/include/v8.h: In member function ‘virtual ChromiumDLL::JSObjHandle JSFactory::CreateInt(int)’: /usr/include/v8.h:767:13: error: ‘v8::HandleScope::HandleScope()’ is private V8_INLINE HandleScope() {} ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:263:19: error: within this context v8::HandleScope handle_scope; ^ In file included from /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:21:0: /usr/include/v8.h: In member function ‘virtual ChromiumDLL::JSObjHandle JSFactory::CreateDouble(double)’: /usr/include/v8.h:767:13: error: ‘v8::HandleScope::HandleScope()’ is private V8_INLINE HandleScope() {} ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:269:19: error: within this context v8::HandleScope handlescope; ^ In file included from /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:21:0: /usr/include/v8.h: In member function ‘virtual ChromiumDLL::JSObjHandle JSFactory::CreateString(const char)’: /usr/include/v8.h:767:13: error: ‘v8::HandleScope::HandleScope()’ is private V8_INLINE HandleScope() {} ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:275:19: error: within this context v8::HandleScope handle_scope; ^ In file included from /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:21:0: /usr/include/v8.h: In member function ‘virtual ChromiumDLL::JSObjHandle JSFactory::CreateObject()’: /usr/include/v8.h:767:13: error: ‘v8::HandleScope::HandleScope()’ is private V8_INLINE HandleScope() {} ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:285:19: error: within this context v8::HandleScope handlescope; ^ In file included from /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:21:0: /usr/include/v8.h: In member function ‘virtual ChromiumDLL::JSObjHandle JSFactory::CreateObject(void)’: /usr/include/v8.h:767:13: error: ‘v8::HandleScope::HandleScope()’ is private V8_INLINE HandleScope() {} ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:291:19: error: within this context v8::HandleScope handle_scope; ^ In file included from /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:21:0: /usr/include/v8.h: In member function ‘virtual ChromiumDLL::JSObjHandle JSFactory::CreateArray()’: /usr/include/v8.h:767:13: error: ‘v8::HandleScope::HandleScope()’ is private V8_INLINE HandleScope() {} ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:302:19: error: within this context v8::HandleScope handlescope; ^ In file included from /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:21:0: /usr/include/v8.h: In member function ‘virtual ChromiumDLL::JSObjHandle JSFactory::CreateFunction(const char, ChromiumDLL::JavaScriptExtenderI_)’: /usr/include/v8.h:767:13: error: ‘v8::HandleScope::HandleScope()’ is private V8_INLINE HandleScope() {} ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:308:19: error: within this context v8::HandleScope handlescope; ^ In file included from /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:21:0: /usr/include/v8.h: In member function ‘virtual ChromiumDLL::JSObjHandle JSFactory::CreateException(const char)’: /usr/include/v8.h:767:13: error: ‘v8::HandleScope::HandleScope()’ is private V8_INLINE HandleScope() {} ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:314:19: error: within this context v8::HandleScope handlescope; ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp: At global scope: /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:339:58: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handlev8::Value FunctionCallbackImpl(const v8::Arguments& args) ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:339:73: warning: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static v8::Handlev8::Value FunctionCallbackImpl(const v8::Arguments& args) ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp: In member function ‘virtual v8::Handlev8::FunctionTemplate JSExtension::GetNativeFunction(v8::Handlev8::String)’: /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:336:81: warning: invalid conversion from ‘v8::Handlev8::Value ()(const int&)’ to ‘v8::FunctionCallback {aka void (_)(const v8::FunctionCallbackInfov8::Value&)}’ [-fpermissive] return v8::FunctionTemplate::New(FunctionCallbackImpl, v8::External::New(this)); ^ In file included from /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:21:0: /usr/include/v8.h: In static member function ‘static v8::Handlev8::Value JSExtension::FunctionCallbackImpl(const int&)’: /usr/include/v8.h:767:13: error: ‘v8::HandleScope::HandleScope()’ is private V8_INLINE HandleScope() {} ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:341:19: error: within this context v8::HandleScope handlescope; ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:342:78: error: request for member ‘Data’ in ‘args’, which is of non-class type ‘const int’ JSExtension handler = staticcast<JSExtension*>(v8::External::Cast((args.Data()))->Value()); ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:344:70: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’ ChromiumDLL::JSObjHandle_ argv = new ChromiumDLL::JSObjHandle[args.Length()]; ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:346:27: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’ for(int i = 0; i < args.Length(); i++) ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:347:33: error: invalid types ‘const int[int]’ for array subscript argv[i] = new JSObject(args[i]); ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:349:51: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ ChromiumDLL::JSObjHandle obj(new JSObject(args.This())); ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:352:40: error: request for member ‘Callee’ in ‘args’, which is of non-class type ‘const int’ v8::Localv8::Function funct = args.Callee(); ^ /tmp/packerbuild-1000/desurium-git/desurium-git/src/Desurium/src/static/scriptengine/code/jsExtensions.cpp:361:23: error: request for member ‘Length’ in ‘args’, which is of non-class type ‘const int’ jsargs.argc = args.Length(); ^ make[2]: * [src/static/scriptengine/CMakeFiles/scriptengine.dir/code/jsExtensions.cpp.o] Error 1 make[1]: * [src/static/scriptengine/CMakeFiles/scriptengine.dir/all] Error 2

karolherbst commented 10 years ago

thanks for reporting

karolherbst commented 10 years ago

I have the same error with v8-3.20.17.13