Subject: | Installing JavaScript::V8 failed V8Context.cpp:288 |
Need for patch of V8Context.cpp:
V8Context.cpp:288
-- array->Set(i, sv2v8(*av_fetch(av, i, 0)));
++ array->Set(v8::Int32::New(i), sv2v8(*av_fetch(av, i, 0)));
===========
user@host:~/tmp/JavaScript-V8-0.06$ make
cp lib/JavaScript/V8/Context.pm blib/lib/JavaScript/V8/Context.pm
cp lib/JavaScript/V8.pm blib/lib/JavaScript/V8.pm
g++ -c -I. -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -fno-strict-aliasing
-pipe -fstack-protector -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64 -O2 -g -DVERSION=\"0.06\" -DXS_VERSION=\"0.06\"
-fPIC "-I/usr/lib/perl/5.10/CORE" V8Context.cpp
V8Context.cpp: In member function ‘v8::Handle<v8::Array>
V8Context::av2array(AV*)’:
V8Context.cpp:288: error: no matching function for call to
‘v8::Array::Set(I32&, v8::Handle<v8::Value>)’
/usr/include/v8.h:1145: note: candidates are: bool
v8::Object::Set(v8::Handle<v8::Value>, v8::Handle<v8::Value>,
v8::PropertyAttribute)
make: *** [V8Context.o] Error 1