When I run make against Makefile.sles, I get this:
make[1]: Leaving directory `/home/lowks/src/javascript/SilkJS/src/v8-read-only'
g++ -DSLES -fexceptions -fomit-frame-pointer -fdata-sections -ffunction-sections -fno-strict-aliasing -fvisibility=hidden -Wall -W -Wno-ignored-qualifiers -Wno-unused-function -Wno-unused-parameter -Wnon-virtual-dtor -m64 -O3 -fomit-frame-pointer -fdata-sections -ffunction-sections -ansi -fno-strict-aliasing -c -I./v8-read-only/include -I/usr/include/mysql -o main.o main.cpp
In file included from main.cpp:9:0:
SilkJS.h: In static member function ‘static v8::Handle<v8::Object> Opaque::New(void*)’:
SilkJS.h:84:12: error: ‘class v8::Object’ has no member named ‘SetPointerInInternalField’
o->SetPointerInInternalField(0, p);
^
SilkJS.h: In function ‘void* JSOPAQUE(v8::Handle<v8::Value>)’:
SilkJS.h:97:27: error: ‘class v8::Object’ has no member named ‘GetPointerFromInternalField’
return v->ToObject()->GetPointerFromInternalField(0);
^
main.cpp: In function ‘void debugger()’:
main.cpp:43:33: error: no matching function for call to ‘v8::Context::Scope::Scope(v8::Persistent<v8::Context>&)’
Context::Scope scope(context);
^
main.cpp:43:33: note: candidates are:
In file included from SilkJS.h:46:0,
from main.cpp:9:
./v8-read-only/include/v8.h:5348:24: note: v8::Context::Scope::Scope(v8::Handle<v8::Context>)
explicit V8_INLINE Scope(Handle<Context> context) : context_(context) {
^
./v8-read-only/include/v8.h:5348:24: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Context>’ to ‘v8::Handle<v8::Context>’
./v8-read-only/include/v8.h:5346:9: note: v8::Context::Scope::Scope(const v8::Context::Scope&)
class Scope {
^
./v8-read-only/include/v8.h:5346:9: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Context>’ to ‘const v8::Context::Scope&’
./v8-read-only/include/v8.h: In function ‘void ReportException(v8::TryCatch*)’:
./v8-read-only/include/v8.h:839:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
main.cpp:54:21: error: within this context
v8::HandleScope handle_scope;
^
main.cpp: In function ‘int main(int, char**)’:
main.cpp:129:16: error: no matching function for call to ‘v8::Locker::Locker()’
Locker locker;
^
main.cpp:129:16: note: candidates are:
In file included from SilkJS.h:46:0,
from main.cpp:9:
./v8-read-only/include/v8.h:5489:3: note: v8::Locker::Locker(const v8::Locker&)
Locker(const Locker&);
^
./v8-read-only/include/v8.h:5489:3: note: candidate expects 1 argument, 0 provided
./v8-read-only/include/v8.h:5464:22: note: v8::Locker::Locker(v8::Isolate*)
V8_INLINE explicit Locker(Isolate* isolate) { Initialize(isolate); }
^
./v8-read-only/include/v8.h:5464:22: note: candidate expects 1 argument, 0 provided
./v8-read-only/include/v8.h:839:13: error: ‘v8::HandleScope::HandleScope()’ is protected
V8_INLINE HandleScope() {}
^
main.cpp:130:21: error: within this context
HandleScope scope;
^
main.cpp:134:50: error: no matching function for call to ‘v8::Context::New(NULL, v8::Persistent<v8::ObjectTemplate>&)’
context = Context::New(NULL, globalObject);
^
main.cpp:134:50: note: candidate is:
In file included from SilkJS.h:46:0,
from main.cpp:9:
./v8-read-only/include/v8.h:5242:25: note: static v8::Local<v8::Context> v8::Context::New(v8::Isolate*, v8::ExtensionConfiguration*, v8::Handle<v8::ObjectTemplate>, v8::Handle<v8::Value>)
static Local<Context> New(
^
./v8-read-only/include/v8.h:5242:25: note: no known conversion for argument 2 from ‘v8::Persistent<v8::ObjectTemplate>’ to ‘v8::ExtensionConfiguration*’
main.cpp:135:45: error: no matching function for call to ‘v8::Context::Scope::Scope(v8::Persistent<v8::Context>&)’
Context::Scope context_scope(context);
^
main.cpp:135:45: note: candidates are:
In file included from SilkJS.h:46:0,
from main.cpp:9:
./v8-read-only/include/v8.h:5348:24: note: v8::Context::Scope::Scope(v8::Handle<v8::Context>)
explicit V8_INLINE Scope(Handle<Context> context) : context_(context) {
^
./v8-read-only/include/v8.h:5348:24: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Context>’ to ‘v8::Handle<v8::Context>’
./v8-read-only/include/v8.h:5346:9: note: v8::Context::Scope::Scope(const v8::Context::Scope&)
class Scope {
^
./v8-read-only/include/v8.h:5346:9: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Context>’ to ‘const v8::Context::Scope&’
main.cpp:137:20: error: no matching function for call to ‘v8::Locker::Locker()’
Locker locker;
^
main.cpp:137:20: note: candidates are:
In file included from SilkJS.h:46:0,
from main.cpp:9:
./v8-read-only/include/v8.h:5489:3: note: v8::Locker::Locker(const v8::Locker&)
Locker(const Locker&);
^
./v8-read-only/include/v8.h:5489:3: note: candidate expects 1 argument, 0 provided
./v8-read-only/include/v8.h:5464:22: note: v8::Locker::Locker(v8::Isolate*)
V8_INLINE explicit Locker(Isolate* isolate) { Initialize(isolate); }
^
./v8-read-only/include/v8.h:5464:22: note: candidate expects 1 argument, 0 provided
main.cpp:141:34: error: ‘New’ is not a member of ‘v8::Script’
Handle<Script>init = Script::New(String::New("global=this; module = {}; include('builtin/all.js');"), String::New("builtin"));
^
main.cpp:141:46: error: ‘New’ is not a member of ‘v8::String’
Handle<Script>init = Script::New(String::New("global=this; module = {}; include('builtin/all.js');"), String::New("builtin"));
^
main.cpp:141:115: error: ‘New’ is not a member of ‘v8::String’
Handle<Script>init = Script::New(String::New("global=this; module = {}; include('builtin/all.js');"), String::New("builtin"));
^
main.cpp:145:66: error: ‘New’ is not a member of ‘v8::String’
mainScript = Persistent<Script>::New(Script::Compile(String::New(startup), String::New(progName)));
^
main.cpp:145:88: error: ‘New’ is not a member of ‘v8::String’
mainScript = Persistent<Script>::New(Script::Compile(String::New(startup), String::New(progName)));
^
main.cpp:150:40: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Script>’
Handle<Value>v = mainScript->Run();
^
main.cpp:155:43: error: ‘New’ is not a member of ‘v8::String’
Handle<String> process_name = String::New("main");
^
main.cpp:156:48: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Context>’
Handle<Value> process_val = context->Global()->Get(process_name);
^
main.cpp:159:65: error: no matching function for call to ‘v8::Persistent<v8::Function>::New(v8::Handle<v8::Function>&)’
mainFunc = Persistent<Function>::New(process_fun);
^
main.cpp:159:65: note: candidate is:
In file included from SilkJS.h:46:0,
from main.cpp:9:
./v8-read-only/include/v8.h:5787:4: note: static T* v8::PersistentBase<T>::New(v8::Isolate*, T*) [with T = v8::Function]
T* PersistentBase<T>::New(Isolate* isolate, T* that) {
^
./v8-read-only/include/v8.h:5787:4: note: candidate expects 2 arguments, 1 provided
main.cpp:166:33: error: ‘New’ is not a member of ‘v8::String’
av[i - 2] = String::New(argv[i]);
^
main.cpp:168:29: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Function>’
v = mainFunc->Call(context->Global(), ac, av);
^
main.cpp:168:43: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Context>’
v = mainFunc->Call(context->Global(), ac, av);
^
main.cpp:178:17: error: ‘class v8::Persistent<v8::Context>’ has no member named ‘Dispose’
context.Dispose();
^
make: *** [main.o] Error 1
When I run make against Makefile.sles, I get this:
Versions :
Node: