node-taglib icon indicating copy to clipboard operation
node-taglib copied to clipboard

compilation error - invalid conversion from ‘void (*)(uv_work_t*) ...

Open andrewrk opened this issue 12 years ago • 3 comments

$ npm install taglib
npm http GET https://registry.npmjs.org/taglib
npm http 304 https://registry.npmjs.org/taglib
npm http GET https://registry.npmjs.org/bindings/1.0.0
npm http 304 https://registry.npmjs.org/bindings/1.0.0

> [email protected] install /home/andy/tmp/npmtest/node_modules/taglib
> node-gyp rebuild

make: Entering directory `/home/andy/tmp/npmtest/node_modules/taglib/build'
  CXX(target) Release/obj.target/taglib/src/bufferstream.o
In file included from ../src/bufferstream.cc:5:0:
../src/taglib.h:26:22: warning: ‘TagLib::File* node_taglib::createFile(TagLib::IOStream*, TagLib::String)’ declared ‘static’ but never defined [-Wunused-function]
  CXX(target) Release/obj.target/taglib/src/tag.o
../src/tag.cc: In static member function ‘static v8::Handle<v8::Value> node_taglib::Tag::SyncTag(const v8::Arguments&)’:
../src/tag.cc:163:49: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
../src/tag.cc:172:124: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
../src/tag.cc: In static member function ‘static v8::Handle<v8::Value> node_taglib::Tag::AsyncTag(const v8::Arguments&)’:
../src/tag.cc:228:98: error: invalid conversion from ‘void (*)(uv_work_t*) {aka void (*)(uv_work_s*)}’ to ‘uv_after_work_cb {aka void (*)(uv_work_s*, int)}’ [-fpermissive]
In file included from /home/andy/.node-gyp/0.10.17/src/node.h:61:0,
                 from ../src/tag.h:5,
                 from ../src/tag.cc:1:
/home/andy/.node-gyp/0.10.17/deps/uv/include/uv.h:1432:15: error:   initializing argument 4 of ‘int uv_queue_work(uv_loop_t*, uv_work_t*, uv_work_cb, uv_after_work_cb)’ [-fpermissive]
../src/tag.cc: In static member function ‘static v8::Handle<v8::Value> node_taglib::Tag::AsyncSaveTag(const v8::Arguments&)’:
../src/tag.cc:291:98: error: invalid conversion from ‘void (*)(uv_work_t*) {aka void (*)(uv_work_s*)}’ to ‘uv_after_work_cb {aka void (*)(uv_work_s*, int)}’ [-fpermissive]
In file included from /home/andy/.node-gyp/0.10.17/src/node.h:61:0,
                 from ../src/tag.h:5,
                 from ../src/tag.cc:1:
/home/andy/.node-gyp/0.10.17/deps/uv/include/uv.h:1432:15: error:   initializing argument 4 of ‘int uv_queue_work(uv_loop_t*, uv_work_t*, uv_work_cb, uv_after_work_cb)’ [-fpermissive]
In file included from ../src/tag.cc:8:0:
../src/taglib.h: At global scope:
../src/taglib.h:26:22: warning: ‘TagLib::File* node_taglib::createFile(TagLib::IOStream*, TagLib::String)’ declared ‘static’ but never defined [-Wunused-function]
../src/tag.cc:17:20: warning: ‘suseconds_t node_taglib::now()’ defined but not used [-Wunused-function]
make: *** [Release/obj.target/taglib/src/tag.o] Error 1
make: Leaving directory `/home/andy/tmp/npmtest/node_modules/taglib/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.8.0-27-generic
gyp ERR! command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/andy/tmp/npmtest/node_modules/taglib
gyp ERR! node -v v0.10.17
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok 
npm ERR! weird error 1
npm ERR! not ok code 0

$node -v node v0.10.17

$ taglib-config --version 1.8.0

$ uname -a Linux andyba 3.8.0-27-generic #40-Ubuntu SMP Tue Jul 9 00:17:05 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

andrewrk avatar Sep 05 '13 17:09 andrewrk

Thanks for reporting this. I was busy and will be for a few more days, but I'll look into it next week.

nikhilm avatar Sep 19 '13 20:09 nikhilm

I ran into the exact same problem, let me know if you figure out a fix. This looks like a great module.

Same Node and Taglib ver $ uname -a Linux robotastic 3.9.3-x86_64-linode33 #1 SMP Mon May 20 10:22:57 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux

> [email protected] install /srv/www/robotastic.com/node_modules/taglib
> node-gyp rebuild


make: Entering directory `/srv/www/robotastic.com/node_modules/taglib/build'
  CXX(target) Release/obj.target/taglib/src/bufferstream.o
../src/taglib.h:26:22: warning: ‘TagLib::File* node_taglib::createFile(TagLib::IOStream*, TagLib::String)’ declared ‘static’ but never defined [-Wunused-function]
  CXX(target) Release/obj.target/taglib/src/tag.o
../src/tag.cc: In static member function ‘static v8::Handle<v8::Value> node_taglib::Tag::SyncTag(const v8::Arguments&)’:
../src/tag.cc:163:49: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
../src/tag.cc:172:124: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
../src/tag.cc: In static member function ‘static v8::Handle<v8::Value> node_taglib::Tag::AsyncTag(const v8::Arguments&)’:
../src/tag.cc:228:98: error: invalid conversion from ‘void (*)(uv_work_t*) {aka void (*)(uv_work_s*)}’ to ‘uv_after_work_cb {aka void (*)(uv_work_s*, int)}’ [-fpermissive]
/home/luke/.node-gyp/0.10.18/deps/uv/include/uv.h:1432:15: error:   initializing argument 4 of ‘int uv_queue_work(uv_loop_t*, uv_work_t*, uv_work_cb, uv_after_work_cb)’ [-fpermissive]
../src/tag.cc: In static member function ‘static v8::Handle<v8::Value> node_taglib::Tag::AsyncSaveTag(const v8::Arguments&)’:
../src/tag.cc:291:98: error: invalid conversion from ‘void (*)(uv_work_t*) {aka void (*)(uv_work_s*)}’ to ‘uv_after_work_cb {aka void (*)(uv_work_s*, int)}’ [-fpermissive]
/home/luke/.node-gyp/0.10.18/deps/uv/include/uv.h:1432:15: error:   initializing argument 4 of ‘int uv_queue_work(uv_loop_t*, uv_work_t*, uv_work_cb, uv_after_work_cb)’ [-fpermissive]
../src/taglib.h: At global scope:
../src/taglib.h:26:22: warning: ‘TagLib::File* node_taglib::createFile(TagLib::IOStream*, TagLib::String)’ declared ‘static’ but never defined [-Wunused-function]
../src/tag.cc:17:20: warning: ‘suseconds_t node_taglib::now()’ defined but not used [-Wunused-function]
make: *** [Release/obj.target/taglib/src/tag.o] Error 1
make: Leaving directory `/srv/www/robotastic.com/node_modules/taglib/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.9.3-x86_64-linode33
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /srv/www/robotastic.com/node_modules/taglib
gyp ERR! node -v v0.10.18
gyp ERR! node-gyp -v v0.10.9
gyp ERR! not ok 
npm ERR! weird error 1
npm ERR! not ok code 0

robotastic avatar Sep 22 '13 00:09 robotastic

I just published a new version on npm which should work with 0.10. npm hasn't refreshed yet, once it does you should see v0.8.0 on npm view taglib

nikhilm avatar Sep 24 '13 03:09 nikhilm