/bin/sh ../../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/snappy/snappy-1.0.4 -Wall -Winline -D_XOPEN_SOURCE -I/usr/include/v8 -I/opt/local/include -I/usr/local/include/v8 -I/opt/local/include/v8 -L/usr/local/lib -L/opt/local/lib -I/usr/lib64/erlang/usr/include/ -DXP_UNIX -I/var/tmp/couchbase-server-2.1-build/opt/couchbase/include -g -O2 -MT mapreduce_nif_la-mapreduce.lo -MD -MP -MF .deps/mapreduce_nif_la-mapreduce.Tpo -c -o mapreduce_nif_la-mapreduce.lo `test -f 'mapreduce.cc' || echo './'`mapreduce.cc libtool: compile: g++ -DHAVE_CONFIG_H -I. -I../.. -I../../src/snappy/snappy-1.0.4 -Wall -Winline -D_XOPEN_SOURCE -I/usr/include/v8 -I/opt/local/include -I/usr/local/include/v8 -I/opt/local/include/v8 -L/usr/local/lib -L/opt/local/lib -I/usr/lib64/erlang/usr/include/ -DXP_UNIX -I/var/tmp/couchbase-server-2.1-build/opt/couchbase/include -g -O2 -MT mapreduce_nif_la-mapreduce.lo -MD -MP -MF .deps/mapreduce_nif_la-mapreduce.Tpo -c mapreduce.cc -fPIC -DPIC -o .libs/mapreduce_nif_la-mapreduce.o mapreduce.cc: In function ‘void initContext(map_reduce_ctx_t*, const function_sources_list_t&)’: mapreduce.cc:123: error: no matching function for call to ‘v8::Context::Scope::Scope(v8::Persistent&)’ /usr/include/v8.h:5042: note: candidates are: v8::Context::Scope::Scope(v8::Isolate*, v8::Persistent&) /usr/include/v8.h:5038: note: v8::Context::Scope::Scope(v8::Handle) /usr/include/v8.h:5036: note: v8::Context::Scope::Scope(const v8::Context::Scope&) /usr/include/v8.h: In function ‘void doInitContext(map_reduce_ctx_t*, const function_sources_list_t&)’: /usr/include/v8.h:753: error: ‘v8::Persistent& v8::Persistent::operator=(const v8::Persistent&) [with T = v8::Context]’ is private mapreduce.cc:140: error: within this context mapreduce.cc:141: error: no matching function for call to ‘v8::Context::Scope::Scope(v8::Persistent&)’ /usr/include/v8.h:5042: note: candidates are: v8::Context::Scope::Scope(v8::Isolate*, v8::Persistent&) /usr/include/v8.h:5038: note: v8::Context::Scope::Scope(v8::Handle) /usr/include/v8.h:5036: note: v8::Context::Scope::Scope(const v8::Context::Scope&) /usr/include/v8.h:771: error: ‘T* v8::Persistent::operator->() const [with T = v8::Context]’ is private mapreduce.cc:143: error: within this context mapreduce.cc:151: error: no matching function for call to ‘v8::Persistent::New(v8::Handle&)’ /usr/include/v8.h:5580: note: candidates are: static T* v8::Persistent::New(v8::Isolate*, T*) [with T = v8::Object] mapreduce.cc:152: error: no matching function for call to ‘v8::Persistent::New(v8::Handle&)’ /usr/include/v8.h:5580: note: candidates are: static T* v8::Persistent::New(v8::Isolate*, T*) [with T = v8::Function] mapreduce.cc:153: error: no matching function for call to ‘v8::Persistent::New(v8::Handle&)’ /usr/include/v8.h:5580: note: candidates are: static T* v8::Persistent::New(v8::Isolate*, T*) [with T = v8::Function] mapreduce.cc: In function ‘map_results_list_t mapDoc(map_reduce_ctx_t*, const ErlNifBinary&, const ErlNifBinary&)’: mapreduce.cc:168: error: no matching function for call to ‘v8::Context::Scope::Scope(v8::Persistent&)’ /usr/include/v8.h:5042: note: candidates are: v8::Context::Scope::Scope(v8::Isolate*, v8::Persistent&) /usr/include/v8.h:5038: note: v8::Context::Scope::Scope(v8::Handle) /usr/include/v8.h:5036: note: v8::Context::Scope::Scope(const v8::Context::Scope&) mapreduce.cc:183: error: conversion from ‘v8::Persistent’ to non-scalar type ‘v8::Handle’ requested mapreduce.cc: In function ‘json_results_list_t runReduce(map_reduce_ctx_t*, const json_results_list_t&, const json_results_list_t&)’: mapreduce.cc:239: error: no matching function for call to ‘v8::Context::Scope::Scope(v8::Persistent&)’ /usr/include/v8.h:5042: note: candidates are: v8::Context::Scope::Scope(v8::Isolate*, v8::Persistent&) /usr/include/v8.h:5038: note: v8::Context::Scope::Scope(v8::Handle) /usr/include/v8.h:5036: note: v8::Context::Scope::Scope(const v8::Context::Scope&) mapreduce.cc:249: error: conversion from ‘v8::Persistent’ to non-scalar type ‘v8::Handle’ requested mapreduce.cc: In function ‘ErlNifBinary runReduce(map_reduce_ctx_t*, int, const json_results_list_t&, const json_results_list_t&)’: mapreduce.cc:286: error: no matching function for call to ‘v8::Context::Scope::Scope(v8::Persistent&)’ /usr/include/v8.h:5042: note: candidates are: v8::Context::Scope::Scope(v8::Isolate*, v8::Persistent&) /usr/include/v8.h:5038: note: v8::Context::Scope::Scope(v8::Handle) /usr/include/v8.h:5036: note: v8::Context::Scope::Scope(const v8::Context::Scope&) mapreduce.cc:294: error: conversion from ‘v8::Persistent’ to non-scalar type ‘v8::Handle’ requested mapreduce.cc: In function ‘ErlNifBinary runRereduce(map_reduce_ctx_t*, int, const json_results_list_t&)’: mapreduce.cc:325: error: no matching function for call to ‘v8::Context::Scope::Scope(v8::Persistent&)’ /usr/include/v8.h:5042: note: candidates are: v8::Context::Scope::Scope(v8::Isolate*, v8::Persistent&) /usr/include/v8.h:5038: note: v8::Context::Scope::Scope(v8::Handle) /usr/include/v8.h:5036: note: v8::Context::Scope::Scope(const v8::Context::Scope&) mapreduce.cc:333: error: conversion from ‘v8::Persistent’ to non-scalar type ‘v8::Handle’ requested mapreduce.cc: In function ‘void destroyContext(map_reduce_ctx_t*)’: mapreduce.cc:362: error: no matching function for call to ‘v8::Context::Scope::Scope(v8::Persistent&)’ /usr/include/v8.h:5042: note: candidates are: v8::Context::Scope::Scope(v8::Isolate*, v8::Persistent&) /usr/include/v8.h:5038: note: v8::Context::Scope::Scope(v8::Handle) /usr/include/v8.h:5036: note: v8::Context::Scope::Scope(const v8::Context::Scope&) mapreduce.cc: In function ‘v8::Persistent createJsContext(map_reduce_ctx_t*)’: mapreduce.cc:392: warning: ‘static v8::Local v8::FunctionTemplate::New(v8::Handle (*)(const v8::Arguments&), v8::Handle, v8::Handle, int)’ is deprecated (declared at /usr/include/v8.h:3263) mapreduce.cc:394: warning: ‘static v8::Persistent v8::Context::New(v8::ExtensionConfiguration*, v8::Handle, v8::Handle)’ is deprecated (declared at /usr/include/v8.h:4921) /usr/include/v8.h:751: error: ‘v8::Persistent::Persistent(const v8::Persistent&) [with T = v8::Context]’ is private mapreduce.cc:394: error: within this context mapreduce.cc:395: error: no matching function for call to ‘v8::Context::Scope::Scope(v8::Persistent&)’ /usr/include/v8.h:5042: note: candidates are: v8::Context::Scope::Scope(v8::Isolate*, v8::Persistent&) /usr/include/v8.h:5038: note: v8::Context::Scope::Scope(v8::Handle) /usr/include/v8.h:5036: note: v8::Context::Scope::Scope(const v8::Context::Scope&) /usr/include/v8.h:771: error: ‘T* v8::Persistent::operator->() const [with T = v8::Context]’ is private mapreduce.cc:398: error: within this context /usr/include/v8.h:771: error: ‘T* v8::Persistent::operator->() const [with T = v8::Context]’ is private mapreduce.cc:401: error: within this context /usr/include/v8.h:771: error: ‘T* v8::Persistent::operator->() const [with T = v8::Context]’ is private mapreduce.cc:404: error: within this context /usr/include/v8.h:751: error: ‘v8::Persistent::Persistent(const v8::Persistent&) [with T = v8::Context]’ is private mapreduce.cc:406: error: within this context /usr/include/v8.h: In function ‘ErlNifBinary jsonStringify(const v8::Handle&)’: /usr/include/v8.h:771: error: ‘T* v8::Persistent::operator->() const [with T = v8::Function]’ is private mapreduce.cc:437: error: within this context mapreduce.cc:437: error: no matching function for call to ‘v8::Function::Call(v8::Persistent&, int, v8::Handle [1])’ /usr/include/v8.h:2336: note: candidates are: v8::Local v8::Function::Call(v8::Handle, int, v8::Handle*) /usr/include/v8.h: In function ‘v8::Handle jsonParse(const ErlNifBinary&)’: /usr/include/v8.h:771: error: ‘T* v8::Persistent::operator->() const [with T = v8::Function]’ is private mapreduce.cc:472: error: within this context mapreduce.cc:472: error: no matching function for call to ‘v8::Function::Call(v8::Persistent&, int, v8::Handle [1])’ /usr/include/v8.h:2336: note: candidates are: v8::Local v8::Function::Call(v8::Handle, int, v8::Handle*) mapreduce.cc: In function ‘void loadFunctions(map_reduce_ctx_t*, const function_sources_list_t&)’: mapreduce.cc:498: error: no matching function for call to ‘v8::Persistent::New(v8::Handle&)’ /usr/include/v8.h:5580: note: candidates are: static T* v8::Persistent::New(v8::Isolate*, T*) [with T = v8::Function] make[3]: *** [mapreduce_nif_la-mapreduce.lo] Error 1 make[3]: Leaving directory `/usr/src/packages/BUILD/couchbase-server-2.1/couchdb/src/mapreduce' make[2]: *** [install-recursive] Error 1 make[2]: Leaving directory `/usr/src/packages/BUILD/couchbase-server-2.1/couchdb/src' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/usr/src/packages/BUILD/couchbase-server-2.1/couchdb' make: *** [make-install-couchdb] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.43749 (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.43749 (%build) real 5m12.912s user 2m54.399s sys 0m43.371s