Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

node-webkit compile error #387

Closed
springmeyer opened this issue Jan 16, 2015 · 3 comments
Closed

node-webkit compile error #387

springmeyer opened this issue Jan 16, 2015 · 3 comments

Comments

@springmeyer
Copy link
Contributor

Impacts node-webkit 0.10.5 and 0.11.5 with latest [email protected] (https://travis-ci.org/mapbox/node-sqlite3/builds/47189404)

  CXX(target) Release/obj.target/node_sqlite3/src/database.o
In file included from ../src/database.h:11:0,
                 from ../src/database.cc:5:
../node_modules/nan/nan.h: In constructor ‘NanAsyncProgressWorker::NanAsyncProgressWorker(NanCallback*)’:
../node_modules/nan/nan.h:1471:5: error: invalid conversion from ‘void (*)(uv_async_t*) {aka void (*)(uv_async_s*)}’ to ‘uv_async_cb {aka void (*)(uv_async_s*, int)}’ [-fpermissive]
/home/travis/.nw-gyp/0.11.5/src/../deps/uv/include/uv.h:1360:15: error:   initializing argument 3 of ‘int uv_async_init(uv_loop_t*, uv_async_t*, uv_async_cb)’ [-fpermissive]
@kkoopa
Copy link
Contributor

kkoopa commented Jan 16, 2015

Looks like it is because of the old uv upgrade where they removed the status argument. Doing a typecast to uv_async_cb is the best solution. nodejs/nan#97

@springmeyer
Copy link
Contributor Author

Thank you @kkoopa - I replicated the compile error on OS X as well and confirmed that a typecast fixes it (only reinterpret_cast was allowed by compiler, not static_cast). So, created a pull at nodejs/nan#239

@daniellockyer
Copy link
Member

Closing as this relates to an old version of node-sqlite3 and should be irrelevant with Node-API 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants