Skip to content

Instantly share code, notes, and snippets.

@theory
Created November 8, 2017 16:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theory/a19a360e9fd2917ad343bc92d47ed816 to your computer and use it in GitHub Desktop.
Save theory/a19a360e9fd2917ad343bc92d47ed816 to your computer and use it in GitHub Desktop.
+ make PG_CONFIG=/usr/pgsql-9.4/bin/pg_config -j16
sed -e 's/^#undef PLV8_VERSION/#define PLV8_VERSION "2.1.0"/' plv8_config.h.in > plv8_config.h
echo "extern const unsigned char coffee_script_binary_data[] = {" >coffee-script.cc
echo "extern const unsigned char livescript_binary_data[] = {" >livescript.cc
sed -e 's/@PLV8_VERSION@/2.1.0/g' plv8.control.common | g++ -E -P -DLANG_plv8 - > plv8.control
sed -e 's/@LANG_NAME@/plv8/g' plv8.sql.common | sed -e 's/@PLV8_VERSION@/2.1.0/g' | g++ -E -P -I. -I./ -I/usr/pgsql-9.4/include/server -I/usr/pgsql-9.4/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -DLANG_plv8 - > plv8--2.1.0.sql
sed -e 's/@PLV8_VERSION@/2.1.0/g' plv8.control.common | g++ -E -P -DLANG_plcoffee - > plcoffee.control
sed -e 's/@LANG_NAME@/plcoffee/g' plv8.sql.common | sed -e 's/@PLV8_VERSION@/2.1.0/g' | g++ -E -P -I. -I./ -I/usr/pgsql-9.4/include/server -I/usr/pgsql-9.4/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -DLANG_plcoffee - > plcoffee--2.1.0.sql
(od -txC -v coffee-script.js | \
sed -e "s/^[0-9]*//" -e s"/ \([0-9a-f][0-9a-f]\)/0x\1,/g" -e"\$d" ) >>coffee-script.cc
(od -txC -v livescript.js | \
sed -e "s/^[0-9]*//" -e s"/ \([0-9a-f][0-9a-f]\)/0x\1,/g" -e"\$d" ) >>livescript.cc
sed -e 's/@PLV8_VERSION@/2.1.0/g' plv8.control.common | g++ -E -P -DLANG_plls - > plls.control
sed -e 's/@LANG_NAME@/plls/g' plv8.sql.common | sed -e 's/@PLV8_VERSION@/2.1.0/g' | g++ -E -P -I. -I./ -I/usr/pgsql-9.4/include/server -I/usr/pgsql-9.4/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -DLANG_plls - > plls--2.1.0.sql
g++ -Wall -O2 -std=c++11 -fno-rtti -I. -I./ -I/usr/pgsql-9.4/include/server -I/usr/pgsql-9.4/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -fPIC -c -o plv8.o plv8.cc
g++ -Wall -O2 -std=c++11 -fno-rtti -I. -I./ -I/usr/pgsql-9.4/include/server -I/usr/pgsql-9.4/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -fPIC -c -o plv8_type.o plv8_type.cc
g++ -Wall -O2 -std=c++11 -fno-rtti -I. -I./ -I/usr/pgsql-9.4/include/server -I/usr/pgsql-9.4/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -fPIC -c -o plv8_func.o plv8_func.cc
g++ -Wall -O2 -std=c++11 -fno-rtti -I. -I./ -I/usr/pgsql-9.4/include/server -I/usr/pgsql-9.4/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -fPIC -c -o plv8_param.o plv8_param.cc
plv8.cc:9:37: fatal error: libplatform/libplatform.h: No such file or directory
#include "libplatform/libplatform.h"
^
compilation terminated.
echo "0x00};" >>coffee-script.cc
g++ -Wall -O2 -std=c++11 -fno-rtti -I. -I./ -I/usr/pgsql-9.4/include/server -I/usr/pgsql-9.4/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -fPIC -c -o coffee-script.o coffee-script.cc
echo "0x00};" >>livescript.cc
g++ -Wall -O2 -std=c++11 -fno-rtti -I. -I./ -I/usr/pgsql-9.4/include/server -I/usr/pgsql-9.4/include/internal -D_GNU_SOURCE -I/usr/include/libxml2 -I/usr/include -fPIC -c -o livescript.o livescript.cc
In file included from plv8_type.cc:8:0:
plv8.h: In constructor 'WindowFunctionSupport::WindowFunctionSupport(v8::Handle<v8::Context>, FunctionCallInfo)':
plv8.h:191:29: error: 'NewFromUtf8' is not a member of 'v8::String'
context->Global()->Get(v8::String::NewFromUtf8(
^
plv8.h:192:16: error: 'class v8::Context' has no member named 'GetIsolate'
context->GetIsolate(),
^
plv8.h:194:7: error: 'kInternalizedString' is not a member of 'v8::String'
v8::String::kInternalizedString)));
^
plv8.h:200:33: error: 'class v8::Context' has no member named 'GetIsolate'
v8::External::New(context->GetIsolate(), fcinfo));
^
make: *** [plv8.o] Error 1
make: *** Waiting for unfinished jobs....
plv8.h: In constructor 'SRFSupport::SRFSupport(v8::Handle<v8::Context>, Converter*, Tuplestorestate*)':
plv8.h:231:28: error: 'NewFromUtf8' is not a member of 'v8::String'
context->Global()->Get(v8::String::NewFromUtf8(
^
plv8.h:232:15: error: 'class v8::Context' has no member named 'GetIsolate'
context->GetIsolate(),
^
plv8.h:234:6: error: 'kInternalizedString' is not a member of 'v8::String'
v8::String::kInternalizedString)));
^
plv8.h:240:37: error: 'class v8::Context' has no member named 'GetIsolate'
v8::External::New(context->GetIsolate(), conv));
^
plv8.h:242:37: error: 'class v8::Context' has no member named 'GetIsolate'
v8::External::New(context->GetIsolate(), tupstore));
^
plv8.h: At global scope:
plv8.h:270:34: error: 'FunctionCallbackInfo' in namespace 'v8' does not name a type
extern void Subtransaction(const v8::FunctionCallbackInfo<v8::Value>& info) throw();
^
plv8.h:270:38: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
extern void Subtransaction(const v8::FunctionCallbackInfo<v8::Value>& info) throw();
^
plv8.h:270:58: error: expected ',' or '...' before '<' token
extern void Subtransaction(const v8::FunctionCallbackInfo<v8::Value>& info) throw();
^
In file included from plv8_func.cc:8:0:
plv8.h: In constructor 'WindowFunctionSupport::WindowFunctionSupport(v8::Handle<v8::Context>, FunctionCallInfo)':
plv8.h:191:29: error: 'NewFromUtf8' is not a member of 'v8::String'
context->Global()->Get(v8::String::NewFromUtf8(
^
plv8.h:192:16: error: 'class v8::Context' has no member named 'GetIsolate'
context->GetIsolate(),
^
plv8.h:194:7: error: 'kInternalizedString' is not a member of 'v8::String'
v8::String::kInternalizedString)));
^
plv8.h:200:33: error: 'class v8::Context' has no member named 'GetIsolate'
v8::External::New(context->GetIsolate(), fcinfo));
^
plv8.h: In constructor 'SRFSupport::SRFSupport(v8::Handle<v8::Context>, Converter*, Tuplestorestate*)':
plv8.h:231:28: error: 'NewFromUtf8' is not a member of 'v8::String'
context->Global()->Get(v8::String::NewFromUtf8(
^
plv8.h:232:15: error: 'class v8::Context' has no member named 'GetIsolate'
context->GetIsolate(),
^
plv8.h:234:6: error: 'kInternalizedString' is not a member of 'v8::String'
v8::String::kInternalizedString)));
^
plv8.h:240:37: error: 'class v8::Context' has no member named 'GetIsolate'
v8::External::New(context->GetIsolate(), conv));
^
plv8.h:242:37: error: 'class v8::Context' has no member named 'GetIsolate'
v8::External::New(context->GetIsolate(), tupstore));
^
plv8.h: At global scope:
plv8.h:270:34: error: 'FunctionCallbackInfo' in namespace 'v8' does not name a type
extern void Subtransaction(const v8::FunctionCallbackInfo<v8::Value>& info) throw();
^
plv8.h:270:38: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
extern void Subtransaction(const v8::FunctionCallbackInfo<v8::Value>& info) throw();
^
plv8.h:270:58: error: expected ',' or '...' before '<' token
extern void Subtransaction(const v8::FunctionCallbackInfo<v8::Value>& info) throw();
^
plv8_type.cc: In function 'void plv8_fill_type(plv8_type*, Oid, MemoryContext)':
plv8_type.cc:80:23: error: reference to 'kExternalShortArray' is ambiguous
type->ext_array = kExternalShortArray;
^
In file included from plv8_type.cc:8:0:
plv8.h:78:2: note: candidates are: plv8_external_array_type kExternalShortArray
kExternalShortArray,
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1438:3: note: v8::ExternalArrayType kExternalShortArray
kExternalShortArray,
^
plv8_type.cc:85:23: error: reference to 'kExternalIntArray' is ambiguous
type->ext_array = kExternalIntArray;
^
In file included from plv8_type.cc:8:0:
plv8.h:80:2: note: candidates are: plv8_external_array_type kExternalIntArray
kExternalIntArray,
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1440:3: note: v8::ExternalArrayType kExternalIntArray
kExternalIntArray,
^
plv8_type.cc:90:23: error: reference to 'kExternalFloatArray' is ambiguous
type->ext_array = kExternalFloatArray;
^
In file included from plv8_type.cc:8:0:
plv8.h:82:2: note: candidates are: plv8_external_array_type kExternalFloatArray
kExternalFloatArray,
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1442:3: note: v8::ExternalArrayType kExternalFloatArray
kExternalFloatArray,
^
plv8_type.cc:95:23: error: reference to 'kExternalDoubleArray' is ambiguous
type->ext_array = kExternalDoubleArray;
^
In file included from plv8_type.cc:8:0:
plv8.h:83:2: note: candidates are: plv8_external_array_type kExternalDoubleArray
kExternalDoubleArray
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1443:3: note: v8::ExternalArrayType kExternalDoubleArray
kExternalDoubleArray,
^
plv8_type.cc: In function 'v8::Local<v8::Object> CreateExternalArray(void*, plv8_external_array_type, int, Datum)':
plv8_type.cc:157:8: error: 'ArrayBuffer' is not a member of 'v8'
Local<v8::ArrayBuffer> buffer;
^
plv8_type.cc:157:8: error: 'ArrayBuffer' is not a member of 'v8'
plv8_type.cc:157:23: error: template argument 1 is invalid
Local<v8::ArrayBuffer> buffer;
^
plv8_type.cc:157:31: error: invalid type in declaration before ';' token
Local<v8::ArrayBuffer> buffer;
^
plv8_type.cc:158:8: error: 'TypedArray' is not a member of 'v8'
Local<v8::TypedArray> array;
^
plv8_type.cc:158:8: error: 'TypedArray' is not a member of 'v8'
plv8_type.cc:158:22: error: template argument 1 is invalid
Local<v8::TypedArray> array;
^
plv8_type.cc:158:29: error: invalid type in declaration before ';' token
Local<v8::TypedArray> array;
^
plv8_type.cc:160:15: error: 'v8::ArrayBuffer' has not been declared
buffer = v8::ArrayBuffer::New(plv8_isolate, byte_size);
^
plv8_type.cc:161:13: error: request for member 'IsEmpty' in 'buffer', which is of non-class type 'int'
if (buffer.IsEmpty())
^
plv8_type.cc:168:7: error: reference to 'kExternalByteArray' is ambiguous
case kExternalByteArray:
^
In file included from plv8_type.cc:8:0:
plv8.h:76:2: note: candidates are: plv8_external_array_type kExternalByteArray
kExternalByteArray = 1,
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1436:3: note: v8::ExternalArrayType kExternalByteArray
kExternalByteArray = 1,
^
plv8_type.cc:169:15: error: 'v8::Int8Array' has not been declared
array = v8::Int8Array::New(buffer, 0, byte_size);
^
plv8_type.cc:171:7: error: reference to 'kExternalUnsignedByteArray' is ambiguous
case kExternalUnsignedByteArray:
^
In file included from plv8_type.cc:8:0:
plv8.h:77:2: note: candidates are: plv8_external_array_type kExternalUnsignedByteArray
kExternalUnsignedByteArray,
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1437:3: note: v8::ExternalArrayType kExternalUnsignedByteArray
kExternalUnsignedByteArray,
^
plv8_type.cc:172:15: error: 'v8::Uint8Array' has not been declared
array = v8::Uint8Array::New(buffer, 0, byte_size);
^
plv8_type.cc:174:7: error: reference to 'kExternalShortArray' is ambiguous
case kExternalShortArray:
^
In file included from plv8_type.cc:8:0:
plv8.h:78:2: note: candidates are: plv8_external_array_type kExternalShortArray
kExternalShortArray,
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1438:3: note: v8::ExternalArrayType kExternalShortArray
kExternalShortArray,
^
plv8_type.cc:175:15: error: 'v8::Int16Array' has not been declared
array = v8::Int16Array::New(buffer, 0, byte_size / sizeof(int16));
^
plv8_type.cc:177:7: error: reference to 'kExternalUnsignedShortArray' is ambiguous
case kExternalUnsignedShortArray:
^
In file included from plv8_type.cc:8:0:
plv8.h:79:2: note: candidates are: plv8_external_array_type kExternalUnsignedShortArray
kExternalUnsignedShortArray,
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1439:3: note: v8::ExternalArrayType kExternalUnsignedShortArray
kExternalUnsignedShortArray,
^
plv8_type.cc:178:15: error: 'v8::Uint16Array' has not been declared
array = v8::Uint16Array::New(buffer, 0, byte_size / sizeof(int16));
^
plv8_type.cc:180:7: error: reference to 'kExternalIntArray' is ambiguous
case kExternalIntArray:
^
In file included from plv8_type.cc:8:0:
plv8.h:80:2: note: candidates are: plv8_external_array_type kExternalIntArray
kExternalIntArray,
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1440:3: note: v8::ExternalArrayType kExternalIntArray
kExternalIntArray,
^
plv8_type.cc:181:15: error: 'v8::Int32Array' has not been declared
array = v8::Int32Array::New(buffer, 0, byte_size / sizeof(int32));
^
plv8_type.cc:183:7: error: reference to 'kExternalUnsignedIntArray' is ambiguous
case kExternalUnsignedIntArray:
^
In file included from plv8_type.cc:8:0:
plv8.h:81:2: note: candidates are: plv8_external_array_type kExternalUnsignedIntArray
kExternalUnsignedIntArray,
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1441:3: note: v8::ExternalArrayType kExternalUnsignedIntArray
kExternalUnsignedIntArray,
^
plv8_type.cc:184:15: error: 'v8::Uint32Array' has not been declared
array = v8::Uint32Array::New(buffer, 0, byte_size / sizeof(int32));
^
plv8_type.cc:186:7: error: reference to 'kExternalFloatArray' is ambiguous
case kExternalFloatArray:
^
In file included from plv8_type.cc:8:0:
plv8.h:82:2: note: candidates are: plv8_external_array_type kExternalFloatArray
kExternalFloatArray,
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1442:3: note: v8::ExternalArrayType kExternalFloatArray
kExternalFloatArray,
^
plv8_type.cc:187:15: error: 'v8::Float32Array' has not been declared
array = v8::Float32Array::New(buffer, 0, byte_size / sizeof(float4));
^
plv8_type.cc:189:7: error: reference to 'kExternalDoubleArray' is ambiguous
case kExternalDoubleArray:
^
In file included from plv8_type.cc:8:0:
plv8.h:83:2: note: candidates are: plv8_external_array_type kExternalDoubleArray
kExternalDoubleArray
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1443:3: note: v8::ExternalArrayType kExternalDoubleArray
kExternalDoubleArray,
^
plv8_type.cc:190:15: error: 'v8::Float64Array' has not been declared
array = v8::Float64Array::New(buffer, 0, byte_size / sizeof(float8));
^
plv8_type.cc:195:7: error: base operand of '->' is not a pointer
array->SetInternalField(0, External::New(plv8_isolate, DatumGetPointer(datum)));
^
plv8_type.cc:195:79: error: no matching function for call to 'v8::External::New(v8::Isolate*&, Pointer)'
array->SetInternalField(0, External::New(plv8_isolate, DatumGetPointer(datum)));
^
plv8_type.cc:195:79: note: candidate is:
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1967:35: note: static v8::Local<v8::External> v8::External::New(void*)
V8EXPORT static Local<External> New(void* value);
^
/usr/include/v8.h:1967:35: note: candidate expects 1 argument, 2 provided
plv8_type.cc:199:15: error: base operand of '->' is not a pointer
memcpy(buffer->GetContents().Data(), data, byte_size);
^
plv8_type.cc:201:9: error: could not convert 'array' from 'int' to 'v8::Local<v8::Object>'
return array;
^
plv8_type.cc: In function 'void* ExtractExternalArrayDatum(v8::Handle<v8::Value>)':
plv8_type.cc:210:13: error: 'class v8::Value' has no member named 'IsTypedArray'
if (value->IsTypedArray())
^
plv8_type.cc: In function 'v8::Local<v8::Value> ToValue(Datum, bool, plv8_type*)':
plv8_type.cc:441:64: error: no matching function for call to 'v8::Local<v8::Value>::New(v8::Isolate*&, v8::Handle<v8::Primitive>)'
return Local<v8::Value>::New(plv8_isolate, Null(plv8_isolate));
^
plv8_type.cc:441:64: note: candidate is:
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:4212:10: note: static v8::Local<T> v8::Local<T>::New(v8::Handle<T>) [with T = v8::Value]
Local<T> Local<T>::New(Handle<T> that) {
^
/usr/include/v8.h:4212:10: note: candidate expects 1 argument, 2 provided
plv8_type.cc: In function 'v8::Local<v8::Value> ToScalarValue(Datum, bool, plv8_type*)':
plv8_type.cc:456:59: error: invalid conversion from 'v8::Isolate*' to 'int32_t {aka int}' [-fpermissive]
return Uint32::New(plv8_isolate, DatumGetObjectId(datum));
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 1 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_type.cc:456:59: error: invalid conversion from 'Oid {aka unsigned int}' to 'v8::Isolate*' [-fpermissive]
return Uint32::New(plv8_isolate, DatumGetObjectId(datum));
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 2 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_type.cc:458:56: error: no matching function for call to 'v8::Boolean::New(v8::Isolate*&, bool)'
return Boolean::New(plv8_isolate, DatumGetBool(datum));
^
plv8_type.cc:458:56: note: candidate is:
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:4364:17: note: static v8::Handle<v8::Boolean> v8::Boolean::New(bool)
Handle<Boolean> Boolean::New(bool value) {
^
/usr/include/v8.h:4364:17: note: candidate expects 1 argument, 2 provided
plv8_type.cc:460:55: error: invalid conversion from 'v8::Isolate*' to 'int32_t {aka int}' [-fpermissive]
return Int32::New(plv8_isolate, DatumGetInt16(datum));
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 1 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_type.cc:460:55: error: invalid conversion from 'int16 {aka short int}' to 'v8::Isolate*' [-fpermissive]
return Int32::New(plv8_isolate, DatumGetInt16(datum));
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 2 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_type.cc:462:55: error: invalid conversion from 'v8::Isolate*' to 'int32_t {aka int}' [-fpermissive]
return Int32::New(plv8_isolate, DatumGetInt32(datum));
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 1 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_type.cc:462:55: error: invalid conversion from 'int32 {aka int}' to 'v8::Isolate*' [-fpermissive]
return Int32::New(plv8_isolate, DatumGetInt32(datum));
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 2 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_type.cc:464:56: error: no matching function for call to 'v8::Number::New(v8::Isolate*&, int64)'
return Number::New(plv8_isolate, DatumGetInt64(datum));
^
plv8_type.cc:464:56: note: candidate is:
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1381:33: note: static v8::Local<v8::Number> v8::Number::New(double)
V8EXPORT static Local<Number> New(double value);
^
/usr/include/v8.h:1381:33: note: candidate expects 1 argument, 2 provided
plv8_type.cc:466:57: error: no matching function for call to 'v8::Number::New(v8::Isolate*&, float4)'
return Number::New(plv8_isolate, DatumGetFloat4(datum));
^
plv8_type.cc:466:57: note: candidate is:
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1381:33: note: static v8::Local<v8::Number> v8::Number::New(double)
V8EXPORT static Local<Number> New(double value);
^
/usr/include/v8.h:1381:33: note: candidate expects 1 argument, 2 provided
plv8_type.cc:468:57: error: no matching function for call to 'v8::Number::New(v8::Isolate*&, float8)'
return Number::New(plv8_isolate, DatumGetFloat8(datum));
^
plv8_type.cc:468:57: note: candidate is:
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1381:33: note: static v8::Local<v8::Number> v8::Number::New(double)
V8EXPORT static Local<Number> New(double value);
^
/usr/include/v8.h:1381:33: note: candidate expects 1 argument, 2 provided
plv8_type.cc:471:47: error: no matching function for call to 'v8::Number::New(v8::Isolate*&, float8)'
DirectFunctionCall1(numeric_float8, datum)));
^
plv8_type.cc:471:47: note: candidate is:
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1381:33: note: static v8::Local<v8::Number> v8::Number::New(double)
V8EXPORT static Local<Number> New(double value);
^
/usr/include/v8.h:1381:33: note: candidate expects 1 argument, 2 provided
plv8_type.cc:473:69: error: no matching function for call to 'v8::Date::New(v8::Isolate*&, double)'
return Date::New(plv8_isolate, DateToEpoch(DatumGetDateADT(datum)));
^
plv8_type.cc:473:69: note: candidate is:
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1818:32: note: static v8::Local<v8::Value> v8::Date::New(double)
V8EXPORT static Local<Value> New(double time);
^
/usr/include/v8.h:1818:32: note: candidate expects 1 argument, 2 provided
plv8_type.cc:476:80: error: no matching function for call to 'v8::Date::New(v8::Isolate*&, double)'
return Date::New(plv8_isolate, TimestampTzToEpoch(DatumGetTimestampTz(datum)));
^
plv8_type.cc:476:80: note: candidate is:
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1818:32: note: static v8::Local<v8::Value> v8::Date::New(double)
V8EXPORT static Local<Value> New(double time);
^
/usr/include/v8.h:1818:32: note: candidate expects 1 argument, 2 provided
plv8_type.cc:497:12: error: reference to 'kExternalUnsignedByteArray' is ambiguous
kExternalUnsignedByteArray,
^
In file included from plv8_type.cc:8:0:
plv8.h:77:2: note: candidates are: plv8_external_array_type kExternalUnsignedByteArray
kExternalUnsignedByteArray,
^
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1437:3: note: v8::ExternalArrayType kExternalUnsignedByteArray
kExternalUnsignedByteArray,
^
plv8_type.cc:510:87: error: no matching function for call to 'v8::Local<v8::Value>::New(v8::Isolate*&, v8::Handle<v8::Value>)'
Local<v8::Value> result = Local<v8::Value>::New(plv8_isolate, JSON.Parse(jsonString));
^
plv8_type.cc:510:87: note: candidate is:
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:4212:10: note: static v8::Local<T> v8::Local<T>::New(v8::Handle<T>) [with T = v8::Value]
Local<T> Local<T>::New(Handle<T> that) {
^
/usr/include/v8.h:4212:10: note: candidate expects 1 argument, 2 provided
plv8_type.cc:522:87: error: no matching function for call to 'v8::Local<v8::Value>::New(v8::Isolate*&, v8::Handle<v8::Value>)'
Local<v8::Value> result = Local<v8::Value>::New(plv8_isolate, JSON.Parse(jsonString));
^
plv8_type.cc:522:87: note: candidate is:
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:4212:10: note: static v8::Local<T> v8::Local<T>::New(v8::Handle<T>) [with T = v8::Value]
Local<T> Local<T>::New(Handle<T> that) {
^
/usr/include/v8.h:4212:10: note: candidate expects 1 argument, 2 provided
plv8_type.cc: In function 'v8::Local<v8::Value> ToArrayValue(Datum, bool, plv8_type*)':
plv8_type.cc:566:56: error: no matching function for call to 'v8::Array::New(v8::Isolate*&, int&)'
Local<Array> result = Array::New(plv8_isolate, nelems);
^
plv8_type.cc:566:56: note: candidate is:
In file included from plv8.h:12:0,
from plv8_type.cc:8:
/usr/include/v8.h:1762:32: note: static v8::Local<v8::Array> v8::Array::New(int)
V8EXPORT static Local<Array> New(int length = 0);
^
/usr/include/v8.h:1762:32: note: candidate expects 1 argument, 2 provided
plv8_type.cc: In function 'v8::Local<v8::String> ToString(Datum, plv8_type*)':
plv8_type.cc:650:6: error: 'NewFromUtf8' is not a member of 'v8::String'
? String::NewFromUtf8(plv8_isolate, str)
^
plv8_type.cc: In function 'v8::Local<v8::String> ToString(const char*, int, int)':
plv8_type.cc:678:25: error: 'NewFromUtf8' is not a member of 'v8::String'
Local<String> result = String::NewFromUtf8(plv8_isolate, utf8, String::kNormalString, len);
^
plv8_type.cc:678:65: error: 'kNormalString' is not a member of 'v8::String'
Local<String> result = String::NewFromUtf8(plv8_isolate, utf8, String::kNormalString, len);
^
plv8_func.cc:23:40: error: 'FunctionCallbackInfo' does not name a type
static void plv8_FunctionInvoker(const FunctionCallbackInfo<v8::Value>& args) throw();
^
plv8_func.cc:23:40: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:23:60: error: expected ',' or '...' before '<' token
static void plv8_FunctionInvoker(const FunctionCallbackInfo<v8::Value>& args) throw();
^
plv8_func.cc:24:29: error: 'FunctionCallbackInfo' does not name a type
static void plv8_Elog(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:24:29: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:24:49: error: expected ',' or '...' before '<' token
static void plv8_Elog(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:25:32: error: 'FunctionCallbackInfo' does not name a type
static void plv8_Execute(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:25:32: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:25:52: error: expected ',' or '...' before '<' token
static void plv8_Execute(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:26:32: error: 'FunctionCallbackInfo' does not name a type
static void plv8_Prepare(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:26:32: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:26:52: error: expected ',' or '...' before '<' token
static void plv8_Prepare(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:27:35: error: 'FunctionCallbackInfo' does not name a type
static void plv8_PlanCursor(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:27:35: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:27:55: error: expected ',' or '...' before '<' token
static void plv8_PlanCursor(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:28:36: error: 'FunctionCallbackInfo' does not name a type
static void plv8_PlanExecute(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:28:36: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:28:56: error: expected ',' or '...' before '<' token
static void plv8_PlanExecute(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:29:33: error: 'FunctionCallbackInfo' does not name a type
static void plv8_PlanFree(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:29:33: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:29:53: error: expected ',' or '...' before '<' token
static void plv8_PlanFree(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:30:36: error: 'FunctionCallbackInfo' does not name a type
static void plv8_CursorFetch(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:30:36: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:30:56: error: expected ',' or '...' before '<' token
static void plv8_CursorFetch(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:31:35: error: 'FunctionCallbackInfo' does not name a type
static void plv8_CursorMove(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:31:35: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:31:55: error: expected ',' or '...' before '<' token
static void plv8_CursorMove(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:32:36: error: 'FunctionCallbackInfo' does not name a type
static void plv8_CursorClose(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:32:36: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:32:56: error: expected ',' or '...' before '<' token
static void plv8_CursorClose(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:33:35: error: 'FunctionCallbackInfo' does not name a type
static void plv8_ReturnNext(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:33:35: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:33:55: error: expected ',' or '...' before '<' token
static void plv8_ReturnNext(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:34:39: error: 'FunctionCallbackInfo' does not name a type
static void plv8_Subtransaction(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:34:39: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:34:59: error: expected ',' or '...' before '<' token
static void plv8_Subtransaction(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:35:37: error: 'FunctionCallbackInfo' does not name a type
static void plv8_FindFunction(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:35:37: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:35:57: error: expected ',' or '...' before '<' token
static void plv8_FindFunction(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:36:40: error: 'FunctionCallbackInfo' does not name a type
static void plv8_GetWindowObject(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:36:40: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:36:60: error: expected ',' or '...' before '<' token
static void plv8_GetWindowObject(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:37:45: error: 'FunctionCallbackInfo' does not name a type
static void plv8_WinGetPartitionLocal(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:37:45: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:37:65: error: expected ',' or '...' before '<' token
static void plv8_WinGetPartitionLocal(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:38:45: error: 'FunctionCallbackInfo' does not name a type
static void plv8_WinSetPartitionLocal(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:38:45: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:38:65: error: expected ',' or '...' before '<' token
static void plv8_WinSetPartitionLocal(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:39:46: error: 'FunctionCallbackInfo' does not name a type
static void plv8_WinGetCurrentPosition(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:39:46: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:39:66: error: expected ',' or '...' before '<' token
static void plv8_WinGetCurrentPosition(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:40:48: error: 'FunctionCallbackInfo' does not name a type
static void plv8_WinGetPartitionRowCount(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:40:48: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:40:68: error: expected ',' or '...' before '<' token
static void plv8_WinGetPartitionRowCount(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:41:43: error: 'FunctionCallbackInfo' does not name a type
static void plv8_WinSetMarkPosition(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:41:43: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:41:63: error: expected ',' or '...' before '<' token
static void plv8_WinSetMarkPosition(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:42:40: error: 'FunctionCallbackInfo' does not name a type
static void plv8_WinRowsArePeers(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:42:40: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:42:60: error: expected ',' or '...' before '<' token
static void plv8_WinRowsArePeers(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:43:49: error: 'FunctionCallbackInfo' does not name a type
static void plv8_WinGetFuncArgInPartition(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:43:49: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:43:69: error: expected ',' or '...' before '<' token
static void plv8_WinGetFuncArgInPartition(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:44:45: error: 'FunctionCallbackInfo' does not name a type
static void plv8_WinGetFuncArgInFrame(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:44:45: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:44:65: error: expected ',' or '...' before '<' token
static void plv8_WinGetFuncArgInFrame(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:45:45: error: 'FunctionCallbackInfo' does not name a type
static void plv8_WinGetFuncArgCurrent(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:45:45: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:45:65: error: expected ',' or '...' before '<' token
static void plv8_WinGetFuncArgCurrent(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:46:37: error: 'FunctionCallbackInfo' does not name a type
static void plv8_QuoteLiteral(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:46:37: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:46:57: error: expected ',' or '...' before '<' token
static void plv8_QuoteLiteral(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:47:38: error: 'FunctionCallbackInfo' does not name a type
static void plv8_QuoteNullable(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:47:38: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:47:58: error: expected ',' or '...' before '<' token
static void plv8_QuoteNullable(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:48:35: error: 'FunctionCallbackInfo' does not name a type
static void plv8_QuoteIdent(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:48:35: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:48:55: error: expected ',' or '...' before '<' token
static void plv8_QuoteIdent(const FunctionCallbackInfo<v8::Value>& args);
^
plv8_func.cc:78:14: error: 'WrapCallback' declared as an 'inline' variable
WrapCallback(FunctionCallback func)
^
plv8_func.cc:78:14: error: 'FunctionCallback' was not declared in this scope
plv8_func.cc:79:1: error: expected ',' or ';' before '{' token
{
^
plv8_func.cc:85:15: error: 'FunctionCallback' does not name a type
static inline FunctionCallback
^
plv8_func.cc:94:4: error: 'FunctionCallback' has not been declared
FunctionCallback func, PropertyAttribute attr = None)
^
plv8_func.cc: In function 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)':
plv8_func.cc:96:11: error: 'NewFromUtf8' is not a member of 'v8::String'
obj->Set(String::NewFromUtf8(plv8_isolate, name, String::kInternalizedString),
^
plv8_func.cc:96:51: error: 'kInternalizedString' is not a member of 'v8::String'
obj->Set(String::NewFromUtf8(plv8_isolate, name, String::kInternalizedString),
^
plv8_func.cc:98:23: error: no match for call to '(v8::Local<v8::Value>) (int&)'
WrapCallback(func)), attr);
^
plv8_func.cc: In function 'v8::Handle<v8::Value> SPIResultToValue(int)':
plv8_func.cc:123:17: error: 'class v8::Isolate' has no member named 'ThrowException'
plv8_isolate->ThrowException(String::NewFromUtf8(plv8_isolate, FormatSPIStatus(status)));
^
plv8_func.cc:123:32: error: 'NewFromUtf8' is not a member of 'v8::String'
plv8_isolate->ThrowException(String::NewFromUtf8(plv8_isolate, FormatSPIStatus(status)));
^
plv8_func.cc:136:53: error: no matching function for call to 'v8::Array::New(v8::Isolate*&, int&)'
Local<Array> rows = Array::New(plv8_isolate, nrows);
^
plv8_func.cc:136:53: note: candidate is:
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1762:32: note: static v8::Local<v8::Array> v8::Array::New(int)
V8EXPORT static Local<Array> New(int length = 0);
^
/usr/include/v8.h:1762:32: note: candidate expects 1 argument, 2 provided
plv8_func.cc:145:50: error: invalid conversion from 'v8::Isolate*' to 'int32_t {aka int}' [-fpermissive]
result = Int32::New(plv8_isolate, SPI_processed);
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 1 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc:145:50: error: invalid conversion from 'uint32 {aka unsigned int}' to 'v8::Isolate*' [-fpermissive]
result = Int32::New(plv8_isolate, SPI_processed);
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 2 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc: In constructor 'JSONObject::JSONObject()':
plv8_func.cc:183:42: error: 'class v8::Isolate' has no member named 'GetCurrentContext'
Handle<Context> context = plv8_isolate->GetCurrentContext();
^
plv8_func.cc:185:23: error: 'NewFromUtf8' is not a member of 'v8::String'
m_json = global->Get(String::NewFromUtf8(plv8_isolate, "JSON", String::kInternalizedString))->ToObject();
^
plv8_func.cc:185:65: error: 'kInternalizedString' is not a member of 'v8::String'
m_json = global->Get(String::NewFromUtf8(plv8_isolate, "JSON", String::kInternalizedString))->ToObject();
^
plv8_func.cc: In member function 'v8::Handle<v8::Value> JSONObject::Parse(v8::Handle<v8::Value>)':
plv8_func.cc:197:38: error: 'NewFromUtf8' is not a member of 'v8::String'
Handle<Function>::Cast(m_json->Get(String::NewFromUtf8(plv8_isolate, "parse", String::kInternalizedString)));
^
plv8_func.cc:197:81: error: 'kInternalizedString' is not a member of 'v8::String'
Handle<Function>::Cast(m_json->Get(String::NewFromUtf8(plv8_isolate, "parse", String::kInternalizedString)));
^
plv8_func.cc: In member function 'v8::Handle<v8::Value> JSONObject::Stringify(v8::Handle<v8::Value>)':
plv8_func.cc:212:38: error: 'NewFromUtf8' is not a member of 'v8::String'
Handle<Function>::Cast(m_json->Get(String::NewFromUtf8(plv8_isolate, "stringify", String::kInternalizedString)));
^
plv8_func.cc:212:85: error: 'kInternalizedString' is not a member of 'v8::String'
Handle<Function>::Cast(m_json->Get(String::NewFromUtf8(plv8_isolate, "stringify", String::kInternalizedString)));
^
plv8_func.cc: In function 'void SetupPlv8Functions(v8::Handle<v8::ObjectTemplate>)':
plv8_func.cc:226:47: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(plv8, "elog", plv8_Elog, attrFull);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:227:53: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(plv8, "execute", plv8_Execute, attrFull);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:228:53: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(plv8, "prepare", plv8_Prepare, attrFull);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:229:60: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(plv8, "return_next", plv8_ReturnNext, attrFull);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:230:67: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(plv8, "subtransaction", plv8_Subtransaction, attrFull);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:231:64: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(plv8, "find_function", plv8_FindFunction, attrFull);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:232:71: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(plv8, "get_window_object", plv8_GetWindowObject, attrFull);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:233:64: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(plv8, "quote_literal", plv8_QuoteLiteral, attrFull);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:234:66: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(plv8, "quote_nullable", plv8_QuoteNullable, attrFull);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:235:60: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(plv8, "quote_ident", plv8_QuoteIdent, attrFull);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc: At global scope:
plv8_func.cc:245:28: error: 'FunctionCallbackInfo' does not name a type
plv8_FunctionInvoker(const FunctionCallbackInfo<v8::Value> &args) throw()
^
plv8_func.cc:245:28: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:245:48: error: expected ',' or '...' before '<' token
plv8_FunctionInvoker(const FunctionCallbackInfo<v8::Value> &args) throw()
^
plv8_func.cc: In function 'void plv8_FunctionInvoker(int)':
plv8_func.cc:247:40: error: no matching function for call to 'v8::HandleScope::HandleScope(v8::Isolate*&)'
HandleScope handle_scope(plv8_isolate);
^
plv8_func.cc:247:40: note: candidates are:
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:473:3: note: v8::HandleScope::HandleScope(const v8::HandleScope&)
HandleScope(const HandleScope&);
^
/usr/include/v8.h:473:3: note: no known conversion for argument 1 from 'v8::Isolate*' to 'const v8::HandleScope&'
/usr/include/v8.h:448:3: note: v8::HandleScope::HandleScope()
HandleScope();
^
/usr/include/v8.h:448:3: note: candidate expects 0 arguments, 1 provided
plv8_func.cc:249:2: error: 'FunctionCallback' was not declared in this scope
FunctionCallback fn = UnwrapCallback(args.Data());
^
plv8_func.cc:249:19: error: expected ';' before 'fn'
FunctionCallback fn = UnwrapCallback(args.Data());
^
plv8_func.cc:253:13: error: 'args' was not declared in this scope
return fn(args);
^
plv8_func.cc:253:17: error: 'fn' was not declared in this scope
return fn(args);
^
plv8_func.cc:253:17: error: return-statement with a value, in function returning 'void' [-fpermissive]
plv8_func.cc:257:3: error: 'args' was not declared in this scope
args.GetReturnValue().Set(plv8_isolate->ThrowException(e.error_object()));
^
plv8_func.cc:257:43: error: 'class v8::Isolate' has no member named 'ThrowException'
args.GetReturnValue().Set(plv8_isolate->ThrowException(e.error_object()));
^
plv8_func.cc:285:69: error: invalid conversion from 'v8::Isolate*' to 'int32_t {aka int}' [-fpermissive]
Handle<Integer> code = Uint32::New(plv8_isolate, edata->sqlerrcode);
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 1 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc:285:69: error: invalid conversion from 'int' to 'v8::Isolate*' [-fpermissive]
Handle<Integer> code = Uint32::New(plv8_isolate, edata->sqlerrcode);
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 2 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc:293:12: error: 'NewFromUtf8' is not a member of 'v8::String'
err->Set(String::NewFromUtf8(plv8_isolate, "sqlerrcode"), sqlerrcode);
^
plv8_func.cc:295:12: error: 'NewFromUtf8' is not a member of 'v8::String'
err->Set(String::NewFromUtf8(plv8_isolate, "schema_name"), schema_name);
^
plv8_func.cc:296:12: error: 'NewFromUtf8' is not a member of 'v8::String'
err->Set(String::NewFromUtf8(plv8_isolate, "table_name"), table_name);
^
plv8_func.cc:297:12: error: 'NewFromUtf8' is not a member of 'v8::String'
err->Set(String::NewFromUtf8(plv8_isolate, "column_name"), column_name);
^
plv8_func.cc:298:12: error: 'NewFromUtf8' is not a member of 'v8::String'
err->Set(String::NewFromUtf8(plv8_isolate, "datatype_name"), datatype_name);
^
plv8_func.cc:299:12: error: 'NewFromUtf8' is not a member of 'v8::String'
err->Set(String::NewFromUtf8(plv8_isolate, "constraint_name"), constraint_name);
^
plv8_func.cc:300:12: error: 'NewFromUtf8' is not a member of 'v8::String'
err->Set(String::NewFromUtf8(plv8_isolate, "detail"), detail);
^
plv8_func.cc:301:12: error: 'NewFromUtf8' is not a member of 'v8::String'
err->Set(String::NewFromUtf8(plv8_isolate, "hint"), hint);
^
plv8_func.cc:302:12: error: 'NewFromUtf8' is not a member of 'v8::String'
err->Set(String::NewFromUtf8(plv8_isolate, "context"), context);
^
plv8_func.cc:303:12: error: 'NewFromUtf8' is not a member of 'v8::String'
err->Set(String::NewFromUtf8(plv8_isolate, "internalquery"), internalquery);
^
plv8_func.cc:304:12: error: 'NewFromUtf8' is not a member of 'v8::String'
err->Set(String::NewFromUtf8(plv8_isolate, "code"), code);
^
plv8_func.cc:307:3: error: 'args' was not declared in this scope
args.GetReturnValue().Set(plv8_isolate->ThrowException(err));
^
plv8_func.cc:307:43: error: 'class v8::Isolate' has no member named 'ThrowException'
args.GetReturnValue().Set(plv8_isolate->ThrowException(err));
^
plv8_func.cc: At global scope:
plv8_func.cc:315:17: error: 'FunctionCallbackInfo' does not name a type
plv8_Elog(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:315:17: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:315:37: error: expected ',' or '...' before '<' token
plv8_Elog(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_Elog(int)':
plv8_func.cc:319:6: error: 'args' was not declared in this scope
if (args.Length() < 2) {
^
plv8_func.cc:320:43: error: 'class v8::Isolate' has no member named 'ThrowException'
args.GetReturnValue().Set(plv8_isolate->ThrowException(String::NewFromUtf8(plv8_isolate, "usage: plv8.elog(elevel, ...)")));
^
plv8_func.cc:320:58: error: 'NewFromUtf8' is not a member of 'v8::String'
args.GetReturnValue().Set(plv8_isolate->ThrowException(String::NewFromUtf8(plv8_isolate, "usage: plv8.elog(elevel, ...)")));
^
plv8_func.cc:324:15: error: 'args' was not declared in this scope
int elevel = args[0]->Int32Value();
^
plv8_func.cc:339:43: error: 'class v8::Isolate' has no member named 'ThrowException'
args.GetReturnValue().Set(plv8_isolate->ThrowException(String::NewFromUtf8(plv8_isolate, "invalid error level")));
^
plv8_func.cc:339:58: error: 'NewFromUtf8' is not a member of 'v8::String'
args.GetReturnValue().Set(plv8_isolate->ThrowException(String::NewFromUtf8(plv8_isolate, "invalid error level")));
^
plv8_func.cc:379:43: error: 'class v8::Isolate' has no member named 'ThrowException'
args.GetReturnValue().Set(plv8_isolate->ThrowException(Exception::Error(message)));
^
plv8_func.cc: At global scope:
plv8_func.cc:469:26: error: 'FunctionCallbackInfo' does not name a type
convertArgsToArray(const FunctionCallbackInfo<v8::Value> &args, int start, int downshift)
^
plv8_func.cc:469:26: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:469:46: error: expected ',' or '...' before '<' token
convertArgsToArray(const FunctionCallbackInfo<v8::Value> &args, int start, int downshift)
^
plv8_func.cc: In function 'v8::Handle<v8::Array> convertArgsToArray(int)':
plv8_func.cc:471:49: error: 'args' was not declared in this scope
Local<Array> result = Array::New(plv8_isolate, args.Length() - start);
^
plv8_func.cc:471:65: error: 'start' was not declared in this scope
Local<Array> result = Array::New(plv8_isolate, args.Length() - start);
^
plv8_func.cc:474:19: error: 'downshift' was not declared in this scope
result->Set(i - downshift, args[i]);
^
plv8_func.cc: At global scope:
plv8_func.cc:483:20: error: 'FunctionCallbackInfo' does not name a type
plv8_Execute(const FunctionCallbackInfo<v8::Value> &args)
^
plv8_func.cc:483:20: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:483:40: error: expected ',' or '...' before '<' token
plv8_Execute(const FunctionCallbackInfo<v8::Value> &args)
^
plv8_func.cc: In function 'void plv8_Execute(int)':
plv8_func.cc:487:6: error: 'args' was not declared in this scope
if (args.Length() < 1) {
^
plv8_func.cc:492:16: error: 'args' was not declared in this scope
CString sql(args[0]);
^
plv8_func.cc: At global scope:
plv8_func.cc:532:20: error: 'FunctionCallbackInfo' does not name a type
plv8_Prepare(const FunctionCallbackInfo<v8::Value> &args)
^
plv8_func.cc:532:20: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:532:40: error: expected ',' or '...' before '<' token
plv8_Prepare(const FunctionCallbackInfo<v8::Value> &args)
^
plv8_func.cc: In function 'void plv8_Prepare(int)':
plv8_func.cc:535:16: error: 'args' was not declared in this scope
CString sql(args[0]);
^
plv8_func.cc:588:68: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Isolate*&)'
Local<FunctionTemplate> base = FunctionTemplate::New(plv8_isolate);
^
plv8_func.cc:588:68: note: candidate is:
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:2259:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::InvocationCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>)
static Local<FunctionTemplate> New(
^
/usr/include/v8.h:2259:34: note: no known conversion for argument 1 from 'v8::Isolate*' to 'v8::InvocationCallback {aka v8::Handle<v8::Value> (*)(const v8::Arguments&)}'
plv8_func.cc:589:22: error: 'NewFromUtf8' is not a member of 'v8::String'
base->SetClassName(String::NewFromUtf8(plv8_isolate, "PreparedPlan", String::kInternalizedString));
^
plv8_func.cc:589:72: error: 'kInternalizedString' is not a member of 'v8::String'
base->SetClassName(String::NewFromUtf8(plv8_isolate, "PreparedPlan", String::kInternalizedString));
^
plv8_func.cc:592:47: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(templ, "cursor", plv8_PlanCursor);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:593:49: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(templ, "execute", plv8_PlanExecute);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:594:43: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(templ, "free", plv8_PlanFree);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:595:16: error: 'class v8::Persistent<v8::ObjectTemplate>' has no member named 'Reset'
PlanTemplate.Reset(plv8_isolate, templ);
^
plv8_type.cc: In function 'v8::Local<v8::Value> ToValue(Datum, bool, plv8_type*)':
plv8_type.cc:448:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
plv8_func.cc:597:85: error: no matching function for call to 'v8::Local<v8::ObjectTemplate>::New(v8::Isolate*&, v8::Persistent<v8::ObjectTemplate>&)'
Local<ObjectTemplate> templ = Local<ObjectTemplate>::New(plv8_isolate, PlanTemplate);
^
plv8_func.cc:597:85: note: candidate is:
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:4212:10: note: static v8::Local<T> v8::Local<T>::New(v8::Handle<T>) [with T = v8::ObjectTemplate]
Local<T> Local<T>::New(Handle<T> that) {
^
/usr/include/v8.h:4212:10: note: candidate expects 1 argument, 2 provided
plv8_func.cc:600:63: error: no matching function for call to 'v8::External::New(v8::Isolate*&, _SPI_plan*&)'
result->SetInternalField(0, External::New(plv8_isolate, saved));
^
plv8_func.cc:600:63: note: candidate is:
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1967:35: note: static v8::Local<v8::External> v8::External::New(void*)
V8EXPORT static Local<External> New(void* value);
^
/usr/include/v8.h:1967:35: note: candidate expects 1 argument, 2 provided
plv8_func.cc:601:66: error: no matching function for call to 'v8::External::New(v8::Isolate*&, plv8_param_state*&)'
result->SetInternalField(1, External::New(plv8_isolate, parstate));
^
plv8_func.cc:601:66: note: candidate is:
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1967:35: note: static v8::Local<v8::External> v8::External::New(void*)
V8EXPORT static Local<External> New(void* value);
^
/usr/include/v8.h:1967:35: note: candidate expects 1 argument, 2 provided
plv8_func.cc: At global scope:
plv8_func.cc:610:23: error: 'FunctionCallbackInfo' does not name a type
plv8_PlanCursor(const FunctionCallbackInfo<v8::Value> &args)
^
plv8_func.cc:610:23: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:610:43: error: expected ',' or '...' before '<' token
plv8_PlanCursor(const FunctionCallbackInfo<v8::Value> &args)
^
plv8_func.cc: In function 'void plv8_PlanCursor(int)':
plv8_func.cc:612:28: error: 'args' was not declared in this scope
Handle<v8::Object> self = args.This();
^
plv8_func.cc:710:68: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Isolate*&)'
Local<FunctionTemplate> base = FunctionTemplate::New(plv8_isolate);
^
plv8_func.cc:710:68: note: candidate is:
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:2259:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::InvocationCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>)
static Local<FunctionTemplate> New(
^
/usr/include/v8.h:2259:34: note: no known conversion for argument 1 from 'v8::Isolate*' to 'v8::InvocationCallback {aka v8::Handle<v8::Value> (*)(const v8::Arguments&)}'
plv8_func.cc:711:22: error: 'NewFromUtf8' is not a member of 'v8::String'
base->SetClassName(String::NewFromUtf8(plv8_isolate, "Cursor", String::kInternalizedString));
^
plv8_func.cc:711:66: error: 'kInternalizedString' is not a member of 'v8::String'
base->SetClassName(String::NewFromUtf8(plv8_isolate, "Cursor", String::kInternalizedString));
^
plv8_func.cc:714:47: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(templ, "fetch", plv8_CursorFetch);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:715:45: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(templ, "move", plv8_CursorMove);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:716:47: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(templ, "close", plv8_CursorClose);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:717:18: error: 'class v8::Persistent<v8::ObjectTemplate>' has no member named 'Reset'
CursorTemplate.Reset(plv8_isolate, templ);
^
plv8_func.cc:719:87: error: no matching function for call to 'v8::Local<v8::ObjectTemplate>::New(v8::Isolate*&, v8::Persistent<v8::ObjectTemplate>&)'
Local<ObjectTemplate> templ = Local<ObjectTemplate>::New(plv8_isolate, CursorTemplate);
^
plv8_func.cc:719:87: note: candidate is:
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:4212:10: note: static v8::Local<T> v8::Local<T>::New(v8::Handle<T>) [with T = v8::ObjectTemplate]
Local<T> Local<T>::New(Handle<T> that) {
^
/usr/include/v8.h:4212:10: note: candidate expects 1 argument, 2 provided
plv8_func.cc: At global scope:
plv8_func.cc:731:24: error: 'FunctionCallbackInfo' does not name a type
plv8_PlanExecute(const FunctionCallbackInfo<v8::Value> &args)
^
plv8_func.cc:731:24: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:731:44: error: expected ',' or '...' before '<' token
plv8_PlanExecute(const FunctionCallbackInfo<v8::Value> &args)
^
plv8_func.cc: In function 'void plv8_PlanExecute(int)':
plv8_func.cc:733:28: error: 'args' was not declared in this scope
Handle<v8::Object> self = args.This();
^
plv8_func.cc: At global scope:
plv8_func.cc:827:21: error: 'FunctionCallbackInfo' does not name a type
plv8_PlanFree(const FunctionCallbackInfo<v8::Value> &args)
^
plv8_func.cc:827:21: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:827:41: error: expected ',' or '...' before '<' token
plv8_PlanFree(const FunctionCallbackInfo<v8::Value> &args)
^
plv8_func.cc: In function 'void plv8_PlanFree(int)':
plv8_func.cc:829:28: error: 'args' was not declared in this scope
Handle<v8::Object> self = args.This();
^
plv8_func.cc:840:57: error: no matching function for call to 'v8::External::New(v8::Isolate*&, int)'
self->SetInternalField(0, External::New(plv8_isolate, 0));
^
plv8_func.cc:840:57: note: candidate is:
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1967:35: note: static v8::Local<v8::External> v8::External::New(void*)
V8EXPORT static Local<External> New(void* value);
^
/usr/include/v8.h:1967:35: note: candidate expects 1 argument, 2 provided
make: *** [plv8_type.o] Error 1
plv8_func.cc:847:57: error: no matching function for call to 'v8::External::New(v8::Isolate*&, int)'
self->SetInternalField(1, External::New(plv8_isolate, 0));
^
plv8_func.cc:847:57: note: candidate is:
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1967:35: note: static v8::Local<v8::External> v8::External::New(void*)
V8EXPORT static Local<External> New(void* value);
^
/usr/include/v8.h:1967:35: note: candidate expects 1 argument, 2 provided
plv8_func.cc:849:59: error: invalid conversion from 'v8::Isolate*' to 'int32_t {aka int}' [-fpermissive]
args.GetReturnValue().Set(Int32::New(plv8_isolate, status));
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 1 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc:849:59: error: invalid conversion from 'int' to 'v8::Isolate*' [-fpermissive]
args.GetReturnValue().Set(Int32::New(plv8_isolate, status));
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 2 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc: At global scope:
plv8_func.cc:856:24: error: 'FunctionCallbackInfo' does not name a type
plv8_CursorFetch(const FunctionCallbackInfo<v8::Value> &args)
^
plv8_func.cc:856:24: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:856:44: error: expected ',' or '...' before '<' token
plv8_CursorFetch(const FunctionCallbackInfo<v8::Value> &args)
^
plv8_func.cc: In function 'void plv8_CursorFetch(int)':
plv8_func.cc:858:28: error: 'args' was not declared in this scope
Handle<v8::Object> self = args.This();
^
plv8_func.cc:902:49: error: invalid conversion from 'v8::Isolate*' to 'int' [-fpermissive]
Handle<Array> array = Array::New(plv8_isolate);
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1762:32: error: initializing argument 1 of 'static v8::Local<v8::Array> v8::Array::New(int)' [-fpermissive]
V8EXPORT static Local<Array> New(int length = 0);
^
plv8_func.cc: At global scope:
plv8_func.cc:919:23: error: 'FunctionCallbackInfo' does not name a type
plv8_CursorMove(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:919:23: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:919:43: error: expected ',' or '...' before '<' token
plv8_CursorMove(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_CursorMove(int)':
plv8_func.cc:921:28: error: 'args' was not declared in this scope
Handle<v8::Object> self = args.This();
^
plv8_func.cc: At global scope:
plv8_func.cc:959:24: error: 'FunctionCallbackInfo' does not name a type
plv8_CursorClose(const FunctionCallbackInfo<v8::Value> &args)
^
plv8_func.cc:959:24: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:959:44: error: expected ',' or '...' before '<' token
plv8_CursorClose(const FunctionCallbackInfo<v8::Value> &args)
^
plv8_func.cc: In function 'void plv8_CursorClose(int)':
plv8_func.cc:961:28: error: 'args' was not declared in this scope
Handle<v8::Object> self = args.This();
^
plv8_func.cc:978:67: error: invalid conversion from 'v8::Isolate*' to 'int32_t {aka int}' [-fpermissive]
args.GetReturnValue().Set(Int32::New(plv8_isolate, cursor ? 1 : 0));
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 1 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc:978:67: error: invalid conversion from 'int' to 'v8::Isolate*' [-fpermissive]
args.GetReturnValue().Set(Int32::New(plv8_isolate, cursor ? 1 : 0));
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 2 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc: At global scope:
plv8_func.cc:985:23: error: 'FunctionCallbackInfo' does not name a type
plv8_ReturnNext(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:985:23: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:985:43: error: expected ',' or '...' before '<' token
plv8_ReturnNext(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_ReturnNext(int)':
plv8_func.cc:987:28: error: 'args' was not declared in this scope
Handle<v8::Object> self = args.This();
^
plv8_func.cc: At global scope:
plv8_func.cc:1009:27: error: 'FunctionCallbackInfo' does not name a type
plv8_Subtransaction(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1009:27: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1009:47: error: expected ',' or '...' before '<' token
plv8_Subtransaction(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_Subtransaction(int)':
plv8_func.cc:1011:6: error: 'args' was not declared in this scope
if (args.Length() < 1) {
^
plv8_func.cc:1015:7: error: 'args' was not declared in this scope
if (!args[0]->IsFunction()) {
^
plv8_func.cc:1019:49: error: 'args' was not declared in this scope
Handle<Function> func = Handle<Function>::Cast(args[0]);
^
plv8_func.cc: At global scope:
plv8_func.cc:1039:25: error: 'FunctionCallbackInfo' does not name a type
plv8_FindFunction(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1039:25: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1039:45: error: expected ',' or '...' before '<' token
plv8_FindFunction(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_FindFunction(int)':
plv8_func.cc:1041:6: error: 'args' was not declared in this scope
if (args.Length() < 1) {
^
plv8_func.cc:1045:23: error: 'args' was not declared in this scope
CString signature(args[0]);
^
plv8_func.cc: At global scope:
plv8_func.cc:1066:28: error: 'FunctionCallbackInfo' does not name a type
plv8_GetWindowObject(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1066:28: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1066:48: error: expected ',' or '...' before '<' token
plv8_GetWindowObject(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_GetWindowObject(int)':
plv8_func.cc:1068:28: error: 'args' was not declared in this scope
Handle<v8::Object> self = args.This();
^
plv8_func.cc:1078:68: error: no matching function for call to 'v8::FunctionTemplate::New(v8::Isolate*&)'
Local<FunctionTemplate> base = FunctionTemplate::New(plv8_isolate);
^
plv8_func.cc:1078:68: note: candidate is:
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:2259:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::InvocationCallback, v8::Handle<v8::Value>, v8::Handle<v8::Signature>)
static Local<FunctionTemplate> New(
^
/usr/include/v8.h:2259:34: note: no known conversion for argument 1 from 'v8::Isolate*' to 'v8::InvocationCallback {aka v8::Handle<v8::Value> (*)(const v8::Arguments&)}'
plv8_func.cc:1079:22: error: 'NewFromUtf8' is not a member of 'v8::String'
base->SetClassName(String::NewFromUtf8(plv8_isolate, "WindowObject", String::kInternalizedString));
^
plv8_func.cc:1079:72: error: 'kInternalizedString' is not a member of 'v8::String'
base->SetClassName(String::NewFromUtf8(plv8_isolate, "WindowObject", String::kInternalizedString));
^
plv8_func.cc:1086:70: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(templ, "get_partition_local", plv8_WinGetPartitionLocal);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:1087:70: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(templ, "set_partition_local", plv8_WinSetPartitionLocal);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:1088:72: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(templ, "get_current_position", plv8_WinGetCurrentPosition);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:1089:77: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(templ, "get_partition_row_count", plv8_WinGetPartitionRowCount);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:1090:66: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(templ, "set_mark_position", plv8_WinSetMarkPosition);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:1091:60: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(templ, "rows_are_peers", plv8_WinRowsArePeers);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:1092:80: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(templ, "get_func_arg_in_partition", plv8_WinGetFuncArgInPartition);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:1093:72: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(templ, "get_func_arg_in_frame", plv8_WinGetFuncArgInFrame);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:1094:71: error: invalid conversion from 'void (*)(int)' to 'int' [-fpermissive]
SetCallback(templ, "get_func_arg_current", plv8_WinGetFuncArgCurrent);
^
plv8_func.cc:93:1: error: initializing argument 3 of 'void SetCallback(v8::Handle<v8::ObjectTemplate>, const char*, int, v8::PropertyAttribute)' [-fpermissive]
SetCallback(Handle<ObjectTemplate> obj, const char *name,
^
plv8_func.cc:1097:14: error: 'NewFromUtf8' is not a member of 'v8::String'
templ->Set(String::NewFromUtf8(plv8_isolate, "SEEK_CURRENT", String::kInternalizedString), Int32::New(plv8_isolate, WINDOW_SEEK_CURRENT));
^
plv8_func.cc:1097:64: error: 'kInternalizedString' is not a member of 'v8::String'
templ->Set(String::NewFromUtf8(plv8_isolate, "SEEK_CURRENT", String::kInternalizedString), Int32::New(plv8_isolate, WINDOW_SEEK_CURRENT));
^
plv8_func.cc:1097:138: error: invalid conversion from 'v8::Isolate*' to 'int32_t {aka int}' [-fpermissive]
templ->Set(String::NewFromUtf8(plv8_isolate, "SEEK_CURRENT", String::kInternalizedString), Int32::New(plv8_isolate, WINDOW_SEEK_CURRENT));
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 1 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc:1098:14: error: 'NewFromUtf8' is not a member of 'v8::String'
templ->Set(String::NewFromUtf8(plv8_isolate, "SEEK_HEAD", String::kInternalizedString), Int32::New(plv8_isolate, WINDOW_SEEK_HEAD));
^
plv8_func.cc:1098:61: error: 'kInternalizedString' is not a member of 'v8::String'
templ->Set(String::NewFromUtf8(plv8_isolate, "SEEK_HEAD", String::kInternalizedString), Int32::New(plv8_isolate, WINDOW_SEEK_HEAD));
^
plv8_func.cc:1098:132: error: invalid conversion from 'v8::Isolate*' to 'int32_t {aka int}' [-fpermissive]
templ->Set(String::NewFromUtf8(plv8_isolate, "SEEK_HEAD", String::kInternalizedString), Int32::New(plv8_isolate, WINDOW_SEEK_HEAD));
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 1 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc:1098:132: error: invalid conversion from 'int' to 'v8::Isolate*' [-fpermissive]
templ->Set(String::NewFromUtf8(plv8_isolate, "SEEK_HEAD", String::kInternalizedString), Int32::New(plv8_isolate, WINDOW_SEEK_HEAD));
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 2 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc:1099:14: error: 'NewFromUtf8' is not a member of 'v8::String'
templ->Set(String::NewFromUtf8(plv8_isolate, "SEEK_TAIL", String::kInternalizedString), Int32::New(plv8_isolate, WINDOW_SEEK_TAIL));
^
plv8_func.cc:1099:61: error: 'kInternalizedString' is not a member of 'v8::String'
templ->Set(String::NewFromUtf8(plv8_isolate, "SEEK_TAIL", String::kInternalizedString), Int32::New(plv8_isolate, WINDOW_SEEK_TAIL));
^
plv8_func.cc:1099:132: error: invalid conversion from 'v8::Isolate*' to 'int32_t {aka int}' [-fpermissive]
templ->Set(String::NewFromUtf8(plv8_isolate, "SEEK_TAIL", String::kInternalizedString), Int32::New(plv8_isolate, WINDOW_SEEK_TAIL));
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 1 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc:1099:132: error: invalid conversion from 'int' to 'v8::Isolate*' [-fpermissive]
templ->Set(String::NewFromUtf8(plv8_isolate, "SEEK_TAIL", String::kInternalizedString), Int32::New(plv8_isolate, WINDOW_SEEK_TAIL));
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 2 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc:1101:24: error: 'class v8::Persistent<v8::ObjectTemplate>' has no member named 'Reset'
WindowObjectTemplate.Reset(plv8_isolate, templ);
^
plv8_func.cc:1103:93: error: no matching function for call to 'v8::Local<v8::ObjectTemplate>::New(v8::Isolate*&, v8::Persistent<v8::ObjectTemplate>&)'
Local<ObjectTemplate> templ = Local<ObjectTemplate>::New(plv8_isolate, WindowObjectTemplate);
^
plv8_func.cc:1103:93: note: candidate is:
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:4212:10: note: static v8::Local<T> v8::Local<T>::New(v8::Handle<T>) [with T = v8::ObjectTemplate]
Local<T> Local<T>::New(Handle<T> that) {
^
/usr/include/v8.h:4212:10: note: candidate expects 1 argument, 2 provided
plv8_func.cc: At global scope:
plv8_func.cc:1115:27: error: 'FunctionCallbackInfo' does not name a type
plv8_MyWindowObject(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1115:27: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1115:47: error: expected ',' or '...' before '<' token
plv8_MyWindowObject(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'WindowObjectData* plv8_MyWindowObject(int)':
plv8_func.cc:1117:28: error: 'args' was not declared in this scope
Handle<v8::Object> self = args.This();
^
plv8_func.cc: At global scope:
plv8_func.cc:1138:22: error: 'FunctionCallbackInfo' does not name a type
plv8_MyArgType(const FunctionCallbackInfo<v8::Value>& args, int argno)
^
plv8_func.cc:1138:22: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1138:42: error: expected ',' or '...' before '<' token
plv8_MyArgType(const FunctionCallbackInfo<v8::Value>& args, int argno)
^
plv8_func.cc: In function 'plv8_type* plv8_MyArgType(int)':
plv8_func.cc:1140:28: error: 'args' was not declared in this scope
Handle<v8::Object> self = args.This();
^
plv8_func.cc:1148:31: error: 'argno' was not declared in this scope
return get_plv8_type(fcinfo, argno);
^
plv8_func.cc: At global scope:
plv8_func.cc:1157:33: error: 'FunctionCallbackInfo' does not name a type
plv8_WinGetPartitionLocal(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1157:33: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1157:53: error: expected ',' or '...' before '<' token
plv8_WinGetPartitionLocal(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_WinGetPartitionLocal(int)':
plv8_func.cc:1159:44: error: 'args' was not declared in this scope
WindowObject winobj = plv8_MyWindowObject(args);
^
plv8_func.cc: At global scope:
plv8_func.cc:1205:33: error: 'FunctionCallbackInfo' does not name a type
plv8_WinSetPartitionLocal(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1205:33: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1205:53: error: expected ',' or '...' before '<' token
plv8_WinSetPartitionLocal(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_WinSetPartitionLocal(int)':
plv8_func.cc:1207:44: error: 'args' was not declared in this scope
WindowObject winobj = plv8_MyWindowObject(args);
^
plv8_func.cc: At global scope:
plv8_func.cc:1250:34: error: 'FunctionCallbackInfo' does not name a type
plv8_WinGetCurrentPosition(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1250:34: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1250:54: error: expected ',' or '...' before '<' token
plv8_WinGetCurrentPosition(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_WinGetCurrentPosition(int)':
plv8_func.cc:1252:44: error: 'args' was not declared in this scope
WindowObject winobj = plv8_MyWindowObject(args);
^
plv8_func.cc:1265:58: error: invalid conversion from 'v8::Isolate*' to 'int32_t {aka int}' [-fpermissive]
args.GetReturnValue().Set(Integer::New(plv8_isolate, pos));
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 1 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc:1265:58: error: invalid conversion from 'int64 {aka long int}' to 'v8::Isolate*' [-fpermissive]
args.GetReturnValue().Set(Integer::New(plv8_isolate, pos));
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 2 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc: At global scope:
plv8_func.cc:1272:36: error: 'FunctionCallbackInfo' does not name a type
plv8_WinGetPartitionRowCount(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1272:36: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1272:56: error: expected ',' or '...' before '<' token
plv8_WinGetPartitionRowCount(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_WinGetPartitionRowCount(int)':
plv8_func.cc:1274:44: error: 'args' was not declared in this scope
WindowObject winobj = plv8_MyWindowObject(args);
^
plv8_func.cc:1287:58: error: invalid conversion from 'v8::Isolate*' to 'int32_t {aka int}' [-fpermissive]
args.GetReturnValue().Set(Integer::New(plv8_isolate, pos));
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 1 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc:1287:58: error: invalid conversion from 'int64 {aka long int}' to 'v8::Isolate*' [-fpermissive]
args.GetReturnValue().Set(Integer::New(plv8_isolate, pos));
^
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:1396:34: error: initializing argument 2 of 'static v8::Local<v8::Integer> v8::Integer::New(int32_t, v8::Isolate*)' [-fpermissive]
V8EXPORT static Local<Integer> New(int32_t value, Isolate*);
^
plv8_func.cc: At global scope:
plv8_func.cc:1294:31: error: 'FunctionCallbackInfo' does not name a type
plv8_WinSetMarkPosition(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1294:31: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1294:51: error: expected ',' or '...' before '<' token
plv8_WinSetMarkPosition(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_WinSetMarkPosition(int)':
plv8_func.cc:1296:44: error: 'args' was not declared in this scope
WindowObject winobj = plv8_MyWindowObject(args);
^
plv8_func.cc: At global scope:
plv8_func.cc:1320:28: error: 'FunctionCallbackInfo' does not name a type
plv8_WinRowsArePeers(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1320:28: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1320:48: error: expected ',' or '...' before '<' token
plv8_WinRowsArePeers(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_WinRowsArePeers(int)':
plv8_func.cc:1322:44: error: 'args' was not declared in this scope
WindowObject winobj = plv8_MyWindowObject(args);
^
plv8_func.cc:1341:58: error: no matching function for call to 'v8::Boolean::New(v8::Isolate*&, bool&)'
args.GetReturnValue().Set(Boolean::New(plv8_isolate, res));
^
plv8_func.cc:1341:58: note: candidate is:
In file included from plv8.h:12:0,
from plv8_func.cc:8:
/usr/include/v8.h:4364:17: note: static v8::Handle<v8::Boolean> v8::Boolean::New(bool)
Handle<Boolean> Boolean::New(bool value) {
^
/usr/include/v8.h:4364:17: note: candidate expects 1 argument, 2 provided
plv8_func.cc: At global scope:
plv8_func.cc:1348:37: error: 'FunctionCallbackInfo' does not name a type
plv8_WinGetFuncArgInPartition(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1348:37: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1348:57: error: expected ',' or '...' before '<' token
plv8_WinGetFuncArgInPartition(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_WinGetFuncArgInPartition(int)':
plv8_func.cc:1350:44: error: 'args' was not declared in this scope
WindowObject winobj = plv8_MyWindowObject(args);
^
plv8_func.cc: At global scope:
plv8_func.cc:1392:33: error: 'FunctionCallbackInfo' does not name a type
plv8_WinGetFuncArgInFrame(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1392:33: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1392:53: error: expected ',' or '...' before '<' token
plv8_WinGetFuncArgInFrame(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_WinGetFuncArgInFrame(int)':
plv8_func.cc:1394:44: error: 'args' was not declared in this scope
WindowObject winobj = plv8_MyWindowObject(args);
^
plv8_func.cc: At global scope:
plv8_func.cc:1436:33: error: 'FunctionCallbackInfo' does not name a type
plv8_WinGetFuncArgCurrent(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1436:33: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1436:53: error: expected ',' or '...' before '<' token
plv8_WinGetFuncArgCurrent(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_WinGetFuncArgCurrent(int)':
plv8_func.cc:1438:44: error: 'args' was not declared in this scope
WindowObject winobj = plv8_MyWindowObject(args);
^
plv8_func.cc: At global scope:
plv8_func.cc:1468:25: error: 'FunctionCallbackInfo' does not name a type
plv8_QuoteLiteral(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1468:25: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1468:45: error: expected ',' or '...' before '<' token
plv8_QuoteLiteral(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_QuoteLiteral(int)':
plv8_func.cc:1470:6: error: 'args' was not declared in this scope
if (args.Length() < 1) {
^
plv8_func.cc:1474:18: error: 'args' was not declared in this scope
CString instr(args[0]);
^
plv8_func.cc: At global scope:
plv8_func.cc:1494:26: error: 'FunctionCallbackInfo' does not name a type
plv8_QuoteNullable(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1494:26: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1494:46: error: expected ',' or '...' before '<' token
plv8_QuoteNullable(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_QuoteNullable(int)':
plv8_func.cc:1496:6: error: 'args' was not declared in this scope
if (args.Length() < 1) {
^
plv8_func.cc:1500:18: error: 'args' was not declared in this scope
CString instr(args[0]);
^
plv8_func.cc: At global scope:
plv8_func.cc:1525:23: error: 'FunctionCallbackInfo' does not name a type
plv8_QuoteIdent(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc:1525:23: error: ISO C++ forbids declaration of 'parameter' with no type [-fpermissive]
plv8_func.cc:1525:43: error: expected ',' or '...' before '<' token
plv8_QuoteIdent(const FunctionCallbackInfo<v8::Value>& args)
^
plv8_func.cc: In function 'void plv8_QuoteIdent(int)':
plv8_func.cc:1527:6: error: 'args' was not declared in this scope
if (args.Length() < 1) {
^
plv8_func.cc:1531:18: error: 'args' was not declared in this scope
CString instr(args[0]);
^
make: *** [plv8_func.o] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.e6zREF (%build)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment