[Pkg-javascript-devel] Bug#798439: node-iconv: FTBFS: src/binding.cc:57:21: error: 'WeakCallback' has not been declared

Chris Lamb lamby at debian.org
Wed Sep 9 10:44:56 UTC 2015


Source: node-iconv
Version: 2.1.8-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

node-iconv fails to build from source in unstable/amd64:

  [..]

     debian/rules override_dh_auto_build
  make[1]: Entering directory '/tmp/buildd/node-iconv-2.1.8'
  node-gyp build
  gyp info it worked if it ends with ok
  gyp info using node-gyp at 0.12.2
  gyp info using node at 0.10.38 | linux | x64
  gyp info spawn make
  gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
  make[2]: Entering directory '/tmp/buildd/node-iconv-2.1.8/build'
    CXX(target) Release/obj.target/iconv/src/binding.o
  ../src/binding.cc:57:21: error: 'WeakCallback' has not been declared
     NAN_WEAK_CALLBACK(WeakCallback)
                       ^
  ../src/binding.cc:57:33: error: ISO C++ forbids declaration of
  'NAN_WEAK_CALLBACK' with no type [-fpermissive]
     NAN_WEAK_CALLBACK(WeakCallback)
                                   ^
  ../src/binding.cc: In member function 'int
  {anonymous}::Iconv::NAN_WEAK_CALLBACK(int)':
  ../src/binding.cc:59:12: error: 'data' was not declared in this scope
       delete data.GetParameter();
              ^
  ../src/binding.cc:60:3: warning: no return statement in function
  returning non-void [-Wreturn-type]
     }
     ^
  ../src/binding.cc: In static member function 'static void
  {anonymous}::Iconv::Initialize(v8::Handle<v8::Object>)':
  ../src/binding.cc:66:14: error: 'NanScope' was not declared in this
  scope
       NanScope();
                ^
  ../src/binding.cc:69:43: error: 'NanAssignPersistent' was not declared
  in this scope
       NanAssignPersistent(object_template, t);
                                             ^
  ../src/binding.cc:70:14: error: 'NanNew' was not declared in this
  scope
       obj->Set(NanNew<String>("make"),
                ^
  ../src/binding.cc:70:27: error: expected primary-expression before '>'
  token
       obj->Set(NanNew<String>("make"),
                             ^
  ../src/binding.cc:71:37: error: expected primary-expression before '>'
  token
                NanNew<FunctionTemplate>(Make)->GetFunction());
                                       ^
  ../src/binding.cc:71:46: error: request for member 'GetFunction' in
  '{anonymous}::Iconv::Make', which is of non-class type
  'Nan::NAN_METHOD_RETURN_TYPE(Nan::NAN_METHOD_ARGS_TYPE) {aka
  void(const Nan::FunctionCallbackInfo<v8::Value>&)}'
                NanNew<FunctionTemplate>(Make)->GetFunction());
                                                ^
  ../src/binding.cc:72:27: error: expected primary-expression before '>'
  token
       obj->Set(NanNew<String>("convert"),
                             ^
  ../src/binding.cc:73:37: error: expected primary-expression before '>'
  token
                NanNew<FunctionTemplate>(Convert)->GetFunction());
                                       ^
  ../src/binding.cc:73:49: error: request for member 'GetFunction' in
  '{anonymous}::Iconv::Convert', which is of non-class type
  'Nan::NAN_METHOD_RETURN_TYPE(Nan::NAN_METHOD_ARGS_TYPE) {aka
  void(const Nan::FunctionCallbackInfo<v8::Value>&)}'
                NanNew<FunctionTemplate>(Convert)->GetFunction());
                                                   ^
  ../src/binding.cc:74:49: error: expected primary-expression before '>'
  token
   #define EXPORT_ERRNO(err) obj->Set(NanNew<String>(#err),
   NanNew<Integer>(err))
                                                   ^
  ../src/binding.cc:75:5: note: in expansion of macro 'EXPORT_ERRNO'
       EXPORT_ERRNO(EINVAL);
       ^
  ../src/binding.cc:74:72: error: expected primary-expression before '>'
  token
   #define EXPORT_ERRNO(err) obj->Set(NanNew<String>(#err),
   NanNew<Integer>(err))
                                                                          ^
  ../src/binding.cc:75:5: note: in expansion of macro 'EXPORT_ERRNO'
       EXPORT_ERRNO(EINVAL);
       ^
  ../src/binding.cc:74:49: error: expected primary-expression before '>'
  token
   #define EXPORT_ERRNO(err) obj->Set(NanNew<String>(#err),
   NanNew<Integer>(err))
                                                   ^
  ../src/binding.cc:76:5: note: in expansion of macro 'EXPORT_ERRNO'
       EXPORT_ERRNO(EILSEQ);
       ^
  ../src/binding.cc:74:72: error: expected primary-expression before '>'
  token
   #define EXPORT_ERRNO(err) obj->Set(NanNew<String>(#err),
   NanNew<Integer>(err))
                                                                          ^
  ../src/binding.cc:76:5: note: in expansion of macro 'EXPORT_ERRNO'
       EXPORT_ERRNO(EILSEQ);
       ^
  ../src/binding.cc:74:49: error: expected primary-expression before '>'
  token
   #define EXPORT_ERRNO(err) obj->Set(NanNew<String>(#err),
   NanNew<Integer>(err))
                                                   ^
  ../src/binding.cc:77:5: note: in expansion of macro 'EXPORT_ERRNO'
       EXPORT_ERRNO(E2BIG);
       ^
  ../src/binding.cc:74:72: error: expected primary-expression before '>'
  token
   #define EXPORT_ERRNO(err) obj->Set(NanNew<String>(#err),
   NanNew<Integer>(err))
                                                                          ^
  ../src/binding.cc:77:5: note: in expansion of macro 'EXPORT_ERRNO'
       EXPORT_ERRNO(E2BIG);
       ^
  ../src/binding.cc: In static member function 'static
  Nan::NAN_METHOD_RETURN_TYPE
  {anonymous}::Iconv::Make(Nan::NAN_METHOD_ARGS_TYPE)':
  ../src/binding.cc:83:14: error: 'NanScope' was not declared in this
  scope
       NanScope();
                ^
  ../src/binding.cc:84:37: error: 'args' was not declared in this scope
       String::Utf8Value from_encoding(args[0]);
                                       ^
  ../src/binding.cc:87:62: error: 'NanReturnNull' was not declared in
  this scope
       if (conv == reinterpret_cast<iconv_t>(-1)) NanReturnNull();
                                                                ^
  ../src/binding.cc:89:25: error: 'NanNew' was not declared in this
  scope
       Local<Object> obj =
       NanNew<ObjectTemplate>(object_template)->NewInstance();
                           ^
  ../src/binding.cc:89:46: error: expected primary-expression before '>'
  token
       Local<Object> obj =
       NanNew<ObjectTemplate>(object_template)->NewInstance();
                                                ^
  ../src/binding.cc:90:42: error: 'NanSetInternalFieldPointer' was not
  declared in this scope
       NanSetInternalFieldPointer(obj, 0, iv);
                                            ^
  ../src/binding.cc:91:37: error: 'WeakCallback' was not declared in
  this scope
       NanMakeWeakPersistent(obj, iv, &WeakCallback);
                                       ^
  ../src/binding.cc:91:49: error: 'NanMakeWeakPersistent' was not
  declared in this scope
       NanMakeWeakPersistent(obj, iv, &WeakCallback);
                                                   ^
  ../src/binding.cc:92:23: error: 'NanReturnValue' was not declared in
  this scope
       NanReturnValue(obj);
                         ^
  ../src/binding.cc: In static member function 'static
  Nan::NAN_METHOD_RETURN_TYPE
  {anonymous}::Iconv::Convert(Nan::NAN_METHOD_ARGS_TYPE)':
  ../src/binding.cc:97:14: error: 'NanScope' was not declared in this
  scope
       NanScope();
                ^
  ../src/binding.cc:99:36: error: 'args' was not declared in this scope
           NanGetInternalFieldPointer(args[0].As<Object>(), 0));
                                      ^
  ../src/binding.cc:99:53: error: expected primary-expression before '>'
  token
           NanGetInternalFieldPointer(args[0].As<Object>(), 0));
                                                       ^
  ../src/binding.cc:99:55: error: expected primary-expression before ')'
  token
           NanGetInternalFieldPointer(args[0].As<Object>(), 0));
                                                         ^
  ../src/binding.cc:99:59: error: 'NanGetInternalFieldPointer' was not
  declared in this scope
           NanGetInternalFieldPointer(args[0].As<Object>(), 0));
                                                             ^
  ../src/binding.cc:101:26: error: expected primary-expression before
  '>' token
           args[1].As<Object>()->GetIndexedPropertiesExternalArrayData());
                            ^
  ../src/binding.cc:101:28: error: expected primary-expression before
  ')' token
           args[1].As<Object>()->GetIndexedPropertiesExternalArrayData());
                              ^
  ../src/binding.cc:105:26: error: expected primary-expression before
  '>' token
           args[4].As<Object>()->GetIndexedPropertiesExternalArrayData());
                            ^
  ../src/binding.cc:105:28: error: expected primary-expression before
  ')' token
           args[4].As<Object>()->GetIndexedPropertiesExternalArrayData());
                              ^
  ../src/binding.cc:108:39: error: expected primary-expression before
  '>' token
       Local<Array> rc = args[7].As<Array>();
                                         ^
  ../src/binding.cc:108:41: error: expected primary-expression before
  ')' token
       Local<Array> rc = args[7].As<Array>();
                                           ^
  ../src/binding.cc:124:16: error: 'NanNew' was not declared in this
  scope
       rc->Set(0,
       NanNew<Integer>(static_cast<uint32_t>(input_consumed)));
                  ^
  ../src/binding.cc:124:30: error: expected primary-expression before
  '>' token
       rc->Set(0,
       NanNew<Integer>(static_cast<uint32_t>(input_consumed)));
                                ^
  ../src/binding.cc:125:30: error: expected primary-expression before
  '>' token
       rc->Set(1,
       NanNew<Integer>(static_cast<uint32_t>(output_consumed)));
                                ^
  ../src/binding.cc:126:34: error: expected primary-expression before
  '>' token
       NanReturnValue(NanNew<Integer>(errorno));
                                    ^
  ../src/binding.cc:126:44: error: 'NanReturnValue' was not declared in
  this scope
       NanReturnValue(NanNew<Integer>(errorno));
                                              ^
  iconv.target.mk:94: recipe for target
  'Release/obj.target/iconv/src/binding.o' failed
  make[2]: *** [Release/obj.target/iconv/src/binding.o] Error 1
  make[2]: Leaving directory '/tmp/buildd/node-iconv-2.1.8/build'
  gyp ERR! build error 
  gyp ERR! stack Error: `make` failed with exit code: 2
  gyp ERR! stack     at ChildProcess.onExit
  (/usr/share/node-gyp/lib/build.js:267:23)
  gyp ERR! stack     at ChildProcess.emit (events.js:98:17)
  gyp ERR! stack     at Process.ChildProcess._handle.onexit
  (child_process.js:820:12)
  gyp ERR! System Linux 3.16.0-4-amd64
  gyp ERR! command "nodejs" "/usr/bin/node-gyp" "build"
  gyp ERR! cwd /tmp/buildd/node-iconv-2.1.8
  gyp ERR! node -v v0.10.38
  gyp ERR! node-gyp -v v0.12.2
  gyp ERR! not ok 
  debian/rules:19: recipe for target 'override_dh_auto_build' failed
  make[1]: *** [override_dh_auto_build] Error 1
  make[1]: Leaving directory '/tmp/buildd/node-iconv-2.1.8'
  debian/rules:8: recipe for target 'build' failed
  make: *** [build] Error 2
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

  [..]

The full build log is attached or can be viewed here:

    https://reproducible.debian.net/logs/unstable/amd64/node-iconv_2.1.8-1.build1.log.gz


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: node-iconv.2.1.8-1.unstable.amd64.log.txt
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20150909/0d276352/attachment-0001.txt>


More information about the Pkg-javascript-devel mailing list